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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Text build()
Returns
TypeDescription
Text

buildPartial()

public Text buildPartial()
Returns
TypeDescription
Text

clear()

public Text.Builder clear()
Returns
TypeDescription
Text.Builder
Overrides

clearContent()

public Text.Builder clearContent()

The text content to be displayed.

string content = 1;

Returns
TypeDescription
Text.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public Text.Builder clearFormat()

How the text content is formatted.

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

Returns
TypeDescription
Text.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContent()

public String getContent()

The text content to be displayed.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public ByteString getContentBytes()

The text content to be displayed.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public Text getDefaultInstanceForType()
Returns
TypeDescription
Text

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public Text.Format getFormat()

How the text content is formatted.

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

Returns
TypeDescription
Text.Format

The format.

getFormatValue()

public int getFormatValue()

How the text content is formatted.

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

Returns
TypeDescription
int

The enum numeric value on the wire for format.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Text other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Text.Builder
Overrides

setContent(String value)

public Text.Builder setContent(String value)

The text content to be displayed.

string content = 1;

Parameter
NameDescription
valueString

The content to set.

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

The bytes for content to set.

Returns
TypeDescription
Text.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The format to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Text.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Text.Builder
Overrides