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 type
google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Page.Token.StyleInfo.Builder
Font and other text style attributes.
|
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| Modifier and Type | Field and 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 |
| Modifier and Type | Method and 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.v1beta3.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.v1beta3.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(ByteBuffer data) |
static Document.Page.Token.StyleInfo |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Document.Page.Token.StyleInfo> |
parser() |
Document.Page.Token.StyleInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FONT_SIZE_FIELD_NUMBER
public static final int PIXEL_FONT_SIZE_FIELD_NUMBER
public static final int LETTER_SPACING_FIELD_NUMBER
public static final int FONT_TYPE_FIELD_NUMBER
public static final int BOLD_FIELD_NUMBER
public static final int ITALIC_FIELD_NUMBER
public static final int UNDERLINED_FIELD_NUMBER
public static final int STRIKEOUT_FIELD_NUMBER
public static final int SUBSCRIPT_FIELD_NUMBER
public static final int SUPERSCRIPT_FIELD_NUMBER
public static final int SMALLCAPS_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER
public static final int HANDWRITTEN_FIELD_NUMBER
public static final int TEXT_COLOR_FIELD_NUMBER
public static final int BACKGROUND_COLOR_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getFontSize()
Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;getFontSize in interface Document.Page.Token.StyleInfoOrBuilderpublic 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;getPixelFontSize in interface Document.Page.Token.StyleInfoOrBuilderpublic double getLetterSpacing()
Letter spacing in points.
double letter_spacing = 3;getLetterSpacing in interface Document.Page.Token.StyleInfoOrBuilderpublic String getFontType()
Name or style of the font.
string font_type = 4;getFontType in interface Document.Page.Token.StyleInfoOrBuilderpublic com.google.protobuf.ByteString getFontTypeBytes()
Name or style of the font.
string font_type = 4;getFontTypeBytes in interface Document.Page.Token.StyleInfoOrBuilderpublic 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;getBold in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getItalic()
Whether the text is italic.
bool italic = 6;getItalic in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getUnderlined()
Whether the text is underlined.
bool underlined = 7;getUnderlined in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getStrikeout()
Whether the text is strikethrough. This feature is not supported yet.
bool strikeout = 8;getStrikeout in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getSubscript()
Whether the text is a subscript. This feature is not supported yet.
bool subscript = 9;getSubscript in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getSuperscript()
Whether the text is a superscript. This feature is not supported yet.
bool superscript = 10;getSuperscript in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getSmallcaps()
Whether the text is in small caps. This feature is not supported yet.
bool smallcaps = 11;getSmallcaps in interface Document.Page.Token.StyleInfoOrBuilderpublic int getFontWeight()
TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.
int32 font_weight = 12;getFontWeight in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean getHandwritten()
Whether the text is handwritten.
bool handwritten = 13;getHandwritten in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean hasTextColor()
Color of the text.
.google.type.Color text_color = 14;hasTextColor in interface Document.Page.Token.StyleInfoOrBuilderpublic com.google.type.Color getTextColor()
Color of the text.
.google.type.Color text_color = 14;getTextColor in interface Document.Page.Token.StyleInfoOrBuilderpublic com.google.type.ColorOrBuilder getTextColorOrBuilder()
Color of the text.
.google.type.Color text_color = 14;getTextColorOrBuilder in interface Document.Page.Token.StyleInfoOrBuilderpublic boolean hasBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;hasBackgroundColor in interface Document.Page.Token.StyleInfoOrBuilderpublic com.google.type.Color getBackgroundColor()
Color of the background.
.google.type.Color background_color = 15;getBackgroundColor in interface Document.Page.Token.StyleInfoOrBuilderpublic com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Color of the background.
.google.type.Color background_color = 15;getBackgroundColorOrBuilder in interface Document.Page.Token.StyleInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Document.Page.Token.StyleInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Page.Token.StyleInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Page.Token.StyleInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Page.Token.StyleInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Page.Token.StyleInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.Page.Token.StyleInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Page.Token.StyleInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Page.Token.StyleInfo.Builder newBuilder()
public static Document.Page.Token.StyleInfo.Builder newBuilder(Document.Page.Token.StyleInfo prototype)
public Document.Page.Token.StyleInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Page.Token.StyleInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.Page.Token.StyleInfo getDefaultInstance()
public static com.google.protobuf.Parser<Document.Page.Token.StyleInfo> parser()
public com.google.protobuf.Parser<Document.Page.Token.StyleInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.Page.Token.StyleInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.