Class Instance.Builder (2.52.0)

public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder

A Memorystore for Memcached instance

Protobuf type google.cloud.memcache.v1.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInstanceMessages(Iterable<? extends Instance.InstanceMessage> values)

public Instance.Builder addAllInstanceMessages(Iterable<? extends Instance.InstanceMessage> values)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
values Iterable<? extends com.google.cloud.memcache.v1.Instance.InstanceMessage>
Returns
Type Description
Instance.Builder

addAllMemcacheNodes(Iterable<? extends Instance.Node> values)

public Instance.Builder addAllMemcacheNodes(Iterable<? extends Instance.Node> values)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.memcache.v1.Instance.Node>
Returns
Type Description
Instance.Builder

addAllZones(Iterable<String> values)

public Instance.Builder addAllZones(Iterable<String> values)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
values Iterable<String>

The zones to add.

Returns
Type Description
Instance.Builder

This builder for chaining.

addInstanceMessages(Instance.InstanceMessage value)

public Instance.Builder addInstanceMessages(Instance.InstanceMessage value)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
value Instance.InstanceMessage
Returns
Type Description
Instance.Builder

addInstanceMessages(Instance.InstanceMessage.Builder builderForValue)

public Instance.Builder addInstanceMessages(Instance.InstanceMessage.Builder builderForValue)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
builderForValue Instance.InstanceMessage.Builder
Returns
Type Description
Instance.Builder

addInstanceMessages(int index, Instance.InstanceMessage value)

public Instance.Builder addInstanceMessages(int index, Instance.InstanceMessage value)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameters
Name Description
index int
value Instance.InstanceMessage
Returns
Type Description
Instance.Builder

addInstanceMessages(int index, Instance.InstanceMessage.Builder builderForValue)

public Instance.Builder addInstanceMessages(int index, Instance.InstanceMessage.Builder builderForValue)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameters
Name Description
index int
builderForValue Instance.InstanceMessage.Builder
Returns
Type Description
Instance.Builder

addInstanceMessagesBuilder()

public Instance.InstanceMessage.Builder addInstanceMessagesBuilder()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
Instance.InstanceMessage.Builder

addInstanceMessagesBuilder(int index)

