Package com.google.cloud.automl.v1
Class Model
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.automl.v1.Model
-
- All Implemented Interfaces:
ModelOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Model extends com.google.protobuf.GeneratedMessageV3 implements ModelOrBuilder
API proto representing a trained machine learning model.
Protobuf typegoogle.cloud.automl.v1.Model
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Model.Builder
API proto representing a trained machine learning model.static class
Model.DeploymentState
Deployment state of the model.static class
Model.ModelMetadataCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CREATE_TIME_FIELD_NUMBER
static int
DATASET_ID_FIELD_NUMBER
static int
DEPLOYMENT_STATE_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
ETAG_FIELD_NUMBER
static int
IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
static int
IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
static int
TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER
static int
TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER
static int
TRANSLATION_MODEL_METADATA_FIELD_NUMBER
static int
UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Optional.boolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getDatasetId()
Required.com.google.protobuf.ByteString
getDatasetIdBytes()
Required.static Model
getDefaultInstance()
Model
getDefaultInstanceForType()
Model.DeploymentState
getDeploymentState()
Output only.int
getDeploymentStateValue()
Output only.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getEtag()
Used to perform a consistent read-modify-write updates.com.google.protobuf.ByteString
getEtagBytes()
Used to perform a consistent read-modify-write updates.ImageClassificationModelMetadata
getImageClassificationModelMetadata()
Metadata for image classification models.ImageClassificationModelMetadataOrBuilder
getImageClassificationModelMetadataOrBuilder()
Metadata for image classification models.ImageObjectDetectionModelMetadata
getImageObjectDetectionModelMetadata()
Metadata for image object detection models.ImageObjectDetectionModelMetadataOrBuilder
getImageObjectDetectionModelMetadataOrBuilder()
Metadata for image object detection models.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional.Map<String,String>
getLabelsMap()
Optional.String
getLabelsOrDefault(String key, String defaultValue)
Optional.String
getLabelsOrThrow(String key)
Optional.Model.ModelMetadataCase
getModelMetadataCase()
String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Model>
getParserForType()
int
getSerializedSize()
TextClassificationModelMetadata
getTextClassificationModelMetadata()
Metadata for text classification models.TextClassificationModelMetadataOrBuilder
getTextClassificationModelMetadataOrBuilder()
Metadata for text classification models.TextExtractionModelMetadata
getTextExtractionModelMetadata()
Metadata for text extraction models.TextExtractionModelMetadataOrBuilder
getTextExtractionModelMetadataOrBuilder()
Metadata for text extraction models.TextSentimentModelMetadata
getTextSentimentModelMetadata()
Metadata for text sentiment models.TextSentimentModelMetadataOrBuilder
getTextSentimentModelMetadataOrBuilder()
Metadata for text sentiment models.TranslationModelMetadata
getTranslationModelMetadata()
Metadata for translation models.TranslationModelMetadataOrBuilder
getTranslationModelMetadataOrBuilder()
Metadata for translation models.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasImageClassificationModelMetadata()
Metadata for image classification models.boolean
hasImageObjectDetectionModelMetadata()
Metadata for image object detection models.boolean
hasTextClassificationModelMetadata()
Metadata for text classification models.boolean
hasTextExtractionModelMetadata()
Metadata for text extraction models.boolean
hasTextSentimentModelMetadata()
Metadata for text sentiment models.boolean
hasTranslationModelMetadata()
Metadata for translation models.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Model.Builder
newBuilder()
static Model.Builder
newBuilder(Model prototype)
Model.Builder
newBuilderForType()
protected Model.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Model
parseDelimitedFrom(InputStream input)
static Model
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Model
parseFrom(byte[] data)
static Model
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Model
parseFrom(com.google.protobuf.ByteString data)
static Model
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Model
parseFrom(com.google.protobuf.CodedInputStream input)
static Model
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Model
parseFrom(InputStream input)
static Model
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Model
parseFrom(ByteBuffer data)
static Model
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Model>
parser()
Model.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRANSLATION_MODEL_METADATA_FIELD_NUMBER
public static final int TRANSLATION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
public static final int TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER
public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER
public static final int TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATASET_ID_FIELD_NUMBER
public static final int DATASET_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_STATE_FIELD_NUMBER
public static final int DEPLOYMENT_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getModelMetadataCase
public Model.ModelMetadataCase getModelMetadataCase()
- Specified by:
getModelMetadataCase
in interfaceModelOrBuilder
-
hasTranslationModelMetadata
public boolean hasTranslationModelMetadata()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
- Specified by:
hasTranslationModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the translationModelMetadata field is set.
-
getTranslationModelMetadata
public TranslationModelMetadata getTranslationModelMetadata()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
- Specified by:
getTranslationModelMetadata
in interfaceModelOrBuilder
- Returns:
- The translationModelMetadata.
-
getTranslationModelMetadataOrBuilder
public TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
- Specified by:
getTranslationModelMetadataOrBuilder
in interfaceModelOrBuilder
-
hasImageClassificationModelMetadata
public boolean hasImageClassificationModelMetadata()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
- Specified by:
hasImageClassificationModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the imageClassificationModelMetadata field is set.
-
getImageClassificationModelMetadata
public ImageClassificationModelMetadata getImageClassificationModelMetadata()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
- Specified by:
getImageClassificationModelMetadata
in interfaceModelOrBuilder
- Returns:
- The imageClassificationModelMetadata.
-
getImageClassificationModelMetadataOrBuilder
public ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
- Specified by:
getImageClassificationModelMetadataOrBuilder
in interfaceModelOrBuilder
-
hasTextClassificationModelMetadata
public boolean hasTextClassificationModelMetadata()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
- Specified by:
hasTextClassificationModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the textClassificationModelMetadata field is set.
-
getTextClassificationModelMetadata
public TextClassificationModelMetadata getTextClassificationModelMetadata()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
- Specified by:
getTextClassificationModelMetadata
in interfaceModelOrBuilder
- Returns:
- The textClassificationModelMetadata.
-
getTextClassificationModelMetadataOrBuilder
public TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
- Specified by:
getTextClassificationModelMetadataOrBuilder
in interfaceModelOrBuilder
-
hasImageObjectDetectionModelMetadata
public boolean hasImageObjectDetectionModelMetadata()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
- Specified by:
hasImageObjectDetectionModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the imageObjectDetectionModelMetadata field is set.
-
getImageObjectDetectionModelMetadata
public ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
- Specified by:
getImageObjectDetectionModelMetadata
in interfaceModelOrBuilder
- Returns:
- The imageObjectDetectionModelMetadata.
-
getImageObjectDetectionModelMetadataOrBuilder
public ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
- Specified by:
getImageObjectDetectionModelMetadataOrBuilder
in interfaceModelOrBuilder
-
hasTextExtractionModelMetadata
public boolean hasTextExtractionModelMetadata()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
- Specified by:
hasTextExtractionModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the textExtractionModelMetadata field is set.
-
getTextExtractionModelMetadata
public TextExtractionModelMetadata getTextExtractionModelMetadata()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
- Specified by:
getTextExtractionModelMetadata
in interfaceModelOrBuilder
- Returns:
- The textExtractionModelMetadata.
-
getTextExtractionModelMetadataOrBuilder
public TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
- Specified by:
getTextExtractionModelMetadataOrBuilder
in interfaceModelOrBuilder
-
hasTextSentimentModelMetadata
public boolean hasTextSentimentModelMetadata()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
- Specified by:
hasTextSentimentModelMetadata
in interfaceModelOrBuilder
- Returns:
- Whether the textSentimentModelMetadata field is set.
-
getTextSentimentModelMetadata
public TextSentimentModelMetadata getTextSentimentModelMetadata()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
- Specified by:
getTextSentimentModelMetadata
in interfaceModelOrBuilder
- Returns:
- The textSentimentModelMetadata.
-
getTextSentimentModelMetadataOrBuilder
public TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
- Specified by:
getTextSentimentModelMetadataOrBuilder
in interfaceModelOrBuilder
-
getName
public String getName()
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
string name = 1;
- Specified by:
getName
in interfaceModelOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
string name = 1;
- Specified by:
getNameBytes
in interfaceModelOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceModelOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceModelOrBuilder
- Returns:
- The bytes for displayName.
-
getDatasetId
public String getDatasetId()
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;
- Specified by:
getDatasetId
in interfaceModelOrBuilder
- Returns:
- The datasetId.
-
getDatasetIdBytes
public com.google.protobuf.ByteString getDatasetIdBytes()
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;
- Specified by:
getDatasetIdBytes
in interfaceModelOrBuilder
- Returns:
- The bytes for datasetId.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
hasCreateTime
in interfaceModelOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTime
in interfaceModelOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTimeOrBuilder
in interfaceModelOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
- Specified by:
hasUpdateTime
in interfaceModelOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
- Specified by:
getUpdateTime
in interfaceModelOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
- Specified by:
getUpdateTimeOrBuilder
in interfaceModelOrBuilder
-
getDeploymentStateValue
public int getDeploymentStateValue()
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;
- Specified by:
getDeploymentStateValue
in interfaceModelOrBuilder
- Returns:
- The enum numeric value on the wire for deploymentState.
-
getDeploymentState
public Model.DeploymentState getDeploymentState()
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;
- Specified by:
getDeploymentState
in interfaceModelOrBuilder
- Returns:
- The deploymentState.
-
getEtag
public String getEtag()
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
- Specified by:
getEtag
in interfaceModelOrBuilder
- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
- Specified by:
getEtagBytes
in interfaceModelOrBuilder
- Returns:
- The bytes for etag.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ModelOrBuilder
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
- Specified by:
getLabelsCount
in interfaceModelOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
- Specified by:
containsLabels
in interfaceModelOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceModelOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
- Specified by:
getLabelsMap
in interfaceModelOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
- Specified by:
getLabelsOrDefault
in interfaceModelOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
- Specified by:
getLabelsOrThrow
in interfaceModelOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Model parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Model parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Model parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Model parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Model parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Model parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Model parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Model.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Model.Builder newBuilder()
-
newBuilder
public static Model.Builder newBuilder(Model prototype)
-
toBuilder
public Model.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Model.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Model getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Model> parser()
-
getParserForType
public com.google.protobuf.Parser<Model> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Model getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-