Class ButtonList.Builder (0.1.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 Button list.

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.card.v1.Button>
Returns
TypeDescription
ButtonList.Builder

addButtons(Button value)

public ButtonList.Builder addButtons(Button value)

An array of buttons.

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

Parameter
NameDescription
valueButton
Returns
TypeDescription
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
NameDescription
builderForValueButton.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueButton
Returns
TypeDescription
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
NameDescription
indexint
builderForValueButton.Builder
Returns
TypeDescription
ButtonList.Builder

addButtonsBuilder()

public Button.Builder addButtonsBuilder()

An array of buttons.

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

Returns
TypeDescription
Button.Builder

addButtonsBuilder(int index)

public Button.Builder addButtonsBuilder(int index)

An array of buttons.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Button.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ButtonList build()
Returns
TypeDescription
ButtonList

buildPartial()

public ButtonList buildPartial()
Returns
TypeDescription
ButtonList

clear()

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

clearButtons()

public ButtonList.Builder clearButtons()

An array of buttons.

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

Returns
TypeDescription
ButtonList.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getButtons(int index)

public Button getButtons(int index)

An array of buttons.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Button

getButtonsBuilder(int index)

public Button.Builder getButtonsBuilder(int index)

An array of buttons.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Button.Builder

getButtonsBuilderList()

public List<Button.Builder> getButtonsBuilderList()

An array of buttons.

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

Returns
TypeDescription
List<Builder>

getButtonsCount()

public int getButtonsCount()

An array of buttons.

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

Returns
TypeDescription
int

getButtonsList()

public List<Button> getButtonsList()

An array of buttons.

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

Returns
TypeDescription
List<Button>

getButtonsOrBuilder(int index)

public ButtonOrBuilder getButtonsOrBuilder(int index)

An array of buttons.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ButtonOrBuilder

getButtonsOrBuilderList()

public List<? extends ButtonOrBuilder> getButtonsOrBuilderList()

An array of buttons.

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

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

getDefaultInstanceForType()

public ButtonList getDefaultInstanceForType()
Returns
TypeDescription
ButtonList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ButtonList other)

public ButtonList.Builder mergeFrom(ButtonList other)
Parameter
NameDescription
otherButtonList
Returns
TypeDescription
ButtonList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ButtonList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueButton
Returns
TypeDescription
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
NameDescription
indexint
builderForValueButton.Builder
Returns
TypeDescription
ButtonList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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