Class Card.CardAction.Builder (2.37.1)

public static final class Card.CardAction.Builder extends GeneratedMessageV3.Builder<Card.CardAction.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Card.CardAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Card.CardAction.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Card.CardAction.Builder clear()
Returns
TypeDescription
Card.CardAction.Builder
Overrides

clearActionLabel()

public Card.CardAction.Builder clearActionLabel()

The label that displays as the action menu item.

string action_label = 1;

Returns
TypeDescription
Card.CardAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Card.CardAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Card.CardAction.Builder
Overrides

clearOnClick()

public Card.CardAction.Builder clearOnClick()

The onClick action for this action item.

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

Returns
TypeDescription
Card.CardAction.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Card.CardAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Card.CardAction.Builder
Overrides

clone()

public Card.CardAction.Builder clone()
Returns
TypeDescription
Card.CardAction.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOnClick()

public OnClick getOnClick()

The onClick action for this action item.

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

Returns
TypeDescription
OnClick

The onClick.

getOnClickBuilder()

public OnClick.Builder getOnClickBuilder()

The onClick action for this action item.

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

Returns
TypeDescription
OnClick.Builder

getOnClickOrBuilder()

public OnClickOrBuilder getOnClickOrBuilder()

The onClick action for this action item.

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

Returns
TypeDescription
OnClickOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Card.CardAction other)

public Card.CardAction.Builder mergeFrom(Card.CardAction other)
Parameter
NameDescription
otherCard.CardAction
Returns
TypeDescription
Card.CardAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Card.CardAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Card.CardAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Card.CardAction.Builder
Overrides

mergeOnClick(OnClick value)

public Card.CardAction.Builder mergeOnClick(OnClick value)

The onClick action for this action item.

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

Parameter
NameDescription
valueOnClick
Returns
TypeDescription
Card.CardAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Card.CardAction.Builder
Overrides

setActionLabel(String value)

public Card.CardAction.Builder setActionLabel(String value)

The label that displays as the action menu item.

string action_label = 1;

Parameter
NameDescription
valueString

The actionLabel to set.

Returns
TypeDescription
Card.CardAction.Builder

This builder for chaining.

setActionLabelBytes(ByteString value)

public Card.CardAction.Builder setActionLabelBytes(ByteString value)

The label that displays as the action menu item.

string action_label = 1;

Parameter
NameDescription
valueByteString

The bytes for actionLabel to set.

Returns
TypeDescription
Card.CardAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Card.CardAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Card.CardAction.Builder
Overrides

setOnClick(OnClick value)

public Card.CardAction.Builder setOnClick(OnClick value)

The onClick action for this action item.

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

Parameter
NameDescription
valueOnClick
Returns
TypeDescription
Card.CardAction.Builder

setOnClick(OnClick.Builder builderForValue)

public Card.CardAction.Builder setOnClick(OnClick.Builder builderForValue)

The onClick action for this action item.

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

Parameter
NameDescription
builderForValueOnClick.Builder
Returns
TypeDescription
Card.CardAction.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Card.CardAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Card.CardAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Card.CardAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Card.CardAction.Builder
Overrides