0.16.0 (latest) 0.15.0 0.14.0 0.13.3 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Memorystore V1 Client class Instance.

A Memorystore instance.

Generated from protobuf message `google.cloud.memorystore.v1.Instance`

## Namespace

Google \\ Cloud \\ Memorystore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.GcsBackupSource` Optional. Immutable. Backups that stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the instances. Read permission is required to import from the provided Cloud Storage Objects. |
| `↳ managed_backup_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.ManagedBackupSource` Optional. Immutable. Backups that generated and managed by memorystore service. |
| `↳ name` | `string` Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance} |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Creation timestamp of the instance. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Latest update timestamp of the instance. |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Optional. Labels to represent user-provided metadata. |
| `↳ state` | `int` Output only. Current state of the instance. |
| `↳ state_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.StateInfo` Output only. Additional information about the state of the instance. |
| `↳ uid` | `string` Output only. System assigned, unique identifier for the instance. |
| `↳ replica_count` | `int` Optional. Number of replica nodes per shard. If omitted the default is 0 replicas. |
| `↳ authorization_mode` | `int` Optional. Immutable. Authorization mode of the instance. |
| `↳ transit_encryption_mode` | `int` Optional. Immutable. In-transit encryption mode of the instance. |
| `↳ shard_count` | `int` Optional. Number of shards for the instance. |
| `↳ discovery_endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.DiscoveryEndpoint>` Output only. Deprecated: The discovery_endpoints parameter is deprecated. As a result, it will not be populated if the connections are created using endpoints parameter. Instead of this parameter, for discovery, use endpoints.connections.pscConnection and endpoints.connections.pscAutoConnection with connectionType CONNECTION_TYPE_DISCOVERY. |
| `↳ node_type` | `int` Optional. Machine type for individual nodes of the instance. |
| `↳ persistence_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PersistenceConfig` Optional. Persistence configuration of the instance. |
| `↳ engine_version` | `string` Optional. Engine version of the instance. |
| `↳ engine_configs` | `array|Google\Protobuf\Internal\MapField` Optional. User-provided engine configurations for the instance. |
| `↳ node_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.NodeConfig` Output only. Configuration of individual nodes of the instance. |
| `↳ zone_distribution_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.ZoneDistributionConfig` Optional. Immutable. Zone distribution configuration of the instance for node allocation. |
| `↳ deletion_protection_enabled` | `bool` Optional. If set to true deletion of the instance will fail. |
| `↳ psc_auto_connections` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAutoConnection>` Optional. Immutable. Deprecated: Use the endpoints.connections.psc_auto_connection value instead. |
| `↳ psc_attachment_details` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAttachmentDetail>` Output only. Service attachment details to configure PSC connections. |
| `↳ endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.InstanceEndpoint>` Optional. Endpoints for the instance. |
| `↳ mode` | `int` Optional. Immutable. The mode config for the instance. |
| `↳ simulate_maintenance_event` | `bool` Optional. Input only. Simulate a maintenance event. |
| `↳ ondemand_maintenance` | `bool` Optional. Input only. Ondemand maintenance for the instance. |
| `↳ satisfies_pzs` | `bool` Optional. Output only. Reserved for future use. |
| `↳ satisfies_pzi` | `bool` Optional. Output only. Reserved for future use. |
| `↳ maintenance_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenancePolicy` Optional. The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule. |
| `↳ maintenance_schedule` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenanceSchedule` Output only. Published maintenance schedule. |
| `↳ cross_instance_replication_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.CrossInstanceReplicationConfig` Optional. The config for cross instance replication. |
| `↳ async_instance_endpoints_deletion_enabled` | `bool` Optional. If true, instance endpoints that are created and registered by customers can be deleted asynchronously. That is, such an instance endpoint can be de-registered before the forwarding rules in the instance endpoint are deleted. |
| `↳ kms_key` | `string` Optional. The KMS key used to encrypt the at-rest data of the cluster. |
| `↳ encryption_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.EncryptionInfo` Output only. Encryption information of the data at rest of the cluster. |
| `↳ backup_collection` | `string` Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection} |
| `↳ automated_backup_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AutomatedBackupConfig` Optional. The automated backup config for the instance. |
| `↳ maintenance_version` | `string` Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field. |
| `↳ effective_maintenance_version` | `string` Output only. This field represents the actual maintenance version of the instance. |
| `↳ available_maintenance_versions` | `string[]` Output only. This field is used to determine the available maintenance versions for the self service update. |
| `↳ allow_fewer_zones_deployment` | `bool` Optional. Immutable. Deprecated, do not use. |
| `↳ server_ca_mode` | `int` Optional. Immutable. The Server CA mode for the instance. |
| `↳ server_ca_pool` | `string` Optional. Immutable. The customer-managed CA pool for the instance. Only applicable if the Server CA mode is CUSTOMER_MANAGED_CAS_CA. Format: "projects/{project}/locations/{region}/caPools/{ca_pool}". |
| `↳ rotate_server_certificate` | `bool` Optional. Input only. Rotate the server certificates. |
| `↳ migration_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MigrationConfig` Output only. Migration config for the instance. |
| `↳ acl_policy` | `string` Optional. The ACL policy for the instance. Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy} |
| `↳ acl_policy_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AclPolicyInfo` Output only. Details of the applied ACL policy. |

