com.clarifai.grpc.api.utils.Extensions Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/utils/extensions.proto
package com.clarifai.grpc.api.utils;
public final class Extensions {
private Extensions() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.clarifai.grpc.api.utils.Extensions.clShowIfEmpty);
registry.add(com.clarifai.grpc.api.utils.Extensions.clMoretags);
registry.add(com.clarifai.grpc.api.utils.Extensions.clDefaultFloat);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static final int CL_SHOW_IF_EMPTY_FIELD_NUMBER = 50000;
/**
*
* If True then we will return this field with it's zero value even if not set.
* This means in json responses empty lists will appear instead of not being returned (which is
* the default convention for proto3). For int's we will show 0, for floats 0.0, etc.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
java.lang.Boolean> clShowIfEmpty = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Boolean.class,
null);
public static final int CL_MORETAGS_FIELD_NUMBER = 50001;
/**
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
java.lang.String> clMoretags = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.String.class,
null);
public static final int CL_DEFAULT_FLOAT_FIELD_NUMBER = 50010;
/**
*
* For float fields where this is set, this value will be used by the server when parsing the
* request and the field is not present in the request. If the field is present in the request,
* then the value of the field will be used instead. This is ONLY used for json requests as binary
* proto requests are expected to always set the field.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
java.lang.Float> clDefaultFloat = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Float.class,
null);
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n)proto/clarifai/api/utils/extensions.pr" +
"oto\022\022clarifai.api.utils\032 google/protobuf" +
"/descriptor.proto:9\n\020cl_show_if_empty\022\035." +
"google.protobuf.FieldOptions\030\320\206\003 \001(\010:4\n\013" +
"cl_moretags\022\035.google.protobuf.FieldOptio" +
"ns\030\321\206\003 \001(\t:9\n\020cl_default_float\022\035.google." +
"protobuf.FieldOptions\030\332\206\003 \001(\002Be\n\033com.cla" +
"rifai.grpc.api.utilsP\001Z=github.com/Clari" +
"fai/clarifai-go-grpc/proto/clarifai/api/" +
"utils\242\002\004CAIPb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
clShowIfEmpty.internalInit(descriptor.getExtensions().get(0));
clMoretags.internalInit(descriptor.getExtensions().get(1));
clDefaultFloat.internalInit(descriptor.getExtensions().get(2));
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}