Class ContextualAddOnMarkup.Card.CardAction (0.11.0)

public static final class ContextualAddOnMarkup.Card.CardAction extends GeneratedMessageV3 implements ContextualAddOnMarkup.Card.CardActionOrBuilder

A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.

Not supported by Google Chat apps.

Protobuf type google.chat.v1.ContextualAddOnMarkup.Card.CardAction

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ContextualAddOnMarkup.Card.CardAction

Static Fields

ACTION_LABEL_FIELD_NUMBER

public static final int ACTION_LABEL_FIELD_NUMBER
Field Value
Type Description
int

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContextualAddOnMarkup.Card.CardAction getDefaultInstance()
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction

getDescriptor()

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

newBuilder()

public static ContextualAddOnMarkup.Card.CardAction.Builder newBuilder()
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

newBuilder(ContextualAddOnMarkup.Card.CardAction prototype)

public static ContextualAddOnMarkup.Card.CardAction.Builder newBuilder(ContextualAddOnMarkup.Card.CardAction prototype)
Parameter
Name Description
prototype ContextualAddOnMarkup.Card.CardAction
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

parseDelimitedFrom(InputStream input)

public static ContextualAddOnMarkup.Card.CardAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContextualAddOnMarkup.Card.CardAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ContextualAddOnMarkup.Card.CardAction> parser()
Returns
Type Description
Parser<CardAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActionLabel()

public String getActionLabel()

The label used to be displayed in the action menu item.

string action_label = 1;

Returns
Type Description
String

The actionLabel.

getActionLabelBytes()

public ByteString getActionLabelBytes()

The label used to be displayed in the action menu item.

string action_label = 1;

Returns
Type Description
ByteString

The bytes for actionLabel.

getDefaultInstanceForType()

public ContextualAddOnMarkup.Card.CardAction getDefaultInstanceForType()
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action for this action item.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClick

The onClick.

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action for this action item.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClickOrBuilder

getParserForType()

public Parser<ContextualAddOnMarkup.Card.CardAction> getParserForType()
Returns
Type Description
Parser<CardAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasOnClick()

public boolean hasOnClick()

The onclick action for this action item.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
boolean

Whether the onClick 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 ContextualAddOnMarkup.Card.CardAction.Builder newBuilderForType()
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContextualAddOnMarkup.Card.CardAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ContextualAddOnMarkup.Card.CardAction.Builder toBuilder()
Returns
Type Description
ContextualAddOnMarkup.Card.CardAction.Builder

writeTo(CodedOutputStream output)

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