### getGcsSource

Optional. Immutable. Backups that stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the instances.
Read permission is required to import from the provided Cloud Storage
Objects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.GcsBackupSource|null` |   |

### hasGcsSource

### setGcsSource

Optional. Immutable. Backups that stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the instances.
Read permission is required to import from the provided Cloud Storage
Objects.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.GcsBackupSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getManagedBackupSource

Optional. Immutable. Backups that generated and managed by memorystore
service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.ManagedBackupSource|null` |   |

### hasManagedBackupSource

### setManagedBackupSource

Optional. Immutable. Backups that generated and managed by memorystore
service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.ManagedBackupSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

Identifier. Unique name of the instance.

Format: projects/{project}/locations/{location}/instances/{instance}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. Unique name of the instance.

Format: projects/{project}/locations/{location}/instances/{instance}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Creation timestamp of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation timestamp of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. Latest update timestamp of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Latest update timestamp of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional. Labels to represent user-provided metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

Optional. Labels to represent user-provided metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. Current state of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.State). |

### setState

Output only. Current state of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStateInfo

Output only. Additional information about the state of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.StateInfo|null` |   |

### hasStateInfo

### clearStateInfo

### setStateInfo

Output only. Additional information about the state of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.StateInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUid

Output only. System assigned, unique identifier for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUid

Output only. System assigned, unique identifier for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReplicaCount

Optional. Number of replica nodes per shard. If omitted the default is 0
replicas.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasReplicaCount

### clearReplicaCount

### setReplicaCount

Optional. Number of replica nodes per shard. If omitted the default is 0
replicas.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthorizationMode

Optional. Immutable. Authorization mode of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthorizationMode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.AuthorizationMode). |

### setAuthorizationMode

Optional. Immutable. Authorization mode of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AuthorizationMode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.AuthorizationMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTransitEncryptionMode

Optional. Immutable. In-transit encryption mode of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TransitEncryptionMode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.TransitEncryptionMode). |

### setTransitEncryptionMode

Optional. Immutable. In-transit encryption mode of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TransitEncryptionMode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.TransitEncryptionMode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShardCount

Optional. Number of shards for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setShardCount

Optional. Number of shards for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiscoveryEndpoints

Output only. Deprecated: The discovery_endpoints parameter is deprecated.

As a result, it will not be populated if the connections are created using
endpoints parameter. Instead of this parameter, for discovery, use
endpoints.connections.pscConnection and
endpoints.connections.pscAutoConnection
with connectionType CONNECTION_TYPE_DISCOVERY.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.DiscoveryEndpoint>` |   |

### setDiscoveryEndpoints

Output only. Deprecated: The discovery_endpoints parameter is deprecated.

