public final class TranslationAnnotation extends GeneratedMessageV3 implements TranslationAnnotationOrBuilder
Annotation details specific to translation.
Protobuf type google.cloud.automl.v1.TranslationAnnotation
Static Fields
TRANSLATED_CONTENT_FIELD_NUMBER
public static final int TRANSLATED_CONTENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TranslationAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TranslationAnnotation.Builder newBuilder()
Returns
newBuilder(TranslationAnnotation prototype)
public static TranslationAnnotation.Builder newBuilder(TranslationAnnotation prototype)
Parameter
Returns
public static TranslationAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TranslationAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TranslationAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TranslationAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TranslationAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TranslationAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TranslationAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TranslationAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TranslationAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TranslationAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TranslationAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TranslationAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TranslationAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public TranslationAnnotation getDefaultInstanceForType()
Returns
getParserForType()
public Parser<TranslationAnnotation> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTranslatedContent()
public TextSnippet getTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Returns
getTranslatedContentOrBuilder()
public TextSnippetOrBuilder getTranslatedContentOrBuilder()
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasTranslatedContent()
public boolean hasTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Returns
Type | Description |
boolean | Whether the translatedContent field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TranslationAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TranslationAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TranslationAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions