Class WidgetMarkup.TextButton.Builder (0.8.0)

public static final class WidgetMarkup.TextButton.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.TextButton.Builder> implements WidgetMarkup.TextButtonOrBuilder

A button with text and onclick action.

Protobuf type google.chat.v1.WidgetMarkup.TextButton

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOnClick()

public WidgetMarkup.TextButton.Builder clearOnClick()

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.TextButton.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public WidgetMarkup.TextButton.Builder clearText()

The text of the button.

string text = 1;

Returns
Type Description
WidgetMarkup.TextButton.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClick

The onClick.

getOnClickBuilder()

public WidgetMarkup.OnClick.Builder getOnClickBuilder()

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClick.Builder

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClickOrBuilder

getText()

public String getText()

The text of the button.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of the button.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasOnClick()

public boolean hasOnClick()

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
boolean

Whether the onClick field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetMarkup.TextButton other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOnClick(WidgetMarkup.OnClick value)

public WidgetMarkup.TextButton.Builder mergeOnClick(WidgetMarkup.OnClick value)

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
Name Description
value WidgetMarkup.OnClick
Returns
Type Description
WidgetMarkup.TextButton.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOnClick(WidgetMarkup.OnClick value)

public WidgetMarkup.TextButton.Builder setOnClick(WidgetMarkup.OnClick value)

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
Name Description
value WidgetMarkup.OnClick
Returns
Type Description
WidgetMarkup.TextButton.Builder

setOnClick(WidgetMarkup.OnClick.Builder builderForValue)

public WidgetMarkup.TextButton.Builder setOnClick(WidgetMarkup.OnClick.Builder builderForValue)

The onclick action of the button.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Parameter
Name Description
builderForValue WidgetMarkup.OnClick.Builder
Returns
Type Description
WidgetMarkup.TextButton.Builder

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

public WidgetMarkup.TextButton.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WidgetMarkup.TextButton.Builder
Overrides

setText(String value)

public WidgetMarkup.TextButton.Builder setText(String value)

The text of the button.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
WidgetMarkup.TextButton.Builder

This builder for chaining.

setTextBytes(ByteString value)

public WidgetMarkup.TextButton.Builder setTextBytes(ByteString value)

The text of the button.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
WidgetMarkup.TextButton.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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