All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.OutputConfig Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * OutputConfig is a collection of parameters controlling either inference or training settings for
 * the given Model. This message will be deprecated over time in favor or infer_params and
 * train_params in OutputInfo which are cleaner and more extensible for many ModelTypes.
 * 
* * Protobuf type {@code clarifai.api.OutputConfig} */ public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.OutputConfig) OutputConfigOrBuilder { private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OutputConfig() { existingModelId_ = ""; language_ = ""; hyperParameters_ = ""; selectConcepts_ = java.util.Collections.emptyList(); embedModelVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { conceptsMutuallyExclusive_ = input.readBool(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); existingModelId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); language_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); hyperParameters_ = s; break; } case 48: { maxConcepts_ = input.readUInt32(); break; } case 61: { minValue_ = input.readFloat(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { selectConcepts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } selectConcepts_.add( input.readMessage(com.clarifai.grpc.api.Concept.parser(), extensionRegistry)); break; } case 72: { trainingTimeout_ = input.readUInt32(); break; } case 80: { sampleMs_ = input.readUInt32(); break; } case 106: { com.google.protobuf.Struct.Builder subBuilder = null; if (hyperParams_ != null) { subBuilder = hyperParams_.toBuilder(); } hyperParams_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hyperParams_); hyperParams_ = subBuilder.buildPartial(); } break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); embedModelVersionId_ = s; break; } case 120: { failOnMissingPositiveExamples_ = input.readBool(); break; } case 138: { com.google.protobuf.Struct.Builder subBuilder = null; if (modelMetadata_ != null) { subBuilder = modelMetadata_.toBuilder(); } modelMetadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modelMetadata_); modelMetadata_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { selectConcepts_ = java.util.Collections.unmodifiableList(selectConcepts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.OutputConfig.class, com.clarifai.grpc.api.OutputConfig.Builder.class); } public static final int CONCEPTS_MUTUALLY_EXCLUSIVE_FIELD_NUMBER = 1; private boolean conceptsMutuallyExclusive_; /** *
   * For custom concept model training: whether the concept predictions must sum to 1.
   * 
* * bool concepts_mutually_exclusive = 1 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.concepts_mutually_exclusive is deprecated. * See proto/clarifai/api/resources.proto;l=1509 * @return The conceptsMutuallyExclusive. */ @java.lang.Override @java.lang.Deprecated public boolean getConceptsMutuallyExclusive() { return conceptsMutuallyExclusive_; } public static final int EXISTING_MODEL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object existingModelId_; /** *
   * DEPRECATED: For custom models, this is the base model to use for image embeddings.
   * Default is general model.
   * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @return The existingModelId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getExistingModelId() { java.lang.Object ref = existingModelId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); existingModelId_ = s; return s; } } /** *
   * DEPRECATED: For custom models, this is the base model to use for image embeddings.
   * Default is general model.
   * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @return The bytes for existingModelId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getExistingModelIdBytes() { java.lang.Object ref = existingModelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); existingModelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LANGUAGE_FIELD_NUMBER = 4; private volatile java.lang.Object language_; /** *
   * For concept model predictions: Overrides the default_language for the app in a predict call.
   * 
* * string language = 4; * @return The language. */ @java.lang.Override public java.lang.String getLanguage() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); language_ = s; return s; } } /** *
   * For concept model predictions: Overrides the default_language for the app in a predict call.
   * 
* * string language = 4; * @return The bytes for language. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HYPER_PARAMETERS_FIELD_NUMBER = 5; private volatile java.lang.Object hyperParameters_; /** *
   * DEPRECATED: Hyper-parameters for custom training.
   * Use new hyper_params field instead.
   * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @return The hyperParameters. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getHyperParameters() { java.lang.Object ref = hyperParameters_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hyperParameters_ = s; return s; } } /** *
   * DEPRECATED: Hyper-parameters for custom training.
   * Use new hyper_params field instead.
   * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @return The bytes for hyperParameters. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getHyperParametersBytes() { java.lang.Object ref = hyperParameters_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hyperParameters_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_CONCEPTS_FIELD_NUMBER = 6; private int maxConcepts_; /** *
   * For concept model predictions:  Maximum number of concepts in result. Defaults to 0 which under
   * the hood will return default of 20. We do a server side default in order to control this
   * feature in the future.
   * 
* * uint32 max_concepts = 6 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The maxConcepts. */ @java.lang.Override public int getMaxConcepts() { return maxConcepts_; } public static final int MIN_VALUE_FIELD_NUMBER = 7; private float minValue_; /** *
   * For concept model predictions: Minimum value of concept's probability score in result.
   * Defaults to 0.0 which means we won't do any thresholding as all probabilities will
   * likely be > 0.0.
   * 
* * float min_value = 7 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The minValue. */ @java.lang.Override public float getMinValue() { return minValue_; } public static final int SELECT_CONCEPTS_FIELD_NUMBER = 8; private java.util.List selectConcepts_; /** *
   * For concept model predictions: Select concepts in result by name or by id
   * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ @java.lang.Override public java.util.List getSelectConceptsList() { return selectConcepts_; } /** *
   * For concept model predictions: Select concepts in result by name or by id
   * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ @java.lang.Override public java.util.List getSelectConceptsOrBuilderList() { return selectConcepts_; } /** *
   * For concept model predictions: Select concepts in result by name or by id
   * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ @java.lang.Override public int getSelectConceptsCount() { return selectConcepts_.size(); } /** *
   * For concept model predictions: Select concepts in result by name or by id
   * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ @java.lang.Override public com.clarifai.grpc.api.Concept getSelectConcepts(int index) { return selectConcepts_.get(index); } /** *
   * For concept model predictions: Select concepts in result by name or by id
   * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ @java.lang.Override public com.clarifai.grpc.api.ConceptOrBuilder getSelectConceptsOrBuilder( int index) { return selectConcepts_.get(index); } public static final int TRAINING_TIMEOUT_FIELD_NUMBER = 9; private int trainingTimeout_; /** *
   * For custom concept model training: Training timeout of the model (in seconds)
   * 
* * uint32 training_timeout = 9; * @return The trainingTimeout. */ @java.lang.Override public int getTrainingTimeout() { return trainingTimeout_; } public static final int SAMPLE_MS_FIELD_NUMBER = 10; private int sampleMs_; /** *
   * For model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
   * 
* * uint32 sample_ms = 10; * @return The sampleMs. */ @java.lang.Override public int getSampleMs() { return sampleMs_; } public static final int HYPER_PARAMS_FIELD_NUMBER = 13; private com.google.protobuf.Struct hyperParams_; /** *
   * For custom model training: Hyperparameters for custom training
   * 
* * .google.protobuf.Struct hyper_params = 13; * @return Whether the hyperParams field is set. */ @java.lang.Override public boolean hasHyperParams() { return hyperParams_ != null; } /** *
   * For custom model training: Hyperparameters for custom training
   * 
* * .google.protobuf.Struct hyper_params = 13; * @return The hyperParams. */ @java.lang.Override public com.google.protobuf.Struct getHyperParams() { return hyperParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : hyperParams_; } /** *
   * For custom model training: Hyperparameters for custom training
   * 
* * .google.protobuf.Struct hyper_params = 13; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getHyperParamsOrBuilder() { return getHyperParams(); } public static final int EMBED_MODEL_VERSION_ID_FIELD_NUMBER = 14; private volatile java.lang.Object embedModelVersionId_; /** *
   * For custom model training: this is the base model version to use for image embeddings.
   * This has to be one of the embed models in the app workflow.
   * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @return The embedModelVersionId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getEmbedModelVersionId() { java.lang.Object ref = embedModelVersionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); embedModelVersionId_ = s; return s; } } /** *
   * For custom model training: this is the base model version to use for image embeddings.
   * This has to be one of the embed models in the app workflow.
   * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @return The bytes for embedModelVersionId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getEmbedModelVersionIdBytes() { java.lang.Object ref = embedModelVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); embedModelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FAIL_ON_MISSING_POSITIVE_EXAMPLES_FIELD_NUMBER = 15; private boolean failOnMissingPositiveExamples_; /** *
   * For custom model training: Use this flag to fail on missing positive examples
   * By default we fill in the missing with random examples
   * 
* * bool fail_on_missing_positive_examples = 15; * @return The failOnMissingPositiveExamples. */ @java.lang.Override public boolean getFailOnMissingPositiveExamples() { return failOnMissingPositiveExamples_; } public static final int MODEL_METADATA_FIELD_NUMBER = 17; private com.google.protobuf.Struct modelMetadata_; /** *
   * For custom model training: This is any additional metadata as a JSON object that we want
   * want to persist in the model's output config. This is a useful quick way to set fields for
   * introducing fields for new model types so we don't have to add a new proto field and DB field
   * each time. Please refer to the documentation or model implementation internally for more
   * details on what fields are supported for which models.
   * TODO(zeiler): remove this field after Portal is updated.
   * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.model_metadata is deprecated. * See proto/clarifai/api/resources.proto;l=1546 * @return Whether the modelMetadata field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasModelMetadata() { return modelMetadata_ != null; } /** *
   * For custom model training: This is any additional metadata as a JSON object that we want
   * want to persist in the model's output config. This is a useful quick way to set fields for
   * introducing fields for new model types so we don't have to add a new proto field and DB field
   * each time. Please refer to the documentation or model implementation internally for more
   * details on what fields are supported for which models.
   * TODO(zeiler): remove this field after Portal is updated.
   * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.model_metadata is deprecated. * See proto/clarifai/api/resources.proto;l=1546 * @return The modelMetadata. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Struct getModelMetadata() { return modelMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : modelMetadata_; } /** *
   * For custom model training: This is any additional metadata as a JSON object that we want
   * want to persist in the model's output config. This is a useful quick way to set fields for
   * introducing fields for new model types so we don't have to add a new proto field and DB field
   * each time. Please refer to the documentation or model implementation internally for more
   * details on what fields are supported for which models.
   * TODO(zeiler): remove this field after Portal is updated.
   * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getModelMetadataOrBuilder() { return getModelMetadata(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (conceptsMutuallyExclusive_ != false) { output.writeBool(1, conceptsMutuallyExclusive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existingModelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, existingModelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, language_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hyperParameters_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hyperParameters_); } if (maxConcepts_ != 0) { output.writeUInt32(6, maxConcepts_); } if (java.lang.Float.floatToRawIntBits(minValue_) != 0) { output.writeFloat(7, minValue_); } for (int i = 0; i < selectConcepts_.size(); i++) { output.writeMessage(8, selectConcepts_.get(i)); } if (trainingTimeout_ != 0) { output.writeUInt32(9, trainingTimeout_); } if (sampleMs_ != 0) { output.writeUInt32(10, sampleMs_); } if (hyperParams_ != null) { output.writeMessage(13, getHyperParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(embedModelVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, embedModelVersionId_); } if (failOnMissingPositiveExamples_ != false) { output.writeBool(15, failOnMissingPositiveExamples_); } if (modelMetadata_ != null) { output.writeMessage(17, getModelMetadata()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (conceptsMutuallyExclusive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, conceptsMutuallyExclusive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existingModelId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, existingModelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, language_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hyperParameters_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hyperParameters_); } if (maxConcepts_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, maxConcepts_); } if (java.lang.Float.floatToRawIntBits(minValue_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, minValue_); } for (int i = 0; i < selectConcepts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, selectConcepts_.get(i)); } if (trainingTimeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, trainingTimeout_); } if (sampleMs_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, sampleMs_); } if (hyperParams_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getHyperParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(embedModelVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, embedModelVersionId_); } if (failOnMissingPositiveExamples_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, failOnMissingPositiveExamples_); } if (modelMetadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getModelMetadata()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.OutputConfig)) { return super.equals(obj); } com.clarifai.grpc.api.OutputConfig other = (com.clarifai.grpc.api.OutputConfig) obj; if (getConceptsMutuallyExclusive() != other.getConceptsMutuallyExclusive()) return false; if (!getExistingModelId() .equals(other.getExistingModelId())) return false; if (!getLanguage() .equals(other.getLanguage())) return false; if (!getHyperParameters() .equals(other.getHyperParameters())) return false; if (getMaxConcepts() != other.getMaxConcepts()) return false; if (java.lang.Float.floatToIntBits(getMinValue()) != java.lang.Float.floatToIntBits( other.getMinValue())) return false; if (!getSelectConceptsList() .equals(other.getSelectConceptsList())) return false; if (getTrainingTimeout() != other.getTrainingTimeout()) return false; if (getSampleMs() != other.getSampleMs()) return false; if (hasHyperParams() != other.hasHyperParams()) return false; if (hasHyperParams()) { if (!getHyperParams() .equals(other.getHyperParams())) return false; } if (!getEmbedModelVersionId() .equals(other.getEmbedModelVersionId())) return false; if (getFailOnMissingPositiveExamples() != other.getFailOnMissingPositiveExamples()) return false; if (hasModelMetadata() != other.hasModelMetadata()) return false; if (hasModelMetadata()) { if (!getModelMetadata() .equals(other.getModelMetadata())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONCEPTS_MUTUALLY_EXCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getConceptsMutuallyExclusive()); hash = (37 * hash) + EXISTING_MODEL_ID_FIELD_NUMBER; hash = (53 * hash) + getExistingModelId().hashCode(); hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getHyperParameters().hashCode(); hash = (37 * hash) + MAX_CONCEPTS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcepts(); hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getMinValue()); if (getSelectConceptsCount() > 0) { hash = (37 * hash) + SELECT_CONCEPTS_FIELD_NUMBER; hash = (53 * hash) + getSelectConceptsList().hashCode(); } hash = (37 * hash) + TRAINING_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTrainingTimeout(); hash = (37 * hash) + SAMPLE_MS_FIELD_NUMBER; hash = (53 * hash) + getSampleMs(); if (hasHyperParams()) { hash = (37 * hash) + HYPER_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getHyperParams().hashCode(); } hash = (37 * hash) + EMBED_MODEL_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getEmbedModelVersionId().hashCode(); hash = (37 * hash) + FAIL_ON_MISSING_POSITIVE_EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFailOnMissingPositiveExamples()); if (hasModelMetadata()) { hash = (37 * hash) + MODEL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getModelMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.OutputConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.OutputConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.OutputConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.OutputConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.OutputConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.OutputConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * OutputConfig is a collection of parameters controlling either inference or training settings for
   * the given Model. This message will be deprecated over time in favor or infer_params and
   * train_params in OutputInfo which are cleaner and more extensible for many ModelTypes.
   * 
* * Protobuf type {@code clarifai.api.OutputConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.OutputConfig) com.clarifai.grpc.api.OutputConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.OutputConfig.class, com.clarifai.grpc.api.OutputConfig.Builder.class); } // Construct using com.clarifai.grpc.api.OutputConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelectConceptsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); conceptsMutuallyExclusive_ = false; existingModelId_ = ""; language_ = ""; hyperParameters_ = ""; maxConcepts_ = 0; minValue_ = 0F; if (selectConceptsBuilder_ == null) { selectConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { selectConceptsBuilder_.clear(); } trainingTimeout_ = 0; sampleMs_ = 0; if (hyperParamsBuilder_ == null) { hyperParams_ = null; } else { hyperParams_ = null; hyperParamsBuilder_ = null; } embedModelVersionId_ = ""; failOnMissingPositiveExamples_ = false; if (modelMetadataBuilder_ == null) { modelMetadata_ = null; } else { modelMetadata_ = null; modelMetadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_OutputConfig_descriptor; } @java.lang.Override public com.clarifai.grpc.api.OutputConfig getDefaultInstanceForType() { return com.clarifai.grpc.api.OutputConfig.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.OutputConfig build() { com.clarifai.grpc.api.OutputConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.OutputConfig buildPartial() { com.clarifai.grpc.api.OutputConfig result = new com.clarifai.grpc.api.OutputConfig(this); int from_bitField0_ = bitField0_; result.conceptsMutuallyExclusive_ = conceptsMutuallyExclusive_; result.existingModelId_ = existingModelId_; result.language_ = language_; result.hyperParameters_ = hyperParameters_; result.maxConcepts_ = maxConcepts_; result.minValue_ = minValue_; if (selectConceptsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { selectConcepts_ = java.util.Collections.unmodifiableList(selectConcepts_); bitField0_ = (bitField0_ & ~0x00000001); } result.selectConcepts_ = selectConcepts_; } else { result.selectConcepts_ = selectConceptsBuilder_.build(); } result.trainingTimeout_ = trainingTimeout_; result.sampleMs_ = sampleMs_; if (hyperParamsBuilder_ == null) { result.hyperParams_ = hyperParams_; } else { result.hyperParams_ = hyperParamsBuilder_.build(); } result.embedModelVersionId_ = embedModelVersionId_; result.failOnMissingPositiveExamples_ = failOnMissingPositiveExamples_; if (modelMetadataBuilder_ == null) { result.modelMetadata_ = modelMetadata_; } else { result.modelMetadata_ = modelMetadataBuilder_.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.OutputConfig) { return mergeFrom((com.clarifai.grpc.api.OutputConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.OutputConfig other) { if (other == com.clarifai.grpc.api.OutputConfig.getDefaultInstance()) return this; if (other.getConceptsMutuallyExclusive() != false) { setConceptsMutuallyExclusive(other.getConceptsMutuallyExclusive()); } if (!other.getExistingModelId().isEmpty()) { existingModelId_ = other.existingModelId_; onChanged(); } if (!other.getLanguage().isEmpty()) { language_ = other.language_; onChanged(); } if (!other.getHyperParameters().isEmpty()) { hyperParameters_ = other.hyperParameters_; onChanged(); } if (other.getMaxConcepts() != 0) { setMaxConcepts(other.getMaxConcepts()); } if (other.getMinValue() != 0F) { setMinValue(other.getMinValue()); } if (selectConceptsBuilder_ == null) { if (!other.selectConcepts_.isEmpty()) { if (selectConcepts_.isEmpty()) { selectConcepts_ = other.selectConcepts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSelectConceptsIsMutable(); selectConcepts_.addAll(other.selectConcepts_); } onChanged(); } } else { if (!other.selectConcepts_.isEmpty()) { if (selectConceptsBuilder_.isEmpty()) { selectConceptsBuilder_.dispose(); selectConceptsBuilder_ = null; selectConcepts_ = other.selectConcepts_; bitField0_ = (bitField0_ & ~0x00000001); selectConceptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSelectConceptsFieldBuilder() : null; } else { selectConceptsBuilder_.addAllMessages(other.selectConcepts_); } } } if (other.getTrainingTimeout() != 0) { setTrainingTimeout(other.getTrainingTimeout()); } if (other.getSampleMs() != 0) { setSampleMs(other.getSampleMs()); } if (other.hasHyperParams()) { mergeHyperParams(other.getHyperParams()); } if (!other.getEmbedModelVersionId().isEmpty()) { embedModelVersionId_ = other.embedModelVersionId_; onChanged(); } if (other.getFailOnMissingPositiveExamples() != false) { setFailOnMissingPositiveExamples(other.getFailOnMissingPositiveExamples()); } if (other.hasModelMetadata()) { mergeModelMetadata(other.getModelMetadata()); } 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.OutputConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean conceptsMutuallyExclusive_ ; /** *
     * For custom concept model training: whether the concept predictions must sum to 1.
     * 
* * bool concepts_mutually_exclusive = 1 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.concepts_mutually_exclusive is deprecated. * See proto/clarifai/api/resources.proto;l=1509 * @return The conceptsMutuallyExclusive. */ @java.lang.Override @java.lang.Deprecated public boolean getConceptsMutuallyExclusive() { return conceptsMutuallyExclusive_; } /** *
     * For custom concept model training: whether the concept predictions must sum to 1.
     * 
* * bool concepts_mutually_exclusive = 1 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.concepts_mutually_exclusive is deprecated. * See proto/clarifai/api/resources.proto;l=1509 * @param value The conceptsMutuallyExclusive to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setConceptsMutuallyExclusive(boolean value) { conceptsMutuallyExclusive_ = value; onChanged(); return this; } /** *
     * For custom concept model training: whether the concept predictions must sum to 1.
     * 
* * bool concepts_mutually_exclusive = 1 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.concepts_mutually_exclusive is deprecated. * See proto/clarifai/api/resources.proto;l=1509 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearConceptsMutuallyExclusive() { conceptsMutuallyExclusive_ = false; onChanged(); return this; } private java.lang.Object existingModelId_ = ""; /** *
     * DEPRECATED: For custom models, this is the base model to use for image embeddings.
     * Default is general model.
     * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @return The existingModelId. */ @java.lang.Deprecated public java.lang.String getExistingModelId() { java.lang.Object ref = existingModelId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); existingModelId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: For custom models, this is the base model to use for image embeddings.
     * Default is general model.
     * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @return The bytes for existingModelId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getExistingModelIdBytes() { java.lang.Object ref = existingModelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); existingModelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: For custom models, this is the base model to use for image embeddings.
     * Default is general model.
     * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @param value The existingModelId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setExistingModelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } existingModelId_ = value; onChanged(); return this; } /** *
     * DEPRECATED: For custom models, this is the base model to use for image embeddings.
     * Default is general model.
     * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearExistingModelId() { existingModelId_ = getDefaultInstance().getExistingModelId(); onChanged(); return this; } /** *
     * DEPRECATED: For custom models, this is the base model to use for image embeddings.
     * Default is general model.
     * 
* * string existing_model_id = 3 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.existing_model_id is deprecated. * See proto/clarifai/api/resources.proto;l=1512 * @param value The bytes for existingModelId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setExistingModelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); existingModelId_ = value; onChanged(); return this; } private java.lang.Object language_ = ""; /** *
     * For concept model predictions: Overrides the default_language for the app in a predict call.
     * 
* * string language = 4; * @return The language. */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * For concept model predictions: Overrides the default_language for the app in a predict call.
     * 
