Class ApplyParametersRequest.Builder (2.44.0)

public static final class ApplyParametersRequest.Builder extends GeneratedMessageV3.Builder<ApplyParametersRequest.Builder> implements ApplyParametersRequestOrBuilder

Request for ApplyParameters.

Protobuf type google.cloud.memcache.v1beta2.ApplyParametersRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNodeIds(Iterable<String> values)

public ApplyParametersRequest.Builder addAllNodeIds(Iterable<String> values)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameter
Name Description
values Iterable<String>

The nodeIds to add.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

addNodeIds(String value)

public ApplyParametersRequest.Builder addNodeIds(String value)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameter
Name Description
value String

The nodeIds to add.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

addNodeIdsBytes(ByteString value)

public ApplyParametersRequest.Builder addNodeIdsBytes(ByteString value)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the nodeIds to add.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApplyParametersRequest build()
Returns
Type Description
ApplyParametersRequest

buildPartial()

public ApplyParametersRequest buildPartial()
Returns
Type Description
ApplyParametersRequest

clear()

public ApplyParametersRequest.Builder clear()
Returns
Type Description
ApplyParametersRequest.Builder
Overrides

clearApplyAll()

public ApplyParametersRequest.Builder clearApplyAll()

Whether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and ApplyParameters updates all nodes within the instance.

bool apply_all = 3;

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ApplyParametersRequest.Builder clearName()

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

clearNodeIds()

public ApplyParametersRequest.Builder clearNodeIds()

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ApplyParametersRequest.Builder clone()
Returns
Type Description
ApplyParametersRequest.Builder
Overrides

getApplyAll()

public boolean getApplyAll()

Whether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and ApplyParameters updates all nodes within the instance.

bool apply_all = 3;

Returns
Type Description
boolean

The applyAll.

getDefaultInstanceForType()

public ApplyParametersRequest getDefaultInstanceForType()
Returns
Type Description
ApplyParametersRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getNodeIds(int index)

public String getNodeIds(int index)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nodeIds at the given index.

getNodeIdsBytes(int index)

public ByteString getNodeIdsBytes(int index)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nodeIds at the given index.

getNodeIdsCount()

public int getNodeIdsCount()

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Returns
Type Description
int

The count of nodeIds.

getNodeIdsList()

public ProtocolStringList getNodeIdsList()

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the nodeIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApplyParametersRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApplyAll(boolean value)

public ApplyParametersRequest.Builder setApplyAll(boolean value)

Whether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and ApplyParameters updates all nodes within the instance.

bool apply_all = 3;

Parameter
Name Description
value boolean

The applyAll to set.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ApplyParametersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApplyParametersRequest.Builder
Overrides

setName(String value)

public ApplyParametersRequest.Builder setName(String value)

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApplyParametersRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

setNodeIds(int index, String value)

public ApplyParametersRequest.Builder setNodeIds(int index, String value)

Nodes to which the instance-level parameter group is applied.

repeated string node_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The nodeIds to set.

Returns
Type Description
ApplyParametersRequest.Builder

This builder for chaining.

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

public ApplyParametersRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ApplyParametersRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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