Package com.google.cloud.automl.v1
Class AnnotationPayload
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1.AnnotationPayload
- All Implemented Interfaces:
AnnotationPayloadOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AnnotationPayload
extends com.google.protobuf.GeneratedMessage
implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.Protobuf type
google.cloud.automl.v1.AnnotationPayload- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains annotation information that is relevant to AutoML.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only .com.google.protobuf.ByteStringOutput only .Annotation details for content or image classification.Annotation details for content or image classification.static AnnotationPayloadstatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Annotation details for image object detection.Annotation details for image object detection.com.google.protobuf.Parser<AnnotationPayload>intAnnotation details for text extraction.Annotation details for text extraction.Annotation details for text sentiment.Annotation details for text sentiment.Annotation details for translation.Annotation details for translation.booleanAnnotation details for content or image classification.inthashCode()booleanAnnotation details for image object detection.booleanAnnotation details for text extraction.booleanAnnotation details for text sentiment.booleanAnnotation details for translation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AnnotationPayload.Builderstatic AnnotationPayload.BuildernewBuilder(AnnotationPayload prototype) protected AnnotationPayload.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AnnotationPayloadparseDelimitedFrom(InputStream input) static AnnotationPayloadparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotationPayloadparseFrom(byte[] data) static AnnotationPayloadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotationPayloadparseFrom(com.google.protobuf.ByteString data) static AnnotationPayloadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotationPayloadparseFrom(com.google.protobuf.CodedInputStream input) static AnnotationPayloadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotationPayloadparseFrom(InputStream input) static AnnotationPayloadparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotationPayloadparseFrom(ByteBuffer data) static AnnotationPayloadparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnnotationPayload>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TRANSLATION_FIELD_NUMBER
public static final int TRANSLATION_FIELD_NUMBER- See Also:
-
CLASSIFICATION_FIELD_NUMBER
public static final int CLASSIFICATION_FIELD_NUMBER- See Also:
-
IMAGE_OBJECT_DETECTION_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER- See Also:
-
TEXT_EXTRACTION_FIELD_NUMBER
public static final int TEXT_EXTRACTION_FIELD_NUMBER- See Also:
-
TEXT_SENTIMENT_FIELD_NUMBER
public static final int TEXT_SENTIMENT_FIELD_NUMBER- See Also:
-
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDetailCase
- Specified by:
getDetailCasein interfaceAnnotationPayloadOrBuilder
-
hasTranslation
public boolean hasTranslation()Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
hasTranslationin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the translation field is set.
-
getTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
getTranslationin interfaceAnnotationPayloadOrBuilder- Returns:
- The translation.
-
getTranslationOrBuilder
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
getTranslationOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasClassification
public boolean hasClassification()Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
hasClassificationin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the classification field is set.
-
getClassification
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
getClassificationin interfaceAnnotationPayloadOrBuilder- Returns:
- The classification.
-
getClassificationOrBuilder
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
getClassificationOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasImageObjectDetection
public boolean hasImageObjectDetection()Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
hasImageObjectDetectionin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the imageObjectDetection field is set.
-
getImageObjectDetection
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
getImageObjectDetectionin interfaceAnnotationPayloadOrBuilder- Returns:
- The imageObjectDetection.
-
getImageObjectDetectionOrBuilder
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
getImageObjectDetectionOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasTextExtraction
public boolean hasTextExtraction()Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
hasTextExtractionin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the textExtraction field is set.
-
getTextExtraction
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
getTextExtractionin interfaceAnnotationPayloadOrBuilder- Returns:
- The textExtraction.
-
getTextExtractionOrBuilder
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
getTextExtractionOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasTextSentiment
public boolean hasTextSentiment()Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
hasTextSentimentin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the textSentiment field is set.
-
getTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentin interfaceAnnotationPayloadOrBuilder- Returns:
- The textSentiment.
-
getTextSentimentOrBuilder
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentOrBuilderin interfaceAnnotationPayloadOrBuilder
-
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;- Specified by:
getAnnotationSpecIdin interfaceAnnotationPayloadOrBuilder- Returns:
- The annotationSpecId.
-
getAnnotationSpecIdBytes
public 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;- Specified by:
getAnnotationSpecIdBytesin interfaceAnnotationPayloadOrBuilder- Returns:
- The bytes for annotationSpecId.
-
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;- Specified by:
getDisplayNamein interfaceAnnotationPayloadOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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;- Specified by:
getDisplayNameBytesin interfaceAnnotationPayloadOrBuilder- Returns:
- The bytes for displayName.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnnotationPayload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotationPayload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotationPayload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotationPayload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotationPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotationPayload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AnnotationPayload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotationPayload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AnnotationPayload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnnotationPayload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotationPayload.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-