Class Instance.Builder (2.18.0)

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

A Memorystore for Memcached instance

Protobuf type google.cloud.memcache.v1beta2.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessage>
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.memcache.v1beta2.Instance.Node>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The zones to add.

Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
valueInstance.InstanceMessage
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
builderForValueInstance.InstanceMessage.Builder
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameters
NameDescription
indexint
valueInstance.InstanceMessage
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameters
NameDescription
indexint
builderForValueInstance.InstanceMessage.Builder
Returns
TypeDescription
Instance.Builder

addInstanceMessagesBuilder()

public Instance.InstanceMessage.Builder addInstanceMessagesBuilder()

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

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

Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.Node
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueInstance.Node.Builder
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueInstance.Node
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueInstance.Node.Builder
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Node.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The zones to add.

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

The bytes of the zones to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

build()

public Instance build()
Returns
TypeDescription
Instance

buildPartial()

public Instance buildPartial()
Returns
TypeDescription
Instance

clear()

public Instance.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Instance.Builder
Overrides

clearInstanceMessages()

public Instance.Builder clearInstanceMessages()

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

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

Returns
TypeDescription
Instance.Builder

clearLabels()

public Instance.Builder clearLabels()
Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Returns
TypeDescription
Instance.Builder

clearMaintenanceSchedule()

public Instance.Builder clearMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1beta2.MemcacheVersion memcache_version = 9;

Returns
TypeDescription
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
TypeDescription
Instance.Builder

This builder for chaining.

clearNodeConfig()

public Instance.Builder clearNodeConfig()

Required. Configuration for Memcached nodes.

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

Returns
TypeDescription
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
TypeDescription
Instance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public Instance.Builder clearParameters()

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

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

Returns
TypeDescription
Instance.Builder

clearState()

public Instance.Builder clearState()

Output only. The state of this Memcached instance.

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearUpdateAvailable()

public Instance.Builder clearUpdateAvailable()

Output only. Returns true if there is an update waiting to be applied

bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.Builder

This builder for chaining.

clone()

public Instance.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
TypeDescription
Instance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveryEndpoint()

public String getDiscoveryEndpoint()

Output only. Endpoint for the Discovery API.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Returns
TypeDescription
List<Builder>

getInstanceMessagesCount()

public int getInstanceMessagesCount()

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

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

Returns
TypeDescription
int

getInstanceMessagesList()

public List<Instance.InstanceMessage> getInstanceMessagesList()

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

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

Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Returns
TypeDescription
List<? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder>

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Returns
TypeDescription
MaintenancePolicyOrBuilder

getMaintenanceSchedule()

public MaintenanceSchedule getMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MaintenanceSchedule

The maintenanceSchedule.

getMaintenanceScheduleBuilder()

public MaintenanceSchedule.Builder getMaintenanceScheduleBuilder()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MaintenanceSchedule.Builder

getMaintenanceScheduleOrBuilder()

public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getMemcacheNodesCount()

public int getMemcacheNodesCount()

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

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

Returns
TypeDescription
int

getMemcacheNodesList()

public List<Instance.Node> getMemcacheNodesList()

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

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

Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.memcache.v1beta2.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.v1beta2.MemcacheVersion memcache_version = 9;

Returns
TypeDescription
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.v1beta2.MemcacheVersion memcache_version = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for memcacheVersion.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNodeConfig()

public Instance.NodeConfig getNodeConfig()

Required. Configuration for Memcached nodes.

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

Returns
TypeDescription
Instance.NodeConfig

The nodeConfig.

getNodeConfigBuilder()

public Instance.NodeConfig.Builder getNodeConfigBuilder()

Required. Configuration for Memcached nodes.

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

Returns
TypeDescription
Instance.NodeConfig.Builder

getNodeConfigOrBuilder()

public Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()

Required. Configuration for Memcached nodes.

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

Returns
TypeDescription
Instance.NodeConfigOrBuilder

getNodeCount()

public int getNodeCount()

Required. Number of nodes in the Memcached instance.

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

Returns
TypeDescription
int

The nodeCount.

getParameters()

public MemcacheParameters getParameters()

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

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

Returns
TypeDescription
MemcacheParameters

The parameters.

getParametersBuilder()

public MemcacheParameters.Builder getParametersBuilder()

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

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

Returns
TypeDescription
MemcacheParameters.Builder

getParametersOrBuilder()

