Class AccessoryWidget (0.6.0)

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

BUTTON_LIST_FIELD_NUMBER

public static final int BUTTON_LIST_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AccessoryWidget getDefaultInstance()
Returns
Type Description
AccessoryWidget

getDescriptor()

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

newBuilder()

public static AccessoryWidget.Builder newBuilder()
Returns
Type Description
AccessoryWidget.Builder

newBuilder(AccessoryWidget prototype)

public static AccessoryWidget.Builder newBuilder(AccessoryWidget prototype)
Parameter
Name Description
prototype AccessoryWidget
Returns
Type Description
AccessoryWidget.Builder

parseDelimitedFrom(InputStream input)

public static AccessoryWidget parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AccessoryWidget parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccessoryWidget parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccessoryWidget parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AccessoryWidget parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AccessoryWidget parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccessoryWidget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessoryWidget
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AccessoryWidget> parser()
Returns
Type Description
Parser<AccessoryWidget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

public Parser<AccessoryWidget> getParserForType()
Returns
Type Description
Parser<AccessoryWidget>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccessoryWidget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccessoryWidget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException