Class ButtonList.Builder (2.48.0)

public static final class ButtonList.Builder extends GeneratedMessageV3.Builder<ButtonList.Builder> implements ButtonListOrBuilder

A list of buttons layed out horizontally. For an example in Google Chat apps, see Add a button.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.ButtonList

Implements

ButtonListOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllButtons(Iterable<? extends Button> values)

public ButtonList.Builder addAllButtons(Iterable<? extends Button> values)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
values Iterable<? extends com.google.apps.card.v1.Button>
Returns
Type Description
ButtonList.Builder

addButtons(Button value)

public ButtonList.Builder addButtons(Button value)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
value Button
Returns
Type Description
ButtonList.Builder

addButtons(Button.Builder builderForValue)

public ButtonList.Builder addButtons(Button.Builder builderForValue)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
builderForValue Button.Builder
Returns
Type Description
ButtonList.Builder

addButtons(int index, Button value)

public ButtonList.Builder addButtons(int index, Button value)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameters
Name Description
index int
value Button
Returns
Type Description
ButtonList.Builder

addButtons(int index, Button.Builder builderForValue)

public ButtonList.Builder addButtons(int index, Button.Builder builderForValue)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameters
Name Description
index int
builderForValue Button.Builder
Returns
Type Description
ButtonList.Builder

addButtonsBuilder()

public Button.Builder addButtonsBuilder()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
Button.Builder

addButtonsBuilder(int index)

public Button.Builder addButtonsBuilder(int index)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
index int
Returns
Type Description
Button.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ButtonList build()
Returns
Type Description
ButtonList

buildPartial()

public ButtonList buildPartial()
Returns
Type Description
ButtonList

clear()

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

clearButtons()

public ButtonList.Builder clearButtons()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
ButtonList.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getButtons(int index)

public Button getButtons(int index)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
index int
Returns
Type Description
Button

getButtonsBuilder(int index)

public Button.Builder getButtonsBuilder(int index)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
index int
Returns
Type Description
Button.Builder

getButtonsBuilderList()

public List<Button.Builder> getButtonsBuilderList()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
List<Builder>

getButtonsCount()

public int getButtonsCount()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
int

getButtonsList()

public List<Button> getButtonsList()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
List<Button>

getButtonsOrBuilder(int index)

public ButtonOrBuilder getButtonsOrBuilder(int index)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
index int
Returns
Type Description
ButtonOrBuilder

getButtonsOrBuilderList()

public List<? extends ButtonOrBuilder> getButtonsOrBuilderList()

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Returns
Type Description
List<? extends com.google.apps.card.v1.ButtonOrBuilder>

getDefaultInstanceForType()

public ButtonList getDefaultInstanceForType()
Returns
Type Description
ButtonList

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ButtonList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeButtons(int index)

public ButtonList.Builder removeButtons(int index)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameter
Name Description
index int
Returns
Type Description
ButtonList.Builder

setButtons(int index, Button value)

public ButtonList.Builder setButtons(int index, Button value)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameters
Name Description
index int
value Button
Returns
Type Description
ButtonList.Builder

setButtons(int index, Button.Builder builderForValue)

public ButtonList.Builder setButtons(int index, Button.Builder builderForValue)

An array of buttons.

repeated .google.apps.card.v1.Button buttons = 1;

Parameters
Name Description
index int
builderForValue Button.Builder
Returns
Type Description
ButtonList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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