Class AccessoryWidget (0.4.0)

public final class AccessoryWidget extends GeneratedMessageV3 implements AccessoryWidgetOrBuilder

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

Protobuf type google.chat.v1.AccessoryWidget

Static Fields

BUTTON_LIST_FIELD_NUMBER

public static final int BUTTON_LIST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AccessoryWidget getDefaultInstance()
Returns
TypeDescription
AccessoryWidget

getDescriptor()

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

newBuilder()

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

newBuilder(AccessoryWidget prototype)

public static AccessoryWidget.Builder newBuilder(AccessoryWidget prototype)
Parameter
NameDescription
prototypeAccessoryWidget
Returns
TypeDescription
AccessoryWidget.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

getSerializedSize()

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

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 AccessoryWidget.Builder newBuilderForType()
Returns
TypeDescription
AccessoryWidget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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