# Google Cloud Ai Platform V1 Client - Class FeatureView (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class FeatureView.

FeatureView is representation of values that the FeatureOnlineStore will
serve based on its syncConfig.

Generated from protobuf message `google.cloud.aiplatform.v1.FeatureView`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ big_query_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigQuerySource` Optional. Configures how data is supposed to be extracted from a BigQuery source to be loaded onto the FeatureOnlineStore. |
| `↳ feature_registry_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.FeatureRegistrySource` Optional. Configures the features from a Feature Registry source that need to be loaded onto the FeatureOnlineStore. |
| `↳ vertex_rag_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.VertexRagSource` Optional. The Vertex RAG Source that the FeatureView is linked to. |
| `↳ name` | `string` Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when this FeatureView was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when this FeatureView was last updated. |
| `↳ etag` | `string` Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The labels with user-defined metadata to organize your FeatureViews. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See <https://goo.gl/xmQnxf> for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureOnlineStore(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. |
| `↳ sync_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.SyncConfig` Configures when data is to be synced/updated for this FeatureView. At the end of the sync the latest featureValues for each entityId of this FeatureView are made ready for online serving. |
| `↳ index_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.IndexConfig` Optional. Configuration for index preparation for vector search. It contains the required configurations to create an index from source data, so that approximate nearest neighbor (a.k.a ANN) algorithms search can be performed during online serving. |
| `↳ optimized_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.OptimizedConfig` Optional. Configuration for FeatureView created under Optimized FeatureOnlineStore. |
| `↳ service_agent_type` | `int` Optional. Service agent type used during data sync. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureView within a project, a separate service account should be provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate service account to access the BigQuery source table. |
| `↳ service_account_email` | `string` Output only. A Service Account unique to this FeatureView. The role bigquery.dataViewer should be granted to this service account to allow Vertex AI Feature Store to sync data to the online store. |
| `↳ satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `↳ satisfies_pzi` | `bool` Output only. Reserved for future use. |
| `↳ bigtable_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigtableMetadata` Metadata containing information about the Cloud Bigtable. |

### getBigQuerySource

Optional. Configures how data is supposed to be extracted from a BigQuery
source to be loaded onto the FeatureOnlineStore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigQuerySource|null` |   |

### hasBigQuerySource

### setBigQuerySource

Optional. Configures how data is supposed to be extracted from a BigQuery
source to be loaded onto the FeatureOnlineStore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigQuerySource` |

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

### getFeatureRegistrySource

Optional. Configures the features from a Feature Registry source that
need to be loaded onto the FeatureOnlineStore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.FeatureRegistrySource|null` |   |

### hasFeatureRegistrySource

### setFeatureRegistrySource

Optional. Configures the features from a Feature Registry source that
need to be loaded onto the FeatureOnlineStore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.FeatureRegistrySource` |

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

### getVertexRagSource

Optional. The Vertex RAG Source that the FeatureView is linked to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.VertexRagSource|null` |   |

### hasVertexRagSource

### setVertexRagSource

Optional. The Vertex RAG Source that the FeatureView is linked to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.VertexRagSource` |

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

### getName

Identifier. Name of the FeatureView. Format:
`projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`

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

### setName

Identifier. Name of the FeatureView. Format:
`projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`

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

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

### getCreateTime

Output only. Timestamp when this FeatureView was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp when this FeatureView 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 this FeatureView was last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp when this FeatureView was last updated.

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

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

### getEtag

Optional. Used to perform consistent read-modify-write updates. If not set,
a blind "overwrite" update happens.

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

### setEtag

Optional. Used to perform consistent read-modify-write updates. If not set,
a blind "overwrite" update happens.

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

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

### getLabels

Optional. The labels with user-defined metadata to organize your
FeatureViews.

Label keys and values can be no longer than 64 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
See <https://goo.gl/xmQnxf> for more information on and examples of labels.
No more than 64 user labels can be associated with one
FeatureOnlineStore(System labels are excluded)." System reserved label keys
are prefixed with "aiplatform.googleapis.com/" and are immutable.

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

### setLabels

Optional. The labels with user-defined metadata to organize your
FeatureViews.

Label keys and values can be no longer than 64 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
See <https://goo.gl/xmQnxf> for more information on and examples of labels.
No more than 64 user labels can be associated with one
FeatureOnlineStore(System labels are excluded)." System reserved label keys
are prefixed with "aiplatform.googleapis.com/" and are immutable.

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

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

### getSyncConfig

Configures when data is to be synced/updated for this FeatureView. At the
end of the sync the latest featureValues for each entityId of this
FeatureView are made ready for online serving.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.SyncConfig|null` |   |

### hasSyncConfig

### clearSyncConfig

### setSyncConfig

Configures when data is to be synced/updated for this FeatureView. At the
end of the sync the latest featureValues for each entityId of this
FeatureView are made ready for online serving.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.SyncConfig` |

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

### getIndexConfig

Optional. Configuration for index preparation for vector search. It
contains the required configurations to create an index from source data,
so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
performed during online serving.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.IndexConfig|null` |   |

### hasIndexConfig

### clearIndexConfig

### setIndexConfig

Optional. Configuration for index preparation for vector search. It
contains the required configurations to create an index from source data,
so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
performed during online serving.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.IndexConfig` |

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

### getOptimizedConfig

Optional. Configuration for FeatureView created under Optimized
FeatureOnlineStore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.OptimizedConfig|null` |   |

### hasOptimizedConfig

### clearOptimizedConfig

### setOptimizedConfig

Optional. Configuration for FeatureView created under Optimized
FeatureOnlineStore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.OptimizedConfig` |

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

### getServiceAgentType

Optional. Service agent type used during data sync. By default, the Vertex
AI Service Agent is used. When using an IAM Policy to isolate this
FeatureView within a project, a separate service account should be
provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.

This will generate a separate service account to access the BigQuery source
table.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ServiceAgentType](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.ServiceAgentType). |

### setServiceAgentType

Optional. Service agent type used during data sync. By default, the Vertex
AI Service Agent is used. When using an IAM Policy to isolate this
FeatureView within a project, a separate service account should be
provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.

This will generate a separate service account to access the BigQuery source
table.

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

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

### getServiceAccountEmail

Output only. A Service Account unique to this FeatureView. The role
bigquery.dataViewer should be granted to this service account to allow
Vertex AI Feature Store to sync data to the online store.

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

### setServiceAccountEmail

Output only. A Service Account unique to this FeatureView. The role
bigquery.dataViewer should be granted to this service account to allow
Vertex AI Feature Store to sync data to the online store.

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

| **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` |   |

### getSatisfiesPzi

Output only. Reserved for future use.

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

### setSatisfiesPzi

Output only. Reserved for future use.

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

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

### getBigtableMetadata

Metadata containing information about the Cloud Bigtable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigtableMetadata|null` |   |

### hasBigtableMetadata

### clearBigtableMetadata

### setBigtableMetadata

Metadata containing information about the Cloud Bigtable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.FeatureView.BigtableMetadata` |

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

### getSource

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