Class WidgetMarkup.TextParagraph.Builder (0.5.0)

public static final class WidgetMarkup.TextParagraph.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.TextParagraph.Builder> implements WidgetMarkup.TextParagraphOrBuilder

A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

Protobuf type google.chat.v1.WidgetMarkup.TextParagraph

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WidgetMarkup.TextParagraph build()
Returns
TypeDescription
WidgetMarkup.TextParagraph

buildPartial()

public WidgetMarkup.TextParagraph buildPartial()
Returns
TypeDescription
WidgetMarkup.TextParagraph

clear()

public WidgetMarkup.TextParagraph.Builder clear()
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public WidgetMarkup.TextParagraph.Builder clearText()

string text = 1;

Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

clone()

public WidgetMarkup.TextParagraph.Builder clone()
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder
Overrides

getDefaultInstanceForType()

public WidgetMarkup.TextParagraph getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.TextParagraph

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getText()

public String getText()

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup.TextParagraph other)

public WidgetMarkup.TextParagraph.Builder mergeFrom(WidgetMarkup.TextParagraph other)
Parameter
NameDescription
otherWidgetMarkup.TextParagraph
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.TextParagraph.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder
Overrides

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

public WidgetMarkup.TextParagraph.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder
Overrides

setText(String value)

public WidgetMarkup.TextParagraph.Builder setText(String value)

string text = 1;

Parameter
NameDescription
valueString

The text to set.

Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

setTextBytes(ByteString value)

public WidgetMarkup.TextParagraph.Builder setTextBytes(ByteString value)

string text = 1;

Parameter
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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