public static final class Document.PageAnchor.PageRef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder> implements Document.PageAnchor.PageRefOrBuilder
Represents a weak reference to a page element within a document.Protobuf type
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRefgetAllFields, 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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.PageAnchor.PageRef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.PageAnchor.PageRef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder mergeFrom(Document.PageAnchor.PageRef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>IOExceptionpublic long getPage()
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];getPage in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setPage(long value)
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];value - The page to set.public Document.PageAnchor.PageRef.Builder clearPage()
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];public int getLayoutTypeValue()
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutTypeValue in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setLayoutTypeValue(int value)
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for layoutType to set.public Document.PageAnchor.PageRef.LayoutType getLayoutType()
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutType in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setLayoutType(Document.PageAnchor.PageRef.LayoutType value)
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The layoutType to set.public Document.PageAnchor.PageRef.Builder clearLayoutType()
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
public String getLayoutId()
Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.
string layout_id = 3 [(.google.api.field_behavior) = OPTIONAL];getLayoutId in interface Document.PageAnchor.PageRefOrBuilderpublic com.google.protobuf.ByteString getLayoutIdBytes()
Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.
string layout_id = 3 [(.google.api.field_behavior) = OPTIONAL];getLayoutIdBytes in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setLayoutId(String value)
Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.
string layout_id = 3 [(.google.api.field_behavior) = OPTIONAL];value - The layoutId to set.public Document.PageAnchor.PageRef.Builder clearLayoutId()
Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.
string layout_id = 3 [(.google.api.field_behavior) = OPTIONAL];public Document.PageAnchor.PageRef.Builder setLayoutIdBytes(com.google.protobuf.ByteString value)
Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.
string layout_id = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for layoutId to set.public final Document.PageAnchor.PageRef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public final Document.PageAnchor.PageRef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>Copyright © 2020 Google LLC. All rights reserved.