Class Document.Style
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta1.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.v1beta1.Document.Style- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Style.BuilderAnnotation for common text style attributes.static classDocument.Style.FontSizeFont size with unit.static interfaceDocument.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 intBACKGROUND_COLOR_FIELD_NUMBERstatic intCOLOR_FIELD_NUMBERstatic intFONT_SIZE_FIELD_NUMBERstatic intFONT_WEIGHT_FIELD_NUMBERstatic intTEXT_ANCHOR_FIELD_NUMBERstatic intTEXT_DECORATION_FIELD_NUMBERstatic intTEXT_STYLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.static Document.StylegetDefaultInstance()Document.StylegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Document.Style.FontSizegetFontSize()Font size.Document.Style.FontSizeOrBuildergetFontSizeOrBuilder()Font size.StringgetFontWeight()Font weight.com.google.protobuf.ByteStringgetFontWeightBytes()Font weight.com.google.protobuf.Parser<Document.Style>getParserForType()intgetSerializedSize()Document.TextAnchorgetTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.TextAnchorOrBuildergetTextAnchorOrBuilder()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].StringgetTextDecoration()Text decoration.com.google.protobuf.ByteStringgetTextDecorationBytes()Text decoration.StringgetTextStyle()Text style.com.google.protobuf.ByteStringgetTextStyleBytes()Text style.booleanhasBackgroundColor()Text background color.booleanhasColor()Text color.booleanhasFontSize()Font size.inthashCode()booleanhasTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.Style.BuildernewBuilder()static Document.Style.BuildernewBuilder(Document.Style prototype)Document.Style.BuildernewBuilderForType()protected Document.Style.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Document.StyleparseDelimitedFrom(InputStream input)static Document.StyleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.StyleparseFrom(byte[] data)static Document.StyleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.StyleparseFrom(com.google.protobuf.ByteString data)static Document.StyleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.StyleparseFrom(com.google.protobuf.CodedInputStream input)static Document.StyleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.StyleparseFrom(InputStream input)static Document.StyleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.StyleparseFrom(ByteBuffer data)static Document.StyleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Document.Style>parser()Document.Style.BuildertoBuilder()voidwriteTo(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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTextAnchor
public boolean hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;- Specified by:
hasTextAnchorin interfaceDocument.StyleOrBuilder- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
public Document.TextAnchor getTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorin interfaceDocument.StyleOrBuilder- Returns:
- The textAnchor.
-
getTextAnchorOrBuilder
public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorOrBuilderin interfaceDocument.StyleOrBuilder
-
hasColor
public boolean hasColor()
Text color.
.google.type.Color color = 2;- Specified by:
hasColorin 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:
getColorin interfaceDocument.StyleOrBuilder- Returns:
- The color.
-
getColorOrBuilder
public com.google.type.ColorOrBuilder getColorOrBuilder()
Text color.
.google.type.Color color = 2;- Specified by:
getColorOrBuilderin interfaceDocument.StyleOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()
Text background color.
.google.type.Color background_color = 3;- Specified by:
hasBackgroundColorin 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:
getBackgroundColorin interfaceDocument.StyleOrBuilder- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Text background color.
.google.type.Color background_color = 3;- Specified by:
getBackgroundColorOrBuilderin interfaceDocument.StyleOrBuilder
-
getFontWeight
public String getFontWeight()
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;- Specified by:
getFontWeightin interfaceDocument.StyleOrBuilder- Returns:
- The fontWeight.
-
getFontWeightBytes
public com.google.protobuf.ByteString getFontWeightBytes()
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;- Specified by:
getFontWeightBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for fontWeight.
-
getTextStyle
public String getTextStyle()
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;- Specified by:
getTextStylein interfaceDocument.StyleOrBuilder- Returns:
- The textStyle.
-
getTextStyleBytes
public com.google.protobuf.ByteString getTextStyleBytes()
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;- Specified by:
getTextStyleBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for textStyle.
-
getTextDecoration
public String getTextDecoration()
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;- Specified by:
getTextDecorationin interfaceDocument.StyleOrBuilder- Returns:
- The textDecoration.
-
getTextDecorationBytes
public com.google.protobuf.ByteString getTextDecorationBytes()
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;- Specified by:
getTextDecorationBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for textDecoration.
-
hasFontSize
public boolean hasFontSize()
Font size.
.google.cloud.documentai.v1beta1.Document.Style.FontSize font_size = 7;- Specified by:
hasFontSizein interfaceDocument.StyleOrBuilder- Returns:
- Whether the fontSize field is set.
-
getFontSize
public Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1beta1.Document.Style.FontSize font_size = 7;- Specified by:
getFontSizein interfaceDocument.StyleOrBuilder- Returns:
- The fontSize.
-
getFontSizeOrBuilder
public Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1beta1.Document.Style.FontSize font_size = 7;- Specified by:
getFontSizeOrBuilderin interfaceDocument.StyleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Style.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Style getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-