Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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=1499
* @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.
*
* 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=1507
* @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
*
* 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
*
* 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.
*
* 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=1526
* @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=1536
* @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=1536
* @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.
*
* 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.
*
* 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=1499
* @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=1499
* @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=1499
* @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=1502
* @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=1502
* @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=1502
* @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=1502
* @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=1502
* @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=1507
* @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=1507
* @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=1507
* @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=1507
* @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=1507
* @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.
*
* 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.
*
* 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.
*
* 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=1526
* @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=1526
* @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=1526
* @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=1526
* @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=1526
* @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
*
* 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=1536
* @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=1536
* @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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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;
}
}