Class Document.Style

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Document.Style
All Implemented Interfaces:
Document.StyleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Document

public static final class Document.Style extends com.google.protobuf.GeneratedMessage implements Document.StyleOrBuilder
 Annotation for common text style attributes. This adheres to CSS
 conventions as much as possible.
 
Protobuf type google.cloud.documentai.v1.Document.Style
See Also:
  • Field Details

    • TEXT_ANCHOR_FIELD_NUMBER

      public static final int TEXT_ANCHOR_FIELD_NUMBER
      See Also:
    • COLOR_FIELD_NUMBER

      public static final int COLOR_FIELD_NUMBER
      See Also:
    • BACKGROUND_COLOR_FIELD_NUMBER

      public static final int BACKGROUND_COLOR_FIELD_NUMBER
      See Also:
    • FONT_WEIGHT_FIELD_NUMBER

      public static final int FONT_WEIGHT_FIELD_NUMBER
      See Also:
    • TEXT_STYLE_FIELD_NUMBER

      public static final int TEXT_STYLE_FIELD_NUMBER
      See Also:
    • TEXT_DECORATION_FIELD_NUMBER

      public static final int TEXT_DECORATION_FIELD_NUMBER
      See Also:
    • FONT_SIZE_FIELD_NUMBER

      public static final int FONT_SIZE_FIELD_NUMBER
      See Also:
    • FONT_FAMILY_FIELD_NUMBER

      public static final int FONT_FAMILY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasTextAnchor

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

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

      public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
       Text anchor indexing into the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
      Specified by:
      getTextAnchorOrBuilder in interface Document.StyleOrBuilder
    • hasColor

      public boolean hasColor()
       Text color.
       
      .google.type.Color color = 2;
      Specified by:
      hasColor in interface Document.StyleOrBuilder
      Returns:
      Whether the color field is set.
    • getColor

      public Color getColor()
       Text color.
       
      .google.type.Color color = 2;
      Specified by:
      getColor in interface Document.StyleOrBuilder
      Returns:
      The color.
    • getColorOrBuilder

      public ColorOrBuilder getColorOrBuilder()
       Text color.
       
      .google.type.Color color = 2;
      Specified by:
      getColorOrBuilder in interface Document.StyleOrBuilder
    • hasBackgroundColor

      public boolean hasBackgroundColor()
       Text background color.
       
      .google.type.Color background_color = 3;
      Specified by:
      hasBackgroundColor in interface Document.StyleOrBuilder
      Returns:
      Whether the backgroundColor field is set.
    • getBackgroundColor

      public Color getBackgroundColor()
       Text background color.
       
      .google.type.Color background_color = 3;
      Specified by:
      getBackgroundColor in interface Document.StyleOrBuilder
      Returns:
      The backgroundColor.
    • getBackgroundColorOrBuilder

      public ColorOrBuilder getBackgroundColorOrBuilder()
       Text background color.
       
      .google.type.Color background_color = 3;
      Specified by:
      getBackgroundColorOrBuilder in interface Document.StyleOrBuilder
    • getFontWeight

      public String getFontWeight()
       [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
       Possible values are `normal`, `bold`, `bolder`, and `lighter`.
       
      string font_weight = 4;
      Specified by:
      getFontWeight in interface Document.StyleOrBuilder
      Returns:
      The fontWeight.
    • getFontWeightBytes

      public com.google.protobuf.ByteString getFontWeightBytes()
       [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
       Possible values are `normal`, `bold`, `bolder`, and `lighter`.
       
      string font_weight = 4;
      Specified by:
      getFontWeightBytes in interface Document.StyleOrBuilder
      Returns:
      The bytes for fontWeight.
    • getTextStyle

      public String getTextStyle()
       [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
       Possible values are `normal`, `italic`, and `oblique`.
       
      string text_style = 5;
      Specified by:
      getTextStyle in interface Document.StyleOrBuilder
      Returns:
      The textStyle.
    • getTextStyleBytes

      public com.google.protobuf.ByteString getTextStyleBytes()
       [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
       Possible values are `normal`, `italic`, and `oblique`.
       
      string text_style = 5;
      Specified by:
      getTextStyleBytes in interface Document.StyleOrBuilder
      Returns:
      The bytes for textStyle.
    • getTextDecoration

      public String getTextDecoration()
       [Text
       decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
       Follows CSS standard. <text-decoration-line> <text-decoration-color>
       <text-decoration-style>
       
      string text_decoration = 6;
      Specified by:
      getTextDecoration in interface Document.StyleOrBuilder
      Returns:
      The textDecoration.
    • getTextDecorationBytes

      public com.google.protobuf.ByteString getTextDecorationBytes()
       [Text
       decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
       Follows CSS standard. <text-decoration-line> <text-decoration-color>
       <text-decoration-style>
       
      string text_decoration = 6;
      Specified by:
      getTextDecorationBytes in interface Document.StyleOrBuilder
      Returns:
      The bytes for textDecoration.
    • hasFontSize

      public boolean hasFontSize()
       Font size.
       
      .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
      Specified by:
      hasFontSize in interface Document.StyleOrBuilder
      Returns:
      Whether the fontSize field is set.
    • getFontSize

      public Document.Style.FontSize getFontSize()
       Font size.
       
      .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
      Specified by:
      getFontSize in interface Document.StyleOrBuilder
      Returns:
      The fontSize.
    • getFontSizeOrBuilder

      public Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
       Font size.
       
      .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
      Specified by:
      getFontSizeOrBuilder in interface Document.StyleOrBuilder
    • getFontFamily

      public String getFontFamily()
       Font family such as `Arial`, `Times New Roman`.
       https://www.w3schools.com/cssref/pr_font_font-family.asp
       
      string font_family = 8;
      Specified by:
      getFontFamily in interface Document.StyleOrBuilder
      Returns:
      The fontFamily.
    • getFontFamilyBytes

      public com.google.protobuf.ByteString getFontFamilyBytes()
       Font family such as `Arial`, `Times New Roman`.
       https://www.w3schools.com/cssref/pr_font_font-family.asp
       
      string font_family = 8;
      Specified by:
      getFontFamilyBytes in interface Document.StyleOrBuilder
      Returns:
      The bytes for fontFamily.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Document.Style parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Document.Style parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Document.Style parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Document.Style parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Document.Style parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Document.Style parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Document.Style parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Document.Style.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Document.Style.Builder newBuilder()
    • newBuilder

      public static Document.Style.Builder newBuilder(Document.Style prototype)
    • toBuilder

      public Document.Style.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Document.Style.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Document.Style getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Document.Style> parser()
    • getParserForType

      public com.google.protobuf.Parser<Document.Style> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Document.Style getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder