implements
// @@protoc_insertion_point(builder_implements:clarifai.api.InputInfo)
com.clarifai.grpc.api.InputInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.InputInfo.class, com.clarifai.grpc.api.InputInfo.Builder.class);
}
// Construct using com.clarifai.grpc.api.InputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fieldsMapBuilder_ == null) {
fieldsMap_ = null;
} else {
fieldsMap_ = null;
fieldsMapBuilder_ = null;
}
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
if (baseEmbedModelBuilder_ == null) {
baseEmbedModel_ = null;
} else {
baseEmbedModel_ = null;
baseEmbedModelBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_InputInfo_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.InputInfo getDefaultInstanceForType() {
return com.clarifai.grpc.api.InputInfo.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.InputInfo build() {
com.clarifai.grpc.api.InputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.InputInfo buildPartial() {
com.clarifai.grpc.api.InputInfo result = new com.clarifai.grpc.api.InputInfo(this);
if (fieldsMapBuilder_ == null) {
result.fieldsMap_ = fieldsMap_;
} else {
result.fieldsMap_ = fieldsMapBuilder_.build();
}
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (baseEmbedModelBuilder_ == null) {
result.baseEmbedModel_ = baseEmbedModel_;
} else {
result.baseEmbedModel_ = baseEmbedModelBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.clarifai.grpc.api.InputInfo) {
return mergeFrom((com.clarifai.grpc.api.InputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.InputInfo other) {
if (other == com.clarifai.grpc.api.InputInfo.getDefaultInstance()) return this;
if (other.hasFieldsMap()) {
mergeFieldsMap(other.getFieldsMap());
}
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (other.hasBaseEmbedModel()) {
mergeBaseEmbedModel(other.getBaseEmbedModel());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.InputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.InputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Struct fieldsMap_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> fieldsMapBuilder_;
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
* @return Whether the fieldsMap field is set.
*/
public boolean hasFieldsMap() {
return fieldsMapBuilder_ != null || fieldsMap_ != null;
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
* @return The fieldsMap.
*/
public com.google.protobuf.Struct getFieldsMap() {
if (fieldsMapBuilder_ == null) {
return fieldsMap_ == null ? com.google.protobuf.Struct.getDefaultInstance() : fieldsMap_;
} else {
return fieldsMapBuilder_.getMessage();
}
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public Builder setFieldsMap(com.google.protobuf.Struct value) {
if (fieldsMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldsMap_ = value;
onChanged();
} else {
fieldsMapBuilder_.setMessage(value);
}
return this;
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public Builder setFieldsMap(
com.google.protobuf.Struct.Builder builderForValue) {
if (fieldsMapBuilder_ == null) {
fieldsMap_ = builderForValue.build();
onChanged();
} else {
fieldsMapBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public Builder mergeFieldsMap(com.google.protobuf.Struct value) {
if (fieldsMapBuilder_ == null) {
if (fieldsMap_ != null) {
fieldsMap_ =
com.google.protobuf.Struct.newBuilder(fieldsMap_).mergeFrom(value).buildPartial();
} else {
fieldsMap_ = value;
}
onChanged();
} else {
fieldsMapBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public Builder clearFieldsMap() {
if (fieldsMapBuilder_ == null) {
fieldsMap_ = null;
onChanged();
} else {
fieldsMap_ = null;
fieldsMapBuilder_ = null;
}
return this;
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public com.google.protobuf.Struct.Builder getFieldsMapBuilder() {
onChanged();
return getFieldsMapFieldBuilder().getBuilder();
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
public com.google.protobuf.StructOrBuilder getFieldsMapOrBuilder() {
if (fieldsMapBuilder_ != null) {
return fieldsMapBuilder_.getMessageOrBuilder();
} else {
return fieldsMap_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : fieldsMap_;
}
}
/**
*
* Map from the api.Data field names to the underlying model graph's inputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt input names.
*
*
* .google.protobuf.Struct fields_map = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getFieldsMapFieldBuilder() {
if (fieldsMapBuilder_ == null) {
fieldsMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getFieldsMap(),
getParentForChildren(),
isClean());
fieldsMap_ = null;
}
return fieldsMapBuilder_;
}
private com.google.protobuf.Struct params_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> paramsBuilder_;
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
* @return Whether the params field is set.
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
* @return The params.
*/
public com.google.protobuf.Struct getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public Builder setParams(com.google.protobuf.Struct value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
params_ = value;
onChanged();
} else {
paramsBuilder_.setMessage(value);
}
return this;
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public Builder setParams(
com.google.protobuf.Struct.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public Builder mergeParams(com.google.protobuf.Struct value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
onChanged();
} else {
paramsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public com.google.protobuf.Struct.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : params_;
}
}
/**
*
* To control the inputs to the given model we allow a list of parameters
* defined for each ModelType as a Struct (JSON object) here. During training or inference, the
* settings contained within are sent to the training processor to alter the training process.
*
*
* .google.protobuf.Struct params = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private com.clarifai.grpc.api.Model baseEmbedModel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder> baseEmbedModelBuilder_;
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
* @return Whether the baseEmbedModel field is set.
*/
public boolean hasBaseEmbedModel() {
return baseEmbedModelBuilder_ != null || baseEmbedModel_ != null;
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
* @return The baseEmbedModel.
*/
public com.clarifai.grpc.api.Model getBaseEmbedModel() {
if (baseEmbedModelBuilder_ == null) {
return baseEmbedModel_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : baseEmbedModel_;
} else {
return baseEmbedModelBuilder_.getMessage();
}
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public Builder setBaseEmbedModel(com.clarifai.grpc.api.Model value) {
if (baseEmbedModelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseEmbedModel_ = value;
onChanged();
} else {
baseEmbedModelBuilder_.setMessage(value);
}
return this;
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public Builder setBaseEmbedModel(
com.clarifai.grpc.api.Model.Builder builderForValue) {
if (baseEmbedModelBuilder_ == null) {
baseEmbedModel_ = builderForValue.build();
onChanged();
} else {
baseEmbedModelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public Builder mergeBaseEmbedModel(com.clarifai.grpc.api.Model value) {
if (baseEmbedModelBuilder_ == null) {
if (baseEmbedModel_ != null) {
baseEmbedModel_ =
com.clarifai.grpc.api.Model.newBuilder(baseEmbedModel_).mergeFrom(value).buildPartial();
} else {
baseEmbedModel_ = value;
}
onChanged();
} else {
baseEmbedModelBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public Builder clearBaseEmbedModel() {
if (baseEmbedModelBuilder_ == null) {
baseEmbedModel_ = null;
onChanged();
} else {
baseEmbedModel_ = null;
baseEmbedModelBuilder_ = null;
}
return this;
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public com.clarifai.grpc.api.Model.Builder getBaseEmbedModelBuilder() {
onChanged();
return getBaseEmbedModelFieldBuilder().getBuilder();
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
public com.clarifai.grpc.api.ModelOrBuilder getBaseEmbedModelOrBuilder() {
if (baseEmbedModelBuilder_ != null) {
return baseEmbedModelBuilder_.getMessageOrBuilder();
} else {
return baseEmbedModel_ == null ?
com.clarifai.grpc.api.Model.getDefaultInstance() : baseEmbedModel_;
}
}
/**
*
* For base model to get embeddings from for transfer learned models.
*
*
* .clarifai.api.Model base_embed_model = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder>
getBaseEmbedModelFieldBuilder() {
if (baseEmbedModelBuilder_ == null) {
baseEmbedModelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder>(
getBaseEmbedModel(),
getParentForChildren(),
isClean());
baseEmbedModel_ = null;
}
return baseEmbedModelBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.InputInfo)
}
// @@protoc_insertion_point(class_scope:clarifai.api.InputInfo)
private static final com.clarifai.grpc.api.InputInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.InputInfo();
}
public static com.clarifai.grpc.api.InputInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InputInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InputInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.clarifai.grpc.api.InputInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}