1.7.1 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class Instance.

An Instance is a computing unit that an end customer can connect to.

It's the main unit of computing resources in AlloyDB.

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

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The name of the instance resource with the format: \* \* projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see <https://google.aip.dev/122>. The prefix of the instance resource name is the name of the parent resource: \* \* projects/{project}/locations/{region}/clusters/{cluster_id} |
| `↳ display_name` | `string` User-settable and human-readable display name for the Instance. |
| `↳ uid` | `string` Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Create time stamp |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Update time stamp |
| `↳ delete_time` | `Google\Protobuf\Timestamp` Output only. Delete time stamp |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Labels as key value pairs |
| `↳ state` | `int` Output only. The current serving state of the instance. |
| `↳ instance_type` | `int` Required. The type of the instance. Specified at creation time. |
| `↳ machine_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.MachineConfig` Configurations for the machines that host the underlying database engine. |
| `↳ availability_type` | `int` Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones). |
| `↳ gce_zone` | `string` The Compute Engine zone that the instance should serve from, per <https://cloud.google.com/compute/docs/regions-zones> This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity. |
| `↳ database_flags` | `array|Google\Protobuf\Internal\MapField` Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value. |
| `↳ writable_node` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.Node` Output only. This is set for the read-write VM of the PRIMARY instance only. |
| `↳ nodes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.Node>` Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance. |
| `↳ query_insights_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.QueryInsightsInstanceConfig` Configuration for query insights. |
| `↳ observability_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.ObservabilityInstanceConfig` Configuration for observability. |
| `↳ read_pool_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.ReadPoolConfig` Read pool instance configuration. This is required if the value of instanceType is READ_POOL. |
| `↳ ip_address` | `string` Output only. The IP address for the Instance. This is the connection endpoint for an end-user application. |
| `↳ public_ip_address` | `string` Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application. |
| `↳ reconciling` | `bool` Output only. Reconciling (<https://google.aip.dev/128#reconciliation>). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. |
| `↳ etag` | `string` For Resource freshness validation (<https://google.aip.dev/154>) |
| `↳ annotations` | `array|Google\Protobuf\Internal\MapField` Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. <https://google.aip.dev/128> |
| `↳ client_connection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.ClientConnectionConfig` Optional. Client connection specific configurations |
| `↳ satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `↳ psc_instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscInstanceConfig` Optional. The configuration for Private Service Connect (PSC) for the instance. |
| `↳ network_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.InstanceNetworkConfig` Optional. Instance-level network configuration. |
| `↳ outbound_public_ip_addresses` | `string[]` Output only. All outbound public IP addresses configured for the instance. |
| `↳ activation_policy` | `int` Optional. Specifies whether an instance needs to spin up. Once the instance is active, the activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an instance can/cannot be activated (for example, a read pool instance should be stopped before stopping primary etc.). Please refer to the API documentation for more details. |
| `↳ connection_pool_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.ConnectionPoolConfig` Optional. The configuration for Managed Connection Pool (MCP). |

### getName

Output only. The name of the instance resource with the format:

- projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see <https://google.aip.dev/122>.

The prefix of the instance resource name is the name of the parent
resource:

- projects/{project}/locations/{region}/clusters/{cluster_id}

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

### setName

Output only. The name of the instance resource with the format:

- projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see <https://google.aip.dev/122>.

The prefix of the instance resource name is the name of the parent
resource:

- projects/{project}/locations/{region}/clusters/{cluster_id}

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

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

### getDisplayName

User-settable and human-readable display name for the Instance.

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

### setDisplayName

User-settable and human-readable display name for the Instance.

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

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

### getUid

Output only. The system-generated UID of the resource. The UID is assigned
when the resource is created, and it is retained until it is deleted.

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

### setUid

Output only. The system-generated UID of the resource. The UID is assigned
when the resource is created, and it is retained until it is deleted.

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

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

### getCreateTime

Output only. Create time stamp

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create time stamp

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

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

### getUpdateTime

Output only. Update time stamp

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update time stamp

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

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

### getDeleteTime

