Class Document.Style.Builder (2.11.0)

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.v1beta2.Document.Style

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Style.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Style.Builder
Overrides

build()

public Document.Style build()
Returns
TypeDescription
Document.Style

buildPartial()

public Document.Style buildPartial()
Returns
TypeDescription
Document.Style

clear()

public Document.Style.Builder clear()
Returns
TypeDescription
Document.Style.Builder
Overrides

clearBackgroundColor()

public Document.Style.Builder clearBackgroundColor()

Text background color.

.google.type.Color background_color = 3;

Returns
TypeDescription
Document.Style.Builder

clearColor()

public Document.Style.Builder clearColor()

Text color.

.google.type.Color color = 2;

Returns
TypeDescription
Document.Style.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.Style.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Style.Builder
Overrides

clearFontSize()

public Document.Style.Builder clearFontSize()

Font size.

.google.cloud.documentai.v1beta2.Document.Style.FontSize font_size = 7;

Returns
TypeDescription
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;

Returns
TypeDescription
Document.Style.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Style.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Document.Style.Builder
Overrides

clearTextAnchor()

public Document.Style.Builder clearTextAnchor()

Text anchor indexing into the Document.text.

.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
Document.Style.Builder

This builder for chaining.

clone()

public Document.Style.Builder clone()
Returns
TypeDescription
Document.Style.Builder
Overrides

getBackgroundColor()

public Color getBackgroundColor()

Text background color.

.google.type.Color background_color = 3;

Returns
TypeDescription
com.google.type.Color

The backgroundColor.

getBackgroundColorBuilder()

public Color.Builder getBackgroundColorBuilder()

Text background color.

.google.type.Color background_color = 3;

Returns
TypeDescription
com.google.type.Color.Builder