Class Text.TextStyle.Builder (2.44.0)

public static final class Text.TextStyle.Builder extends GeneratedMessageV3.Builder<Text.TextStyle.Builder> implements Text.TextStyleOrBuilder

Properties that determine how the title and content are styled

Protobuf type google.monitoring.dashboard.v1.Text.TextStyle

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Text.TextStyle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Text.TextStyle.Builder
Overrides

build()

public Text.TextStyle build()
Returns
Type Description
Text.TextStyle

buildPartial()

public Text.TextStyle buildPartial()
Returns
Type Description
Text.TextStyle

clear()

public Text.TextStyle.Builder clear()
Returns
Type Description
Text.TextStyle.Builder
Overrides

clearBackgroundColor()

public Text.TextStyle.Builder clearBackgroundColor()

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Text.TextStyle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Text.TextStyle.Builder
Overrides

clearFontSize()

public Text.TextStyle.Builder clearFontSize()

Font sizes for both the title and content. The title will still be larger relative to the content.

.google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearHorizontalAlignment()

public Text.TextStyle.Builder clearHorizontalAlignment()

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Text.TextStyle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Text.TextStyle.Builder
Overrides

clearPadding()

public Text.TextStyle.Builder clearPadding()

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearPointerLocation()

public Text.TextStyle.Builder clearPointerLocation()

The pointer location for this widget (also sometimes called a "tail")

.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearTextColor()

public Text.TextStyle.Builder clearTextColor()

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clearVerticalAlignment()

public Text.TextStyle.Builder clearVerticalAlignment()

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

clone()

public Text.TextStyle.Builder clone()
Returns
Type Description
Text.TextStyle.Builder
Overrides

getBackgroundColor()

public String getBackgroundColor()

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Returns
Type Description
String

The backgroundColor.

getBackgroundColorBytes()

public ByteString getBackgroundColorBytes()

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Returns
Type Description
ByteString

The bytes for backgroundColor.

getDefaultInstanceForType()

public Text.TextStyle getDefaultInstanceForType()
Returns
Type Description
Text.TextStyle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFontSize()

public Text.TextStyle.FontSize getFontSize()

Font sizes for both the title and content. The title will still be larger relative to the content.

.google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;

Returns
Type Description
Text.TextStyle.FontSize

The fontSize.

getFontSizeValue()

public int getFontSizeValue()

Font sizes for both the title and content. The title will still be larger relative to the content.

.google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;

Returns
Type Description
int

The enum numeric value on the wire for fontSize.

getHorizontalAlignment()

public Text.TextStyle.HorizontalAlignment getHorizontalAlignment()

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Returns
Type Description
Text.TextStyle.HorizontalAlignment

The horizontalAlignment.

getHorizontalAlignmentValue()

public int getHorizontalAlignmentValue()

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Returns
Type Description
int

The enum numeric value on the wire for horizontalAlignment.

getPadding()

public Text.TextStyle.PaddingSize getPadding()

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Returns
Type Description
Text.TextStyle.PaddingSize

The padding.

getPaddingValue()

public int getPaddingValue()

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Returns
Type Description
int

The enum numeric value on the wire for padding.

getPointerLocation()

public Text.TextStyle.PointerLocation getPointerLocation()

The pointer location for this widget (also sometimes called a "tail")

.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;

Returns
Type Description
Text.TextStyle.PointerLocation

The pointerLocation.

getPointerLocationValue()

public int getPointerLocationValue()

The pointer location for this widget (also sometimes called a "tail")

.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;

Returns
Type Description
int

The enum numeric value on the wire for pointerLocation.

getTextColor()

public String getTextColor()

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Returns
Type Description
String

The textColor.

getTextColorBytes()

public ByteString getTextColorBytes()

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Returns
Type Description
ByteString

The bytes for textColor.

getVerticalAlignment()