* * string language = 4; * @return The bytes for language. */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * For concept model predictions: Overrides the default_language for the app in a predict call.
     * 
* * string language = 4; * @param value The language to set. * @return This builder for chaining. */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } language_ = value; onChanged(); return this; } /** *
     * For concept model predictions: Overrides the default_language for the app in a predict call.
     * 
* * string language = 4; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /** *
     * For concept model predictions: Overrides the default_language for the app in a predict call.
     * 
* * string language = 4; * @param value The bytes for language to set. * @return This builder for chaining. */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); language_ = value; onChanged(); return this; } private java.lang.Object hyperParameters_ = ""; /** *
     * DEPRECATED: Hyper-parameters for custom training.
     * Use new hyper_params field instead.
     * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @return The hyperParameters. */ @java.lang.Deprecated public java.lang.String getHyperParameters() { java.lang.Object ref = hyperParameters_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hyperParameters_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: Hyper-parameters for custom training.
     * Use new hyper_params field instead.
     * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @return The bytes for hyperParameters. */ @java.lang.Deprecated public com.google.protobuf.ByteString getHyperParametersBytes() { java.lang.Object ref = hyperParameters_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hyperParameters_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: Hyper-parameters for custom training.
     * Use new hyper_params field instead.
     * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @param value The hyperParameters to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setHyperParameters( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hyperParameters_ = value; onChanged(); return this; } /** *
     * DEPRECATED: Hyper-parameters for custom training.
     * Use new hyper_params field instead.
     * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearHyperParameters() { hyperParameters_ = getDefaultInstance().getHyperParameters(); onChanged(); return this; } /** *
     * DEPRECATED: Hyper-parameters for custom training.
     * Use new hyper_params field instead.
     * 
* * string hyper_parameters = 5 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.hyper_parameters is deprecated. * See proto/clarifai/api/resources.proto;l=1517 * @param value The bytes for hyperParameters to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setHyperParametersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hyperParameters_ = value; onChanged(); return this; } private int maxConcepts_ ; /** *
     * For concept model predictions:  Maximum number of concepts in result. Defaults to 0 which under
     * the hood will return default of 20. We do a server side default in order to control this
     * feature in the future.
     * 
* * uint32 max_concepts = 6 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The maxConcepts. */ @java.lang.Override public int getMaxConcepts() { return maxConcepts_; } /** *
     * For concept model predictions:  Maximum number of concepts in result. Defaults to 0 which under
     * the hood will return default of 20. We do a server side default in order to control this
     * feature in the future.
     * 
* * uint32 max_concepts = 6 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The maxConcepts to set. * @return This builder for chaining. */ public Builder setMaxConcepts(int value) { maxConcepts_ = value; onChanged(); return this; } /** *
     * For concept model predictions:  Maximum number of concepts in result. Defaults to 0 which under
     * the hood will return default of 20. We do a server side default in order to control this
     * feature in the future.
     * 
* * uint32 max_concepts = 6 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearMaxConcepts() { maxConcepts_ = 0; onChanged(); return this; } private float minValue_ ; /** *
     * For concept model predictions: Minimum value of concept's probability score in result.
     * Defaults to 0.0 which means we won't do any thresholding as all probabilities will
     * likely be > 0.0.
     * 
* * float min_value = 7 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return The minValue. */ @java.lang.Override public float getMinValue() { return minValue_; } /** *
     * For concept model predictions: Minimum value of concept's probability score in result.
     * Defaults to 0.0 which means we won't do any thresholding as all probabilities will
     * likely be > 0.0.
     * 
* * float min_value = 7 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @param value The minValue to set. * @return This builder for chaining. */ public Builder setMinValue(float value) { minValue_ = value; onChanged(); return this; } /** *
     * For concept model predictions: Minimum value of concept's probability score in result.
     * Defaults to 0.0 which means we won't do any thresholding as all probabilities will
     * likely be > 0.0.
     * 
* * float min_value = 7 [(.clarifai.api.utils.cl_show_if_empty) = true]; * @return This builder for chaining. */ public Builder clearMinValue() { minValue_ = 0F; onChanged(); return this; } private java.util.List selectConcepts_ = java.util.Collections.emptyList(); private void ensureSelectConceptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectConcepts_ = new java.util.ArrayList(selectConcepts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> selectConceptsBuilder_; /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public java.util.List getSelectConceptsList() { if (selectConceptsBuilder_ == null) { return java.util.Collections.unmodifiableList(selectConcepts_); } else { return selectConceptsBuilder_.getMessageList(); } } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public int getSelectConceptsCount() { if (selectConceptsBuilder_ == null) { return selectConcepts_.size(); } else { return selectConceptsBuilder_.getCount(); } } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public com.clarifai.grpc.api.Concept getSelectConcepts(int index) { if (selectConceptsBuilder_ == null) { return selectConcepts_.get(index); } else { return selectConceptsBuilder_.getMessage(index); } } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder setSelectConcepts( int index, com.clarifai.grpc.api.Concept value) { if (selectConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectConceptsIsMutable(); selectConcepts_.set(index, value); onChanged(); } else { selectConceptsBuilder_.setMessage(index, value); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder setSelectConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (selectConceptsBuilder_ == null) { ensureSelectConceptsIsMutable(); selectConcepts_.set(index, builderForValue.build()); onChanged(); } else { selectConceptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder addSelectConcepts(com.clarifai.grpc.api.Concept value) { if (selectConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectConceptsIsMutable(); selectConcepts_.add(value); onChanged(); } else { selectConceptsBuilder_.addMessage(value); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder addSelectConcepts( int index, com.clarifai.grpc.api.Concept value) { if (selectConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSelectConceptsIsMutable(); selectConcepts_.add(index, value); onChanged(); } else { selectConceptsBuilder_.addMessage(index, value); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder addSelectConcepts( com.clarifai.grpc.api.Concept.Builder builderForValue) { if (selectConceptsBuilder_ == null) { ensureSelectConceptsIsMutable(); selectConcepts_.add(builderForValue.build()); onChanged(); } else { selectConceptsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder addSelectConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (selectConceptsBuilder_ == null) { ensureSelectConceptsIsMutable(); selectConcepts_.add(index, builderForValue.build()); onChanged(); } else { selectConceptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder addAllSelectConcepts( java.lang.Iterable values) { if (selectConceptsBuilder_ == null) { ensureSelectConceptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, selectConcepts_); onChanged(); } else { selectConceptsBuilder_.addAllMessages(values); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder clearSelectConcepts() { if (selectConceptsBuilder_ == null) { selectConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { selectConceptsBuilder_.clear(); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public Builder removeSelectConcepts(int index) { if (selectConceptsBuilder_ == null) { ensureSelectConceptsIsMutable(); selectConcepts_.remove(index); onChanged(); } else { selectConceptsBuilder_.remove(index); } return this; } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public com.clarifai.grpc.api.Concept.Builder getSelectConceptsBuilder( int index) { return getSelectConceptsFieldBuilder().getBuilder(index); } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public com.clarifai.grpc.api.ConceptOrBuilder getSelectConceptsOrBuilder( int index) { if (selectConceptsBuilder_ == null) { return selectConcepts_.get(index); } else { return selectConceptsBuilder_.getMessageOrBuilder(index); } } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public java.util.List getSelectConceptsOrBuilderList() { if (selectConceptsBuilder_ != null) { return selectConceptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(selectConcepts_); } } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public com.clarifai.grpc.api.Concept.Builder addSelectConceptsBuilder() { return getSelectConceptsFieldBuilder().addBuilder( com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public com.clarifai.grpc.api.Concept.Builder addSelectConceptsBuilder( int index) { return getSelectConceptsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * For concept model predictions: Select concepts in result by name or by id
     * 
* * repeated .clarifai.api.Concept select_concepts = 8; */ public java.util.List getSelectConceptsBuilderList() { return getSelectConceptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> getSelectConceptsFieldBuilder() { if (selectConceptsBuilder_ == null) { selectConceptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder>( selectConcepts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); selectConcepts_ = null; } return selectConceptsBuilder_; } private int trainingTimeout_ ; /** *
     * For custom concept model training: Training timeout of the model (in seconds)
     * 
* * uint32 training_timeout = 9; * @return The trainingTimeout. */ @java.lang.Override public int getTrainingTimeout() { return trainingTimeout_; } /** *
     * For custom concept model training: Training timeout of the model (in seconds)
     * 
* * uint32 training_timeout = 9; * @param value The trainingTimeout to set. * @return This builder for chaining. */ public Builder setTrainingTimeout(int value) { trainingTimeout_ = value; onChanged(); return this; } /** *
     * For custom concept model training: Training timeout of the model (in seconds)
     * 
* * uint32 training_timeout = 9; * @return This builder for chaining. */ public Builder clearTrainingTimeout() { trainingTimeout_ = 0; onChanged(); return this; } private int sampleMs_ ; /** *
     * For model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
     * 
* * uint32 sample_ms = 10; * @return The sampleMs. */ @java.lang.Override public int getSampleMs() { return sampleMs_; } /** *
     * For model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
     * 
* * uint32 sample_ms = 10; * @param value The sampleMs to set. * @return This builder for chaining. */ public Builder setSampleMs(int value) { sampleMs_ = value; onChanged(); return this; } /** *
     * For model predictions on video: Sample delay for video predicting (1 frame per N milliseconds)
     * 
* * uint32 sample_ms = 10; * @return This builder for chaining. */ public Builder clearSampleMs() { sampleMs_ = 0; onChanged(); return this; } private com.google.protobuf.Struct hyperParams_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> hyperParamsBuilder_; /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; * @return Whether the hyperParams field is set. */ public boolean hasHyperParams() { return hyperParamsBuilder_ != null || hyperParams_ != null; } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; * @return The hyperParams. */ public com.google.protobuf.Struct getHyperParams() { if (hyperParamsBuilder_ == null) { return hyperParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : hyperParams_; } else { return hyperParamsBuilder_.getMessage(); } } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public Builder setHyperParams(com.google.protobuf.Struct value) { if (hyperParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hyperParams_ = value; onChanged(); } else { hyperParamsBuilder_.setMessage(value); } return this; } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public Builder setHyperParams( com.google.protobuf.Struct.Builder builderForValue) { if (hyperParamsBuilder_ == null) { hyperParams_ = builderForValue.build(); onChanged(); } else { hyperParamsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public Builder mergeHyperParams(com.google.protobuf.Struct value) { if (hyperParamsBuilder_ == null) { if (hyperParams_ != null) { hyperParams_ = com.google.protobuf.Struct.newBuilder(hyperParams_).mergeFrom(value).buildPartial(); } else { hyperParams_ = value; } onChanged(); } else { hyperParamsBuilder_.mergeFrom(value); } return this; } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public Builder clearHyperParams() { if (hyperParamsBuilder_ == null) { hyperParams_ = null; onChanged(); } else { hyperParams_ = null; hyperParamsBuilder_ = null; } return this; } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public com.google.protobuf.Struct.Builder getHyperParamsBuilder() { onChanged(); return getHyperParamsFieldBuilder().getBuilder(); } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ public com.google.protobuf.StructOrBuilder getHyperParamsOrBuilder() { if (hyperParamsBuilder_ != null) { return hyperParamsBuilder_.getMessageOrBuilder(); } else { return hyperParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : hyperParams_; } } /** *
     * For custom model training: Hyperparameters for custom training
     * 
* * .google.protobuf.Struct hyper_params = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getHyperParamsFieldBuilder() { if (hyperParamsBuilder_ == null) { hyperParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getHyperParams(), getParentForChildren(), isClean()); hyperParams_ = null; } return hyperParamsBuilder_; } private java.lang.Object embedModelVersionId_ = ""; /** *
     * For custom model training: this is the base model version to use for image embeddings.
     * This has to be one of the embed models in the app workflow.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @return The embedModelVersionId. */ @java.lang.Deprecated public java.lang.String getEmbedModelVersionId() { java.lang.Object ref = embedModelVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); embedModelVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * For custom model training: this is the base model version to use for image embeddings.
     * This has to be one of the embed models in the app workflow.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @return The bytes for embedModelVersionId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getEmbedModelVersionIdBytes() { java.lang.Object ref = embedModelVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); embedModelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * For custom model training: this is the base model version to use for image embeddings.
     * This has to be one of the embed models in the app workflow.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @param value The embedModelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmbedModelVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } embedModelVersionId_ = value; onChanged(); return this; } /** *
     * For custom model training: this is the base model version to use for image embeddings.
     * This has to be one of the embed models in the app workflow.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearEmbedModelVersionId() { embedModelVersionId_ = getDefaultInstance().getEmbedModelVersionId(); onChanged(); return this; } /** *
     * For custom model training: this is the base model version to use for image embeddings.
     * This has to be one of the embed models in the app workflow.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=1536 * @param value The bytes for embedModelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmbedModelVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); embedModelVersionId_ = value; onChanged(); return this; } private boolean failOnMissingPositiveExamples_ ; /** *
     * For custom model training: Use this flag to fail on missing positive examples
     * By default we fill in the missing with random examples
     * 
* * bool fail_on_missing_positive_examples = 15; * @return The failOnMissingPositiveExamples. */ @java.lang.Override public boolean getFailOnMissingPositiveExamples() { return failOnMissingPositiveExamples_; } /** *
     * For custom model training: Use this flag to fail on missing positive examples
     * By default we fill in the missing with random examples
     * 
* * bool fail_on_missing_positive_examples = 15; * @param value The failOnMissingPositiveExamples to set. * @return This builder for chaining. */ public Builder setFailOnMissingPositiveExamples(boolean value) { failOnMissingPositiveExamples_ = value; onChanged(); return this; } /** *
     * For custom model training: Use this flag to fail on missing positive examples
     * By default we fill in the missing with random examples
     * 
* * bool fail_on_missing_positive_examples = 15; * @return This builder for chaining. */ public Builder clearFailOnMissingPositiveExamples() { failOnMissingPositiveExamples_ = false; onChanged(); return this; } private com.google.protobuf.Struct modelMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> modelMetadataBuilder_; /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.model_metadata is deprecated. * See proto/clarifai/api/resources.proto;l=1546 * @return Whether the modelMetadata field is set. */ @java.lang.Deprecated public boolean hasModelMetadata() { return modelMetadataBuilder_ != null || modelMetadata_ != null; } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; * @deprecated clarifai.api.OutputConfig.model_metadata is deprecated. * See proto/clarifai/api/resources.proto;l=1546 * @return The modelMetadata. */ @java.lang.Deprecated public com.google.protobuf.Struct getModelMetadata() { if (modelMetadataBuilder_ == null) { return modelMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : modelMetadata_; } else { return modelMetadataBuilder_.getMessage(); } } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public Builder setModelMetadata(com.google.protobuf.Struct value) { if (modelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelMetadata_ = value; onChanged(); } else { modelMetadataBuilder_.setMessage(value); } return this; } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public Builder setModelMetadata( com.google.protobuf.Struct.Builder builderForValue) { if (modelMetadataBuilder_ == null) { modelMetadata_ = builderForValue.build(); onChanged(); } else { modelMetadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeModelMetadata(com.google.protobuf.Struct value) { if (modelMetadataBuilder_ == null) { if (modelMetadata_ != null) { modelMetadata_ = com.google.protobuf.Struct.newBuilder(modelMetadata_).mergeFrom(value).buildPartial(); } else { modelMetadata_ = value; } onChanged(); } else { modelMetadataBuilder_.mergeFrom(value); } return this; } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public Builder clearModelMetadata() { if (modelMetadataBuilder_ == null) { modelMetadata_ = null; onChanged(); } else { modelMetadata_ = null; modelMetadataBuilder_ = null; } return this; } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Struct.Builder getModelMetadataBuilder() { onChanged(); return getModelMetadataFieldBuilder().getBuilder(); } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getModelMetadataOrBuilder() { if (modelMetadataBuilder_ != null) { return modelMetadataBuilder_.getMessageOrBuilder(); } else { return modelMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : modelMetadata_; } } /** *
     * For custom model training: This is any additional metadata as a JSON object that we want
     * want to persist in the model's output config. This is a useful quick way to set fields for
     * introducing fields for new model types so we don't have to add a new proto field and DB field
     * each time. Please refer to the documentation or model implementation internally for more
     * details on what fields are supported for which models.
     * TODO(zeiler): remove this field after Portal is updated.
     * 
* * .google.protobuf.Struct model_metadata = 17 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getModelMetadataFieldBuilder() { if (modelMetadataBuilder_ == null) { modelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getModelMetadata(), getParentForChildren(), isClean()); modelMetadata_ = null; } return modelMetadataBuilder_; } @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.OutputConfig) } // @@protoc_insertion_point(class_scope:clarifai.api.OutputConfig) private static final com.clarifai.grpc.api.OutputConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.OutputConfig(); } public static com.clarifai.grpc.api.OutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OutputConfig(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.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy