Package com.google.cloud.documentai.v1
Class Document.Page.Token.StyleInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.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.GeneratedMessage
implements Document.Page.Token.StyleInfoOrBuilder
Font and other text style attributes.Protobuf type
google.cloud.documentai.v1.Document.Page.Token.StyleInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFont and other text style attributes.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanColor of the background.Color of the background.booleangetBold()Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).static final com.google.protobuf.Descriptors.DescriptorintFont size in points (`1` point is `¹⁄₇₂` inches).Name or style of the font.com.google.protobuf.ByteStringName or style of the font.intTrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).booleanWhether the text is handwritten.booleanWhether the text is italic.doubleLetter spacing in points.com.google.protobuf.Parser<Document.Page.Token.StyleInfo>doubleFont size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.intbooleanWhether the text is in small caps.booleanWhether the text is strikethrough.booleanWhether the text is a subscript.booleanWhether the text is a superscript.Color of the text.Color of the text.booleanWhether the text is underlined.booleanColor of the background.inthashCode()booleanColor of the text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Document.Page.Token.StyleInfo prototype) protected Document.Page.Token.StyleInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Document.Page.Token.StyleInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FONT_SIZE_FIELD_NUMBER
public static final int FONT_SIZE_FIELD_NUMBER- See Also:
-
PIXEL_FONT_SIZE_FIELD_NUMBER
public static final int PIXEL_FONT_SIZE_FIELD_NUMBER- See Also:
-
LETTER_SPACING_FIELD_NUMBER
public static final int LETTER_SPACING_FIELD_NUMBER- See Also:
-
FONT_TYPE_FIELD_NUMBER
public static final int FONT_TYPE_FIELD_NUMBER- See Also:
-
BOLD_FIELD_NUMBER
public static final int BOLD_FIELD_NUMBER- See Also:
-
ITALIC_FIELD_NUMBER
public static final int ITALIC_FIELD_NUMBER- See Also:
-
UNDERLINED_FIELD_NUMBER
public static final int UNDERLINED_FIELD_NUMBER- See Also:
-
STRIKEOUT_FIELD_NUMBER
public static final int STRIKEOUT_FIELD_NUMBER- See Also:
-
SUBSCRIPT_FIELD_NUMBER
public static final int SUBSCRIPT_FIELD_NUMBER- See Also:
-
SUPERSCRIPT_FIELD_NUMBER
public static final int SUPERSCRIPT_FIELD_NUMBER- See Also:
-
SMALLCAPS_FIELD_NUMBER
public static final int SMALLCAPS_FIELD_NUMBER- See Also:
-
FONT_WEIGHT_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER- See Also:
-
HANDWRITTEN_FIELD_NUMBER
public static final int HANDWRITTEN_FIELD_NUMBER- See Also:
-
TEXT_COLOR_FIELD_NUMBER
public static final int TEXT_COLOR_FIELD_NUMBER- See Also:
-
BACKGROUND_COLOR_FIELD_NUMBER
public static final int BACKGROUND_COLOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.v1.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
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.v1.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. This feature is not supported yet.
bool strikeout = 8;- Specified by:
getStrikeoutin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The strikeout.
-
getSubscript
public boolean getSubscript()Whether the text is a subscript. This feature is not supported yet.
bool subscript = 9;- Specified by:
getSubscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The subscript.
-
getSuperscript
public boolean getSuperscript()Whether the text is a superscript. This feature is not supported yet.
bool superscript = 10;- Specified by:
getSuperscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The superscript.
-
getSmallcaps
public boolean getSmallcaps()Whether the text is in small caps. This feature is not supported yet.
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
Color of the text.
.google.type.Color text_color = 14;- Specified by:
getTextColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The textColor.
-
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
Color of the background.
.google.type.Color background_color = 15;- Specified by:
getBackgroundColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The backgroundColor.
-
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Document.Page.Token.StyleInfo.Builder newBuilder(Document.Page.Token.StyleInfo prototype) -
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.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-