As a result, it will not be populated if the connections are created using
endpoints parameter. Instead of this parameter, for discovery, use
endpoints.connections.pscConnection and
endpoints.connections.pscAutoConnection
with connectionType CONNECTION_TYPE_DISCOVERY.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.DiscoveryEndpoint>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeType

Optional. Machine type for individual nodes of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [NodeType](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.NodeType). |

### setNodeType

Optional. Machine type for individual nodes of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [NodeType](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.NodeType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPersistenceConfig

Optional. Persistence configuration of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PersistenceConfig|null` |   |

### hasPersistenceConfig

### clearPersistenceConfig

### setPersistenceConfig

Optional. Persistence configuration of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PersistenceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEngineVersion

Optional. Engine version of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEngineVersion

Optional. Engine version of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEngineConfigs

Optional. User-provided engine configurations for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setEngineConfigs

Optional. User-provided engine configurations for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeConfig

Output only. Configuration of individual nodes of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.NodeConfig|null` |   |

### hasNodeConfig

### clearNodeConfig

### setNodeConfig

Output only. Configuration of individual nodes of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.NodeConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZoneDistributionConfig

Optional. Immutable. Zone distribution configuration of the instance for
node allocation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.ZoneDistributionConfig|null` |   |

### hasZoneDistributionConfig

### clearZoneDistributionConfig

### setZoneDistributionConfig

Optional. Immutable. Zone distribution configuration of the instance for
node allocation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.ZoneDistributionConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeletionProtectionEnabled

Optional. If set to true deletion of the instance will fail.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDeletionProtectionEnabled

### clearDeletionProtectionEnabled

### setDeletionProtectionEnabled

Optional. If set to true deletion of the instance will fail.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscAutoConnections

Optional. Immutable. Deprecated: Use the
endpoints.connections.psc_auto_connection value instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAutoConnection>` |   |

### setPscAutoConnections

Optional. Immutable. Deprecated: Use the
endpoints.connections.psc_auto_connection value instead.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAutoConnection>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPscAttachmentDetails

Output only. Service attachment details to configure PSC connections.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAttachmentDetail>` |   |

### setPscAttachmentDetails

Output only. Service attachment details to configure PSC connections.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.PscAttachmentDetail>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndpoints

Optional. Endpoints for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.InstanceEndpoint>` |   |

### setEndpoints

Optional. Endpoints for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.InstanceEndpoint>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMode

Optional. Immutable. The mode config for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.Mode). |

### setMode

Optional. Immutable. The mode config for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.Instance.Mode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSimulateMaintenanceEvent

Optional. Input only. Simulate a maintenance event.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSimulateMaintenanceEvent

### clearSimulateMaintenanceEvent

### setSimulateMaintenanceEvent

Optional. Input only. Simulate a maintenance event.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOndemandMaintenance

Optional. Input only. Ondemand maintenance for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasOndemandMaintenance

### clearOndemandMaintenance

### setOndemandMaintenance

Optional. Input only. Ondemand maintenance for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSatisfiesPzs

Optional. Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzs

### clearSatisfiesPzs

### setSatisfiesPzs

Optional. Output only. Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSatisfiesPzi

Optional. Output only. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzi

### clearSatisfiesPzi

### setSatisfiesPzi

Optional. Output only. Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaintenancePolicy

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenancePolicy|null` |   |

### hasMaintenancePolicy

### clearMaintenancePolicy

### setMaintenancePolicy

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenancePolicy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaintenanceSchedule

Output only. Published maintenance schedule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenanceSchedule|null` |   |

### hasMaintenanceSchedule

### clearMaintenanceSchedule

### setMaintenanceSchedule

Output only. Published maintenance schedule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MaintenanceSchedule` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCrossInstanceReplicationConfig

Optional. The config for cross instance replication.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.CrossInstanceReplicationConfig|null` |   |

### hasCrossInstanceReplicationConfig

### clearCrossInstanceReplicationConfig

### setCrossInstanceReplicationConfig

