Class WidgetMarkup.OnClick (0.10.0)

public static final class WidgetMarkup.OnClick extends GeneratedMessageV3 implements WidgetMarkup.OnClickOrBuilder

An onclick action (for example, open a link).

Protobuf type google.chat.v1.WidgetMarkup.OnClick

Static Fields

ACTION_FIELD_NUMBER

public static final int 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 WidgetMarkup.OnClick getDefaultInstance()
Returns
Type Description
WidgetMarkup.OnClick

getDescriptor()

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

newBuilder()

public static WidgetMarkup.OnClick.Builder newBuilder()
Returns
Type Description
WidgetMarkup.OnClick.Builder

newBuilder(WidgetMarkup.OnClick prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAction()

public WidgetMarkup.FormAction getAction()

A form action is triggered by this onclick action if specified.

.google.chat.v1.WidgetMarkup.FormAction action = 1;

Returns
Type Description
WidgetMarkup.FormAction

The action.

getActionOrBuilder()

public WidgetMarkup.FormActionOrBuilder getActionOrBuilder()

A form action is triggered by this onclick action if specified.

.google.chat.v1.WidgetMarkup.FormAction action = 1;

Returns
Type Description
WidgetMarkup.FormActionOrBuilder

getDataCase()

public WidgetMarkup.OnClick.DataCase getDataCase()
Returns
Type Description
WidgetMarkup.OnClick.DataCase

getDefaultInstanceForType()

public WidgetMarkup.OnClick getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup.OnClick
public WidgetMarkup.OpenLink getOpenLink()

This onclick action triggers an open link action if specified.

.google.chat.v1.WidgetMarkup.OpenLink open_link = 2;

Returns
Type Description
WidgetMarkup.OpenLink

The openLink.

getOpenLinkOrBuilder()

public WidgetMarkup.OpenLinkOrBuilder getOpenLinkOrBuilder()

This onclick action triggers an open link action if specified.

.google.chat.v1.WidgetMarkup.OpenLink open_link = 2;

Returns
Type Description
WidgetMarkup.OpenLinkOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAction()

public boolean hasAction()

A form action is triggered by this onclick action if specified.

.google.chat.v1.WidgetMarkup.FormAction action = 1;

Returns
Type Description
boolean

Whether the action field is set.

public boolean hasOpenLink()

This onclick action triggers an open link action if specified.

.google.chat.v1.WidgetMarkup.OpenLink open_link = 2;

Returns
Type Description
boolean

Whether the openLink field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetMarkup.OnClick.Builder newBuilderForType()
Returns
Type Description
WidgetMarkup.OnClick.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public WidgetMarkup.OnClick.Builder toBuilder()
Returns
Type Description
WidgetMarkup.OnClick.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException