Interface Document.StyleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.Style,Document.Style.Builder
- Enclosing class:
- Document
public static interface Document.StyleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.type.ColorgetBackgroundColor()Text background color.com.google.type.ColorOrBuildergetBackgroundColorOrBuilder()Text background color.com.google.type.ColorgetColor()Text color.com.google.type.ColorOrBuildergetColorOrBuilder()Text color.StringgetFontFamily()Font family such as `Arial`, `Times New Roman`.com.google.protobuf.ByteStringgetFontFamilyBytes()Font family such as `Arial`, `Times New Roman`.Document.Style.FontSizegetFontSize()Font size.Document.Style.FontSizeOrBuildergetFontSizeOrBuilder()Font size.StringgetFontWeight()[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).com.google.protobuf.ByteStringgetFontWeightBytes()[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).Document.TextAnchorgetTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].Document.TextAnchorOrBuildergetTextAnchorOrBuilder()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].StringgetTextDecoration()[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).com.google.protobuf.ByteStringgetTextDecorationBytes()[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).StringgetTextStyle()[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).com.google.protobuf.ByteStringgetTextStyleBytes()[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).booleanhasBackgroundColor()Text background color.booleanhasColor()Text color.booleanhasFontSize()Font size.booleanhasTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTextAnchor
boolean hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
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;- Returns:
- The textAnchor.
-
getTextAnchorOrBuilder
Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
-
hasColor
boolean hasColor()
Text color.
.google.type.Color color = 2;- Returns:
- Whether the color field is set.
-
getColor
com.google.type.Color getColor()
Text color.
.google.type.Color color = 2;- Returns:
- The color.
-
getColorOrBuilder
com.google.type.ColorOrBuilder getColorOrBuilder()
Text color.
.google.type.Color color = 2;
-
hasBackgroundColor
boolean hasBackgroundColor()
Text background color.
.google.type.Color background_color = 3;- Returns:
- Whether the backgroundColor field is set.
-
getBackgroundColor
com.google.type.Color getBackgroundColor()
Text background color.
.google.type.Color background_color = 3;- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Text background color.
.google.type.Color background_color = 3;
-
getFontWeight
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;- Returns:
- The fontWeight.
-
getFontWeightBytes
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;- Returns:
- The bytes for fontWeight.
-
getTextStyle
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;- Returns:
- The textStyle.
-
getTextStyleBytes
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;- Returns:
- The bytes for textStyle.
-
getTextDecoration
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;- Returns:
- The textDecoration.
-
getTextDecorationBytes
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;- Returns:
- The bytes for textDecoration.
-
hasFontSize
boolean hasFontSize()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;- Returns:
- Whether the fontSize field is set.
-
getFontSize
Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;- Returns:
- The fontSize.
-
getFontSizeOrBuilder
Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;
-
getFontFamily
String getFontFamily()
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;- Returns:
- The fontFamily.
-
getFontFamilyBytes
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;- Returns:
- The bytes for fontFamily.
-
-