public static final class Document.Style.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder> implements Document.StyleOrBuilder
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.Protobuf type
google.cloud.documentai.v1beta2.Document.Style| Modifier and Type | Method and Description |
|---|---|
Document.Style.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Style |
build() |
Document.Style |
buildPartial() |
Document.Style.Builder |
clear() |
Document.Style.Builder |
clearBackgroundColor()
Text background color.
|
Document.Style.Builder |
clearColor()
Text color.
|
Document.Style.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.Style.Builder |
clearFontFamily()
Font family such as `Arial`, `Times New Roman`.
|
Document.Style.Builder |
clearFontSize()
Font size.
|
Document.Style.Builder |
clearFontWeight()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
|
Document.Style.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.Style.Builder |
clearTextAnchor()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.Style.Builder |
clearTextDecoration()
[Text
decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
|
Document.Style.Builder |
clearTextStyle()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
|
Document.Style.Builder |
clone() |
com.google.type.Color |
getBackgroundColor()
Text background color.
|
com.google.type.Color.Builder |
getBackgroundColorBuilder()
Text background color.
|
com.google.type.ColorOrBuilder |
getBackgroundColorOrBuilder()
Text background color.
|
com.google.type.Color |
getColor()
Text color.
|
com.google.type.Color.Builder |
getColorBuilder()
Text color.
|
com.google.type.ColorOrBuilder |
getColorOrBuilder()
Text color.
|
Document.Style |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.FontSize.Builder |
getFontSizeBuilder()
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).
|
Document.TextAnchor |
getTextAnchor()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.Builder |
getTextAnchorBuilder()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.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.
|
boolean |
hasTextAnchor()
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.Style.Builder |
mergeBackgroundColor(com.google.type.Color value)
Text background color.
|
Document.Style.Builder |
mergeColor(com.google.type.Color value)
Text color.
|
Document.Style.Builder |
mergeFontSize(Document.Style.FontSize value)
Font size.
|
Document.Style.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.Style.Builder |
mergeFrom(Document.Style other) |
Document.Style.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.Style.Builder |
mergeTextAnchor(Document.TextAnchor value)
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.Style.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Style.Builder |
setBackgroundColor(com.google.type.Color.Builder builderForValue)
Text background color.
|
Document.Style.Builder |
setBackgroundColor(com.google.type.Color value)
Text background color.
|
Document.Style.Builder |
setColor(com.google.type.Color.Builder builderForValue)
Text color.
|
Document.Style.Builder |
setColor(com.google.type.Color value)
Text color.
|
Document.Style.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Style.Builder |
setFontFamily(String value)
Font family such as `Arial`, `Times New Roman`.
|
Document.Style.Builder |
setFontFamilyBytes(com.google.protobuf.ByteString value)
Font family such as `Arial`, `Times New Roman`.
|
Document.Style.Builder |
setFontSize(Document.Style.FontSize.Builder builderForValue)
Font size.
|
Document.Style.Builder |
setFontSize(Document.Style.FontSize value)
Font size.
|
Document.Style.Builder |
setFontWeight(String value)
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
|
Document.Style.Builder |
setFontWeightBytes(com.google.protobuf.ByteString value)
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
|
Document.Style.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.Style.Builder |
setTextAnchor(Document.TextAnchor.Builder builderForValue)
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.Style.Builder |
setTextAnchor(Document.TextAnchor value)
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.Style.Builder |
setTextDecoration(String value)
[Text
decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
|
Document.Style.Builder |
setTextDecorationBytes(com.google.protobuf.ByteString value)
[Text
decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
|
Document.Style.Builder |
setTextStyle(String value)
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
|
Document.Style.Builder |
setTextStyleBytes(com.google.protobuf.ByteString value)
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
|
Document.Style.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.Style build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.Style buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Style.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Style.Builder>public Document.Style.Builder mergeFrom(Document.Style other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public Document.Style.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Style.Builder>IOExceptionpublic boolean hasTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.StyleOrBuilderpublic Document.TextAnchor getTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.StyleOrBuilderpublic Document.Style.Builder setTextAnchor(Document.TextAnchor value)
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;public Document.Style.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;public Document.Style.Builder mergeTextAnchor(Document.TextAnchor value)
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;public Document.Style.Builder clearTextAnchor()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;public Document.TextAnchor.Builder getTextAnchorBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.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 Document.Style.Builder setColor(com.google.type.Color value)
Text color.
.google.type.Color color = 2;public Document.Style.Builder setColor(com.google.type.Color.Builder builderForValue)
Text color.
.google.type.Color color = 2;public Document.Style.Builder mergeColor(com.google.type.Color value)
Text color.
.google.type.Color color = 2;public Document.Style.Builder clearColor()
Text color.
.google.type.Color color = 2;public com.google.type.Color.Builder getColorBuilder()
Text color.
.google.type.Color color = 2;public 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 Document.Style.Builder setBackgroundColor(com.google.type.Color value)
Text background color.
.google.type.Color background_color = 3;public Document.Style.Builder setBackgroundColor(com.google.type.Color.Builder builderForValue)
Text background color.
.google.type.Color background_color = 3;public Document.Style.Builder mergeBackgroundColor(com.google.type.Color value)
Text background color.
.google.type.Color background_color = 3;public Document.Style.Builder clearBackgroundColor()
Text background color.
.google.type.Color background_color = 3;public com.google.type.Color.Builder getBackgroundColorBuilder()
Text background color.
.google.type.Color background_color = 3;public 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 Document.Style.Builder setFontWeight(String value)
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;value - The fontWeight to set.public Document.Style.Builder clearFontWeight()
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;public Document.Style.Builder setFontWeightBytes(com.google.protobuf.ByteString value)
[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.
string font_weight = 4;value - The bytes for fontWeight to set.public 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 Document.Style.Builder setTextStyle(String value)
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;value - The textStyle to set.public Document.Style.Builder clearTextStyle()
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;public Document.Style.Builder setTextStyleBytes(com.google.protobuf.ByteString value)
[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.
string text_style = 5;value - The bytes for textStyle to set.public 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 Document.Style.Builder setTextDecoration(String value)
[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;value - The textDecoration to set.public Document.Style.Builder clearTextDecoration()
[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;public Document.Style.Builder setTextDecorationBytes(com.google.protobuf.ByteString value)
[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;value - The bytes for textDecoration to set.public boolean hasFontSize()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;hasFontSize in interface Document.StyleOrBuilderpublic Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;getFontSize in interface Document.StyleOrBuilderpublic Document.Style.Builder setFontSize(Document.Style.FontSize value)
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;public Document.Style.Builder setFontSize(Document.Style.FontSize.Builder builderForValue)
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;public Document.Style.Builder mergeFontSize(Document.Style.FontSize value)
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;public Document.Style.Builder clearFontSize()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;public Document.Style.FontSize.Builder getFontSizeBuilder()
Font size.
.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;public Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1beta2.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 Document.Style.Builder setFontFamily(String value)
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;value - The fontFamily to set.public Document.Style.Builder clearFontFamily()
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;public Document.Style.Builder setFontFamilyBytes(com.google.protobuf.ByteString value)
Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;value - The bytes for fontFamily to set.public final Document.Style.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>public final Document.Style.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Style.Builder>Copyright © 2023 Google LLC. All rights reserved.