public static final class ContextualAddOnMarkup.Card.CardAction extends GeneratedMessage implements ContextualAddOnMarkup.Card.CardActionOrBuilderA 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 > GeneratedMessage > ContextualAddOnMarkup.Card.CardActionStatic 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 |
|
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> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ContextualAddOnMarkup.Card.CardAction.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ContextualAddOnMarkup.Card.CardAction.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ContextualAddOnMarkup.Card.CardAction.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ContextualAddOnMarkup.Card.CardAction.Builder |
|
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 |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|