# Google Cloud Network Security V1 Client - Class SACRealm (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class SACRealm.

Represents a Secure Access Connect (SAC) realm resource.

A Secure Access Connect realm establishes a connection between your Google
Cloud project and an SSE service.

Generated from protobuf message `google.cloud.networksecurity.v1.SACRealm`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Resource name, in the form `projects/{project}/locations/global/sacRealms/{sacRealm}`. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when the realm was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when the realm was last updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Optional list of labels applied to the resource. |
| `↳ security_service` | `int` Immutable. SSE service provider associated with the realm. |
| `↳ pairing_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SACRealm.PairingKey` Output only. Key to be shared with SSE service provider during pairing. |
| `↳ state` | `int` Output only. State of the realm. |

### getName

Identifier. Resource name, in the form
`projects/{project}/locations/global/sacRealms/{sacRealm}`.

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

### setName

Identifier. Resource name, in the form
`projects/{project}/locations/global/sacRealms/{sacRealm}`.

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

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

### getCreateTime

Output only. Timestamp when the realm was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp when the realm was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Timestamp when the realm was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp when the realm was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Optional list of labels applied to the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Optional list of labels applied to the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getSecurityService

Immutable. SSE service provider associated with the realm.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SecurityService](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SACRealm.SecurityService). |

### setSecurityService

Immutable. SSE service provider associated with the realm.

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

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

### getPairingKey

Output only. Key to be shared with SSE service provider during pairing.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SACRealm.PairingKey|null` |   |

### hasPairingKey

### clearPairingKey

### setPairingKey

Output only. Key to be shared with SSE service provider during pairing.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.SACRealm.PairingKey` |

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

### getState

Output only. State of the realm.

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

### setState

Output only. State of the realm.

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

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