Class Action.ActionParameter.Builder (2.37.1)

public static final class Action.ActionParameter.Builder extends GeneratedMessageV3.Builder<Action.ActionParameter.Builder> implements Action.ActionParameterOrBuilder

List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, or snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.

To learn more, see CommonEventObject.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.Action.ActionParameter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Action.ActionParameter build()
Returns
TypeDescription
Action.ActionParameter

buildPartial()

public Action.ActionParameter buildPartial()
Returns
TypeDescription
Action.ActionParameter

clear()

public Action.ActionParameter.Builder clear()
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Action.ActionParameter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

clearKey()

public Action.ActionParameter.Builder clearKey()

The name of the parameter for the action script.

string key = 1;

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.ActionParameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

clearValue()

public Action.ActionParameter.Builder clearValue()

The value of the parameter.

string value = 2;

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.

clone()

public Action.ActionParameter.Builder clone()
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

getDefaultInstanceForType()

public Action.ActionParameter getDefaultInstanceForType()
Returns
TypeDescription
Action.ActionParameter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

The name of the parameter for the action script.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The name of the parameter for the action script.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getValue()

public String getValue()

The value of the parameter.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the parameter.

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Action.ActionParameter other)

public Action.ActionParameter.Builder mergeFrom(Action.ActionParameter other)
Parameter
NameDescription
otherAction.ActionParameter
Returns
TypeDescription
Action.ActionParameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Action.ActionParameter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.ActionParameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public Action.ActionParameter.Builder setKey(String value)

The name of the parameter for the action script.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Action.ActionParameter.Builder setKeyBytes(ByteString value)

The name of the parameter for the action script.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.ActionParameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.ActionParameter.Builder
Overrides

setValue(String value)

public Action.ActionParameter.Builder setValue(String value)

The value of the parameter.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Action.ActionParameter.Builder setValueBytes(ByteString value)

The value of the parameter.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
Action.ActionParameter.Builder

This builder for chaining.