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 type
google.cloud.documentai.v1beta3.Document.Style| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Style.Builder
Annotation for common text style attributes.
|
static class |
Document.Style.FontSize
Font size with unit.
|
static interface |
Document.Style.FontSizeOrBuilder |
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 |
COLOR_FIELD_NUMBER |
static int |
FONT_FAMILY_FIELD_NUMBER |
static int |
FONT_SIZE_FIELD_NUMBER |
static int |
FONT_WEIGHT_FIELD_NUMBER |
static int |
TEXT_ANCHOR_FIELD_NUMBER |
static int |
TEXT_DECORATION_FIELD_NUMBER |
static int |
TEXT_STYLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.type.Color |
getBackgroundColor()
Text background color.
|
com.google.type.ColorOrBuilder |
getBackgroundColorOrBuilder()
Text background color.
|
com.google.type.Color |
getColor()
Text color.
|
com.google.type.ColorOrBuilder |
getColorOrBuilder()
Text color.
|
static Document.Style |
getDefaultInstance() |
Document.Style |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFontFamily()
Font family such as `Arial`, `Times New Roman`.
|
com.google.protobuf.ByteString |
getFontFamilyBytes()
Font family such as `Arial`, `Times New Roman`.
|
Document.Style.FontSize |
getFontSize()
Font size.
|
Document.Style.FontSizeOrBuilder |
getFontSizeOrBuilder()
Font size.
|
String |
getFontWeight()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
|
com.google.protobuf.ByteString |
getFontWeightBytes()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
|
com.google.protobuf.Parser<Document.Style> |
getParserForType() |
int |
getSerializedSize() |
Document.TextAnchor |
getTextAnchor()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta3.Document.text].
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta3.Document.text].
|
String |
getTextDecoration()
[Text
decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
|
com.google.protobuf.ByteString |
getTextDecorationBytes()
[Text
decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
|
String |
getTextStyle()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
|
com.google.protobuf.ByteString |
getTextStyleBytes()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
|
boolean |
hasBackgroundColor()
Text background color.
|
boolean |
hasColor()
Text color.
|
boolean |
hasFontSize()
Font size.
|
int |
hashCode() |
boolean |
hasTextAnchor()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta3.Document.text].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.Style.Builder |
newBuilder() |
static Document.Style.Builder |
newBuilder(Document.Style prototype) |
Document.Style.Builder |
newBuilderForType() |
protected Document.Style.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.Style |
parseDelimitedFrom(InputStream input) |
static Document.Style |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Style |
parseFrom(byte[] data) |
static Document.Style |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Style |
parseFrom(ByteBuffer data) |
static Document.Style |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Style |
parseFrom(com.google.protobuf.ByteString data) |
static Document.Style |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Style |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.Style |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Style |
parseFrom(InputStream input) |
static Document.Style |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.Style> |
parser() |
Document.Style.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 TEXT_ANCHOR_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER
public static final int BACKGROUND_COLOR_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER
public static final int TEXT_STYLE_FIELD_NUMBER
public static final int TEXT_DECORATION_FIELD_NUMBER
public static final int FONT_SIZE_FIELD_NUMBER
public static final int FONT_FAMILY_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 boolean hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.StyleOrBuilderpublic Document.TextAnchor getTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.StyleOrBuilderpublic Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.StyleOrBuilderpublic boolean hasColor()
Text color.
.google.type.Color color = 2;hasColor in interface Document.StyleOrBuilderpublic com.google.type.Color getColor()
Text color.
.google.type.Color color = 2;getColor in interface Document.StyleOrBuilderpublic com.google.type.ColorOrBuilder getColorOrBuilder()
Text color.
.google.type.Color color = 2;getColorOrBuilder in interface Document.StyleOrBuilderpublic boolean hasBackgroundColor()
Text background color.
.google.type.Color background_color = 3;hasBackgroundColor in interface Document.StyleOrBuilderpublic com.google.type.Color getBackgroundColor()
Text background color.
.google.type.Color background_color = 3;getBackgroundColor in interface Document.StyleOrBuilderpublic com.google.type.ColorOrBuilder getBackgroundColorOrBuilder()
Text background color.
.google.type.Color background_color = 3;getBackgroundColorOrBuilder in interface Document.StyleOrBuilderpublic String getFontWeight()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;getFontWeight in interface Document.StyleOrBuilderpublic com.google.protobuf.ByteString getFontWeightBytes()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;getFontWeightBytes in interface Document.StyleOrBuilderpublic String getTextStyle()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;getTextStyle in interface Document.StyleOrBuilderpublic com.google.protobuf.ByteString getTextStyleBytes()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;getTextStyleBytes in interface Document.StyleOrBuilderpublic String getTextDecoration()
[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style>
string text_decoration = 6;getTextDecoration in interface Document.StyleOrBuilderpublic com.google.protobuf.ByteString getTextDecorationBytes()
[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style>
string text_decoration = 6;getTextDecorationBytes in interface Document.StyleOrBuilderpublic boolean hasFontSize()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;hasFontSize in interface Document.StyleOrBuilderpublic Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;getFontSize in interface Document.StyleOrBuilderpublic Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1beta3.Document.Style.FontSize font_size = 7;getFontSizeOrBuilder in interface Document.StyleOrBuilderpublic String getFontFamily()
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;getFontFamily in interface Document.StyleOrBuilderpublic com.google.protobuf.ByteString getFontFamilyBytes()
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;getFontFamilyBytes in interface Document.StyleOrBuilderpublic 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.Style parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Style parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Style parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Style parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Style parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Style parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.Style parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Style.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Style.Builder newBuilder()
public static Document.Style.Builder newBuilder(Document.Style prototype)
public Document.Style.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Style.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.Style getDefaultInstance()
public static com.google.protobuf.Parser<Document.Style> parser()
public com.google.protobuf.Parser<Document.Style> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.Style getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.