Class ApplyParametersRequest.Builder (2.3.0)

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

Request for ApplyParameters.

Protobuf type google.cloud.memcache.v1.ApplyParametersRequest

Static Methods

getDescriptor()

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

Methods

addAllNodeIds(Iterable<String> values)

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

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameter
NameDescription
valuesIterable<String>

The nodeIds to add.

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

addNodeIds(String value)

public ApplyParametersRequest.Builder addNodeIds(String value)

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameter
NameDescription
valueString

The nodeIds to add.

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

addNodeIdsBytes(ByteString value)

public ApplyParametersRequest.Builder addNodeIdsBytes(ByteString value)

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameter
NameDescription
valueByteString

The bytes of the nodeIds to add.

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApplyParametersRequest build()
Returns
TypeDescription
ApplyParametersRequest

buildPartial()

public ApplyParametersRequest buildPartial()
Returns
TypeDescription
ApplyParametersRequest

clear()

public ApplyParametersRequest.Builder clear()
Returns
TypeDescription
ApplyParametersRequest.Builder
Overrides

clearApplyAll()

public ApplyParametersRequest.Builder clearApplyAll()

Whether to apply instance-level parameter group to all nodes. If set to true, will explicitly restrict users from specifying any nodes, and apply parameter group updates to all nodes within the instance.

bool apply_all = 3;

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ApplyParametersRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

clearNodeIds()

public ApplyParametersRequest.Builder clearNodeIds()

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ApplyParametersRequest.Builder clone()
Returns
TypeDescription
ApplyParametersRequest.Builder
Overrides

getApplyAll()

public boolean getApplyAll()

Whether to apply instance-level parameter group to all nodes. If set to true, will explicitly restrict users from specifying any nodes, and apply parameter group updates to all nodes within the instance.

bool apply_all = 3;

Returns
TypeDescription
boolean

The applyAll.

getDefaultInstanceForType()

public ApplyParametersRequest getDefaultInstanceForType()
Returns
TypeDescription
ApplyParametersRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNodeIds(int index)

public String getNodeIds(int index)

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The nodeIds at the given index.

getNodeIdsBytes(int index)

public ByteString getNodeIdsBytes(int index)

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the nodeIds at the given index.

getNodeIdsCount()

public int getNodeIdsCount()

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Returns
TypeDescription
int

The count of nodeIds.

getNodeIdsList()

public ProtocolStringList getNodeIdsList()

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the nodeIds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ApplyParametersRequest other)

public ApplyParametersRequest.Builder mergeFrom(ApplyParametersRequest other)
Parameter
NameDescription
otherApplyParametersRequest
Returns
TypeDescription
ApplyParametersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApplyParametersRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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, will explicitly restrict users from specifying any nodes, and apply parameter group updates to all nodes within the instance.

bool apply_all = 3;

Parameter
NameDescription
valueboolean

The applyAll to set.

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ApplyParametersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ApplyParametersRequest.Builder

This builder for chaining.

setNodeIds(int index, String value)

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

Nodes to which we should apply the instance-level parameter group.

repeated string node_ids = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The nodeIds to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApplyParametersRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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