public static final class TranslationAnnotation.Builder extends GeneratedMessageV3.Builder<TranslationAnnotation.Builder> implements TranslationAnnotationOrBuilder
Annotation details specific to translation.
Protobuf type google.cloud.automl.v1beta1.TranslationAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TranslationAnnotation build()
buildPartial()
public TranslationAnnotation buildPartial()
clear()
public TranslationAnnotation.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TranslationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTranslatedContent()
public TranslationAnnotation.Builder clearTranslatedContent()
Output only . The translated content.
.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;
clone()
public TranslationAnnotation.Builder clone()
Overrides
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 GeneratedMessageV3.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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TranslationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides