public final class AnnotationPayload extends com.google.protobuf.GeneratedMessageV3 implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.Protobuf type
google.cloud.automl.v1.AnnotationPayload| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationPayload.Builder
Contains annotation information that is relevant to AutoML.
|
static class |
AnnotationPayload.DetailCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_SPEC_ID_FIELD_NUMBER |
static int |
CLASSIFICATION_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
IMAGE_OBJECT_DETECTION_FIELD_NUMBER |
static int |
TEXT_EXTRACTION_FIELD_NUMBER |
static int |
TEXT_SENTIMENT_FIELD_NUMBER |
static int |
TRANSLATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAnnotationSpecId()
Output only .
|
com.google.protobuf.ByteString |
getAnnotationSpecIdBytes()
Output only .
|
ClassificationAnnotation |
getClassification()
Annotation details for content or image classification.
|
ClassificationAnnotationOrBuilder |
getClassificationOrBuilder()
Annotation details for content or image classification.
|
static AnnotationPayload |
getDefaultInstance() |
AnnotationPayload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AnnotationPayload.DetailCase |
getDetailCase() |
String |
getDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Output only.
|
ImageObjectDetectionAnnotation |
getImageObjectDetection()
Annotation details for image object detection.
|
ImageObjectDetectionAnnotationOrBuilder |
getImageObjectDetectionOrBuilder()
Annotation details for image object detection.
|
com.google.protobuf.Parser<AnnotationPayload> |
getParserForType() |
int |
getSerializedSize() |
TextExtractionAnnotation |
getTextExtraction()
Annotation details for text extraction.
|
TextExtractionAnnotationOrBuilder |
getTextExtractionOrBuilder()
Annotation details for text extraction.
|
TextSentimentAnnotation |
getTextSentiment()
Annotation details for text sentiment.
|
TextSentimentAnnotationOrBuilder |
getTextSentimentOrBuilder()
Annotation details for text sentiment.
|
TranslationAnnotation |
getTranslation()
Annotation details for translation.
|
TranslationAnnotationOrBuilder |
getTranslationOrBuilder()
Annotation details for translation.
|
boolean |
hasClassification()
Annotation details for content or image classification.
|
int |
hashCode() |
boolean |
hasImageObjectDetection()
Annotation details for image object detection.
|
boolean |
hasTextExtraction()
Annotation details for text extraction.
|
boolean |
hasTextSentiment()
Annotation details for text sentiment.
|
boolean |
hasTranslation()
Annotation details for translation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotationPayload.Builder |
newBuilder() |
static AnnotationPayload.Builder |
newBuilder(AnnotationPayload prototype) |
AnnotationPayload.Builder |
newBuilderForType() |
protected AnnotationPayload.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnnotationPayload |
parseDelimitedFrom(InputStream input) |
static AnnotationPayload |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotationPayload |
parseFrom(byte[] data) |
static AnnotationPayload |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotationPayload |
parseFrom(ByteBuffer data) |
static AnnotationPayload |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotationPayload |
parseFrom(com.google.protobuf.ByteString data) |
static AnnotationPayload |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotationPayload |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnnotationPayload |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotationPayload |
parseFrom(InputStream input) |
static AnnotationPayload |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnnotationPayload> |
parser() |
AnnotationPayload.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRANSLATION_FIELD_NUMBER
public static final int CLASSIFICATION_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER
public static final int TEXT_EXTRACTION_FIELD_NUMBER
public static final int TEXT_SENTIMENT_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AnnotationPayload.DetailCase getDetailCase()
getDetailCase in interface AnnotationPayloadOrBuilderpublic boolean hasTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;hasTranslation in interface AnnotationPayloadOrBuilderpublic TranslationAnnotation getTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;getTranslation in interface AnnotationPayloadOrBuilderpublic TranslationAnnotationOrBuilder getTranslationOrBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;getTranslationOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;hasClassification in interface AnnotationPayloadOrBuilderpublic ClassificationAnnotation getClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;getClassification in interface AnnotationPayloadOrBuilderpublic ClassificationAnnotationOrBuilder getClassificationOrBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;getClassificationOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;hasImageObjectDetection in interface AnnotationPayloadOrBuilderpublic ImageObjectDetectionAnnotation getImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;getImageObjectDetection in interface AnnotationPayloadOrBuilderpublic ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;getImageObjectDetectionOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;hasTextExtraction in interface AnnotationPayloadOrBuilderpublic TextExtractionAnnotation getTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;getTextExtraction in interface AnnotationPayloadOrBuilderpublic TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;getTextExtractionOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;hasTextSentiment in interface AnnotationPayloadOrBuilderpublic TextSentimentAnnotation getTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;getTextSentiment in interface AnnotationPayloadOrBuilderpublic TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;getTextSentimentOrBuilder in interface AnnotationPayloadOrBuilderpublic String getAnnotationSpecId()
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
string annotation_spec_id = 1;getAnnotationSpecId in interface AnnotationPayloadOrBuilderpublic com.google.protobuf.ByteString getAnnotationSpecIdBytes()
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
string annotation_spec_id = 1;getAnnotationSpecIdBytes in interface AnnotationPayloadOrBuilderpublic String getDisplayName()
Output only. The value of [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] when the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update the `display_name` between any two model training.
string display_name = 5;getDisplayName in interface AnnotationPayloadOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Output only. The value of [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] when the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update the `display_name` between any two model training.
string display_name = 5;getDisplayNameBytes in interface AnnotationPayloadOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AnnotationPayload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotationPayload parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnnotationPayload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnnotationPayload parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnnotationPayload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnnotationPayload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnnotationPayload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnnotationPayload.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnnotationPayload.Builder newBuilder()
public static AnnotationPayload.Builder newBuilder(AnnotationPayload prototype)
public AnnotationPayload.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnnotationPayload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnnotationPayload getDefaultInstance()
public static com.google.protobuf.Parser<AnnotationPayload> parser()
public com.google.protobuf.Parser<AnnotationPayload> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnnotationPayload getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.