public static final class TranslationAnnotation.Builder extends GeneratedMessageV3.Builder<TranslationAnnotation.Builder> implements TranslationAnnotationOrBuilder
Annotation details specific to translation.
Protobuf type google.cloud.automl.v1.TranslationAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TranslationAnnotation build()
Returns
buildPartial()
public TranslationAnnotation buildPartial()
Returns
clear()
public TranslationAnnotation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TranslationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTranslatedContent()
public TranslationAnnotation.Builder clearTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Returns
clone()
public TranslationAnnotation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TranslationAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTranslatedContent()
public TextSnippet getTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Returns
getTranslatedContentBuilder()
public TextSnippet.Builder getTranslatedContentBuilder()
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TranslationAnnotation other)
public TranslationAnnotation.Builder mergeFrom(TranslationAnnotation other)
Parameter
Returns
public TranslationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TranslationAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeTranslatedContent(TextSnippet value)
public TranslationAnnotation.Builder mergeTranslatedContent(TextSnippet value)
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TranslationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTranslatedContent(TextSnippet value)
public TranslationAnnotation.Builder setTranslatedContent(TextSnippet value)
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Parameter
Returns
setTranslatedContent(TextSnippet.Builder builderForValue)
public TranslationAnnotation.Builder setTranslatedContent(TextSnippet.Builder builderForValue)
Output only . The translated content.
.google.cloud.automl.v1.TextSnippet translated_content = 1;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides