Class OnClick (0.1.0)

  public 
  
 final 
  
 class 
 OnClick 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 OnClickOrBuilder 
 

Represents how to respond when users click an interactive element on a card, such as a button.

Google Workspace Add-ons and Chat apps :

Protobuf type google.apps.card.v1.OnClick

Implements

OnClickOrBuilder

Static Fields

ACTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ACTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

CARD_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CARD_FIELD_NUMBER 
 
Field Value
Type
Description
int
  public 
  
 static 
  
 final 
  
 int 
  
 OPEN_DYNAMIC_LINK_ACTION_FIELD_NUMBER 
 
Field Value
Type
Description
int
  public 
  
 static 
  
 final 
  
 int 
  
 OPEN_LINK_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 OnClick 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 OnClick 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(OnClick prototype)

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

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 OnClick 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 OnClick 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<OnClick> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getAction()

  public 
  
 Action 
  
 getAction 
 () 
 

If specified, an action is triggered by this onClick .

.google.apps.card.v1.Action action = 1;

Returns
Type
Description

The action.

getActionOrBuilder()

  public 
  
 ActionOrBuilder 
  
 getActionOrBuilder 
 () 
 

If specified, an action is triggered by this onClick .

.google.apps.card.v1.Action action = 1;

Returns
Type
Description

getCard()

  public 
  
 Card 
  
 getCard 
 () 
 

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons :

.google.apps.card.v1.Card card = 4;

Returns
Type
Description

The card.

getCardOrBuilder()

  public 
  
 CardOrBuilder 
  
 getCardOrBuilder 
 () 
 

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons :

.google.apps.card.v1.Card card = 4;

Returns
Type
Description

getDataCase()

  public 
  
 OnClick 
 . 
 DataCase 
  
 getDataCase 
 () 
 
Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 OnClick 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getOpenDynamicLinkAction()

  public 
  
 Action 
  
 getOpenDynamicLinkAction 
 () 
 

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons :

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type
Description

The openDynamicLinkAction.

getOpenDynamicLinkActionOrBuilder()

  public 
  
 ActionOrBuilder 
  
 getOpenDynamicLinkActionOrBuilder 
 () 
 

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons :

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type
Description
  public 
  
 OpenLink 
  
 getOpenLink 
 () 
 

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type
Description

The openLink.

getOpenLinkOrBuilder()

  public 
  
 OpenLinkOrBuilder 
  
 getOpenLinkOrBuilder 
 () 
 

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type
Description

getParserForType()

  public 
  
 Parser<OnClick> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

hasAction()

  public 
  
 boolean 
  
 hasAction 
 () 
 

If specified, an action is triggered by this onClick .

.google.apps.card.v1.Action action = 1;

Returns
Type
Description

Whether the action field is set.

hasCard()

  public 
  
 boolean 
  
 hasCard 
 () 
 

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons :

.google.apps.card.v1.Card card = 4;

Returns
Type
Description

Whether the card field is set.

hasOpenDynamicLinkAction()

  public 
  
 boolean 
  
 hasOpenDynamicLinkAction 
 () 
 

An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back.

Google Workspace Add-ons :

.google.apps.card.v1.Action open_dynamic_link_action = 3;

Returns
Type
Description

Whether the openDynamicLinkAction field is set.

  public 
  
 boolean 
  
 hasOpenLink 
 () 
 

If specified, this onClick triggers an open link action.

.google.apps.card.v1.OpenLink open_link = 2;

Returns
Type
Description

Whether the openLink field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 OnClick 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 OnClick 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 OnClick 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: