Class MemcacheParameters.Builder (2.52.0)

public static final class MemcacheParameters.Builder extends GeneratedMessageV3.Builder<MemcacheParameters.Builder> implements MemcacheParametersOrBuilder

Protobuf type google.cloud.memcache.v1.MemcacheParameters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MemcacheParameters build()
Returns
Type Description
MemcacheParameters

buildPartial()

public MemcacheParameters buildPartial()
Returns
Type Description
MemcacheParameters

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public MemcacheParameters.Builder clearId()

Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemcacheParameters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParams()

public MemcacheParameters.Builder clearParams()
Returns
Type Description
MemcacheParameters.Builder

clone()

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

containsParams(String key)

public boolean containsParams(String key)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public MemcacheParameters getDefaultInstanceForType()
Returns
Type Description
MemcacheParameters

getDescriptorForType()

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

getId()

public String getId()

Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getMutableParams() (deprecated)

public Map<String,String> getMutableParams()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParams() (deprecated)

public Map<String,String> getParams()

Use #getParamsMap() instead.

Returns
Type Description
Map<String,String>

getParamsCount()

public int getParamsCount()

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Returns
Type Description
int

getParamsMap()

public Map<String,String> getParamsMap()

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Returns
Type Description
Map<String,String>

getParamsOrDefault(String key, String defaultValue)

public String getParamsOrDefault(String key, String defaultValue)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParamsOrThrow(String key)

public String getParamsOrThrow(String key)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MemcacheParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllParams(Map<String,String> values)

public MemcacheParameters.Builder putAllParams(Map<String,String> values)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
MemcacheParameters.Builder

putParams(String key, String value)

public MemcacheParameters.Builder putParams(String key, String value)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
MemcacheParameters.Builder

removeParams(String key)

public MemcacheParameters.Builder removeParams(String key)

User defined set of parameters to use in the memcached process.

map<string, string> params = 3;

Parameter
Name Description
key String
Returns
Type Description
MemcacheParameters.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public MemcacheParameters.Builder setId(String value)

Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
MemcacheParameters.Builder

This builder for chaining.

setIdBytes(ByteString value)

public MemcacheParameters.Builder setIdBytes(ByteString value)

Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
MemcacheParameters.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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