public MemcacheParametersOrBuilder getParametersOrBuilder()

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

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

Returns
TypeDescription
MemcacheParametersOrBuilder

getState()

public Instance.State getState()

Output only. The state of this Memcached instance.

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

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this Memcached instance.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateAvailable()

public boolean getUpdateAvailable()

Output only. Returns true if there is an update waiting to be applied

bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The updateAvailable.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Returns
TypeDescription
boolean

Whether the maintenancePolicy field is set.

hasMaintenanceSchedule()

public boolean hasMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the maintenanceSchedule field is set.

hasNodeConfig()

public boolean hasNodeConfig()

Required. Configuration for Memcached nodes.

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

Returns
TypeDescription
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.v1beta2.MemcacheParameters parameters = 11;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Instance.Builder

mergeFrom(Instance other)

public Instance.Builder mergeFrom(Instance other)
Parameter
NameDescription
otherInstance
Returns
TypeDescription
Instance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Instance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Parameter
NameDescription
valueMaintenancePolicy
Returns
TypeDescription
Instance.Builder

mergeMaintenanceSchedule(MaintenanceSchedule value)

public Instance.Builder mergeMaintenanceSchedule(MaintenanceSchedule value)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMaintenanceSchedule
Returns
TypeDescription
Instance.Builder

mergeNodeConfig(Instance.NodeConfig value)

public Instance.Builder mergeNodeConfig(Instance.NodeConfig value)

Required. Configuration for Memcached nodes.

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

Parameter
NameDescription
valueInstance.NodeConfig
Returns
TypeDescription
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.v1beta2.MemcacheParameters parameters = 11;

Parameter
NameDescription
valueMemcacheParameters
Returns
TypeDescription
Instance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The authorizedNetwork to set.

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

The bytes for authorizedNetwork to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The discoveryEndpoint to set.

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

The bytes for discoveryEndpoint to set.

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameters
NameDescription
indexint
valueInstance.InstanceMessage
Returns
TypeDescription
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.v1beta2.Instance.InstanceMessage instance_messages = 19;

Parameters
NameDescription
indexint
builderForValueInstance.InstanceMessage.Builder
Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Parameter
NameDescription
valueMaintenancePolicy
Returns
TypeDescription
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.v1beta2.MaintenancePolicy maintenance_policy = 22;

Parameter
NameDescription
builderForValueMaintenancePolicy.Builder
Returns
TypeDescription
Instance.Builder

setMaintenanceSchedule(MaintenanceSchedule value)

public Instance.Builder setMaintenanceSchedule(MaintenanceSchedule value)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMaintenanceSchedule
Returns
TypeDescription
Instance.Builder

setMaintenanceSchedule(MaintenanceSchedule.Builder builderForValue)

public Instance.Builder setMaintenanceSchedule(MaintenanceSchedule.Builder builderForValue)

Output only. Published maintenance schedule.

.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueMaintenanceSchedule.Builder
Returns
TypeDescription
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
NameDescription
valueString

The memcacheFullVersion to set.

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

The bytes for memcacheFullVersion to set.

Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueInstance.Node
Returns
TypeDescription
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueInstance.Node.Builder
Returns
TypeDescription
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.v1beta2.MemcacheVersion memcache_version = 9;

Parameter
NameDescription
valueMemcacheVersion

The memcacheVersion to set.

Returns
TypeDescription
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.v1beta2.MemcacheVersion memcache_version = 9;

Parameter
NameDescription
valueint

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

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueInstance.NodeConfig
Returns
TypeDescription
Instance.Builder

setNodeConfig(Instance.NodeConfig.Builder builderForValue)

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

Required. Configuration for Memcached nodes.

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

Parameter
NameDescription
builderForValueInstance.NodeConfig.Builder
Returns
TypeDescription
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
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
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.v1beta2.MemcacheParameters parameters = 11;

Parameter
NameDescription
valueMemcacheParameters
Returns
TypeDescription
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.v1beta2.MemcacheParameters parameters = 11;

Parameter
NameDescription
builderForValueMemcacheParameters.Builder
Returns
TypeDescription
Instance.Builder

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

public Instance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.State

The state to set.

Returns
TypeDescription
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.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateAvailable(boolean value)

public Instance.Builder setUpdateAvailable(boolean value)

Output only. Returns true if there is an update waiting to be applied

bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The updateAvailable to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The zones to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.