Class AccessoryWidget.Builder (0.19.0)

public static final class AccessoryWidget.Builder extends GeneratedMessageV3.Builder<AccessoryWidget.Builder> implements AccessoryWidgetOrBuilder

One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message.

Protobuf type google.chat.v1.AccessoryWidget

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessoryWidget build()
Returns
Type Description
AccessoryWidget

buildPartial()

public AccessoryWidget buildPartial()
Returns
Type Description
AccessoryWidget

clear()

public AccessoryWidget.Builder clear()
Returns
Type Description
AccessoryWidget.Builder
Overrides

clearAction()

public AccessoryWidget.Builder clearAction()
Returns
Type Description
AccessoryWidget.Builder

clearButtonList()

public AccessoryWidget.Builder clearButtonList()

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Returns
Type Description
AccessoryWidget.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AccessoryWidget.Builder clone()
Returns
Type Description
AccessoryWidget.Builder
Overrides

getActionCase()

public AccessoryWidget.ActionCase getActionCase()
Returns
Type Description
AccessoryWidget.ActionCase

getButtonList()

public ButtonList getButtonList()

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Returns
Type Description
com.google.apps.card.v1.ButtonList

The buttonList.

getButtonListBuilder()

public ButtonList.Builder getButtonListBuilder()

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Returns
Type Description
com.google.apps.card.v1.ButtonList.Builder

getButtonListOrBuilder()

public ButtonListOrBuilder getButtonListOrBuilder()

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Returns
Type Description
com.google.apps.card.v1.ButtonListOrBuilder

getDefaultInstanceForType()

public AccessoryWidget getDefaultInstanceForType()
Returns
Type Description
AccessoryWidget

getDescriptorForType()

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

hasButtonList()

public boolean hasButtonList()

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Returns
Type Description
boolean

Whether the buttonList field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeButtonList(ButtonList value)

public AccessoryWidget.Builder mergeButtonList(ButtonList value)

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Parameter
Name Description
value com.google.apps.card.v1.ButtonList
Returns
Type Description
AccessoryWidget.Builder

mergeFrom(AccessoryWidget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setButtonList(ButtonList value)

public AccessoryWidget.Builder setButtonList(ButtonList value)

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Parameter
Name Description
value com.google.apps.card.v1.ButtonList
Returns
Type Description
AccessoryWidget.Builder

setButtonList(ButtonList.Builder builderForValue)

public AccessoryWidget.Builder setButtonList(ButtonList.Builder builderForValue)

A list of buttons.

.google.apps.card.v1.ButtonList button_list = 1;

Parameter
Name Description
builderForValue com.google.apps.card.v1.ButtonList.Builder
Returns
Type Description
AccessoryWidget.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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