Output only. Delete time stamp

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

### hasDeleteTime

### clearDeleteTime

### setDeleteTime

Output only. Delete time stamp

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

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

### getLabels

Labels as key value pairs

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

### setLabels

Labels as key value pairs

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

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

### getState

Output only. The current serving state of the instance.

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

### setState

Output only. The current serving state of the instance.

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

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

### getInstanceType

Required. The type of the instance. Specified at creation time.

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

### setInstanceType

Required. The type of the instance. Specified at creation time.

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

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

### getMachineConfig

Configurations for the machines that host the underlying
database engine.

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

### hasMachineConfig

### clearMachineConfig

### setMachineConfig

Configurations for the machines that host the underlying
database engine.

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

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

### getAvailabilityType

Availability type of an Instance.

If empty, defaults to REGIONAL for primary instances.
For read pools, availability_type is always UNSPECIFIED. Instances in the
read pools are evenly distributed across available zones within the region
(i.e. read pools with more than one node will have a node in at
least two zones).

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

### setAvailabilityType

Availability type of an Instance.

If empty, defaults to REGIONAL for primary instances.
For read pools, availability_type is always UNSPECIFIED. Instances in the
read pools are evenly distributed across available zones within the region
(i.e. read pools with more than one node will have a node in at
least two zones).

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

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

### getGceZone

The Compute Engine zone that the instance should serve from, per
<https://cloud.google.com/compute/docs/regions-zones>
This can ONLY be specified for ZONAL instances.

If present for a REGIONAL instance, an error will be thrown.
If this is absent for a ZONAL instance, instance is created in a random
zone with available capacity.

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

### setGceZone

The Compute Engine zone that the instance should serve from, per
<https://cloud.google.com/compute/docs/regions-zones>
This can ONLY be specified for ZONAL instances.

If present for a REGIONAL instance, an error will be thrown.
If this is absent for a ZONAL instance, instance is created in a random
zone with available capacity.

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

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

### getDatabaseFlags

Database flags. Set at the instance level.

They are copied from the primary instance on secondary instance creation.
Flags that have restrictions default to the value at primary
instance on read instances during creation. Read instances can set new
flags or override existing flags that are relevant for reads, for example,
for enabling columnar cache on a read instance. Flags set on read instance
might or might not be present on the primary instance.
This is a list of "key": "value" pairs.
"key": The name of the flag. These flags are passed at instance setup time,
so include both server options and system variables for Postgres. Flags are
specified with underscores, not hyphens.
"value": The value of the flag. Booleans are set to **on** for true
and **off** for false. This field must be omitted if the flag
doesn't take a value.

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

### setDatabaseFlags

Database flags. Set at the instance level.

They are copied from the primary instance on secondary instance creation.
Flags that have restrictions default to the value at primary
instance on read instances during creation. Read instances can set new
flags or override existing flags that are relevant for reads, for example,
for enabling columnar cache on a read instance. Flags set on read instance
might or might not be present on the primary instance.
This is a list of "key": "value" pairs.
"key": The name of the flag. These flags are passed at instance setup time,
so include both server options and system variables for Postgres. Flags are
specified with underscores, not hyphens.
"value": The value of the flag. Booleans are set to **on** for true
and **off** for false. This field must be omitted if the flag
doesn't take a value.

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

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

### getWritableNode

Output only. This is set for the read-write VM of the PRIMARY instance
only.

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

### hasWritableNode

### clearWritableNode

### setWritableNode

Output only. This is set for the read-write VM of the PRIMARY instance
only.

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

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

### getNodes

Output only. List of available read-only VMs in this instance, including
the standby for a PRIMARY instance.

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

### setNodes

Output only. List of available read-only VMs in this instance, including
the standby for a PRIMARY instance.

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

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

### getQueryInsightsConfig

Configuration for query insights.

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

### hasQueryInsightsConfig

### clearQueryInsightsConfig

### setQueryInsightsConfig

Configuration for query insights.

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

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

### getObservabilityConfig

Configuration for observability.

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

### hasObservabilityConfig

### clearObservabilityConfig

