Class WidgetMarkup.OnClick.Builder (0.18.0)

public static final class WidgetMarkup.OnClick.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.OnClick.Builder> implements WidgetMarkup.OnClickOrBuilder

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

Protobuf type google.chat.v1.WidgetMarkup.OnClick

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.OnClick.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides

build()

public WidgetMarkup.OnClick build()
Returns
Type Description
WidgetMarkup.OnClick

buildPartial()

public WidgetMarkup.OnClick buildPartial()
Returns
Type Description
WidgetMarkup.OnClick

clear()

public WidgetMarkup.OnClick.Builder clear()
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides

clearAction()

public WidgetMarkup.OnClick.Builder clearAction()

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

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

Returns
Type Description
WidgetMarkup.OnClick.Builder

clearData()

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

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.OnClick.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.OnClick.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides
public WidgetMarkup.OnClick.Builder clearOpenLink()

This onclick action triggers an open link action if specified.

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

Returns
Type Description
WidgetMarkup.OnClick.Builder

clone()

public WidgetMarkup.OnClick.Builder clone()
Returns
Type Description
WidgetMarkup.OnClick.Builder
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.

getActionBuilder()

public WidgetMarkup.FormAction.Builder getActionBuilder()

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

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

Returns
Type Description
WidgetMarkup.FormAction.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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.

getOpenLinkBuilder()

public WidgetMarkup.OpenLink.Builder getOpenLinkBuilder()

This onclick action triggers an open link action if specified.

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

Returns
Type Description
WidgetMarkup.OpenLink.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAction(WidgetMarkup.FormAction value)

public WidgetMarkup.OnClick.Builder mergeAction(WidgetMarkup.FormAction value)

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

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

Parameter
Name Description
value WidgetMarkup.FormAction
Returns
Type Description
WidgetMarkup.OnClick.Builder

mergeFrom(WidgetMarkup.OnClick other)

public WidgetMarkup.OnClick.Builder mergeFrom(WidgetMarkup.OnClick other)
Parameter
Name Description
other WidgetMarkup.OnClick
Returns
Type Description
WidgetMarkup.OnClick.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WidgetMarkup.OnClick.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WidgetMarkup.OnClick.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides
public WidgetMarkup.OnClick.Builder mergeOpenLink(WidgetMarkup.OpenLink value)

This onclick action triggers an open link action if specified.

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

Parameter
Name Description
value WidgetMarkup.OpenLink
Returns
Type Description
WidgetMarkup.OnClick.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.OnClick.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides

setAction(WidgetMarkup.FormAction value)

public WidgetMarkup.OnClick.Builder setAction(WidgetMarkup.FormAction value)

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

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

Parameter
Name Description
value WidgetMarkup.FormAction
Returns
Type Description
WidgetMarkup.OnClick.Builder

setAction(WidgetMarkup.FormAction.Builder builderForValue)

public WidgetMarkup.OnClick.Builder setAction(WidgetMarkup.FormAction.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue WidgetMarkup.FormAction.Builder
Returns
Type Description
WidgetMarkup.OnClick.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.OnClick.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides
public WidgetMarkup.OnClick.Builder setOpenLink(WidgetMarkup.OpenLink value)

This onclick action triggers an open link action if specified.

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

Parameter
Name Description
value WidgetMarkup.OpenLink
Returns
Type Description
WidgetMarkup.OnClick.Builder
public WidgetMarkup.OnClick.Builder setOpenLink(WidgetMarkup.OpenLink.Builder builderForValue)

This onclick action triggers an open link action if specified.

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

Parameter
Name Description
builderForValue WidgetMarkup.OpenLink.Builder
Returns
Type Description
WidgetMarkup.OnClick.Builder

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

public WidgetMarkup.OnClick.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.OnClick.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WidgetMarkup.OnClick.Builder
Overrides