Interface Document.Page.Token.StyleInfoOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.Page.Token.StyleInfo, Document.Page.Token.StyleInfo.Builder
Enclosing class:
Document.Page.Token

public static interface Document.Page.Token.StyleInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Color of the background.
    Color of the background.
    boolean
    Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
    int
    Font size in points (`1` point is `¹⁄₇₂` inches).
    Name or style of the font.
    com.google.protobuf.ByteString
    Name or style of the font.
    int
    TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
    boolean
    Whether the text is handwritten.
    boolean
    Whether the text is italic.
    double
    Letter spacing in points.
    double
    Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.
    boolean
    Whether the text is in small caps.
    boolean
    Whether the text is strikethrough.
    boolean
    Whether the text is a subscript.
    boolean
    Whether the text is a superscript.
    Color of the text.
    Color of the text.
    boolean
    Whether the text is underlined.
    boolean
    Color of the background.
    boolean
    Color of the text.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getFontSize

      int getFontSize()
       Font size in points (`1` point is `¹⁄₇₂` inches).
       
      int32 font_size = 1;
      Returns:
      The fontSize.
    • getPixelFontSize

      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;
      Returns:
      The pixelFontSize.
    • getLetterSpacing

      double getLetterSpacing()
       Letter spacing in points.
       
      double letter_spacing = 3;
      Returns:
      The letterSpacing.
    • getFontType

      String getFontType()
       Name or style of the font.
       
      string font_type = 4;
      Returns:
      The fontType.
    • getFontTypeBytes

      com.google.protobuf.ByteString getFontTypeBytes()
       Name or style of the font.
       
      string font_type = 4;
      Returns:
      The bytes for fontType.
    • getBold

      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;
      Returns:
      The bold.
    • getItalic

      boolean getItalic()
       Whether the text is italic.
       
      bool italic = 6;
      Returns:
      The italic.
    • getUnderlined

      boolean getUnderlined()
       Whether the text is underlined.
       
      bool underlined = 7;
      Returns:
      The underlined.
    • getStrikeout

      boolean getStrikeout()
       Whether the text is strikethrough. This feature is not supported yet.
       
      bool strikeout = 8;
      Returns:
      The strikeout.
    • getSubscript

      boolean getSubscript()
       Whether the text is a subscript. This feature is not supported yet.
       
      bool subscript = 9;
      Returns:
      The subscript.
    • getSuperscript

      boolean getSuperscript()
       Whether the text is a superscript. This feature is not supported yet.
       
      bool superscript = 10;
      Returns:
      The superscript.
    • getSmallcaps

      boolean getSmallcaps()
       Whether the text is in small caps. This feature is not supported yet.
       
      bool smallcaps = 11;
      Returns:
      The smallcaps.
    • getFontWeight

      int getFontWeight()
       TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
       Normal is `400`, bold is `700`.
       
      int32 font_weight = 12;
      Returns:
      The fontWeight.
    • getHandwritten

      boolean getHandwritten()
       Whether the text is handwritten.
       
      bool handwritten = 13;
      Returns:
      The handwritten.
    • hasTextColor

      boolean hasTextColor()
       Color of the text.
       
      .google.type.Color text_color = 14;
      Returns:
      Whether the textColor field is set.
    • getTextColor

      Color getTextColor()
       Color of the text.
       
      .google.type.Color text_color = 14;
      Returns:
      The textColor.
    • getTextColorOrBuilder

      ColorOrBuilder getTextColorOrBuilder()
       Color of the text.
       
      .google.type.Color text_color = 14;
    • hasBackgroundColor

      boolean hasBackgroundColor()
       Color of the background.
       
      .google.type.Color background_color = 15;
      Returns:
      Whether the backgroundColor field is set.
    • getBackgroundColor

      Color getBackgroundColor()
       Color of the background.
       
      .google.type.Color background_color = 15;
      Returns:
      The backgroundColor.
    • getBackgroundColorOrBuilder

      ColorOrBuilder getBackgroundColorOrBuilder()
       Color of the background.
       
      .google.type.Color background_color = 15;