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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.type.Color
getBackgroundColor()
Color of the background.com.google.type.ColorOrBuilder
getBackgroundColorOrBuilder()
Color of the background.boolean
getBold()
Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight] is at least `700`).int
getFontSize()
Font size in points (`1` point is `¹⁄₇₂` inches).String
getFontType()
Name or style of the font.com.google.protobuf.ByteString
getFontTypeBytes()
Name or style of the font.int
getFontWeight()
TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).boolean
getHandwritten()
Whether the text is handwritten.boolean
getItalic()
Whether the text is italic.double
getLetterSpacing()
Letter spacing in points.double
getPixelFontSize()
Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.boolean
getSmallcaps()
Whether the text is in small caps.boolean
getStrikeout()
Whether the text is strikethrough.boolean
getSubscript()
Whether the text is a subscript.boolean
getSuperscript()
Whether the text is a superscript.com.google.type.Color
getTextColor()
Color of the text.com.google.type.ColorOrBuilder
getTextColorOrBuilder()
Color of the text.boolean
getUnderlined()
Whether the text is underlined.boolean
hasBackgroundColor()
Color of the background.boolean
hasTextColor()
Color of the text.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.v1beta3.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.v1beta3.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.
bool strikeout = 8;
- Returns:
- The strikeout.
-
getSubscript
boolean getSubscript()
Whether the text is a subscript.
bool subscript = 9;
- Returns:
- The subscript.
-
getSuperscript
boolean getSuperscript()
Whether the text is a superscript.
bool superscript = 10;
- Returns:
- The superscript.
-
getSmallcaps
boolean getSmallcaps()
Whether the text is in small caps.
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
com.google.type.Color getTextColor()
Color of the text.
.google.type.Color text_color = 14;
- Returns:
- The textColor.
-
getTextColorOrBuilder
com.google.type.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
com.google.type.Color getBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;
- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Color of the background.
.google.type.Color background_color = 15;
-
-