Class Text.TextStyle.Builder (2.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Text.TextStyle build()
Returns
TypeDescription
Text.TextStyle

buildPartial()

public Text.TextStyle buildPartial()
Returns
TypeDescription
Text.TextStyle

clear()

public Text.TextStyle.Builder clear()
Returns
TypeDescription
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
TypeDescription
Text.TextStyle.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Text.TextStyle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Text.TextStyle.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Text.TextStyle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Text.TextStyle.Builder

This builder for chaining.

clone()

public Text.TextStyle.Builder clone()
Returns
TypeDescription
Text.TextStyle.Builder
Overrides

getBackgroundColor()

public String getBackgroundColor()

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

string background_color = 1;

Returns
TypeDescription
String

The backgroundColor.

getBackgroundColorBytes()

public ByteString getBackgroundColorBytes()

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

string background_color = 1;

Returns
TypeDescription
ByteString

The bytes for backgroundColor.

getDefaultInstanceForType()

public Text.TextStyle getDefaultInstanceForType()
Returns
TypeDescription
Text.TextStyle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The textColor.

getTextColorBytes()

public ByteString getTextColorBytes()

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

string text_color = 2;

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

The enum numeric value on the wire for verticalAlignment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Text.TextStyle other)

public Text.TextStyle.Builder mergeFrom(Text.TextStyle other)
Parameter
NameDescription
otherText.TextStyle
Returns
TypeDescription
Text.TextStyle.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Text.TextStyle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Text.TextStyle.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Text.TextStyle.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Text.TextStyle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The backgroundColor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for backgroundColor to set.

Returns
TypeDescription
Text.TextStyle.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Text.TextStyle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueText.TextStyle.FontSize

The fontSize to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueText.TextStyle.HorizontalAlignment

The horizontalAlignment to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueText.TextStyle.PaddingSize

The padding to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueText.TextStyle.PointerLocation

The pointerLocation to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The textColor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for textColor to set.

Returns
TypeDescription
Text.TextStyle.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Text.TextStyle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueText.TextStyle.VerticalAlignment

The verticalAlignment to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Text.TextStyle.Builder

This builder for chaining.