Class Document.Page.Layout.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • clear

        public Document.Page.Layout.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • getDefaultInstanceForType

        public Document.Page.Layout getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Document.Page.Layout build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Document.Page.Layout buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Document.Page.Layout.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • setField

        public Document.Page.Layout.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • clearField

        public Document.Page.Layout.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • clearOneof

        public Document.Page.Layout.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • setRepeatedField

        public Document.Page.Layout.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • addRepeatedField

        public Document.Page.Layout.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • mergeFrom

        public Document.Page.Layout.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Page.Layout.Builder>
        Throws:
        IOException
      • hasTextAnchor

        public boolean hasTextAnchor()
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
        Specified by:
        hasTextAnchor in interface Document.Page.LayoutOrBuilder
        Returns:
        Whether the textAnchor field is set.
      • getTextAnchor

        public Document.TextAnchor getTextAnchor()
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
        Specified by:
        getTextAnchor in interface Document.Page.LayoutOrBuilder
        Returns:
        The textAnchor.
      • setTextAnchor

        public Document.Page.Layout.Builder setTextAnchor​(Document.TextAnchor value)
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
      • setTextAnchor

        public Document.Page.Layout.Builder setTextAnchor​(Document.TextAnchor.Builder builderForValue)
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
      • mergeTextAnchor

        public Document.Page.Layout.Builder mergeTextAnchor​(Document.TextAnchor value)
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
      • clearTextAnchor

        public Document.Page.Layout.Builder clearTextAnchor()
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
      • getTextAnchorBuilder

        public Document.TextAnchor.Builder getTextAnchorBuilder()
         Text anchor indexing into the
         [Document.text][google.cloud.documentai.v1beta2.Document.text].
         
        .google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
      • getConfidence

        public float getConfidence()
         Confidence of the current
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] within
         context of the object this layout is for. e.g. confidence can be for a
         single token, a table, a visual element, etc. depending on context.
         Range `[0, 1]`.
         
        float confidence = 2;
        Specified by:
        getConfidence in interface Document.Page.LayoutOrBuilder
        Returns:
        The confidence.
      • setConfidence

        public Document.Page.Layout.Builder setConfidence​(float value)
         Confidence of the current
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] within
         context of the object this layout is for. e.g. confidence can be for a
         single token, a table, a visual element, etc. depending on context.
         Range `[0, 1]`.
         
        float confidence = 2;
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public Document.Page.Layout.Builder clearConfidence()
         Confidence of the current
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] within
         context of the object this layout is for. e.g. confidence can be for a
         single token, a table, a visual element, etc. depending on context.
         Range `[0, 1]`.
         
        float confidence = 2;
        Returns:
        This builder for chaining.
      • hasBoundingPoly

        public boolean hasBoundingPoly()
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
        Specified by:
        hasBoundingPoly in interface Document.Page.LayoutOrBuilder
        Returns:
        Whether the boundingPoly field is set.
      • getBoundingPoly

        public BoundingPoly getBoundingPoly()
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
        Specified by:
        getBoundingPoly in interface Document.Page.LayoutOrBuilder
        Returns:
        The boundingPoly.
      • setBoundingPoly

        public Document.Page.Layout.Builder setBoundingPoly​(BoundingPoly value)
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
      • setBoundingPoly

        public Document.Page.Layout.Builder setBoundingPoly​(BoundingPoly.Builder builderForValue)
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
      • mergeBoundingPoly

        public Document.Page.Layout.Builder mergeBoundingPoly​(BoundingPoly value)
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
      • clearBoundingPoly

        public Document.Page.Layout.Builder clearBoundingPoly()
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
      • getBoundingPolyBuilder

        public BoundingPoly.Builder getBoundingPolyBuilder()
         The bounding polygon for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
      • getOrientationValue

        public int getOrientationValue()
         Detected orientation for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;
        Specified by:
        getOrientationValue in interface Document.Page.LayoutOrBuilder
        Returns:
        The enum numeric value on the wire for orientation.
      • setOrientationValue

        public Document.Page.Layout.Builder setOrientationValue​(int value)
         Detected orientation for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;
        Parameters:
        value - The enum numeric value on the wire for orientation to set.
        Returns:
        This builder for chaining.
      • setOrientation

        public Document.Page.Layout.Builder setOrientation​(Document.Page.Layout.Orientation value)
         Detected orientation for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;
        Parameters:
        value - The orientation to set.
        Returns:
        This builder for chaining.
      • clearOrientation

        public Document.Page.Layout.Builder clearOrientation()
         Detected orientation for the
         [Layout][google.cloud.documentai.v1beta2.Document.Page.Layout].
         
        .google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Document.Page.Layout.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>
      • mergeUnknownFields

        public final Document.Page.Layout.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Page.Layout.Builder>