Class WidgetMarkup.OnClick.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WidgetMarkup.OnClick build()
Returns
TypeDescription
WidgetMarkup.OnClick

buildPartial()

public WidgetMarkup.OnClick buildPartial()
Returns
TypeDescription
WidgetMarkup.OnClick

clear()

public WidgetMarkup.OnClick.Builder clear()
Returns
TypeDescription
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
TypeDescription
WidgetMarkup.OnClick.Builder

clearData()

public WidgetMarkup.OnClick.Builder clearData()
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

clearField(Descriptors.FieldDescriptor field)

public WidgetMarkup.OnClick.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WidgetMarkup.OnClick.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.OnClick.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WidgetMarkup.OnClick.Builder

clone()

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

getDataCase()

public WidgetMarkup.OnClick.DataCase getDataCase()
Returns
TypeDescription
WidgetMarkup.OnClick.DataCase

getDefaultInstanceForType()

public WidgetMarkup.OnClick getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.OnClick

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the openLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.FormAction
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

mergeFrom(WidgetMarkup.OnClick other)

public WidgetMarkup.OnClick.Builder mergeFrom(WidgetMarkup.OnClick other)
Parameter
NameDescription
otherWidgetMarkup.OnClick
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WidgetMarkup.OnClick.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.OpenLink
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.OnClick.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.FormAction
Returns
TypeDescription
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
NameDescription
builderForValueWidgetMarkup.FormAction.Builder
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WidgetMarkup.OnClick.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWidgetMarkup.OpenLink
Returns
TypeDescription
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
NameDescription
builderForValueWidgetMarkup.OpenLink.Builder
Returns
TypeDescription
WidgetMarkup.OnClick.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.OnClick.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WidgetMarkup.OnClick.Builder
Overrides