Class Document.Page.Token.StyleInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.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.v1beta3.Document.Page.Token.StyleInfo- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Page.Token.StyleInfo.BuilderFont 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 intBACKGROUND_COLOR_FIELD_NUMBERstatic intBOLD_FIELD_NUMBERstatic intFONT_SIZE_FIELD_NUMBERstatic intFONT_TYPE_FIELD_NUMBERstatic intFONT_WEIGHT_FIELD_NUMBERstatic intHANDWRITTEN_FIELD_NUMBERstatic intITALIC_FIELD_NUMBERstatic intLETTER_SPACING_FIELD_NUMBERstatic intPIXEL_FONT_SIZE_FIELD_NUMBERstatic intSMALLCAPS_FIELD_NUMBERstatic intSTRIKEOUT_FIELD_NUMBERstatic intSUBSCRIPT_FIELD_NUMBERstatic intSUPERSCRIPT_FIELD_NUMBERstatic intTEXT_COLOR_FIELD_NUMBERstatic intUNDERLINED_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.type.ColorgetBackgroundColor()Color of the background.com.google.type.ColorOrBuildergetBackgroundColorOrBuilder()Color of the background.booleangetBold()Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight] is at least `700`).static Document.Page.Token.StyleInfogetDefaultInstance()Document.Page.Token.StyleInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetFontSize()Font size in points (`1` point is `¹⁄₇₂` inches).StringgetFontType()Name or style of the font.com.google.protobuf.ByteStringgetFontTypeBytes()Name or style of the font.intgetFontWeight()TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).booleangetHandwritten()Whether the text is handwritten.booleangetItalic()Whether the text is italic.doublegetLetterSpacing()Letter spacing in points.com.google.protobuf.Parser<Document.Page.Token.StyleInfo>getParserForType()doublegetPixelFontSize()Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.intgetSerializedSize()booleangetSmallcaps()Whether the text is in small caps.booleangetStrikeout()Whether the text is strikethrough.booleangetSubscript()Whether the text is a subscript.booleangetSuperscript()Whether the text is a superscript.com.google.type.ColorgetTextColor()Color of the text.com.google.type.ColorOrBuildergetTextColorOrBuilder()Color of the text.booleangetUnderlined()Whether the text is underlined.booleanhasBackgroundColor()Color of the background.inthashCode()booleanhasTextColor()Color of the text.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.Page.Token.StyleInfo.BuildernewBuilder()static Document.Page.Token.StyleInfo.BuildernewBuilder(Document.Page.Token.StyleInfo prototype)Document.Page.Token.StyleInfo.BuildernewBuilderForType()protected Document.Page.Token.StyleInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Document.Page.Token.StyleInfoparseDelimitedFrom(InputStream input)static Document.Page.Token.StyleInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Page.Token.StyleInfoparseFrom(byte[] data)static Document.Page.Token.StyleInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Page.Token.StyleInfoparseFrom(com.google.protobuf.ByteString data)static Document.Page.Token.StyleInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Page.Token.StyleInfoparseFrom(com.google.protobuf.CodedInputStream input)static Document.Page.Token.StyleInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Page.Token.StyleInfoparseFrom(InputStream input)static Document.Page.Token.StyleInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Page.Token.StyleInfoparseFrom(ByteBuffer data)static Document.Page.Token.StyleInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Document.Page.Token.StyleInfo>parser()Document.Page.Token.StyleInfo.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
-
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:
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
-
getFontSize
public int getFontSize()
Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;- Specified by:
getFontSizein interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The fontSize.
-
getPixelFontSize
public 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;- Specified by:
getPixelFontSizein interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The pixelFontSize.
-
getLetterSpacing
public double getLetterSpacing()
Letter spacing in points.
double letter_spacing = 3;- Specified by:
getLetterSpacingin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The letterSpacing.
-
getFontType
public String getFontType()
Name or style of the font.
string font_type = 4;- Specified by:
getFontTypein 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:
getFontTypeBytesin 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.v1beta3.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
bool bold = 5;- Specified by:
getBoldin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The bold.
-
getItalic
public boolean getItalic()
Whether the text is italic.
bool italic = 6;- Specified by:
getItalicin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The italic.
-
getUnderlined
public boolean getUnderlined()
Whether the text is underlined.
bool underlined = 7;- Specified by:
getUnderlinedin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The underlined.
-
getStrikeout
public boolean getStrikeout()
Whether the text is strikethrough.
bool strikeout = 8;- Specified by:
getStrikeoutin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The strikeout.
-
getSubscript
public boolean getSubscript()
Whether the text is a subscript.
bool subscript = 9;- Specified by:
getSubscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The subscript.
-
getSuperscript
public boolean getSuperscript()
Whether the text is a superscript.
bool superscript = 10;- Specified by:
getSuperscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The superscript.
-
getSmallcaps
public boolean getSmallcaps()
Whether the text is in small caps.
bool smallcaps = 11;- Specified by:
getSmallcapsin 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:
getFontWeightin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The fontWeight.
-
getHandwritten
public boolean getHandwritten()
Whether the text is handwritten.
bool handwritten = 13;- Specified by:
getHandwrittenin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The handwritten.
-
hasTextColor
public boolean hasTextColor()
Color of the text.
.google.type.Color text_color = 14;- Specified by:
hasTextColorin 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:
getTextColorin 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:
getTextColorOrBuilderin interfaceDocument.Page.Token.StyleInfoOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;- Specified by:
hasBackgroundColorin 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:
getBackgroundColorin 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:
getBackgroundColorOrBuilderin interfaceDocument.Page.Token.StyleInfoOrBuilder
-
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.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Page.Token.StyleInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Page.Token.StyleInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-