Class WidgetMarkup.FormAction.ActionParameter.Builder (0.3.0)

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

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

Protobuf type google.chat.v1.WidgetMarkup.FormAction.ActionParameter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public WidgetMarkup.FormAction.ActionParameter.Builder clearKey()

The name of the parameter for the action script.

string key = 1;

Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public WidgetMarkup.FormAction.ActionParameter.Builder clearValue()

The value of the parameter.

string value = 2;

Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WidgetMarkup.FormAction.ActionParameter getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.FormAction.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(WidgetMarkup.FormAction.ActionParameter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public WidgetMarkup.FormAction.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
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public WidgetMarkup.FormAction.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
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public WidgetMarkup.FormAction.ActionParameter.Builder setValue(String value)

The value of the parameter.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.

setValueBytes(ByteString value)

public WidgetMarkup.FormAction.ActionParameter.Builder setValueBytes(ByteString value)

The value of the parameter.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
WidgetMarkup.FormAction.ActionParameter.Builder

This builder for chaining.