Class TranslationAnnotation.Builder (2.91.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class TranslationAnnotation.Builder extends GeneratedMessage.Builder<TranslationAnnotation.Builder> implements TranslationAnnotationOrBuilder
Annotation details specific to translation.
Protobuf type google.cloud.automl.v1beta1.TranslationAnnotation
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public TranslationAnnotation build()
buildPartial()
public TranslationAnnotation buildPartial()
clear()
public TranslationAnnotation.Builder clear()
Overrides
clearTranslatedContent()
public TranslationAnnotation.Builder clearTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
getDefaultInstanceForType()
public TranslationAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTranslatedContent()
public TextSnippet getTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
| Returns |
| Type |
Description |
TextSnippet |
The translatedContent.
|
getTranslatedContentBuilder()
public TextSnippet.Builder getTranslatedContentBuilder()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
getTranslatedContentOrBuilder()
public TextSnippetOrBuilder getTranslatedContentOrBuilder()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
hasTranslatedContent()
public boolean hasTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
| Returns |
| Type |
Description |
boolean |
Whether the translatedContent field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TranslationAnnotation other)
public TranslationAnnotation.Builder mergeFrom(TranslationAnnotation other)
public TranslationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TranslationAnnotation.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeTranslatedContent(TextSnippet value)
public TranslationAnnotation.Builder mergeTranslatedContent(TextSnippet value)
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
setTranslatedContent(TextSnippet value)
public TranslationAnnotation.Builder setTranslatedContent(TextSnippet value)
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
setTranslatedContent(TextSnippet.Builder builderForValue)
public TranslationAnnotation.Builder setTranslatedContent(TextSnippet.Builder builderForValue)
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-25 UTC.
[null,null,["Last updated 2026-04-25 UTC."],[],[]]