Class WidgetMarkup.TextParagraph.Builder (0.6.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WidgetMarkup.TextParagraph build()
Returns
Type Description
WidgetMarkup.TextParagraph

buildPartial()

public WidgetMarkup.TextParagraph buildPartial()
Returns
Type Description
WidgetMarkup.TextParagraph

clear()

public WidgetMarkup.TextParagraph.Builder clear()
Returns
Type Description
WidgetMarkup.TextParagraph.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public WidgetMarkup.TextParagraph.Builder clearText()

string text = 1;

Returns
Type Description
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

clone()

public WidgetMarkup.TextParagraph.Builder clone()
Returns
Type Description
WidgetMarkup.TextParagraph.Builder
Overrides

getDefaultInstanceForType()

public WidgetMarkup.TextParagraph getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup.TextParagraph

getDescriptorForType()

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

getText()

public String getText()

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetMarkup.TextParagraph other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.TextParagraph.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WidgetMarkup.TextParagraph.Builder
Overrides

setText(String value)

public WidgetMarkup.TextParagraph.Builder setText(String value)

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

setTextBytes(ByteString value)

public WidgetMarkup.TextParagraph.Builder setTextBytes(ByteString value)

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
WidgetMarkup.TextParagraph.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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