Class Card.CardAction (2.37.1)

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
TypeDescription
int

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Card.CardAction getDefaultInstance()
Returns
TypeDescription
Card.CardAction

getDescriptor()

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

newBuilder()

public static Card.CardAction.Builder newBuilder()
Returns
TypeDescription
Card.CardAction.Builder

newBuilder(Card.CardAction prototype)

public static Card.CardAction.Builder newBuilder(Card.CardAction prototype)
Parameter
NameDescription
prototypeCard.CardAction
Returns
TypeDescription
Card.CardAction.Builder

parseDelimitedFrom(InputStream input)

public static Card.CardAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Card.CardAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Card.CardAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Card.CardAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Card.CardAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Card.CardAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Card.CardAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Card.CardAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Card.CardAction> parser()
Returns
TypeDescription
Parser<CardAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActionLabel()

public String getActionLabel()

The label that displays as the action menu item.

string action_label = 1;

Returns
TypeDescription
String

The actionLabel.

getActionLabelBytes()

public ByteString getActionLabelBytes()

The label that displays as the action menu item.

string action_label = 1;

Returns
TypeDescription
ByteString

The bytes for actionLabel.

getDefaultInstanceForType()

public Card.CardAction getDefaultInstanceForType()
Returns
TypeDescription
Card.CardAction

getOnClick()

public OnClick getOnClick()

The onClick action for this action item.

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

Returns
TypeDescription
OnClick

The onClick.

getOnClickOrBuilder()

public OnClickOrBuilder getOnClickOrBuilder()

The onClick action for this action item.

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

Returns
TypeDescription
OnClickOrBuilder

getParserForType()

public Parser<Card.CardAction> getParserForType()
Returns
TypeDescription
Parser<CardAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasOnClick()

public boolean hasOnClick()

The onClick action for this action item.

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

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Card.CardAction.Builder toBuilder()
Returns
TypeDescription
Card.CardAction.Builder

writeTo(CodedOutputStream output)

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