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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Text.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Text buildPartial()
Returns
clear()
public Text.Builder clear()
Returns
Overrides
clearContent()
public Text.Builder clearContent()
The text content to be displayed.
string content = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public Text.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFormat()
public Text.Builder clearFormat()
How the text content is formatted.
.google.monitoring.dashboard.v1.Text.Format format = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Text.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Text.Builder clone()
Returns
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
getDefaultInstanceForType()
public Text getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFormat()
public Text.Format getFormat()
How the text content is formatted.
.google.monitoring.dashboard.v1.Text.Format format = 2;
Returns
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Text other)
public Text.Builder mergeFrom(Text other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Text.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Text.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public Text.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Text.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides