Class ButtonList (0.1.0)

public final class ButtonList extends GeneratedMessageV3 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 Fields

BUTTONS_FIELD_NUMBER

public static final int BUTTONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ButtonList getDefaultInstance()
Returns
TypeDescription
ButtonList

getDescriptor()

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

newBuilder()

public static ButtonList.Builder newBuilder()
Returns
TypeDescription
ButtonList.Builder

newBuilder(ButtonList prototype)

public static ButtonList.Builder newBuilder(ButtonList prototype)
Parameter
NameDescription
prototypeButtonList
Returns
TypeDescription
ButtonList.Builder

parseDelimitedFrom(InputStream input)

public static ButtonList parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ButtonList parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ButtonList parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ButtonList parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ButtonList parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ButtonList parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ButtonList parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ButtonList
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ButtonList> parser()
Returns
TypeDescription
Parser<ButtonList>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

public Parser<ButtonList> getParserForType()
Returns
TypeDescription
Parser<ButtonList>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ButtonList.Builder newBuilderForType()
Returns
TypeDescription
ButtonList.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ButtonList.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ButtonList.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ButtonList.Builder toBuilder()
Returns
TypeDescription
ButtonList.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException