# Google Cloud Net App V1 Client - Class CacheConfig (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class CacheConfig.

Configuration of the cache volume.

Generated from protobuf message `google.cloud.netapp.v1.CacheConfig`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cache_pre_populate` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.CachePrePopulate` Optional. Pre-populate cache volume with data from the origin volume. |
| `↳ writeback_enabled` | `bool` Optional. Flag indicating whether writeback is enabled for the FlexCache volume. |
| `↳ cifs_change_notify_enabled` | `bool` Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume. |
| `↳ cache_pre_populate_state` | `int` Output only. State of the prepopulation job indicating how the prepopulation is progressing. |

### getCachePrePopulate

Optional. Pre-populate cache volume with data from the origin volume.

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

### hasCachePrePopulate

### clearCachePrePopulate

### setCachePrePopulate

Optional. Pre-populate cache volume with data from the origin volume.

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

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

### getWritebackEnabled

Optional. Flag indicating whether writeback is enabled for the FlexCache
volume.

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

### hasWritebackEnabled

### clearWritebackEnabled

### setWritebackEnabled

Optional. Flag indicating whether writeback is enabled for the FlexCache
volume.

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

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

### getCifsChangeNotifyEnabled

Optional. Flag indicating whether a CIFS change notification is enabled for
the FlexCache volume.

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

### hasCifsChangeNotifyEnabled

### clearCifsChangeNotifyEnabled

### setCifsChangeNotifyEnabled

Optional. Flag indicating whether a CIFS change notification is enabled for
the FlexCache volume.

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

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

### getCachePrePopulateState

Output only. State of the prepopulation job indicating how the
prepopulation is progressing.

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

### setCachePrePopulateState

Output only. State of the prepopulation job indicating how the
prepopulation is progressing.

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

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