implements
// @@protoc_insertion_point(builder_implements:clarifai.api.OutputInfo)
com.clarifai.grpc.api.OutputInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.OutputInfo.class, com.clarifai.grpc.api.OutputInfo.Builder.class);
}
// Construct using com.clarifai.grpc.api.OutputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParamsSpecsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (outputConfigBuilder_ == null) {
outputConfig_ = null;
} else {
outputConfig_ = null;
outputConfigBuilder_ = null;
}
message_ = "";
if (fieldsMapBuilder_ == null) {
fieldsMap_ = null;
} else {
fieldsMap_ = null;
fieldsMapBuilder_ = null;
}
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
if (paramsSpecsBuilder_ == null) {
paramsSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
paramsSpecsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputInfo_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.OutputInfo getDefaultInstanceForType() {
return com.clarifai.grpc.api.OutputInfo.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.OutputInfo build() {
com.clarifai.grpc.api.OutputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.OutputInfo buildPartial() {
com.clarifai.grpc.api.OutputInfo result = new com.clarifai.grpc.api.OutputInfo(this);
int from_bitField0_ = bitField0_;
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (outputConfigBuilder_ == null) {
result.outputConfig_ = outputConfig_;
} else {
result.outputConfig_ = outputConfigBuilder_.build();
}
result.message_ = message_;
if (fieldsMapBuilder_ == null) {
result.fieldsMap_ = fieldsMap_;
} else {
result.fieldsMap_ = fieldsMapBuilder_.build();
}
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (paramsSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
paramsSpecs_ = java.util.Collections.unmodifiableList(paramsSpecs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paramsSpecs_ = paramsSpecs_;
} else {
result.paramsSpecs_ = paramsSpecsBuilder_.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.OutputInfo) {
return mergeFrom((com.clarifai.grpc.api.OutputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.OutputInfo other) {
if (other == com.clarifai.grpc.api.OutputInfo.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasOutputConfig()) {
mergeOutputConfig(other.getOutputConfig());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.hasFieldsMap()) {
mergeFieldsMap(other.getFieldsMap());
}
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (paramsSpecsBuilder_ == null) {
if (!other.paramsSpecs_.isEmpty()) {
if (paramsSpecs_.isEmpty()) {
paramsSpecs_ = other.paramsSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParamsSpecsIsMutable();
paramsSpecs_.addAll(other.paramsSpecs_);
}
onChanged();
}
} else {
if (!other.paramsSpecs_.isEmpty()) {
if (paramsSpecsBuilder_.isEmpty()) {
paramsSpecsBuilder_.dispose();
paramsSpecsBuilder_ = null;
paramsSpecs_ = other.paramsSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
paramsSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParamsSpecsFieldBuilder() : null;
} else {
paramsSpecsBuilder_.addAllMessages(other.paramsSpecs_);
}
}
}
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.OutputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.OutputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.clarifai.grpc.api.Data data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder> dataBuilder_;
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
* @return The data.
*/
public com.clarifai.grpc.api.Data getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public Builder setData(com.clarifai.grpc.api.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public Builder setData(
com.clarifai.grpc.api.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public Builder mergeData(com.clarifai.grpc.api.Data value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.clarifai.grpc.api.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public com.clarifai.grpc.api.Data.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
public com.clarifai.grpc.api.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.clarifai.grpc.api.Data.getDefaultInstance() : data_;
}
}
/**
*
* List of concepts or other output related data for the model.
*
*
* .clarifai.api.Data data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.clarifai.grpc.api.OutputConfig outputConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputConfig, com.clarifai.grpc.api.OutputConfig.Builder, com.clarifai.grpc.api.OutputConfigOrBuilder> outputConfigBuilder_;
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
* @return Whether the outputConfig field is set.
*/
public boolean hasOutputConfig() {
return outputConfigBuilder_ != null || outputConfig_ != null;
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
* @return The outputConfig.
*/
public com.clarifai.grpc.api.OutputConfig getOutputConfig() {
if (outputConfigBuilder_ == null) {
return outputConfig_ == null ? com.clarifai.grpc.api.OutputConfig.getDefaultInstance() : outputConfig_;
} else {
return outputConfigBuilder_.getMessage();
}
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public Builder setOutputConfig(com.clarifai.grpc.api.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputConfig_ = value;
onChanged();
} else {
outputConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public Builder setOutputConfig(
com.clarifai.grpc.api.OutputConfig.Builder builderForValue) {
if (outputConfigBuilder_ == null) {
outputConfig_ = builderForValue.build();
onChanged();
} else {
outputConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public Builder mergeOutputConfig(com.clarifai.grpc.api.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (outputConfig_ != null) {
outputConfig_ =
com.clarifai.grpc.api.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial();
} else {
outputConfig_ = value;
}
onChanged();
} else {
outputConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public Builder clearOutputConfig() {
if (outputConfigBuilder_ == null) {
outputConfig_ = null;
onChanged();
} else {
outputConfig_ = null;
outputConfigBuilder_ = null;
}
return this;
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public com.clarifai.grpc.api.OutputConfig.Builder getOutputConfigBuilder() {
onChanged();
return getOutputConfigFieldBuilder().getBuilder();
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
public com.clarifai.grpc.api.OutputConfigOrBuilder getOutputConfigOrBuilder() {
if (outputConfigBuilder_ != null) {
return outputConfigBuilder_.getMessageOrBuilder();
} else {
return outputConfig_ == null ?
com.clarifai.grpc.api.OutputConfig.getDefaultInstance() : outputConfig_;
}
}
/**
*
* Model configuration...going away in favor of infer_params and train_params over time.
* TO BE DEPRECATED
*
*
* .clarifai.api.OutputConfig output_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputConfig, com.clarifai.grpc.api.OutputConfig.Builder, com.clarifai.grpc.api.OutputConfigOrBuilder>
getOutputConfigFieldBuilder() {
if (outputConfigBuilder_ == null) {
outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.OutputConfig, com.clarifai.grpc.api.OutputConfig.Builder, com.clarifai.grpc.api.OutputConfigOrBuilder>(
getOutputConfig(),
getParentForChildren(),
isClean());
outputConfig_ = null;
}
return outputConfigBuilder_;
}
private java.lang.Object message_ = "";
/**
*
* For returning where to look for the Output info if not returning it.
*
*
* string message = 3;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For returning where to look for the Output info if not returning it.
*
*
* string message = 3;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For returning where to look for the Output info if not returning it.
*
*
* string message = 3;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* For returning where to look for the Output info if not returning it.
*
*
* string message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* For returning where to look for the Output info if not returning it.
*
*
* string message = 3;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
* @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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
* @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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
public com.google.protobuf.Struct.Builder getFieldsMapBuilder() {
onChanged();
return getFieldsMapFieldBuilder().getBuilder();
}
/**
*
* Map from the api.Data field names to the underlying model graph's outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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 outputs. When using a
* PretrainedModelConfig the values in this map need to match the Triton config.pbtxt output names.
*
*
* .google.protobuf.Struct fields_map = 6;
*/
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_;
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
* @return Whether the params field is set.
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
* @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();
}
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
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;
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
public Builder setParams(
com.google.protobuf.Struct.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
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;
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
public com.google.protobuf.Struct.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : params_;
}
}
/**
*
* For predicting with the various ModelType's we accept a Struct (JSON object) worth of args
* that the ModelTypeField defines. During inference, the settings contained within are sent
* to the model predictor to alter predictions from this Model.
*
*
* .google.protobuf.Struct params = 7;
*/
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 java.util.List paramsSpecs_ =
java.util.Collections.emptyList();
private void ensureParamsSpecsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paramsSpecs_ = new java.util.ArrayList(paramsSpecs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.ModelTypeField, com.clarifai.grpc.api.ModelTypeField.Builder, com.clarifai.grpc.api.ModelTypeFieldOrBuilder> paramsSpecsBuilder_;
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public java.util.List getParamsSpecsList() {
if (paramsSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(paramsSpecs_);
} else {
return paramsSpecsBuilder_.getMessageList();
}
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public int getParamsSpecsCount() {
if (paramsSpecsBuilder_ == null) {
return paramsSpecs_.size();
} else {
return paramsSpecsBuilder_.getCount();
}
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public com.clarifai.grpc.api.ModelTypeField getParamsSpecs(int index) {
if (paramsSpecsBuilder_ == null) {
return paramsSpecs_.get(index);
} else {
return paramsSpecsBuilder_.getMessage(index);
}
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder setParamsSpecs(
int index, com.clarifai.grpc.api.ModelTypeField value) {
if (paramsSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsSpecsIsMutable();
paramsSpecs_.set(index, value);
onChanged();
} else {
paramsSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder setParamsSpecs(
int index, com.clarifai.grpc.api.ModelTypeField.Builder builderForValue) {
if (paramsSpecsBuilder_ == null) {
ensureParamsSpecsIsMutable();
paramsSpecs_.set(index, builderForValue.build());
onChanged();
} else {
paramsSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder addParamsSpecs(com.clarifai.grpc.api.ModelTypeField value) {
if (paramsSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsSpecsIsMutable();
paramsSpecs_.add(value);
onChanged();
} else {
paramsSpecsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder addParamsSpecs(
int index, com.clarifai.grpc.api.ModelTypeField value) {
if (paramsSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsSpecsIsMutable();
paramsSpecs_.add(index, value);
onChanged();
} else {
paramsSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder addParamsSpecs(
com.clarifai.grpc.api.ModelTypeField.Builder builderForValue) {
if (paramsSpecsBuilder_ == null) {
ensureParamsSpecsIsMutable();
paramsSpecs_.add(builderForValue.build());
onChanged();
} else {
paramsSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder addParamsSpecs(
int index, com.clarifai.grpc.api.ModelTypeField.Builder builderForValue) {
if (paramsSpecsBuilder_ == null) {
ensureParamsSpecsIsMutable();
paramsSpecs_.add(index, builderForValue.build());
onChanged();
} else {
paramsSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder addAllParamsSpecs(
java.lang.Iterable extends com.clarifai.grpc.api.ModelTypeField> values) {
if (paramsSpecsBuilder_ == null) {
ensureParamsSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paramsSpecs_);
onChanged();
} else {
paramsSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder clearParamsSpecs() {
if (paramsSpecsBuilder_ == null) {
paramsSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
paramsSpecsBuilder_.clear();
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public Builder removeParamsSpecs(int index) {
if (paramsSpecsBuilder_ == null) {
ensureParamsSpecsIsMutable();
paramsSpecs_.remove(index);
onChanged();
} else {
paramsSpecsBuilder_.remove(index);
}
return this;
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public com.clarifai.grpc.api.ModelTypeField.Builder getParamsSpecsBuilder(
int index) {
return getParamsSpecsFieldBuilder().getBuilder(index);
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public com.clarifai.grpc.api.ModelTypeFieldOrBuilder getParamsSpecsOrBuilder(
int index) {
if (paramsSpecsBuilder_ == null) {
return paramsSpecs_.get(index); } else {
return paramsSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public java.util.List extends com.clarifai.grpc.api.ModelTypeFieldOrBuilder>
getParamsSpecsOrBuilderList() {
if (paramsSpecsBuilder_ != null) {
return paramsSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(paramsSpecs_);
}
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public com.clarifai.grpc.api.ModelTypeField.Builder addParamsSpecsBuilder() {
return getParamsSpecsFieldBuilder().addBuilder(
com.clarifai.grpc.api.ModelTypeField.getDefaultInstance());
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public com.clarifai.grpc.api.ModelTypeField.Builder addParamsSpecsBuilder(
int index) {
return getParamsSpecsFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.ModelTypeField.getDefaultInstance());
}
/**
* repeated .clarifai.api.ModelTypeField params_specs = 8;
*/
public java.util.List
getParamsSpecsBuilderList() {
return getParamsSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.ModelTypeField, com.clarifai.grpc.api.ModelTypeField.Builder, com.clarifai.grpc.api.ModelTypeFieldOrBuilder>
getParamsSpecsFieldBuilder() {
if (paramsSpecsBuilder_ == null) {
paramsSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.ModelTypeField, com.clarifai.grpc.api.ModelTypeField.Builder, com.clarifai.grpc.api.ModelTypeFieldOrBuilder>(
paramsSpecs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
paramsSpecs_ = null;
}
return paramsSpecsBuilder_;
}
@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.OutputInfo)
}
// @@protoc_insertion_point(class_scope:clarifai.api.OutputInfo)
private static final com.clarifai.grpc.api.OutputInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.OutputInfo();
}
public static com.clarifai.grpc.api.OutputInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutputInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutputInfo(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.OutputInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}