### setObservabilityConfig

Configuration for observability.

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

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

### getReadPoolConfig

Read pool instance configuration.

This is required if the value of instanceType is READ_POOL.

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

### hasReadPoolConfig

### clearReadPoolConfig

### setReadPoolConfig

Read pool instance configuration.

This is required if the value of instanceType is READ_POOL.

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

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

### getIpAddress

Output only. The IP address for the Instance.

This is the connection endpoint for an end-user application.

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

### setIpAddress

Output only. The IP address for the Instance.

This is the connection endpoint for an end-user application.

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

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

### getPublicIpAddress

Output only. The public IP addresses for the Instance. This is available
ONLY when enable_public_ip is set. This is the connection endpoint for an
end-user application.

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

### setPublicIpAddress

Output only. The public IP addresses for the Instance. This is available
ONLY when enable_public_ip is set. This is the connection endpoint for an
end-user application.

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

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

### getReconciling

Output only. Reconciling (<https://google.aip.dev/128#reconciliation>).

Set to true if the current state of Instance does not match the user's
intended state, and the service is actively updating the resource to
reconcile them. This can happen due to user-triggered updates or
system actions like failover or maintenance.

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

### setReconciling

Output only. Reconciling (<https://google.aip.dev/128#reconciliation>).

Set to true if the current state of Instance does not match the user's
intended state, and the service is actively updating the resource to
reconcile them. This can happen due to user-triggered updates or
system actions like failover or maintenance.

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

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

### getEtag

For Resource freshness validation (<https://google.aip.dev/154>)

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

### setEtag

For Resource freshness validation (<https://google.aip.dev/154>)

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

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

### getAnnotations

Annotations to allow client tools to store small amount of arbitrary data.

This is distinct from labels.
<https://google.aip.dev/128>

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

### setAnnotations

Annotations to allow client tools to store small amount of arbitrary data.

This is distinct from labels.
<https://google.aip.dev/128>

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

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

### getClientConnectionConfig

Optional. Client connection specific configurations

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

### hasClientConnectionConfig

### clearClientConnectionConfig

### setClientConnectionConfig

Optional. Client connection specific configurations

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

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

### getSatisfiesPzs

Output only. Reserved for future use.

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

### setSatisfiesPzs

Output only. Reserved for future use.

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

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

### getPscInstanceConfig

Optional. The configuration for Private Service Connect (PSC) for the
instance.

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

### hasPscInstanceConfig

### clearPscInstanceConfig

### setPscInstanceConfig

Optional. The configuration for Private Service Connect (PSC) for the
instance.

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

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

### getNetworkConfig

Optional. Instance-level network configuration.

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

### hasNetworkConfig

### clearNetworkConfig

### setNetworkConfig

Optional. Instance-level network configuration.

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

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

### getOutboundPublicIpAddresses

Output only. All outbound public IP addresses configured for the instance.

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

### setOutboundPublicIpAddresses

Output only. All outbound public IP addresses configured for the instance.

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

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

### getActivationPolicy

Optional. Specifies whether an instance needs to spin up. Once the instance
is active, the activation policy can be updated to the `NEVER` to stop the
instance. Likewise, the activation policy can be updated to `ALWAYS` to
start the instance.

There are restrictions around when an instance can/cannot be activated (for
example, a read pool instance should be stopped before stopping primary
etc.). Please refer to the API documentation for more details.

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

### setActivationPolicy

Optional. Specifies whether an instance needs to spin up. Once the instance
is active, the activation policy can be updated to the `NEVER` to stop the
instance. Likewise, the activation policy can be updated to `ALWAYS` to
start the instance.

There are restrictions around when an instance can/cannot be activated (for
example, a read pool instance should be stopped before stopping primary
etc.). Please refer to the API documentation for more details.

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

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

### getConnectionPoolConfig

Optional. The configuration for Managed Connection Pool (MCP).

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

### hasConnectionPoolConfig

### clearConnectionPoolConfig

### setConnectionPoolConfig

Optional. The configuration for Managed Connection Pool (MCP).

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

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