public static final class Document.Page.VisualElement.Builder extends GeneratedMessageV3.Builder<Document.Page.VisualElement.Builder> implements Document.Page.VisualElementOrBuilder
Detected non-text visual elements e.g. checkbox, signature etc. on the
page.
Protobuf type google.cloud.documentai.v1beta3.Document.Page.VisualElement
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
addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)
public Document.Page.VisualElement.Builder addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage>
|
Returns
addDetectedLanguages(Document.Page.DetectedLanguage value)
public Document.Page.VisualElement.Builder addDetectedLanguages(Document.Page.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)
public Document.Page.VisualElement.Builder addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
addDetectedLanguages(int index, Document.Page.DetectedLanguage value)
public Document.Page.VisualElement.Builder addDetectedLanguages(int index, Document.Page.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameters
Returns
addDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)
public Document.Page.VisualElement.Builder addDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameters
Returns
addDetectedLanguagesBuilder()
public Document.Page.DetectedLanguage.Builder addDetectedLanguagesBuilder()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
addDetectedLanguagesBuilder(int index)
public Document.Page.DetectedLanguage.Builder addDetectedLanguagesBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.VisualElement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.Page.VisualElement build()
Returns
buildPartial()
public Document.Page.VisualElement buildPartial()
Returns
clear()
public Document.Page.VisualElement.Builder clear()
Returns
Overrides
clearDetectedLanguages()
public Document.Page.VisualElement.Builder clearDetectedLanguages()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Document.Page.VisualElement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLayout()
public Document.Page.VisualElement.Builder clearLayout()
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Page.VisualElement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public Document.Page.VisualElement.Builder clearType()
Type of the VisualElement.
string type = 2;
Returns
clone()
public Document.Page.VisualElement.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Document.Page.VisualElement getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDetectedLanguages(int index)
public Document.Page.DetectedLanguage getDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
getDetectedLanguagesBuilder(int index)
public Document.Page.DetectedLanguage.Builder getDetectedLanguagesBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
getDetectedLanguagesBuilderList()
public List<Document.Page.DetectedLanguage.Builder> getDetectedLanguagesBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
getDetectedLanguagesCount()
public int getDetectedLanguagesCount()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
getDetectedLanguagesList()
public List<Document.Page.DetectedLanguage> getDetectedLanguagesList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
getDetectedLanguagesOrBuilder(int index)
public Document.Page.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
getDetectedLanguagesOrBuilderList()
public List<? extends Document.Page.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguageOrBuilder> | |
getLayout()
public Document.Page.Layout getLayout()
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Returns
getLayoutBuilder()
public Document.Page.Layout.Builder getLayoutBuilder()
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Returns
getLayoutOrBuilder()
public Document.Page.LayoutOrBuilder getLayoutOrBuilder()
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Returns
getType()
Type of the VisualElement.
string type = 2;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
Type of the VisualElement.
string type = 2;
Returns
hasLayout()
public boolean hasLayout()
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Returns
Type | Description |
boolean | Whether the layout field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.Page.VisualElement other)
public Document.Page.VisualElement.Builder mergeFrom(Document.Page.VisualElement other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Page.VisualElement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.Page.VisualElement.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeLayout(Document.Page.Layout value)
public Document.Page.VisualElement.Builder mergeLayout(Document.Page.Layout value)
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.VisualElement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeDetectedLanguages(int index)
public Document.Page.VisualElement.Builder removeDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameter
Returns
setDetectedLanguages(int index, Document.Page.DetectedLanguage value)
public Document.Page.VisualElement.Builder setDetectedLanguages(int index, Document.Page.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameters
Returns
setDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)
public Document.Page.VisualElement.Builder setDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 3;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.VisualElement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLayout(Document.Page.Layout value)
public Document.Page.VisualElement.Builder setLayout(Document.Page.Layout value)
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Parameter
Returns
setLayout(Document.Page.Layout.Builder builderForValue)
public Document.Page.VisualElement.Builder setLayout(Document.Page.Layout.Builder builderForValue)
Layout for VisualElement.
.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Page.VisualElement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setType(String value)
public Document.Page.VisualElement.Builder setType(String value)
Type of the VisualElement.
string type = 2;
Parameter
Name | Description |
value | String
The type to set.
|
Returns
setTypeBytes(ByteString value)
public Document.Page.VisualElement.Builder setTypeBytes(ByteString value)
Type of the VisualElement.
string type = 2;
Parameter
Name | Description |
value | ByteString
The bytes for type to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.VisualElement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides