Class Document.Page.Token.StyleInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo
-
- All Implemented Interfaces:
Document.Page.Token.StyleInfoOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- Document.Page.Token
public static final class Document.Page.Token.StyleInfo extends com.google.protobuf.GeneratedMessageV3 implements Document.Page.Token.StyleInfoOrBuilder
Font and other text style attributes.
Protobuf typegoogle.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Page.Token.StyleInfo.Builder
Font and other text style attributes.-
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
BOLD_FIELD_NUMBER
static int
FONT_SIZE_FIELD_NUMBER
static int
FONT_TYPE_FIELD_NUMBER
static int
FONT_WEIGHT_FIELD_NUMBER
static int
HANDWRITTEN_FIELD_NUMBER
static int
ITALIC_FIELD_NUMBER
static int
LETTER_SPACING_FIELD_NUMBER
static int
PIXEL_FONT_SIZE_FIELD_NUMBER
static int
SMALLCAPS_FIELD_NUMBER
static int
STRIKEOUT_FIELD_NUMBER
static int
SUBSCRIPT_FIELD_NUMBER
static int
SUPERSCRIPT_FIELD_NUMBER
static int
TEXT_COLOR_FIELD_NUMBER
static int
UNDERLINED_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()
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.v1beta2.Document.Page.Token.StyleInfo.font_weight] is at least `700`).static Document.Page.Token.StyleInfo
getDefaultInstance()
Document.Page.Token.StyleInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<Document.Page.Token.StyleInfo>
getParserForType()
double
getPixelFontSize()
Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.int
getSerializedSize()
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.int
hashCode()
boolean
hasTextColor()
Color of the text.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Document.Page.Token.StyleInfo.Builder
newBuilder()
static Document.Page.Token.StyleInfo.Builder
newBuilder(Document.Page.Token.StyleInfo prototype)
Document.Page.Token.StyleInfo.Builder
newBuilderForType()
protected Document.Page.Token.StyleInfo.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Document.Page.Token.StyleInfo
parseDelimitedFrom(InputStream input)
static Document.Page.Token.StyleInfo
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page.Token.StyleInfo
parseFrom(byte[] data)
static Document.Page.Token.StyleInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page.Token.StyleInfo
parseFrom(com.google.protobuf.ByteString data)
static Document.Page.Token.StyleInfo
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page.Token.StyleInfo
parseFrom(com.google.protobuf.CodedInputStream input)
static Document.Page.Token.StyleInfo
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page.Token.StyleInfo
parseFrom(InputStream input)
static Document.Page.Token.StyleInfo
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page.Token.StyleInfo
parseFrom(ByteBuffer data)
static Document.Page.Token.StyleInfo
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Document.Page.Token.StyleInfo>
parser()
Document.Page.Token.StyleInfo.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
-
FONT_SIZE_FIELD_NUMBER
public static final int FONT_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PIXEL_FONT_SIZE_FIELD_NUMBER
public static final int PIXEL_FONT_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LETTER_SPACING_FIELD_NUMBER
public static final int LETTER_SPACING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FONT_TYPE_FIELD_NUMBER
public static final int FONT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOLD_FIELD_NUMBER
public static final int BOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ITALIC_FIELD_NUMBER
public static final int ITALIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNDERLINED_FIELD_NUMBER
public static final int UNDERLINED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRIKEOUT_FIELD_NUMBER
public static final int STRIKEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBSCRIPT_FIELD_NUMBER
public static final int SUBSCRIPT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUPERSCRIPT_FIELD_NUMBER
public static final int SUPERSCRIPT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SMALLCAPS_FIELD_NUMBER
public static final int SMALLCAPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FONT_WEIGHT_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HANDWRITTEN_FIELD_NUMBER
public static final int HANDWRITTEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_COLOR_FIELD_NUMBER
public static final int TEXT_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
-
-
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
-
getFontSize
public int getFontSize()
Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;
- Specified by:
getFontSize
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The fontSize.
-
getPixelFontSize
public double getPixelFontSize()
Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.
double pixel_font_size = 2;
- Specified by:
getPixelFontSize
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The pixelFontSize.
-
getLetterSpacing
public double getLetterSpacing()
Letter spacing in points.
double letter_spacing = 3;
- Specified by:
getLetterSpacing
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The letterSpacing.
-
getFontType
public String getFontType()
Name or style of the font.
string font_type = 4;
- Specified by:
getFontType
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The fontType.
-
getFontTypeBytes
public com.google.protobuf.ByteString getFontTypeBytes()
Name or style of the font.
string font_type = 4;
- Specified by:
getFontTypeBytes
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The bytes for fontType.
-
getBold
public boolean getBold()
Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
bool bold = 5;
- Specified by:
getBold
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The bold.
-
getItalic
public boolean getItalic()
Whether the text is italic.
bool italic = 6;
- Specified by:
getItalic
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The italic.
-
getUnderlined
public boolean getUnderlined()
Whether the text is underlined.
bool underlined = 7;
- Specified by:
getUnderlined
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The underlined.
-
getStrikeout
public boolean getStrikeout()
Whether the text is strikethrough.
bool strikeout = 8;
- Specified by:
getStrikeout
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The strikeout.
-
getSubscript
public boolean getSubscript()
Whether the text is a subscript.
bool subscript = 9;
- Specified by:
getSubscript
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The subscript.
-
getSuperscript
public boolean getSuperscript()
Whether the text is a superscript.
bool superscript = 10;
- Specified by:
getSuperscript
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The superscript.
-
getSmallcaps
public boolean getSmallcaps()
Whether the text is in small caps.
bool smallcaps = 11;
- Specified by:
getSmallcaps
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The smallcaps.
-
getFontWeight
public int getFontWeight()
TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.
int32 font_weight = 12;
- Specified by:
getFontWeight
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The fontWeight.
-
getHandwritten
public boolean getHandwritten()
Whether the text is handwritten.
bool handwritten = 13;
- Specified by:
getHandwritten
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The handwritten.
-
hasTextColor
public boolean hasTextColor()
Color of the text.
.google.type.Color text_color = 14;
- Specified by:
hasTextColor
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- Whether the textColor field is set.
-
getTextColor
public com.google.type.Color getTextColor()
Color of the text.
.google.type.Color text_color = 14;
- Specified by:
getTextColor
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The textColor.
-
getTextColorOrBuilder
public com.google.type.ColorOrBuilder getTextColorOrBuilder()
Color of the text.
.google.type.Color text_color = 14;
- Specified by:
getTextColorOrBuilder
in interfaceDocument.Page.Token.StyleInfoOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;
- Specified by:
hasBackgroundColor
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- Whether the backgroundColor field is set.
-
getBackgroundColor
public com.google.type.Color getBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;
- Specified by:
getBackgroundColor
in interfaceDocument.Page.Token.StyleInfoOrBuilder
- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Color of the background.
.google.type.Color background_color = 15;
- Specified by:
getBackgroundColorOrBuilder
in interfaceDocument.Page.Token.StyleInfoOrBuilder
-
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.Page.Token.StyleInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page.Token.StyleInfo 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.Page.Token.StyleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Page.Token.StyleInfo parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Page.Token.StyleInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Document.Page.Token.StyleInfo.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Document.Page.Token.StyleInfo.Builder newBuilder()
-
newBuilder
public static Document.Page.Token.StyleInfo.Builder newBuilder(Document.Page.Token.StyleInfo prototype)
-
toBuilder
public Document.Page.Token.StyleInfo.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Page.Token.StyleInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Document.Page.Token.StyleInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Document.Page.Token.StyleInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<Document.Page.Token.StyleInfo> 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.Page.Token.StyleInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-