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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Memorystore V1beta Client class SelfManagedSource.

Details of the self-managed source instance.

Generated from protobuf message `google.cloud.memorystore.v1beta.SelfManagedSource`

## Namespace

Google \\ Cloud \\ Memorystore \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ip_address` | `string` Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process. |
| `↳ port` | `int` Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process. |
| `↳ network_attachment` | `string` Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements: 1. It must be in the same project as the Memorystore instance. 2. It must be in the same region as the Memorystore instance. 3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment} |

### getIpAddress

Required. The IP address of the source instance.

This IP address should be a stable IP address that can be accessed by the
Memorystore instance throughout the migration process.

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

### setIpAddress

Required. The IP address of the source instance.

This IP address should be a stable IP address that can be accessed by the
Memorystore instance throughout the migration process.

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

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

### getPort

Required. The port of the source instance.

This port should be a stable port that can be accessed by the Memorystore
instance throughout the migration process.

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

### setPort

Required. The port of the source instance.

This port should be a stable port that can be accessed by the Memorystore
instance throughout the migration process.

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

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

### getNetworkAttachment

Required. The resource name of the Private Service Connect Network
Attachment used to establish connectivity to the source instance. This
network attachment has the following requirements:

1. It must be in the same project as the Memorystore instance.

2. It must be in the same region as the Memorystore instance.

3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}

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

### setNetworkAttachment

Required. The resource name of the Private Service Connect Network
Attachment used to establish connectivity to the source instance. This
network attachment has the following requirements:

1. It must be in the same project as the Memorystore instance.

2. It must be in the same region as the Memorystore instance.

3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}

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

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