Interface InstanceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Instance,Instance.Builder
@Generated
public interface InstanceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Resource labels to represent user-provided metadata.The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.com.google.protobuf.ByteStringThe full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.User provided name for the instance, which is only used for display purposes.com.google.protobuf.ByteStringUser provided name for the instance, which is only used for display purposes.getInstanceMessages(int index) List of messages that describe the current state of the Memcached instance.intList of messages that describe the current state of the Memcached instance.List of messages that describe the current state of the Memcached instance.getInstanceMessagesOrBuilder(int index) List of messages that describe the current state of the Memcached instance.List<? extends Instance.InstanceMessageOrBuilder>List of messages that describe the current state of the Memcached instance.Deprecated.intResource labels to represent user-provided metadata.Resource labels to represent user-provided metadata.getLabelsOrDefault(String key, String defaultValue) Resource labels to represent user-provided metadata.getLabelsOrThrow(String key) Resource labels to represent user-provided metadata.The maintenance policy for the instance.The maintenance policy for the instance.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.getMemcacheNodes(int index) Output only.intOutput only.Output only.getMemcacheNodesOrBuilder(int index) Output only.List<? extends Instance.NodeOrBuilder>Output only.The major version of Memcached software.intThe major version of Memcached software.getName()Required.com.google.protobuf.ByteStringRequired.Required.Required.intRequired.User defined parameters to apply to the memcached process on each node.User defined parameters to apply to the memcached process on each node.getState()Output only.intOutput only.booleanOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getZones(int index) Zones in which Memcached nodes should be provisioned.com.google.protobuf.ByteStringgetZonesBytes(int index) Zones in which Memcached nodes should be provisioned.intZones in which Memcached nodes should be provisioned.Zones in which Memcached nodes should be provisioned.booleanOutput only.booleanThe maintenance policy for the instance.booleanOutput only.booleanRequired.booleanUser defined parameters to apply to the memcached process on each node.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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][google.cloud.memcache.v1beta2.Instance.zones] field for more details.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.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][google.cloud.memcache.v1beta2.Instance.zones] field for more details.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for name.
-
getDisplayName
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:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.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:
- The bytes for displayName.
-
getLabelsCount
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; -
containsLabels
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; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
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; -
getLabelsOrDefault
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; -
getLabelsOrThrow
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; -
getAuthorizedNetwork
String getAuthorizedNetwork()The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 4;- Returns:
- The authorizedNetwork.
-
getAuthorizedNetworkBytes
com.google.protobuf.ByteString getAuthorizedNetworkBytes()The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 4;- Returns:
- The bytes for authorizedNetwork.
-
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:
- A list containing the zones.
-
getZonesCount
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:
- The count of zones.
-
getZones
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:
index- The index of the element to return.- Returns:
- The zones at the given index.
-
getZonesBytes
com.google.protobuf.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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the zones at the given index.
-
getNodeCount
int getNodeCount()Required. Number of nodes in the Memcached instance.
int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The nodeCount.
-
hasNodeConfig
boolean hasNodeConfig()Required. Configuration for Memcached nodes.
.google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the nodeConfig field is set.
-
getNodeConfig
Instance.NodeConfig getNodeConfig()Required. Configuration for Memcached nodes.
.google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The nodeConfig.
-
getNodeConfigOrBuilder
Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()Required. Configuration for Memcached nodes.
.google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; -
getMemcacheVersionValue
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:
- The enum numeric value on the wire for memcacheVersion.
-
getMemcacheVersion
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:
- The memcacheVersion.
-
hasParameters
boolean hasParameters()User defined parameters to apply to the memcached process on each node.
.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;- Returns:
- Whether the parameters field is set.
-
getParameters
MemcacheParameters getParameters()User defined parameters to apply to the memcached process on each node.
.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;- Returns:
- The parameters.
-
getParametersOrBuilder
MemcacheParametersOrBuilder getParametersOrBuilder()User defined parameters to apply to the memcached process on each node.
.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; -
getMemcacheNodesList
List<Instance.Node> getMemcacheNodesList()Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMemcacheNodes
Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMemcacheNodesCount
int getMemcacheNodesCount()Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMemcacheNodesOrBuilderList
List<? extends Instance.NodeOrBuilder> getMemcacheNodesOrBuilderList()Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMemcacheNodesOrBuilder
Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasCreateTime
boolean hasCreateTime()Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. The time the instance was updated.
.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. The time the instance was updated.
.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time the instance was updated.
.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getStateValue
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:
- The enum numeric value on the wire for state.
-
getState
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:
- The state.
-
getMemcacheFullVersion
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:
- The memcacheFullVersion.
-
getMemcacheFullVersionBytes
com.google.protobuf.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:
- The bytes for memcacheFullVersion.
-
getInstanceMessagesList
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; -
getInstanceMessages
List of messages that describe the current state of the Memcached instance.
repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; -
getInstanceMessagesCount
int getInstanceMessagesCount()List of messages that describe the current state of the Memcached instance.
repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; -
getInstanceMessagesOrBuilderList
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; -
getInstanceMessagesOrBuilder
List of messages that describe the current state of the Memcached instance.
repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; -
getDiscoveryEndpoint
String getDiscoveryEndpoint()Output only. Endpoint for the Discovery API.
string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The discoveryEndpoint.
-
getDiscoveryEndpointBytes
com.google.protobuf.ByteString getDiscoveryEndpointBytes()Output only. Endpoint for the Discovery API.
string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for discoveryEndpoint.
-
getUpdateAvailable
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:
- The updateAvailable.
-
hasMaintenancePolicy
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:
- Whether the maintenancePolicy field is set.
-
getMaintenancePolicy
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:
- The maintenancePolicy.
-
getMaintenancePolicyOrBuilder
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; -
hasMaintenanceSchedule
boolean hasMaintenanceSchedule()Output only. Published maintenance schedule.
.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the maintenanceSchedule field is set.
-
getMaintenanceSchedule
MaintenanceSchedule getMaintenanceSchedule()Output only. Published maintenance schedule.
.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The maintenanceSchedule.
-
getMaintenanceScheduleOrBuilder
MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()Output only. Published maintenance schedule.
.google.cloud.memcache.v1beta2.MaintenanceSchedule maintenance_schedule = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
-