Package com.google.cloud.documentai.v1
Class Document.Style
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.Document.Style
- All Implemented Interfaces:
Document.StyleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Document
public static final class Document.Style
extends com.google.protobuf.GeneratedMessage
implements Document.StyleOrBuilder
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.Protobuf type
google.cloud.documentai.v1.Document.Style- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAnnotation for common text style attributes.static final classFont size with unit.static interfaceNested 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 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 TypeMethodDescriptionbooleanText background color.Text background color.getColor()Text color.Text color.static Document.Stylestatic final com.google.protobuf.Descriptors.DescriptorFont family such as `Arial`, `Times New Roman`.com.google.protobuf.ByteStringFont family such as `Arial`, `Times New Roman`.Font size.Font size.[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).com.google.protobuf.ByteString[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).com.google.protobuf.Parser<Document.Style>intText anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).com.google.protobuf.ByteString[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).com.google.protobuf.ByteString[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).booleanText background color.booleanhasColor()Text color.booleanFont size.inthashCode()booleanText anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Document.Style.Builderstatic Document.Style.BuildernewBuilder(Document.Style prototype) protected Document.Style.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Document.StyleparseDelimitedFrom(InputStream input) static Document.StyleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.StyleparseFrom(byte[] data) static Document.StyleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.StyleparseFrom(com.google.protobuf.ByteString data) static Document.StyleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.StyleparseFrom(com.google.protobuf.CodedInputStream input) static Document.StyleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.StyleparseFrom(InputStream input) static Document.StyleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.StyleparseFrom(ByteBuffer data) static Document.StyleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Document.Style>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
-
TEXT_ANCHOR_FIELD_NUMBER
public static final int TEXT_ANCHOR_FIELD_NUMBER- See Also:
-
COLOR_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER- See Also:
-
BACKGROUND_COLOR_FIELD_NUMBER
public static final int BACKGROUND_COLOR_FIELD_NUMBER- See Also:
-
FONT_WEIGHT_FIELD_NUMBER
public static final int FONT_WEIGHT_FIELD_NUMBER- See Also:
-
TEXT_STYLE_FIELD_NUMBER
public static final int TEXT_STYLE_FIELD_NUMBER- See Also:
-
TEXT_DECORATION_FIELD_NUMBER
public static final int TEXT_DECORATION_FIELD_NUMBER- See Also:
-
FONT_SIZE_FIELD_NUMBER
public static final int FONT_SIZE_FIELD_NUMBER- See Also:
-
FONT_FAMILY_FIELD_NUMBER
public static final int FONT_FAMILY_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
-
hasTextAnchor
public boolean hasTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
hasTextAnchorin interfaceDocument.StyleOrBuilder- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorin interfaceDocument.StyleOrBuilder- Returns:
- The textAnchor.
-
getTextAnchorOrBuilder
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorOrBuilderin interfaceDocument.StyleOrBuilder
-
hasColor
public boolean hasColor()Text color.
.google.type.Color color = 2;- Specified by:
hasColorin interfaceDocument.StyleOrBuilder- Returns:
- Whether the color field is set.
-
getColor
Text color.
.google.type.Color color = 2;- Specified by:
getColorin interfaceDocument.StyleOrBuilder- Returns:
- The color.
-
getColorOrBuilder
Text color.
.google.type.Color color = 2;- Specified by:
getColorOrBuilderin interfaceDocument.StyleOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()Text background color.
.google.type.Color background_color = 3;- Specified by:
hasBackgroundColorin interfaceDocument.StyleOrBuilder- Returns:
- Whether the backgroundColor field is set.
-
getBackgroundColor
Text background color.
.google.type.Color background_color = 3;- Specified by:
getBackgroundColorin interfaceDocument.StyleOrBuilder- Returns:
- The backgroundColor.
-
getBackgroundColorOrBuilder
Text background color.
.google.type.Color background_color = 3;- Specified by:
getBackgroundColorOrBuilderin interfaceDocument.StyleOrBuilder
-
getFontWeight
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;- Specified by:
getFontWeightin interfaceDocument.StyleOrBuilder- Returns:
- The fontWeight.
-
getFontWeightBytes
public 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;- Specified by:
getFontWeightBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for fontWeight.
-
getTextStyle
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;- Specified by:
getTextStylein interfaceDocument.StyleOrBuilder- Returns:
- The textStyle.
-
getTextStyleBytes
public 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;- Specified by:
getTextStyleBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for textStyle.
-
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;- Specified by:
getTextDecorationin interfaceDocument.StyleOrBuilder- Returns:
- The textDecoration.
-
getTextDecorationBytes
public 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;- Specified by:
getTextDecorationBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for textDecoration.
-
hasFontSize
public boolean hasFontSize()Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;- Specified by:
hasFontSizein interfaceDocument.StyleOrBuilder- Returns:
- Whether the fontSize field is set.
-
getFontSize
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;- Specified by:
getFontSizein interfaceDocument.StyleOrBuilder- Returns:
- The fontSize.
-
getFontSizeOrBuilder
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;- Specified by:
getFontSizeOrBuilderin interfaceDocument.StyleOrBuilder
-
getFontFamily
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;- Specified by:
getFontFamilyin interfaceDocument.StyleOrBuilder- Returns:
- The fontFamily.
-
getFontFamilyBytes
public 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;- Specified by:
getFontFamilyBytesin interfaceDocument.StyleOrBuilder- Returns:
- The bytes for fontFamily.
-
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.Style parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Style parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Style parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Style 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.Style parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Style 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.Style parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Style parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Document.Style parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Document.Style 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Style.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
-