public static final class Document.Translation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder> implements Document.TranslationOrBuilder
A translation of the text segment.Protobuf type
google.cloud.documentai.v1beta3.Document.Translation| Modifier and Type | Method and Description |
|---|---|
Document.Translation.Builder |
addAllProvenance(Iterable<? extends Document.Provenance> values)
The history of this annotation.
|
Document.Translation.Builder |
addProvenance(Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.Translation.Builder |
addProvenance(Document.Provenance value)
The history of this annotation.
|
Document.Translation.Builder |
addProvenance(int index,
Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.Translation.Builder |
addProvenance(int index,
Document.Provenance value)
The history of this annotation.
|
Document.Provenance.Builder |
addProvenanceBuilder()
The history of this annotation.
|
Document.Provenance.Builder |
addProvenanceBuilder(int index)
The history of this annotation.
|
Document.Translation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Translation |
build() |
Document.Translation |
buildPartial() |
Document.Translation.Builder |
clear() |
Document.Translation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.Translation.Builder |
clearLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
Document.Translation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.Translation.Builder |
clearProvenance()
The history of this annotation.
|
Document.Translation.Builder |
clearTextAnchor()
Provenance of the translation.
|
Document.Translation.Builder |
clearTranslatedText()
Text translated into the target language.
|
Document.Translation.Builder |
clone() |
Document.Translation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
Document.Provenance |
getProvenance(int index)
The history of this annotation.
|
Document.Provenance.Builder |
getProvenanceBuilder(int index)
The history of this annotation.
|
List<Document.Provenance.Builder> |
getProvenanceBuilderList()
The history of this annotation.
|
int |
getProvenanceCount()
The history of this annotation.
|
List<Document.Provenance> |
getProvenanceList()
The history of this annotation.
|
Document.ProvenanceOrBuilder |
getProvenanceOrBuilder(int index)
The history of this annotation.
|
List<? extends Document.ProvenanceOrBuilder> |
getProvenanceOrBuilderList()
The history of this annotation.
|
Document.TextAnchor |
getTextAnchor()
Provenance of the translation.
|
Document.TextAnchor.Builder |
getTextAnchorBuilder()
Provenance of the translation.
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Provenance of the translation.
|
String |
getTranslatedText()
Text translated into the target language.
|
com.google.protobuf.ByteString |
getTranslatedTextBytes()
Text translated into the target language.
|
boolean |
hasTextAnchor()
Provenance of the translation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.Translation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.Translation.Builder |
mergeFrom(Document.Translation other) |
Document.Translation.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.Translation.Builder |
mergeTextAnchor(Document.TextAnchor value)
Provenance of the translation.
|
Document.Translation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Translation.Builder |
removeProvenance(int index)
The history of this annotation.
|
Document.Translation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Translation.Builder |
setLanguageCode(String value)
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
Document.Translation.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
Document.Translation.Builder |
setProvenance(int index,
Document.Provenance.Builder builderForValue)
The history of this annotation.
|
Document.Translation.Builder |
setProvenance(int index,
Document.Provenance value)
The history of this annotation.
|
Document.Translation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.Translation.Builder |
setTextAnchor(Document.TextAnchor.Builder builderForValue)
Provenance of the translation.
|
Document.Translation.Builder |
setTextAnchor(Document.TextAnchor value)
Provenance of the translation.
|
Document.Translation.Builder |
setTranslatedText(String value)
Text translated into the target language.
|
Document.Translation.Builder |
setTranslatedTextBytes(com.google.protobuf.ByteString value)
Text translated into the target language.
|
Document.Translation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.Translation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.Translation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Translation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Translation.Builder>public Document.Translation.Builder mergeFrom(Document.Translation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public Document.Translation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Translation.Builder>IOExceptionpublic boolean hasTextAnchor()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.TranslationOrBuilderpublic Document.TextAnchor getTextAnchor()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.TranslationOrBuilderpublic Document.Translation.Builder setTextAnchor(Document.TextAnchor value)
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.Translation.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.Translation.Builder mergeTextAnchor(Document.TextAnchor value)
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.Translation.Builder clearTextAnchor()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextAnchor.Builder getTextAnchorBuilder()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.TranslationOrBuilderpublic String getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;getLanguageCode in interface Document.TranslationOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;getLanguageCodeBytes in interface Document.TranslationOrBuilderpublic Document.Translation.Builder setLanguageCode(String value)
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;value - The languageCode to set.public Document.Translation.Builder clearLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;public Document.Translation.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;value - The bytes for languageCode to set.public String getTranslatedText()
Text translated into the target language.
string translated_text = 3;getTranslatedText in interface Document.TranslationOrBuilderpublic com.google.protobuf.ByteString getTranslatedTextBytes()
Text translated into the target language.
string translated_text = 3;getTranslatedTextBytes in interface Document.TranslationOrBuilderpublic Document.Translation.Builder setTranslatedText(String value)
Text translated into the target language.
string translated_text = 3;value - The translatedText to set.public Document.Translation.Builder clearTranslatedText()
Text translated into the target language.
string translated_text = 3;public Document.Translation.Builder setTranslatedTextBytes(com.google.protobuf.ByteString value)
Text translated into the target language.
string translated_text = 3;value - The bytes for translatedText to set.public List<Document.Provenance> getProvenanceList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceList in interface Document.TranslationOrBuilderpublic int getProvenanceCount()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceCount in interface Document.TranslationOrBuilderpublic Document.Provenance getProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenance in interface Document.TranslationOrBuilderpublic Document.Translation.Builder setProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder setProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder addProvenance(Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder addProvenance(int index, Document.Provenance value)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder addProvenance(Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder addProvenance(int index, Document.Provenance.Builder builderForValue)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder addAllProvenance(Iterable<? extends Document.Provenance> values)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder clearProvenance()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Translation.Builder removeProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Provenance.Builder getProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceOrBuilder in interface Document.TranslationOrBuilderpublic List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceOrBuilderList in interface Document.TranslationOrBuilderpublic Document.Provenance.Builder addProvenanceBuilder()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public Document.Provenance.Builder addProvenanceBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public List<Document.Provenance.Builder> getProvenanceBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;public final Document.Translation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>public final Document.Translation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Translation.Builder>Copyright © 2020 Google LLC. All rights reserved.