public Instance.InstanceMessage.Builder addInstanceMessagesBuilder(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessage.Builder

addMemcacheNodes(Instance.Node value)

public Instance.Builder addMemcacheNodes(Instance.Node value)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Instance.Node
Returns
Type Description
Instance.Builder

addMemcacheNodes(Instance.Node.Builder builderForValue)

public Instance.Builder addMemcacheNodes(Instance.Node.Builder builderForValue)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Instance.Node.Builder
Returns
Type Description
Instance.Builder

addMemcacheNodes(int index, Instance.Node value)

public Instance.Builder addMemcacheNodes(int index, Instance.Node value)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Instance.Node
Returns
Type Description
Instance.Builder

addMemcacheNodes(int index, Instance.Node.Builder builderForValue)

public Instance.Builder addMemcacheNodes(int index, Instance.Node.Builder builderForValue)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Instance.Node.Builder
Returns
Type Description
Instance.Builder

addMemcacheNodesBuilder()

public Instance.Node.Builder addMemcacheNodesBuilder()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

addMemcacheNodesBuilder(int index)

public Instance.Node.Builder addMemcacheNodesBuilder(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Node.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addZones(String value)

public Instance.Builder addZones(String value)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
value String

The zones to add.

Returns
Type Description
Instance.Builder

This builder for chaining.

addZonesBytes(ByteString value)

public Instance.Builder addZonesBytes(ByteString value)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
value ByteString

The bytes of the zones to add.

Returns
Type Description
Instance.Builder

This builder for chaining.

build()

public Instance build()
Returns
Type Description
Instance

buildPartial()

public Instance buildPartial()
Returns
Type Description
Instance

clear()

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

clearAuthorizedNetwork()

public Instance.Builder clearAuthorizedNetwork()

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearCreateTime()

public Instance.Builder clearCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearDiscoveryEndpoint()

public Instance.Builder clearDiscoveryEndpoint()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearDisplayName()

public Instance.Builder clearDisplayName()

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceMessages()

public Instance.Builder clearInstanceMessages()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
Instance.Builder

clearLabels()

public Instance.Builder clearLabels()
Returns
Type Description
Instance.Builder

clearMaintenancePolicy()

public Instance.Builder clearMaintenancePolicy()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
Instance.Builder

clearMaintenanceSchedule()

public Instance.Builder clearMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearMemcacheFullVersion()

public Instance.Builder clearMemcacheFullVersion()

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearMemcacheNodes()

public Instance.Builder clearMemcacheNodes()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearMemcacheVersion()

public Instance.Builder clearMemcacheVersion()

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearName()

public Instance.Builder clearName()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}

Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearNodeConfig()

public Instance.Builder clearNodeConfig()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.Builder

clearNodeCount()

public Instance.Builder clearNodeCount()

Required. Number of nodes in the Memcached instance.

int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public Instance.Builder clearParameters()

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
Instance.Builder

clearState()

public Instance.Builder clearState()

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearUpdateTime()

public Instance.Builder clearUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearZones()

public Instance.Builder clearZones()

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Returns
Type Description
Instance.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAuthorizedNetwork()

public String getAuthorizedNetwork()

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Returns
Type Description
String

The authorizedNetwork.

getAuthorizedNetworkBytes()

public ByteString getAuthorizedNetworkBytes()

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Returns
Type Description
ByteString

The bytes for authorizedNetwork.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
Type Description
Instance

getDescriptorForType()

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

getDiscoveryEndpoint()

public String getDiscoveryEndpoint()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The discoveryEndpoint.

getDiscoveryEndpointBytes()

public ByteString getDiscoveryEndpointBytes()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for discoveryEndpoint.

getDisplayName()

public String getDisplayName()

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getInstanceMessages(int index)

public Instance.InstanceMessage getInstanceMessages(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessage

getInstanceMessagesBuilder(int index)

public Instance.InstanceMessage.Builder getInstanceMessagesBuilder(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessage.Builder

getInstanceMessagesBuilderList()

public List<Instance.InstanceMessage.Builder> getInstanceMessagesBuilderList()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
List<Builder>

getInstanceMessagesCount()

public int getInstanceMessagesCount()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
int

getInstanceMessagesList()

public List<Instance.InstanceMessage> getInstanceMessagesList()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
List<InstanceMessage>

getInstanceMessagesOrBuilder(int index)

public Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessageOrBuilder

getInstanceMessagesOrBuilderList()

public List<? extends Instance.InstanceMessageOrBuilder> getInstanceMessagesOrBuilderList()

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
List<? extends com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMaintenancePolicy()

public MaintenancePolicy getMaintenancePolicy()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
MaintenancePolicy

The maintenancePolicy.

getMaintenancePolicyBuilder()

public MaintenancePolicy.Builder getMaintenancePolicyBuilder()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
MaintenancePolicy.Builder

getMaintenancePolicyOrBuilder()

public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
MaintenancePolicyOrBuilder

getMaintenanceSchedule()

public MaintenanceSchedule getMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MaintenanceSchedule

The maintenanceSchedule.

getMaintenanceScheduleBuilder()

public MaintenanceSchedule.Builder getMaintenanceScheduleBuilder()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MaintenanceSchedule.Builder

getMaintenanceScheduleOrBuilder()

public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MaintenanceScheduleOrBuilder

getMemcacheFullVersion()

public String getMemcacheFullVersion()

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The memcacheFullVersion.

getMemcacheFullVersionBytes()

public ByteString getMemcacheFullVersionBytes()

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for memcacheFullVersion.

getMemcacheNodes(int index)

public Instance.Node getMemcacheNodes(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Node

getMemcacheNodesBuilder(int index)

public Instance.Node.Builder getMemcacheNodesBuilder(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Node.Builder

getMemcacheNodesBuilderList()

public List<Instance.Node.Builder> getMemcacheNodesBuilderList()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getMemcacheNodesCount()

public int getMemcacheNodesCount()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getMemcacheNodesList()

public List<Instance.Node> getMemcacheNodesList()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Node>

getMemcacheNodesOrBuilder(int index)

public Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.NodeOrBuilder

getMemcacheNodesOrBuilderList()

public List<? extends Instance.NodeOrBuilder> getMemcacheNodesOrBuilderList()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.memcache.v1.Instance.NodeOrBuilder>

getMemcacheVersion()

public MemcacheVersion getMemcacheVersion()

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
Type Description
MemcacheVersion

The memcacheVersion.

getMemcacheVersionValue()

public int getMemcacheVersionValue()

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
Type Description
int

The enum numeric value on the wire for memcacheVersion.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}

Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}

Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getNodeConfig()

public Instance.NodeConfig getNodeConfig()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.NodeConfig

The nodeConfig.

getNodeConfigBuilder()

public Instance.NodeConfig.Builder getNodeConfigBuilder()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.NodeConfig.Builder

getNodeConfigOrBuilder()

public Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.NodeConfigOrBuilder

getNodeCount()

public int getNodeCount()

Required. Number of nodes in the Memcached instance.

int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The nodeCount.

getParameters()

public MemcacheParameters getParameters()

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
MemcacheParameters

The parameters.

getParametersBuilder()

public MemcacheParameters.Builder getParametersBuilder()

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
MemcacheParameters.Builder

getParametersOrBuilder()

public MemcacheParametersOrBuilder getParametersOrBuilder()

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
MemcacheParametersOrBuilder

getState()

public Instance.State getState()

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getZones(int index)

public String getZones(int index)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The zones at the given index.

getZonesBytes(int index)

public ByteString getZonesBytes(int index)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the zones at the given index.

getZonesCount()

public int getZonesCount()

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Returns
Type Description
int

The count of zones.

getZonesList()

public ProtocolStringList getZonesList()

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Returns
Type Description
ProtocolStringList

A list containing the zones.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasMaintenancePolicy()

public boolean hasMaintenancePolicy()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
boolean

Whether the maintenancePolicy field is set.

hasMaintenanceSchedule()

public boolean hasMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the maintenanceSchedule field is set.

hasNodeConfig()

public boolean hasNodeConfig()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the nodeConfig field is set.

hasParameters()

public boolean hasParameters()

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
boolean

Whether the parameters field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

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

mergeCreateTime(Timestamp value)

public Instance.Builder mergeCreateTime(Timestamp value)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

mergeFrom(Instance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaintenancePolicy(MaintenancePolicy value)

public Instance.Builder mergeMaintenancePolicy(MaintenancePolicy value)

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Parameter
Name Description
value MaintenancePolicy
Returns
Type Description
Instance.Builder

mergeMaintenanceSchedule(MaintenanceSchedule value)

public Instance.Builder mergeMaintenanceSchedule(MaintenanceSchedule value)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MaintenanceSchedule
Returns
Type Description
Instance.Builder

mergeNodeConfig(Instance.NodeConfig value)

public Instance.Builder mergeNodeConfig(Instance.NodeConfig value)

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instance.NodeConfig
Returns
Type Description
Instance.Builder

mergeParameters(MemcacheParameters value)

public Instance.Builder mergeParameters(MemcacheParameters value)

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Parameter
Name Description
value MemcacheParameters
Returns
Type Description
Instance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Instance.Builder mergeUpdateTime(Timestamp value)

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

putAllLabels(Map<String,String> values)

public Instance.Builder putAllLabels(Map<String,String> values)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

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

putLabels(String key, String value)

public Instance.Builder putLabels(String key, String value)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

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

removeInstanceMessages(int index)

public Instance.Builder removeInstanceMessages(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

removeLabels(String key)

public Instance.Builder removeLabels(String key)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
Instance.Builder

removeMemcacheNodes(int index)

public Instance.Builder removeMemcacheNodes(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

setAuthorizedNetwork(String value)

public Instance.Builder setAuthorizedNetwork(String value)

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Parameter
Name Description
value String

The authorizedNetwork to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setAuthorizedNetworkBytes(ByteString value)

public Instance.Builder setAuthorizedNetworkBytes(ByteString value)

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Parameter
Name Description
value ByteString

The bytes for authorizedNetwork to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Instance.Builder setCreateTime(Timestamp value)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder

setDiscoveryEndpoint(String value)

public Instance.Builder setDiscoveryEndpoint(String value)

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The discoveryEndpoint to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDiscoveryEndpointBytes(ByteString value)

public Instance.Builder setDiscoveryEndpointBytes(ByteString value)

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for discoveryEndpoint to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDisplayName(String value)

public Instance.Builder setDisplayName(String value)

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Instance.Builder setDisplayNameBytes(ByteString value)

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceMessages(int index, Instance.InstanceMessage value)

public Instance.Builder setInstanceMessages(int index, Instance.InstanceMessage value)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameters
Name Description
index int
value Instance.InstanceMessage
Returns
Type Description
Instance.Builder

setInstanceMessages(int index, Instance.InstanceMessage.Builder builderForValue)

public Instance.Builder setInstanceMessages(int index, Instance.InstanceMessage.Builder builderForValue)

List of messages that describe the current state of the Memcached instance.

repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameters
Name Description
index int
builderForValue Instance.InstanceMessage.Builder
Returns
Type Description
Instance.Builder

setMaintenancePolicy(MaintenancePolicy value)

public Instance.Builder setMaintenancePolicy(MaintenancePolicy value)

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Parameter
Name Description
value MaintenancePolicy
Returns
Type Description
Instance.Builder

setMaintenancePolicy(MaintenancePolicy.Builder builderForValue)

public Instance.Builder setMaintenancePolicy(MaintenancePolicy.Builder builderForValue)

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Parameter
Name Description
builderForValue MaintenancePolicy.Builder
Returns
Type Description
Instance.Builder

setMaintenanceSchedule(MaintenanceSchedule value)

public Instance.Builder setMaintenanceSchedule(MaintenanceSchedule value)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MaintenanceSchedule
Returns
Type Description
Instance.Builder

setMaintenanceSchedule(MaintenanceSchedule.Builder builderForValue)

public Instance.Builder setMaintenanceSchedule(MaintenanceSchedule.Builder builderForValue)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MaintenanceSchedule.Builder
Returns
Type Description
Instance.Builder

setMemcacheFullVersion(String value)

public Instance.Builder setMemcacheFullVersion(String value)

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The memcacheFullVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setMemcacheFullVersionBytes(ByteString value)

public Instance.Builder setMemcacheFullVersionBytes(ByteString value)

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for memcacheFullVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setMemcacheNodes(int index, Instance.Node value)

public Instance.Builder setMemcacheNodes(int index, Instance.Node value)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Instance.Node
Returns
Type Description
Instance.Builder

setMemcacheNodes(int index, Instance.Node.Builder builderForValue)

public Instance.Builder setMemcacheNodes(int index, Instance.Node.Builder builderForValue)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Instance.Node.Builder
Returns
Type Description
Instance.Builder

setMemcacheVersion(MemcacheVersion value)

public Instance.Builder setMemcacheVersion(MemcacheVersion value)

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Parameter
Name Description
value MemcacheVersion

The memcacheVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setMemcacheVersionValue(int value)

public Instance.Builder setMemcacheVersionValue(int value)

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Parameter
Name Description
value int

The enum numeric value on the wire for memcacheVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setName(String value)

public Instance.Builder setName(String value)

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}

Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Instance.Builder setNameBytes(ByteString value)

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}

Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNodeConfig(Instance.NodeConfig value)

public Instance.Builder setNodeConfig(Instance.NodeConfig value)

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instance.NodeConfig
Returns
Type Description
Instance.Builder

setNodeConfig(Instance.NodeConfig.Builder builderForValue)

public Instance.Builder setNodeConfig(Instance.NodeConfig.Builder builderForValue)

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Instance.NodeConfig.Builder
Returns
Type Description
Instance.Builder

setNodeCount(int value)

public Instance.Builder setNodeCount(int value)

Required. Number of nodes in the Memcached instance.

int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The nodeCount to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setParameters(MemcacheParameters value)

public Instance.Builder setParameters(MemcacheParameters value)

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Parameter
Name Description
value MemcacheParameters
Returns
Type Description
Instance.Builder

setParameters(MemcacheParameters.Builder builderForValue)

public Instance.Builder setParameters(MemcacheParameters.Builder builderForValue)

User defined parameters to apply to the memcached process on each node.

.google.cloud.memcache.v1.MemcacheParameters parameters = 11;

Parameter
Name Description
builderForValue MemcacheParameters.Builder
Returns
Type Description
Instance.Builder

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

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

setState(Instance.State value)

public Instance.Builder setState(Instance.State value)

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Instance.State

The state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Builder setStateValue(int value)

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Instance.Builder setUpdateTime(Timestamp value)

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Instance.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder

setZones(int index, String value)

public Instance.Builder setZones(int index, String value)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The zones to set.

Returns
Type Description
Instance.Builder

This builder for chaining.