Class Action.ActionParameter.Builder (2.42.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Action.ActionParameter build()
Returns
Type Description
Action.ActionParameter

buildPartial()

public Action.ActionParameter buildPartial()
Returns
Type Description
Action.ActionParameter

clear()

public Action.ActionParameter.Builder clear()
Returns
Type Description
Action.ActionParameter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Action.ActionParameter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Action.ActionParameter.Builder
Overrides

clearKey()

public Action.ActionParameter.Builder clearKey()

The name of the parameter for the action script.

string key = 1;

Returns
Type Description
Action.ActionParameter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.ActionParameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Action.ActionParameter.Builder
Overrides

clearValue()

public Action.ActionParameter.Builder clearValue()

The value of the parameter.

string value = 2;

Returns
Type Description
Action.ActionParameter.Builder

This builder for chaining.

clone()

public Action.ActionParameter.Builder clone()
Returns
Type Description
Action.ActionParameter.Builder
Overrides

getDefaultInstanceForType()

public Action.ActionParameter getDefaultInstanceForType()
Returns
Type Description
Action.ActionParameter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public String getKey()

The name of the parameter for the action script.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The name of the parameter for the action script.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

The value of the parameter.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the parameter.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Action.ActionParameter other)

public Action.ActionParameter.Builder mergeFrom(Action.ActionParameter other)
Parameter
Name Description
other Action.ActionParameter
Returns
Type Description
Action.ActionParameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Action.ActionParameter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.ActionParameter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.ActionParameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.ActionParameter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Action.ActionParameter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The key to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Action.ActionParameter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.ActionParameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.ActionParameter.Builder
Overrides

setValue(String value)

public Action.ActionParameter.Builder setValue(String value)

The value of the parameter.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
Action.ActionParameter.Builder

This builder for chaining.