Class Document.Style
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.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.GeneratedMessageV3 implements Document.StyleOrBuilder
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
Protobuf typegoogle.cloud.documentai.v1beta3.Document.Style
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Style.Builder
Annotation for common text style attributes.static class
Document.Style.FontSize
Font size with unit.static interface
Document.Style.FontSizeOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BACKGROUND_COLOR_FIELD_NUMBER
static int
COLOR_FIELD_NUMBER
static int
FONT_FAMILY_FIELD_NUMBER
static int
FONT_SIZE_FIELD_NUMBER
static int
FONT_WEIGHT_FIELD_NUMBER
static int
TEXT_ANCHOR_FIELD_NUMBER
static int
TEXT_DECORATION_FIELD_NUMBER
static int
TEXT_STYLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.type.Color
getBackgroundColor()
Text background color.com.google.type.ColorOrBuilder
getBackgroundColorOrBuilder()
Text background color.com.google.type.Color
getColor()
Text color.com.google.type.ColorOrBuilder
getColorOrBuilder()
Text color.static Document.Style
getDefaultInstance()
Document.Style
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getFontFamily()
Font family such as `Arial`, `Times New Roman`.com.google.protobuf.ByteString
getFontFamilyBytes()
Font family such as `Arial`, `Times New Roman`.Document.Style.FontSize
getFontSize()
Font size.Document.Style.FontSizeOrBuilder
getFontSizeOrBuilder()
Font size.String
getFontWeight()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).com.google.protobuf.ByteString
getFontWeightBytes()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).com.google.protobuf.Parser<Document.Style>
getParserForType()
int
getSerializedSize()
Document.TextAnchor
getTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].Document.TextAnchorOrBuilder
getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].String
getTextDecoration()
[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).com.google.protobuf.ByteString
getTextDecorationBytes()
[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).String
getTextStyle()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).com.google.protobuf.ByteString
getTextStyleBytes()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).boolean
hasBackgroundColor()
Text background color.boolean
hasColor()
Text color.boolean
hasFontSize()
Font size.int
hashCode()
boolean
hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Document.Style.Builder
newBuilder()
static Document.Style.Builder
newBuilder(Document.Style prototype)
Document.Style.Builder
newBuilderForType()
protected Document.Style.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Document.Style
parseDelimitedFrom(InputStream input)
static Document.Style
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Style
parseFrom(byte[] data)
static Document.Style
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Style
parseFrom(com.google.protobuf.ByteString data)
static Document.Style
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Style
parseFrom(com.google.protobuf.CodedInputStream input)
static Document.Style
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Style
parseFrom(InputStream input)
static Document.Style
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Style
parseFrom(ByteBuffer data)
static Document.Style
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Document.Style>
parser()
Document.Style.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TEXT_ANCHOR_FIELD_NUMBER
public static final int TEXT_ANCHOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLOR_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BACKGROUND_COLOR_FIELD_NUMBER
public static final int BACKGROUND_COLOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FONT_WEIGHT_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_STYLE_FIELD_NUMBER
public static final int TEXT_STYLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_DECORATION_FIELD_NUMBER
public static final int TEXT_DECORATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FONT_SIZE_FIELD_NUMBER
public static final int FONT_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FONT_FAMILY_FIELD_NUMBER
public static final int FONT_FAMILY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasTextAnchor
public boolean hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- Specified by:
hasTextAnchor
in interfaceDocument.StyleOrBuilder
- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
public Document.TextAnchor getTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- Specified by:
getTextAnchor
in interfaceDocument.StyleOrBuilder
- Returns:
- The textAnchor.
-
getTextAnchorOrBuilder
public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- Specified by:
getTextAnchorOrBuilder
in interfaceDocument.StyleOrBuilder
-
hasColor
public boolean hasColor()
Text color.
.google.type.Color color = 2;
- Specified by:
hasColor
in interfaceDocument.StyleOrBuilder
- Returns:
- Whether the color field is set.
-
getColor
public com.google.type.Color getColor()
Text color.
.google.type.Color color = 2;
- Specified by:
getColor
in interfaceDocument.StyleOrBuilder
- Returns:
- The color.
-
getColorOrBuilder
public com.google.type.ColorOrBuilder getColorOrBuilder()
Text color.
.google.type.Color color = 2;
- Specified by:
getColorOrBuilder
in interfaceDocument.StyleOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()
Text background color.
.google.type.Color background_color = 3;
- Specified by:
hasBackgroundColor
in interfaceDocument.StyleOrBuilder
- Returns:
- Whether the backgroundColor field is set.
-
getBackgroundColor
public com.google.type.Color getBackgroundColor()
Text background color.
.google.type.Color background_color = 3;
- Specified by:
getBackgroundColor
in interfaceDocument.StyleOrBuilder
- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Text background color.
.google.type.Color background_color = 3;
- Specified by:
getBackgroundColorOrBuilder
in interfaceDocument.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 interfaceDocument.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 interfaceDocument.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 interfaceDocument.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 interfaceDocument.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 interfaceDocument.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 interfaceDocument.StyleOrBuilder
- Returns:
- The bytes for textDecoration.
-
hasFontSize
public boolean hasFontSize()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;
- Specified by:
hasFontSize
in interfaceDocument.StyleOrBuilder
- Returns:
- Whether the fontSize field is set.
-
getFontSize
public Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;
- Specified by:
getFontSize
in interfaceDocument.StyleOrBuilder
- Returns:
- The fontSize.
-
getFontSizeOrBuilder
public Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;
- Specified by:
getFontSizeOrBuilder
in interfaceDocument.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 interfaceDocument.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 interfaceDocument.StyleOrBuilder
- Returns:
- The bytes for fontFamily.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.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 interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Style.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
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 interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Style getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-