- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public static final class Document.Style.Builder extends 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.v1.Document.Style
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.Style.BuilderImplements
Document.StyleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Style.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Style.Builder |
build()
public Document.Style build()
Type | Description |
Document.Style |
buildPartial()
public Document.Style buildPartial()
Type | Description |
Document.Style |
clear()
public Document.Style.Builder clear()
Type | Description |
Document.Style.Builder |
clearBackgroundColor()
public Document.Style.Builder clearBackgroundColor()
Text background color.
.google.type.Color background_color = 3;
Type | Description |
Document.Style.Builder |
clearColor()
public Document.Style.Builder clearColor()
Text color.
.google.type.Color color = 2;
Type | Description |
Document.Style.Builder |
clearField(Descriptors.FieldDescriptor field)
public Document.Style.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Document.Style.Builder |
clearFontFamily()
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;
Type | Description |
Document.Style.Builder | This builder for chaining. |
clearFontSize()
public Document.Style.Builder clearFontSize()
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Type | Description |
Document.Style.Builder |
clearFontWeight()
public Document.Style.Builder clearFontWeight()
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;
Type | Description |
Document.Style.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Style.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Document.Style.Builder |
clearTextAnchor()
public Document.Style.Builder clearTextAnchor()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Type | Description |
Document.Style.Builder |
clearTextDecoration()
public Document.Style.Builder clearTextDecoration()
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;
Type | Description |
Document.Style.Builder | This builder for chaining. |
clearTextStyle()
public Document.Style.Builder clearTextStyle()
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;
Type | Description |
Document.Style.Builder | This builder for chaining. |
clone()
public Document.Style.Builder clone()
Type | Description |
Document.Style.Builder |
getBackgroundColor()
public Color getBackgroundColor()
Text background color.
.google.type.Color background_color = 3;
Type | Description |
com.google.type.Color | The backgroundColor. |
getBackgroundColorBuilder()
public Color.Builder getBackgroundColorBuilder()
Text background color.
.google.type.Color background_color = 3;
Type | Description |
com.google.type.Color.Builder |
getBackgroundColorOrBuilder()
public ColorOrBuilder getBackgroundColorOrBuilder()
Text background color.
.google.type.Color background_color = 3;
Type | Description |
com.google.type.ColorOrBuilder |
getColor()
public Color getColor()
Text color.
.google.type.Color color = 2;
Type | Description |
com.google.type.Color | The color. |
getColorBuilder()
public Color.Builder getColorBuilder()
Text color.
.google.type.Color color = 2;
Type | Description |
com.google.type.Color.Builder |
getColorOrBuilder()
public ColorOrBuilder getColorOrBuilder()
Text color.
.google.type.Color color = 2;
Type | Description |
com.google.type.ColorOrBuilder |
getDefaultInstanceForType()
public Document.Style getDefaultInstanceForType()
Type | Description |
Document.Style |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFontFamily()
public String getFontFamily()
Font family such as Arial
, Times New Roman
.
https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;
Type | Description |
String | The fontFamily. |
getFontFamilyBytes()
public ByteString getFontFamilyBytes()
Font family such as Arial
, Times New Roman
.
https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;
Type | Description |
ByteString | The bytes for fontFamily. |
getFontSize()
public Document.Style.FontSize getFontSize()
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Type | Description |
Document.Style.FontSize | The fontSize. |
getFontSizeBuilder()
public Document.Style.FontSize.Builder getFontSizeBuilder()
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Type | Description |
Document.Style.FontSize.Builder |
getFontSizeOrBuilder()
public Document.Style.FontSizeOrBuilder getFontSizeOrBuilder()
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Type | Description |
Document.Style.FontSizeOrBuilder |
getFontWeight()
public String getFontWeight()
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;
Type | Description |
String | The fontWeight. |
getFontWeightBytes()
public ByteString getFontWeightBytes()
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;
Type | Description |
ByteString | The bytes for fontWeight. |
getTextAnchor()
public Document.TextAnchor getTextAnchor()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Type | Description |
Document.TextAnchor | The textAnchor. |
getTextAnchorBuilder()
public Document.TextAnchor.Builder getTextAnchorBuilder()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Type | Description |
Document.TextAnchor.Builder |
getTextAnchorOrBuilder()
public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Type | Description |
Document.TextAnchorOrBuilder |
getTextDecoration()
public String getTextDecoration()
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;
Type | Description |
String | The textDecoration. |
getTextDecorationBytes()
public ByteString getTextDecorationBytes()
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;
Type | Description |
ByteString | The bytes for textDecoration. |
getTextStyle()
public String getTextStyle()
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;
Type | Description |
String | The textStyle. |
getTextStyleBytes()
public ByteString getTextStyleBytes()
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;
Type | Description |
ByteString | The bytes for textStyle. |
hasBackgroundColor()
public boolean hasBackgroundColor()
Text background color.
.google.type.Color background_color = 3;
Type | Description |
boolean | Whether the backgroundColor field is set. |
hasColor()
public boolean hasColor()
Text color.
.google.type.Color color = 2;
Type | Description |
boolean | Whether the color field is set. |
hasFontSize()
public boolean hasFontSize()
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Type | Description |
boolean | Whether the fontSize field is set. |
hasTextAnchor()
public boolean hasTextAnchor()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Type | Description |
boolean | Whether the textAnchor field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBackgroundColor(Color value)
public Document.Style.Builder mergeBackgroundColor(Color value)
Text background color.
.google.type.Color background_color = 3;
Name | Description |
value | com.google.type.Color |
Type | Description |
Document.Style.Builder |
mergeColor(Color value)
public Document.Style.Builder mergeColor(Color value)
Text color.
.google.type.Color color = 2;
Name | Description |
value | com.google.type.Color |
Type | Description |
Document.Style.Builder |
mergeFontSize(Document.Style.FontSize value)
public Document.Style.Builder mergeFontSize(Document.Style.FontSize value)
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Name | Description |
value | Document.Style.FontSize |
Type | Description |
Document.Style.Builder |
mergeFrom(Document.Style other)
public Document.Style.Builder mergeFrom(Document.Style other)
Name | Description |
other | Document.Style |
Type | Description |
Document.Style.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Style.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Document.Style.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Document.Style.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Document.Style.Builder |
mergeTextAnchor(Document.TextAnchor value)
public Document.Style.Builder mergeTextAnchor(Document.TextAnchor value)
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Name | Description |
value | Document.TextAnchor |
Type | Description |
Document.Style.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Style.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Style.Builder |
setBackgroundColor(Color value)
public Document.Style.Builder setBackgroundColor(Color value)
Text background color.
.google.type.Color background_color = 3;
Name | Description |
value | com.google.type.Color |
Type | Description |
Document.Style.Builder |
setBackgroundColor(Color.Builder builderForValue)
public Document.Style.Builder setBackgroundColor(Color.Builder builderForValue)
Text background color.
.google.type.Color background_color = 3;
Name | Description |
builderForValue | com.google.type.Color.Builder |
Type | Description |
Document.Style.Builder |
setColor(Color value)
public Document.Style.Builder setColor(Color value)
Text color.
.google.type.Color color = 2;
Name | Description |
value | com.google.type.Color |
Type | Description |
Document.Style.Builder |
setColor(Color.Builder builderForValue)
public Document.Style.Builder setColor(Color.Builder builderForValue)
Text color.
.google.type.Color color = 2;
Name | Description |
builderForValue | com.google.type.Color.Builder |
Type | Description |
Document.Style.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Style.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Style.Builder |
setFontFamily(String value)
public 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;
Name | Description |
value | String The fontFamily to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setFontFamilyBytes(ByteString value)
public Document.Style.Builder setFontFamilyBytes(ByteString value)
Font family such as Arial
, Times New Roman
.
https://www.w3schools.com/cssref/pr_font_font-family.asp
string font_family = 8;
Name | Description |
value | ByteString The bytes for fontFamily to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setFontSize(Document.Style.FontSize value)
public Document.Style.Builder setFontSize(Document.Style.FontSize value)
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Name | Description |
value | Document.Style.FontSize |
Type | Description |
Document.Style.Builder |
setFontSize(Document.Style.FontSize.Builder builderForValue)
public Document.Style.Builder setFontSize(Document.Style.FontSize.Builder builderForValue)
Font size.
.google.cloud.documentai.v1.Document.Style.FontSize font_size = 7;
Name | Description |
builderForValue | Document.Style.FontSize.Builder |
Type | Description |
Document.Style.Builder |
setFontWeight(String value)
public Document.Style.Builder setFontWeight(String value)
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;
Name | Description |
value | String The fontWeight to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setFontWeightBytes(ByteString value)
public Document.Style.Builder setFontWeightBytes(ByteString value)
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
string font_weight = 4;
Name | Description |
value | ByteString The bytes for fontWeight to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Style.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Document.Style.Builder |
setTextAnchor(Document.TextAnchor value)
public Document.Style.Builder setTextAnchor(Document.TextAnchor value)
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Name | Description |
value | Document.TextAnchor |
Type | Description |
Document.Style.Builder |
setTextAnchor(Document.TextAnchor.Builder builderForValue)
public Document.Style.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
Name | Description |
builderForValue | Document.TextAnchor.Builder |
Type | Description |
Document.Style.Builder |
setTextDecoration(String value)
public Document.Style.Builder setTextDecoration(String value)
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;
Name | Description |
value | String The textDecoration to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setTextDecorationBytes(ByteString value)
public Document.Style.Builder setTextDecorationBytes(ByteString value)
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
string text_decoration = 6;
Name | Description |
value | ByteString The bytes for textDecoration to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setTextStyle(String value)
public Document.Style.Builder setTextStyle(String value)
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;
Name | Description |
value | String The textStyle to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setTextStyleBytes(ByteString value)
public Document.Style.Builder setTextStyleBytes(ByteString value)
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
string text_style = 5;
Name | Description |
value | ByteString The bytes for textStyle to set. |
Type | Description |
Document.Style.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Style.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Style.Builder |