Class WidgetMarkup.FormAction.Builder (0.4.0)

public static final class WidgetMarkup.FormAction.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.FormAction.Builder> implements WidgetMarkup.FormActionOrBuilder

A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.

Protobuf type google.chat.v1.WidgetMarkup.FormAction

Static Methods

getDescriptor()

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

Methods

addAllParameters(Iterable<? extends WidgetMarkup.FormAction.ActionParameter> values)

public WidgetMarkup.FormAction.Builder addAllParameters(Iterable<? extends WidgetMarkup.FormAction.ActionParameter> values)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.chat.v1.WidgetMarkup.FormAction.ActionParameter>
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

addParameters(WidgetMarkup.FormAction.ActionParameter value)

public WidgetMarkup.FormAction.Builder addParameters(WidgetMarkup.FormAction.ActionParameter value)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
valueWidgetMarkup.FormAction.ActionParameter
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

addParameters(WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

public WidgetMarkup.FormAction.Builder addParameters(WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
builderForValueWidgetMarkup.FormAction.ActionParameter.Builder
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

addParameters(int index, WidgetMarkup.FormAction.ActionParameter value)

public WidgetMarkup.FormAction.Builder addParameters(int index, WidgetMarkup.FormAction.ActionParameter value)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameters
NameDescription
indexint
valueWidgetMarkup.FormAction.ActionParameter
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

addParameters(int index, WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

public WidgetMarkup.FormAction.Builder addParameters(int index, WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameters
NameDescription
indexint
builderForValueWidgetMarkup.FormAction.ActionParameter.Builder
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

addParametersBuilder()

public WidgetMarkup.FormAction.ActionParameter.Builder addParametersBuilder()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

addParametersBuilder(int index)

public WidgetMarkup.FormAction.ActionParameter.Builder addParametersBuilder(int index)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public WidgetMarkup.FormAction.Builder clear()
Returns
TypeDescription
WidgetMarkup.FormAction.Builder
Overrides

clearActionMethodName()

public WidgetMarkup.FormAction.Builder clearActionMethodName()

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

string action_method_name = 1;

Returns
TypeDescription
WidgetMarkup.FormAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public WidgetMarkup.FormAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WidgetMarkup.FormAction.Builder
Overrides

clearParameters()

public WidgetMarkup.FormAction.Builder clearParameters()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
WidgetMarkup.FormAction.Builder

clone()

public WidgetMarkup.FormAction.Builder clone()
Returns
TypeDescription
WidgetMarkup.FormAction.Builder
Overrides

getActionMethodName()

public String getActionMethodName()

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

string action_method_name = 1;

Returns
TypeDescription
String

The actionMethodName.

getActionMethodNameBytes()

public ByteString getActionMethodNameBytes()

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

string action_method_name = 1;

Returns
TypeDescription
ByteString

The bytes for actionMethodName.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParameters(int index)

public WidgetMarkup.FormAction.ActionParameter getParameters(int index)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter

getParametersBuilder(int index)

public WidgetMarkup.FormAction.ActionParameter.Builder getParametersBuilder(int index)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

getParametersBuilderList()

public List<WidgetMarkup.FormAction.ActionParameter.Builder> getParametersBuilderList()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
List<Builder>

getParametersCount()

public int getParametersCount()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
int

getParametersList()

public List<WidgetMarkup.FormAction.ActionParameter> getParametersList()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
List<ActionParameter>

getParametersOrBuilder(int index)

public WidgetMarkup.FormAction.ActionParameterOrBuilder getParametersOrBuilder(int index)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameterOrBuilder

getParametersOrBuilderList()

public List<? extends WidgetMarkup.FormAction.ActionParameterOrBuilder> getParametersOrBuilderList()

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Returns
TypeDescription
List<? extends com.google.chat.v1.WidgetMarkup.FormAction.ActionParameterOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WidgetMarkup.FormAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WidgetMarkup.FormAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WidgetMarkup.FormAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WidgetMarkup.FormAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WidgetMarkup.FormAction.Builder
Overrides

removeParameters(int index)

public WidgetMarkup.FormAction.Builder removeParameters(int index)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

setActionMethodName(String value)

public WidgetMarkup.FormAction.Builder setActionMethodName(String value)

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

string action_method_name = 1;

Parameter
NameDescription
valueString

The actionMethodName to set.

Returns
TypeDescription
WidgetMarkup.FormAction.Builder

This builder for chaining.

setActionMethodNameBytes(ByteString value)

public WidgetMarkup.FormAction.Builder setActionMethodNameBytes(ByteString value)

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

string action_method_name = 1;

Parameter
NameDescription
valueByteString

The bytes for actionMethodName to set.

Returns
TypeDescription
WidgetMarkup.FormAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParameters(int index, WidgetMarkup.FormAction.ActionParameter value)

public WidgetMarkup.FormAction.Builder setParameters(int index, WidgetMarkup.FormAction.ActionParameter value)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameters
NameDescription
indexint
valueWidgetMarkup.FormAction.ActionParameter
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

setParameters(int index, WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

public WidgetMarkup.FormAction.Builder setParameters(int index, WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)

List of action parameters.

repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;

Parameters
NameDescription
indexint
builderForValueWidgetMarkup.FormAction.ActionParameter.Builder
Returns
TypeDescription
WidgetMarkup.FormAction.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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