Class Document.Page.Token.StyleInfo.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.Token.StyleInfo.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.Token.StyleInfo.Builder>
      • getDefaultInstanceForType

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

        public Document.Page.Token.StyleInfo 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.Token.StyleInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.Token.StyleInfo.Builder>
      • mergeFrom

        public Document.Page.Token.StyleInfo.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.Token.StyleInfo.Builder>
        Throws:
        IOException
      • setFontSize

        public Document.Page.Token.StyleInfo.Builder setFontSize​(int value)
         Font size in points (`1` point is `¹⁄₇₂` inches).
         
        int32 font_size = 1;
        Parameters:
        value - The fontSize to set.
        Returns:
        This builder for chaining.
      • clearFontSize

        public Document.Page.Token.StyleInfo.Builder clearFontSize()
         Font size in points (`1` point is `¹⁄₇₂` inches).
         
        int32 font_size = 1;
        Returns:
        This builder for chaining.
      • getPixelFontSize

        public double getPixelFontSize()
         Font size in pixels, equal to _unrounded
         [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
         * _resolution_ ÷ `72.0`.
         
        double pixel_font_size = 2;
        Specified by:
        getPixelFontSize in interface Document.Page.Token.StyleInfoOrBuilder
        Returns:
        The pixelFontSize.
      • setPixelFontSize

        public Document.Page.Token.StyleInfo.Builder setPixelFontSize​(double value)
         Font size in pixels, equal to _unrounded
         [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
         * _resolution_ ÷ `72.0`.
         
        double pixel_font_size = 2;
        Parameters:
        value - The pixelFontSize to set.
        Returns:
        This builder for chaining.
      • clearPixelFontSize

        public Document.Page.Token.StyleInfo.Builder clearPixelFontSize()
         Font size in pixels, equal to _unrounded
         [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
         * _resolution_ ÷ `72.0`.
         
        double pixel_font_size = 2;
        Returns:
        This builder for chaining.
      • setLetterSpacing

        public Document.Page.Token.StyleInfo.Builder setLetterSpacing​(double value)
         Letter spacing in points.
         
        double letter_spacing = 3;
        Parameters:
        value - The letterSpacing to set.
        Returns:
        This builder for chaining.
      • setFontType

        public Document.Page.Token.StyleInfo.Builder setFontType​(String value)
         Name or style of the font.
         
        string font_type = 4;
        Parameters:
        value - The fontType to set.
        Returns:
        This builder for chaining.
      • setFontTypeBytes

        public Document.Page.Token.StyleInfo.Builder setFontTypeBytes​(com.google.protobuf.ByteString value)
         Name or style of the font.
         
        string font_type = 4;
        Parameters:
        value - The bytes for fontType to set.
        Returns:
        This builder for chaining.
      • getBold

        public boolean getBold()
         Whether the text is bold (equivalent to
         [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
         is at least `700`).
         
        bool bold = 5;
        Specified by:
        getBold in interface Document.Page.Token.StyleInfoOrBuilder
        Returns:
        The bold.
      • setBold

        public Document.Page.Token.StyleInfo.Builder setBold​(boolean value)
         Whether the text is bold (equivalent to
         [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
         is at least `700`).
         
        bool bold = 5;
        Parameters:
        value - The bold to set.
        Returns:
        This builder for chaining.
      • clearBold

        public Document.Page.Token.StyleInfo.Builder clearBold()
         Whether the text is bold (equivalent to
         [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
         is at least `700`).
         
        bool bold = 5;
        Returns:
        This builder for chaining.
      • setItalic

        public Document.Page.Token.StyleInfo.Builder setItalic​(boolean value)
         Whether the text is italic.
         
        bool italic = 6;
        Parameters:
        value - The italic to set.
        Returns:
        This builder for chaining.
      • setUnderlined

        public Document.Page.Token.StyleInfo.Builder setUnderlined​(boolean value)
         Whether the text is underlined.
         
        bool underlined = 7;
        Parameters:
        value - The underlined to set.
        Returns:
        This builder for chaining.
      • setStrikeout

        public Document.Page.Token.StyleInfo.Builder setStrikeout​(boolean value)
         Whether the text is strikethrough.
         
        bool strikeout = 8;
        Parameters:
        value - The strikeout to set.
        Returns:
        This builder for chaining.
      • setSubscript

        public Document.Page.Token.StyleInfo.Builder setSubscript​(boolean value)
         Whether the text is a subscript.
         
        bool subscript = 9;
        Parameters:
        value - The subscript to set.
        Returns:
        This builder for chaining.
      • setSuperscript

        public Document.Page.Token.StyleInfo.Builder setSuperscript​(boolean value)
         Whether the text is a superscript.
         
        bool superscript = 10;
        Parameters:
        value - The superscript to set.
        Returns:
        This builder for chaining.
      • setSmallcaps

        public Document.Page.Token.StyleInfo.Builder setSmallcaps​(boolean value)
         Whether the text is in small caps.
         
        bool smallcaps = 11;
        Parameters:
        value - The smallcaps to set.
        Returns:
        This builder for chaining.
      • getFontWeight

        public int getFontWeight()
         TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
         Normal is `400`, bold is `700`.
         
        int32 font_weight = 12;
        Specified by:
        getFontWeight in interface Document.Page.Token.StyleInfoOrBuilder
        Returns:
        The fontWeight.
      • setFontWeight

        public Document.Page.Token.StyleInfo.Builder setFontWeight​(int value)
         TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
         Normal is `400`, bold is `700`.
         
        int32 font_weight = 12;
        Parameters:
        value - The fontWeight to set.
        Returns:
        This builder for chaining.
      • clearFontWeight

        public Document.Page.Token.StyleInfo.Builder clearFontWeight()
         TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
         Normal is `400`, bold is `700`.
         
        int32 font_weight = 12;
        Returns:
        This builder for chaining.
      • setHandwritten

        public Document.Page.Token.StyleInfo.Builder setHandwritten​(boolean value)
         Whether the text is handwritten.
         
        bool handwritten = 13;
        Parameters:
        value - The handwritten to set.
        Returns:
        This builder for chaining.
      • getTextColorBuilder

        public com.google.type.Color.Builder getTextColorBuilder()
         Color of the text.
         
        .google.type.Color text_color = 14;
      • setBackgroundColor

        public Document.Page.Token.StyleInfo.Builder setBackgroundColor​(com.google.type.Color value)
         Color of the background.
         
        .google.type.Color background_color = 15;
      • setBackgroundColor

        public Document.Page.Token.StyleInfo.Builder setBackgroundColor​(com.google.type.Color.Builder builderForValue)
         Color of the background.
         
        .google.type.Color background_color = 15;
      • mergeBackgroundColor

        public Document.Page.Token.StyleInfo.Builder mergeBackgroundColor​(com.google.type.Color value)
         Color of the background.
         
        .google.type.Color background_color = 15;
      • getBackgroundColorBuilder

        public com.google.type.Color.Builder getBackgroundColorBuilder()
         Color of the background.
         
        .google.type.Color background_color = 15;