- 2.52.0 (latest)
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.6
- 2.2.1
- 2.1.11
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.BuilderImplements
InstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
values | Iterable<? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessage> |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
values | Iterable<? extends com.google.cloud.memcache.v1beta2.Instance.Node> |
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;
Name | Description |
values | Iterable<String> The zones to add. |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
value | Instance.InstanceMessage |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
builderForValue | Instance.InstanceMessage.Builder |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
value | Instance.InstanceMessage |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
builderForValue | Instance.InstanceMessage.Builder |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Instance.Node |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Instance.Node.Builder |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
value | Instance.Node |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
builderForValue | Instance.Node.Builder |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
Instance.Node.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Instance.Builder |
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;
Name | Description |
value | String The zones to add. |
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;
Name | Description |
value | ByteString The bytes of the zones to add. |
Type | Description |
Instance.Builder | This builder for chaining. |
build()
public Instance build()
Type | Description |
Instance |
buildPartial()
public Instance buildPartial()
Type | Description |
Instance |
clear()
public Instance.Builder clear()
Type | Description |
Instance.Builder |
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;
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];
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];
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;
Type | Description |
Instance.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Instance.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Instance.Builder |
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;
Type | Description |
Instance.Builder |
clearLabels()
public Instance.Builder clearLabels()
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
Type | Description |
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];
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];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta2.MemcacheVersion memcache_version = 9;
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];
Type | Description |
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];
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];
Type | Description |
Instance.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Instance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Instance.Builder |
clearParameters()
public Instance.Builder clearParameters()
User defined parameters to apply to the memcached process on each node.
.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;
Type | Description |
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];
Type | Description |
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];
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];
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;
Type | Description |
Instance.Builder | This builder for chaining. |
clone()
public Instance.Builder clone()
Type | Description |
Instance.Builder |
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;
Name | Description |
key | String |
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;
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;
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];
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];
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Instance getDefaultInstanceForType()
Type | Description |
Instance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDiscoveryEndpoint()
public String getDiscoveryEndpoint()
Output only. Endpoint for the Discovery API.
string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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;
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;
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Type | Description |
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;
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Type | Description |
List<? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
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;
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;
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;
Name | Description |
key | String |
defaultValue | String |
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;
Name | Description |
key | String |
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
Type | Description |
MaintenancePolicyOrBuilder |
getMaintenanceSchedule()
public MaintenanceSchedule getMaintenanceSchedule()
Output only. Published maintenance schedule.
.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
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];
Type | Description |
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];
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];
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];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
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;
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.v1beta2.MemcacheVersion memcache_version = 9;
Type | Description |
int | The enum numeric value on the wire for memcacheVersion. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
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];
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];
Type | Description |
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];
Type | Description |
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];
Type | Description |
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];
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];
Type | Description |
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;
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.v1beta2.MemcacheParameters parameters = 11;
Type | Description |
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;
Type | Description |
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];
Type | Description |
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];
Type | Description |
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];
Type | Description |
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];
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];
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];
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;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
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];
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
Type | Description |
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];
Type | Description |
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];
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.v1beta2.MemcacheParameters parameters = 11;
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];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value | Timestamp |
Type | Description |
Instance.Builder |
mergeFrom(Instance other)
public Instance.Builder mergeFrom(Instance other)
Name | Description |
other | Instance |
Type | Description |
Instance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Instance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Instance.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Instance.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Instance.Builder |
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;
Name | Description |
value | MaintenancePolicy |
Type | Description |
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];
Name | Description |
value | MaintenanceSchedule |
Type | Description |
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];
Name | Description |
value | Instance.NodeConfig |
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.v1beta2.MemcacheParameters parameters = 11;
Name | Description |
value | MemcacheParameters |
Type | Description |
Instance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Instance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Instance.Builder |
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];
Name | Description |
value | Timestamp |
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;
Name | Description |
values | Map<String,String> |
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;
Name | Description |
key | String |
value | String |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
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;
Name | Description |
key | String |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
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;
Name | Description |
value | String The authorizedNetwork to set. |
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;
Name | Description |
value | ByteString The bytes for authorizedNetwork to set. |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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];
Name | Description |
value | String The discoveryEndpoint to set. |
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];
Name | Description |
value | ByteString The bytes for discoveryEndpoint to set. |
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;
Name | Description |
value | String The displayName to set. |
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;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Instance.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Instance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Instance.Builder |
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;
Name | Description |
index | int |
value | Instance.InstanceMessage |
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.v1beta2.Instance.InstanceMessage instance_messages = 19;
Name | Description |
index | int |
builderForValue | Instance.InstanceMessage.Builder |
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
Name | Description |
value | MaintenancePolicy |
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.v1beta2.MaintenancePolicy maintenance_policy = 22;
Name | Description |
builderForValue | MaintenancePolicy.Builder |
Type | Description |
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];
Name | Description |
value | MaintenanceSchedule |
Type | Description |
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];
Name | Description |
builderForValue | MaintenanceSchedule.Builder |
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];
Name | Description |
value | String The memcacheFullVersion to set. |
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];
Name | Description |
value | ByteString The bytes for memcacheFullVersion to set. |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
value | Instance.Node |
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.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
builderForValue | Instance.Node.Builder |
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.v1beta2.MemcacheVersion memcache_version = 9;
Name | Description |
value | MemcacheVersion The memcacheVersion to set. |
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.v1beta2.MemcacheVersion memcache_version = 9;
Name | Description |
value | int The enum numeric value on the wire for memcacheVersion to set. |
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];
Name | Description |
value | String The name to set. |
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];
Name | Description |
value | ByteString The bytes for name to set. |
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.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Instance.NodeConfig |
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.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Instance.NodeConfig.Builder |
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];
Name | Description |
value | int The nodeCount to set. |
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.v1beta2.MemcacheParameters parameters = 11;
Name | Description |
value | MemcacheParameters |
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.v1beta2.MemcacheParameters parameters = 11;
Name | Description |
builderForValue | MemcacheParameters.Builder |
Type | Description |
Instance.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Instance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Instance.Builder |
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];
Name | Description |
value | Instance.State The state to set. |
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.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Instance.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Instance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Instance.Builder |
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];
Name | Description |
value | boolean The updateAvailable to set. |
Type | Description |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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;
Name | Description |
index | int The index to set the value at. |
value | String The zones to set. |
Type | Description |
Instance.Builder | This builder for chaining. |