public Text.TextStyle.VerticalAlignment getVerticalAlignment()

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Returns
Type Description
Text.TextStyle.VerticalAlignment

The verticalAlignment.

getVerticalAlignmentValue()

public int getVerticalAlignmentValue()

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Returns
Type Description
int

The enum numeric value on the wire for verticalAlignment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Text.TextStyle other)

public Text.TextStyle.Builder mergeFrom(Text.TextStyle other)
Parameter
Name Description
other Text.TextStyle
Returns
Type Description
Text.TextStyle.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Text.TextStyle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Text.TextStyle.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Text.TextStyle.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Text.TextStyle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Text.TextStyle.Builder
Overrides

setBackgroundColor(String value)

public Text.TextStyle.Builder setBackgroundColor(String value)

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Parameter
Name Description
value String

The backgroundColor to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setBackgroundColorBytes(ByteString value)

public Text.TextStyle.Builder setBackgroundColorBytes(ByteString value)

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Parameter
Name Description
value ByteString

The bytes for backgroundColor to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Text.TextStyle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Text.TextStyle.Builder
Overrides

setFontSize(Text.TextStyle.FontSize value)

public Text.TextStyle.Builder setFontSize(Text.TextStyle.FontSize value)

Font sizes for both the title and content. The title will still be larger relative to the content.

.google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;

Parameter
Name Description
value Text.TextStyle.FontSize

The fontSize to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setFontSizeValue(int value)

public Text.TextStyle.Builder setFontSizeValue(int value)

Font sizes for both the title and content. The title will still be larger relative to the content.

.google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for fontSize to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setHorizontalAlignment(Text.TextStyle.HorizontalAlignment value)

public Text.TextStyle.Builder setHorizontalAlignment(Text.TextStyle.HorizontalAlignment value)

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Parameter
Name Description
value Text.TextStyle.HorizontalAlignment

The horizontalAlignment to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setHorizontalAlignmentValue(int value)

public Text.TextStyle.Builder setHorizontalAlignmentValue(int value)

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for horizontalAlignment to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setPadding(Text.TextStyle.PaddingSize value)

public Text.TextStyle.Builder setPadding(Text.TextStyle.PaddingSize value)

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Parameter
Name Description
value Text.TextStyle.PaddingSize

The padding to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setPaddingValue(int value)

public Text.TextStyle.Builder setPaddingValue(int value)

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for padding to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setPointerLocation(Text.TextStyle.PointerLocation value)

public Text.TextStyle.Builder setPointerLocation(Text.TextStyle.PointerLocation value)

The pointer location for this widget (also sometimes called a "tail")

.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;

Parameter
Name Description
value Text.TextStyle.PointerLocation

The pointerLocation to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setPointerLocationValue(int value)

public Text.TextStyle.Builder setPointerLocationValue(int value)

The pointer location for this widget (also sometimes called a "tail")

.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;

Parameter
Name Description
value int

The enum numeric value on the wire for pointerLocation to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Text.TextStyle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Text.TextStyle.Builder
Overrides

setTextColor(String value)

public Text.TextStyle.Builder setTextColor(String value)

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Parameter
Name Description
value String

The textColor to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setTextColorBytes(ByteString value)

public Text.TextStyle.Builder setTextColorBytes(ByteString value)

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Parameter
Name Description
value ByteString

The bytes for textColor to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Text.TextStyle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Text.TextStyle.Builder
Overrides

setVerticalAlignment(Text.TextStyle.VerticalAlignment value)

public Text.TextStyle.Builder setVerticalAlignment(Text.TextStyle.VerticalAlignment value)

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Parameter
Name Description
value Text.TextStyle.VerticalAlignment

The verticalAlignment to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.

setVerticalAlignmentValue(int value)

public Text.TextStyle.Builder setVerticalAlignmentValue(int value)

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for verticalAlignment to set.

Returns
Type Description
Text.TextStyle.Builder

This builder for chaining.