Class AccessoryWidget.Builder (0.3.0)

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

A borderless widget attached to the bottom of an app's message.

Protobuf type google.chat.v1.AccessoryWidget

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessoryWidget build()
Returns
TypeDescription
AccessoryWidget

buildPartial()

public AccessoryWidget buildPartial()
Returns
TypeDescription
AccessoryWidget

clear()

public AccessoryWidget.Builder clear()
Returns
TypeDescription
AccessoryWidget.Builder
Overrides

clearAction()

public AccessoryWidget.Builder clearAction()
Returns
TypeDescription
AccessoryWidget.Builder

clearButtonList()

public AccessoryWidget.Builder clearButtonList()

A list of buttons that are displayed under the message.

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

Returns
TypeDescription
AccessoryWidget.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AccessoryWidget.Builder clone()
Returns
TypeDescription
AccessoryWidget.Builder
Overrides

getActionCase()

public AccessoryWidget.ActionCase getActionCase()
Returns
TypeDescription
AccessoryWidget.ActionCase

getButtonList()

public ButtonList getButtonList()

A list of buttons that are displayed under the message.

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

Returns
TypeDescription
com.google.apps.card.v1.ButtonList

The buttonList.

getButtonListBuilder()

public ButtonList.Builder getButtonListBuilder()

A list of buttons that are displayed under the message.

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

Returns
TypeDescription
com.google.apps.card.v1.ButtonList.Builder

getButtonListOrBuilder()

public ButtonListOrBuilder getButtonListOrBuilder()

A list of buttons that are displayed under the message.

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

Returns
TypeDescription
com.google.apps.card.v1.ButtonListOrBuilder

getDefaultInstanceForType()

public AccessoryWidget getDefaultInstanceForType()
Returns
TypeDescription
AccessoryWidget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasButtonList()

public boolean hasButtonList()

A list of buttons that are displayed under the message.

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

Returns
TypeDescription
boolean

Whether the buttonList field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeButtonList(ButtonList value)

public AccessoryWidget.Builder mergeButtonList(ButtonList value)

A list of buttons that are displayed under the message.

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

Parameter
NameDescription
valuecom.google.apps.card.v1.ButtonList
Returns
TypeDescription
AccessoryWidget.Builder

mergeFrom(AccessoryWidget other)

public AccessoryWidget.Builder mergeFrom(AccessoryWidget other)
Parameter
NameDescription
otherAccessoryWidget
Returns
TypeDescription
AccessoryWidget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setButtonList(ButtonList value)

public AccessoryWidget.Builder setButtonList(ButtonList value)

A list of buttons that are displayed under the message.

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

Parameter
NameDescription
valuecom.google.apps.card.v1.ButtonList
Returns
TypeDescription
AccessoryWidget.Builder

setButtonList(ButtonList.Builder builderForValue)

public AccessoryWidget.Builder setButtonList(ButtonList.Builder builderForValue)

A list of buttons that are displayed under the message.

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

Parameter
NameDescription
builderForValuecom.google.apps.card.v1.ButtonList.Builder
Returns
TypeDescription
AccessoryWidget.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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