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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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 |
---|
Name | Description |
values | Iterable<? extends com.google.chat.v1.WidgetMarkup.FormAction.ActionParameter>
|
public WidgetMarkup.FormAction.Builder addParameters(WidgetMarkup.FormAction.ActionParameter value)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public WidgetMarkup.FormAction.Builder addParameters(WidgetMarkup.FormAction.ActionParameter.Builder builderForValue)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public WidgetMarkup.FormAction.Builder addParameters(int index, WidgetMarkup.FormAction.ActionParameter value)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
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;
public WidgetMarkup.FormAction.ActionParameter.Builder addParametersBuilder()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public WidgetMarkup.FormAction.ActionParameter.Builder addParametersBuilder(int index)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Parameter |
---|
Name | Description |
index | int
|
public WidgetMarkup.FormAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overridespublic WidgetMarkup.FormAction build()
public WidgetMarkup.FormAction buildPartial()
public WidgetMarkup.FormAction.Builder clear()
Overridespublic 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;
public WidgetMarkup.FormAction.Builder clearField(Descriptors.FieldDescriptor field)
Overridespublic WidgetMarkup.FormAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overridespublic WidgetMarkup.FormAction.Builder clearParameters()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public WidgetMarkup.FormAction.Builder clone()
Overridespublic 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 |
---|
Type | Description |
String | The actionMethodName. |
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 |
---|
Type | Description |
ByteString | The bytes for actionMethodName. |
public WidgetMarkup.FormAction getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overridespublic WidgetMarkup.FormAction.ActionParameter getParameters(int index)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Parameter |
---|
Name | Description |
index | int
|
public WidgetMarkup.FormAction.ActionParameter.Builder getParametersBuilder(int index)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Parameter |
---|
Name | Description |
index | int
|
public List<WidgetMarkup.FormAction.ActionParameter.Builder> getParametersBuilderList()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public int getParametersCount()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Returns |
---|
Type | Description |
int | |
public List<WidgetMarkup.FormAction.ActionParameter> getParametersList()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
public WidgetMarkup.FormAction.ActionParameterOrBuilder getParametersOrBuilder(int index)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends WidgetMarkup.FormAction.ActionParameterOrBuilder> getParametersOrBuilderList()
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Returns |
---|
Type | Description |
List<? extends com.google.chat.v1.WidgetMarkup.FormAction.ActionParameterOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overridespublic final boolean isInitialized()
Overridespublic WidgetMarkup.FormAction.Builder mergeFrom(WidgetMarkup.FormAction other)
public WidgetMarkup.FormAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overridespublic WidgetMarkup.FormAction.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overridespublic final WidgetMarkup.FormAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overridespublic WidgetMarkup.FormAction.Builder removeParameters(int index)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
Parameter |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
value | String
The actionMethodName to set. |
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 |
---|
Name | Description |
value | ByteString
The bytes for actionMethodName to set. |
public WidgetMarkup.FormAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overridespublic WidgetMarkup.FormAction.Builder setParameters(int index, WidgetMarkup.FormAction.ActionParameter value)
List of action parameters.
repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2;
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;
public WidgetMarkup.FormAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overridespublic final WidgetMarkup.FormAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides