public static final class Document.PageAnchor.Builder extends GeneratedMessageV3.Builder<Document.PageAnchor.Builder> implements Document.PageAnchorOrBuilder
Referencing the visual context of the entity in the
Document.pages. Page
anchors can be cross-page, consist of multiple bounding polygons and
optionally reference specific layout element types.
Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor
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
public Document.PageAnchor.Builder addAllPageRefs(Iterable<? extends Document.PageAnchor.PageRef> values)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef>
|
public Document.PageAnchor.Builder addPageRefs(Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.Builder addPageRefs(Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.Builder addPageRefs(int index, Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.Builder addPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.PageRef.Builder addPageRefsBuilder()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.PageRef.Builder addPageRefsBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.PageAnchor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Document.PageAnchor build()
buildPartial()
public Document.PageAnchor buildPartial()
clear()
public Document.PageAnchor.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Document.PageAnchor.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.PageAnchor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Document.PageAnchor.Builder clearPageRefs()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
clone()
public Document.PageAnchor.Builder clone()
Overrides
getDefaultInstanceForType()
public Document.PageAnchor getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Document.PageAnchor.PageRef getPageRefs(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
index | int
|
public Document.PageAnchor.PageRef.Builder getPageRefsBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<Document.PageAnchor.PageRef.Builder> getPageRefsBuilderList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public int getPageRefsCount()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns |
---|
Type | Description |
int | |
public List<Document.PageAnchor.PageRef> getPageRefsList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.PageRefOrBuilder getPageRefsOrBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends Document.PageAnchor.PageRefOrBuilder> getPageRefsOrBuilderList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRefOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Document.PageAnchor other)
public Document.PageAnchor.Builder mergeFrom(Document.PageAnchor other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.PageAnchor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Document.PageAnchor.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.PageAnchor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Document.PageAnchor.Builder removePageRefs(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public Document.PageAnchor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Document.PageAnchor.Builder setPageRefs(int index, Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
public Document.PageAnchor.Builder setPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.PageAnchor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.PageAnchor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides