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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Text.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
---|
Type | Description |
Text | |
buildPartial()
public Text buildPartial()
Returns |
---|
Type | Description |
Text | |
clear()
public Text.Builder clear()
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)
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)
Overrides
clone()
public Text.Builder clone()
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()
Overrides
getFormat()
public Text.Format getFormat()
How the text content is formatted.
.google.monitoring.dashboard.v1.Text.Format format = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Text other)
public Text.Builder mergeFrom(Text other)
Parameter |
---|
Name | Description |
other | Text
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Text.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Text.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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)
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)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides