Class ContextualAddOnMarkup.Card.CardAction (0.4.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
TypeDescription
int

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ContextualAddOnMarkup.Card.CardAction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ContextualAddOnMarkup.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 used to be displayed in the action menu item.

string action_label = 1;

Returns
TypeDescription
String

The actionLabel.

getActionLabelBytes()

public ByteString getActionLabelBytes()

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

string action_label = 1;

Returns
TypeDescription
ByteString

The bytes for actionLabel.

getDefaultInstanceForType()

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

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action for this action item.

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

Returns
TypeDescription
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
TypeDescription
WidgetMarkup.OnClickOrBuilder

getParserForType()

public Parser<ContextualAddOnMarkup.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.chat.v1.WidgetMarkup.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 ContextualAddOnMarkup.Card.CardAction.Builder newBuilderForType()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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