Optional. The config for cross instance replication.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.CrossInstanceReplicationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAsyncInstanceEndpointsDeletionEnabled

Optional. If true, instance endpoints that are created and registered by
customers can be deleted asynchronously. That is, such an instance endpoint
can be de-registered before the forwarding rules in the instance endpoint
are deleted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasAsyncInstanceEndpointsDeletionEnabled

### clearAsyncInstanceEndpointsDeletionEnabled

### setAsyncInstanceEndpointsDeletionEnabled

Optional. If true, instance endpoints that are created and registered by
customers can be deleted asynchronously. That is, such an instance endpoint
can be de-registered before the forwarding rules in the instance endpoint
are deleted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKmsKey

### clearKmsKey

### setKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.EncryptionInfo|null` |   |

### hasEncryptionInfo

### clearEncryptionInfo

### setEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.EncryptionInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBackupCollection

Output only. The backup collection full resource name. Example:
projects/{project}/locations/{location}/backupCollections/{collection}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasBackupCollection

### clearBackupCollection

### setBackupCollection

Output only. The backup collection full resource name. Example:
projects/{project}/locations/{location}/backupCollections/{collection}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutomatedBackupConfig

Optional. The automated backup config for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AutomatedBackupConfig|null` |   |

### hasAutomatedBackupConfig

### clearAutomatedBackupConfig

### setAutomatedBackupConfig

Optional. The automated backup config for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AutomatedBackupConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaintenanceVersion

Optional. This field can be used to trigger self service update to indicate
the desired maintenance version. The input to this field can be determined
by the available_maintenance_versions field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasMaintenanceVersion

### clearMaintenanceVersion

### setMaintenanceVersion

Optional. This field can be used to trigger self service update to indicate
the desired maintenance version. The input to this field can be determined
by the available_maintenance_versions field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEffectiveMaintenanceVersion

Output only. This field represents the actual maintenance version of the
instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasEffectiveMaintenanceVersion

### clearEffectiveMaintenanceVersion

### setEffectiveMaintenanceVersion

Output only. This field represents the actual maintenance version of the
instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAvailableMaintenanceVersions

Output only. This field is used to determine the available maintenance
versions for the self service update.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setAvailableMaintenanceVersions

Output only. This field is used to determine the available maintenance
versions for the self service update.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAllowFewerZonesDeployment

Optional. Immutable. Deprecated, do not use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAllowFewerZonesDeployment

Optional. Immutable. Deprecated, do not use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaMode

Optional. Immutable. The Server CA mode for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasServerCaMode

### clearServerCaMode

### setServerCaMode

Optional. Immutable. The Server CA mode for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerCaPool

Optional. Immutable. The customer-managed CA pool for the instance. Only
applicable if the Server CA mode is CUSTOMER_MANAGED_CAS_CA. Format:
"projects/{project}/locations/{region}/caPools/{ca_pool}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasServerCaPool

### clearServerCaPool

### setServerCaPool

Optional. Immutable. The customer-managed CA pool for the instance. Only
applicable if the Server CA mode is CUSTOMER_MANAGED_CAS_CA. Format:
"projects/{project}/locations/{region}/caPools/{ca_pool}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRotateServerCertificate

Optional. Input only. Rotate the server certificates.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasRotateServerCertificate

### clearRotateServerCertificate

### setRotateServerCertificate

Optional. Input only. Rotate the server certificates.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMigrationConfig

Output only. Migration config for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MigrationConfig|null` |   |

### hasMigrationConfig

### clearMigrationConfig

### setMigrationConfig

Output only. Migration config for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.MigrationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAclPolicy

Optional. The ACL policy for the instance.

Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAclPolicy

### clearAclPolicy

### setAclPolicy

Optional. The ACL policy for the instance.

Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAclPolicyInfo

Output only. Details of the applied ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AclPolicyInfo|null` |   |

### hasAclPolicyInfo

### clearAclPolicyInfo

### setAclPolicyInfo

Output only. Details of the applied ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.AclPolicyInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImportSources

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |