Class Card.CardAction (2.44.0)

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

A card action is the action associated with the card. For example, an invoice card might include actions such as delete invoice, email invoice, or open the invoice in a browser.

Google Workspace Add-ons:

Protobuf type google.apps.card.v1.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 Card.CardAction getDefaultInstance()
Returns
Type Description
Card.CardAction

getDescriptor()

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

newBuilder()

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

newBuilder(Card.CardAction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<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 that displays as the action menu item.

string action_label = 1;

Returns
Type Description
String

The actionLabel.

getActionLabelBytes()

public ByteString getActionLabelBytes()

The label that displays as the action menu item.

string action_label = 1;

Returns
Type Description
ByteString

The bytes for actionLabel.

getDefaultInstanceForType()

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

getOnClick()

public OnClick getOnClick()

The onClick action for this action item.

.google.apps.card.v1.OnClick on_click = 2;

Returns
Type Description
OnClick

The onClick.

getOnClickOrBuilder()

public OnClickOrBuilder getOnClickOrBuilder()

The onClick action for this action item.

.google.apps.card.v1.OnClick on_click = 2;

Returns
Type Description
OnClickOrBuilder

getParserForType()

public Parser<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.apps.card.v1.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 Card.CardAction.Builder newBuilderForType()
Returns
Type Description
Card.CardAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Card.CardAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
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 Card.CardAction.Builder toBuilder()
Returns
Type Description
Card.CardAction.Builder

writeTo(CodedOutputStream output)

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