Class Text.Builder (2.44.0)

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

A widget that displays textual content.

Protobuf type google.monitoring.dashboard.v1.Text

Implements

TextOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Text build()
Returns
Type Description
Text

buildPartial()

public Text buildPartial()
Returns
Type Description
Text

clear()

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

clearContent()

public Text.Builder clearContent()

The text content to be displayed.

string content = 1;

Returns
Type Description
Text.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public Text.Builder clearFormat()

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Returns
Type Description
Text.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStyle()

public Text.Builder clearStyle()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.Builder

clone()

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

getContent()

public String getContent()

The text content to be displayed.

string content = 1;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The text content to be displayed.

string content = 1;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public Text getDefaultInstanceForType()
Returns
Type Description
Text

getDescriptorForType()

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

getFormat()

public Text.Format getFormat()

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Returns
Type Description
Text.Format

The format.

getFormatValue()

public int getFormatValue()

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Returns
Type Description
int

The enum numeric value on the wire for format.

getStyle()

public Text.TextStyle getStyle()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.TextStyle

The style.

getStyleBuilder()

public Text.TextStyle.Builder getStyleBuilder()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.TextStyle.Builder

getStyleOrBuilder()

public Text.TextStyleOrBuilder getStyleOrBuilder()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.TextStyleOrBuilder

hasStyle()

public boolean hasStyle()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
boolean

Whether the style field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Text other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStyle(Text.TextStyle value)

public Text.Builder mergeStyle(Text.TextStyle value)

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Parameter
Name Description
value Text.TextStyle
Returns
Type Description
Text.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContent(String value)

public Text.Builder setContent(String value)

The text content to be displayed.

string content = 1;

Parameter
Name Description
value String

The content to set.

Returns
Type Description
Text.Builder

This builder for chaining.

setContentBytes(ByteString value)

public Text.Builder setContentBytes(ByteString value)

The text content to be displayed.

string content = 1;

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
Text.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(Text.Format value)

public Text.Builder setFormat(Text.Format value)

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Parameter
Name Description
value Text.Format

The format to set.

Returns
Type Description
Text.Builder

This builder for chaining.

setFormatValue(int value)

public Text.Builder setFormatValue(int value)

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Text.Builder

This builder for chaining.

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

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

setStyle(Text.TextStyle value)

public Text.Builder setStyle(Text.TextStyle value)

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Parameter
Name Description
value Text.TextStyle
Returns
Type Description
Text.Builder

setStyle(Text.TextStyle.Builder builderForValue)

public Text.Builder setStyle(Text.TextStyle.Builder builderForValue)

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Parameter
Name Description
builderForValue Text.TextStyle.Builder
Returns
Type Description
Text.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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