Class WidgetMarkup.TextButton.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.TextButton.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WidgetMarkup.TextButton.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public WidgetMarkup.TextButton.Builder clearText()

The text of the button.

string text = 1;

Returns
TypeDescription
WidgetMarkup.TextButton.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action of the button.

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

Returns
TypeDescription
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
TypeDescription
WidgetMarkup.OnClick.Builder

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action of the button.

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

Returns
TypeDescription
WidgetMarkup.OnClickOrBuilder

getText()

public String getText()

The text of the button.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of the button.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

hasOnClick()

public boolean hasOnClick()

The onclick action of the button.

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

Returns
TypeDescription
boolean

Whether the onClick field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup.TextButton other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WidgetMarkup.TextButton.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.OnClick
Returns
TypeDescription
WidgetMarkup.TextButton.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.TextButton.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.OnClick
Returns
TypeDescription
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
NameDescription
builderForValueWidgetMarkup.OnClick.Builder
Returns
TypeDescription
WidgetMarkup.TextButton.Builder

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

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

setText(String value)

public WidgetMarkup.TextButton.Builder setText(String value)

The text of the button.

string text = 1;

Parameter
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
WidgetMarkup.TextButton.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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