1.0.0-beta87 (latest) 1.0.0-beta86

    public abstract class FeatureOnlineStoreServiceClient

Reference documentation and code samples for the Vertex AI v1beta1 API class FeatureOnlineStoreServiceClient.

FeatureOnlineStoreService client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> FeatureOnlineStoreServiceClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[FeatureOnlineStoreServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClientImpl)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Remarks

A service for fetching feature values from the online store.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the FeatureOnlineStoreService service, which is a host of
"aiplatform.googleapis.com" and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default FeatureOnlineStoreService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default FeatureOnlineStoreService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

### GrpcClient

    public virtual FeatureOnlineStoreService.FeatureOnlineStoreServiceClient GrpcClient { get; }

The underlying gRPC FeatureOnlineStoreService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreService.FeatureOnlineStoreServiceClient` |   |

### IAMPolicyClient

    public virtual IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static FeatureOnlineStoreServiceClient Create()

Synchronously creates a [FeatureOnlineStoreServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[FeatureOnlineStoreServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient` | The created [FeatureOnlineStoreServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient). |

### CreateAsync(CancellationToken)

    public static Task<FeatureOnlineStoreServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [FeatureOnlineStoreServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[FeatureOnlineStoreServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient` | The task representing the created [FeatureOnlineStoreServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient). |

### FeatureViewDirectWrite(CallSettings, BidirectionalStreamingSettings)

    public virtual FeatureOnlineStoreServiceClient.FeatureViewDirectWriteStream FeatureViewDirectWrite(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Bidirectional streaming RPC to directly write to feature values in a
feature view. Requests may not have a one-to-one mapping to responses and
responses may be returned out-of-order to reduce latency.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient.FeatureViewDirectWriteStream` | The client-server stream. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize streaming call, retrieving the stream object
    using FeatureOnlineStoreServiceClient.FeatureViewDirectWriteStream response = featureOnlineStoreServiceClient.FeatureViewDirectWrite();

    // Sending requests and retrieving responses can be arbitrarily interleaved
    // Exact sequence will depend on client/server behavior

    // Create task to do something with responses from server
    Task responseHandlerTask = Task.Run(async () =>
    {
        // Note that C# 8 code can use await foreach
        AsyncResponseStream<FeatureViewDirectWriteResponse> responseStream = response.GetResponseStream();
        while (await responseStream.MoveNextAsync())
        {
            FeatureViewDirectWriteResponse responseItem = responseStream.Current;
            // Do something with streamed response
        }
        // The response stream has completed
    });

    // Send requests to the server
    bool done = false;
    while (!done)
    {
        // Initialize a request
        FeatureViewDirectWriteRequest request = new FeatureViewDirectWriteRequest
        {
            FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
            DataKeyAndFeatureValues =
            {
                new FeatureViewDirectWriteRequest.Types.DataKeyAndFeatureValues(),
            },
        };
        // Stream a request to the server
        await response.WriteAsync(request);
        // Set "done" to true when sending requests is complete
    }

    // Complete writing requests to the stream
    await response.WriteCompleteAsync();
    // Await the response handler
    // This will complete once all server responses have been processed
    await responseHandlerTask;

### FetchFeatureValues(FeatureViewName, FeatureViewDataKey, CallSettings)

    public virtual FetchFeatureValuesResponse FetchFeatureValues(FeatureViewName featureView, FeatureViewDataKey dataKey, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewName` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | The RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize request argument(s)
    FeatureViewName featureView = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = featureOnlineStoreServiceClient.FetchFeatureValues(featureView, dataKey);

### FetchFeatureValues(FetchFeatureValuesRequest, CallSettings)

    public virtual FetchFeatureValuesResponse FetchFeatureValues(FetchFeatureValuesRequest request, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | The RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize request argument(s)
    FetchFeatureValuesRequest request = new FetchFeatureValuesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        DataKey = new FeatureViewDataKey(),
        DataFormat = FeatureViewDataFormat.Unspecified,
    };
    // Make the request
    FetchFeatureValuesResponse response = featureOnlineStoreServiceClient.FetchFeatureValues(request);

### FetchFeatureValues(string, FeatureViewDataKey, CallSettings)

    public virtual FetchFeatureValuesResponse FetchFeatureValues(string featureView, FeatureViewDataKey dataKey, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://learn.microsoft.com/dotnet/api/system.string` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | The RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize request argument(s)
    string featureView = "projects/[PROJECT]/locations/[LOCATION]/featureOnlineStores/[FEATURE_ONLINE_STORE]/featureViews/[FEATURE_VIEW]";
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = featureOnlineStoreServiceClient.FetchFeatureValues(featureView, dataKey);

### FetchFeatureValuesAsync(FeatureViewName, FeatureViewDataKey, CallSettings)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(FeatureViewName featureView, FeatureViewDataKey dataKey, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewName` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    FeatureViewName featureView = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(featureView, dataKey);

### FetchFeatureValuesAsync(FeatureViewName, FeatureViewDataKey, CancellationToken)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(FeatureViewName featureView, FeatureViewDataKey dataKey, CancellationToken cancellationToken)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewName` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    FeatureViewName featureView = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]");
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(featureView, dataKey);

### FetchFeatureValuesAsync(FetchFeatureValuesRequest, CallSettings)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(FetchFeatureValuesRequest request, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    FetchFeatureValuesRequest request = new FetchFeatureValuesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        DataKey = new FeatureViewDataKey(),
        DataFormat = FeatureViewDataFormat.Unspecified,
    };
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(request);

### FetchFeatureValuesAsync(FetchFeatureValuesRequest, CancellationToken)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(FetchFeatureValuesRequest request, CancellationToken cancellationToken)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    FetchFeatureValuesRequest request = new FetchFeatureValuesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        DataKey = new FeatureViewDataKey(),
        DataFormat = FeatureViewDataFormat.Unspecified,
    };
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(request);

### FetchFeatureValuesAsync(string, FeatureViewDataKey, CallSettings)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(string featureView, FeatureViewDataKey dataKey, CallSettings callSettings = null)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://learn.microsoft.com/dotnet/api/system.string` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    string featureView = "projects/[PROJECT]/locations/[LOCATION]/featureOnlineStores/[FEATURE_ONLINE_STORE]/featureViews/[FEATURE_VIEW]";
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(featureView, dataKey);

### FetchFeatureValuesAsync(string, FeatureViewDataKey, CancellationToken)

    public virtual Task<FetchFeatureValuesResponse> FetchFeatureValuesAsync(string featureView, FeatureViewDataKey dataKey, CancellationToken cancellationToken)

Fetch feature values under a FeatureView.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `featureView` | `https://learn.microsoft.com/dotnet/api/system.string` Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` |
| `dataKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureViewDataKey` Optional. The request key to fetch feature values for. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FetchFeatureValuesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    string featureView = "projects/[PROJECT]/locations/[LOCATION]/featureOnlineStores/[FEATURE_ONLINE_STORE]/featureViews/[FEATURE_VIEW]";
    FeatureViewDataKey dataKey = new FeatureViewDataKey();
    // Make the request
    FetchFeatureValuesResponse response = await featureOnlineStoreServiceClient.FetchFeatureValuesAsync(featureView, dataKey);

### GenerateFetchAccessToken(GenerateFetchAccessTokenRequest, CallSettings)

    public virtual GenerateFetchAccessTokenResponse GenerateFetchAccessToken(GenerateFetchAccessTokenRequest request, CallSettings callSettings = null)

RPC to generate an access token for the given feature view. FeatureViews
under the same FeatureOnlineStore share the same access token.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenResponse` | The RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize request argument(s)
    GenerateFetchAccessTokenRequest request = new GenerateFetchAccessTokenRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
    };
    // Make the request
    GenerateFetchAccessTokenResponse response = featureOnlineStoreServiceClient.GenerateFetchAccessToken(request);

### GenerateFetchAccessTokenAsync(GenerateFetchAccessTokenRequest, CallSettings)

    public virtual Task<GenerateFetchAccessTokenResponse> GenerateFetchAccessTokenAsync(GenerateFetchAccessTokenRequest request, CallSettings callSettings = null)

RPC to generate an access token for the given feature view. FeatureViews
under the same FeatureOnlineStore share the same access token.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    GenerateFetchAccessTokenRequest request = new GenerateFetchAccessTokenRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
    };
    // Make the request
    GenerateFetchAccessTokenResponse response = await featureOnlineStoreServiceClient.GenerateFetchAccessTokenAsync(request);

### GenerateFetchAccessTokenAsync(GenerateFetchAccessTokenRequest, CancellationToken)

    public virtual Task<GenerateFetchAccessTokenResponse> GenerateFetchAccessTokenAsync(GenerateFetchAccessTokenRequest request, CancellationToken cancellationToken)

RPC to generate an access token for the given feature view. FeatureViews
under the same FeatureOnlineStore share the same access token.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateFetchAccessTokenResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    GenerateFetchAccessTokenRequest request = new GenerateFetchAccessTokenRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
    };
    // Make the request
    GenerateFetchAccessTokenResponse response = await featureOnlineStoreServiceClient.GenerateFetchAccessTokenAsync(request);

### SearchNearestEntities(SearchNearestEntitiesRequest, CallSettings)

    public virtual SearchNearestEntitiesResponse SearchNearestEntities(SearchNearestEntitiesRequest request, CallSettings callSettings = null)

Search the nearest entities under a FeatureView.
Search only works for indexable feature view; if a feature view isn't
indexable, returns Invalid argument response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesResponse` | The RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize request argument(s)
    SearchNearestEntitiesRequest request = new SearchNearestEntitiesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        Query = new NearestNeighborQuery(),
        ReturnFullEntity = false,
    };
    // Make the request
    SearchNearestEntitiesResponse response = featureOnlineStoreServiceClient.SearchNearestEntities(request);

### SearchNearestEntitiesAsync(SearchNearestEntitiesRequest, CallSettings)

    public virtual Task<SearchNearestEntitiesResponse> SearchNearestEntitiesAsync(SearchNearestEntitiesRequest request, CallSettings callSettings = null)

Search the nearest entities under a FeatureView.
Search only works for indexable feature view; if a feature view isn't
indexable, returns Invalid argument response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    SearchNearestEntitiesRequest request = new SearchNearestEntitiesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        Query = new NearestNeighborQuery(),
        ReturnFullEntity = false,
    };
    // Make the request
    SearchNearestEntitiesResponse response = await featureOnlineStoreServiceClient.SearchNearestEntitiesAsync(request);

### SearchNearestEntitiesAsync(SearchNearestEntitiesRequest, CancellationToken)

    public virtual Task<SearchNearestEntitiesResponse> SearchNearestEntitiesAsync(SearchNearestEntitiesRequest request, CancellationToken cancellationToken)

Search the nearest entities under a FeatureView.
Search only works for indexable feature view; if a feature view isn't
indexable, returns Invalid argument response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SearchNearestEntitiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = await FeatureOnlineStoreServiceClient.CreateAsync();
    // Initialize request argument(s)
    SearchNearestEntitiesRequest request = new SearchNearestEntitiesRequest
    {
        FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
        Query = new NearestNeighborQuery(),
        ReturnFullEntity = false,
    };
    // Make the request
    SearchNearestEntitiesResponse response = await featureOnlineStoreServiceClient.SearchNearestEntitiesAsync(request);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient#Google_Cloud_AIPlatform_V1Beta1_FeatureOnlineStoreServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient#Google_Cloud_AIPlatform_V1Beta1_FeatureOnlineStoreServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient#Google_Cloud_AIPlatform_V1Beta1_FeatureOnlineStoreServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient#Google_Cloud_AIPlatform_V1Beta1_FeatureOnlineStoreServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### StreamingFetchFeatureValues(CallSettings, BidirectionalStreamingSettings)

    public virtual FeatureOnlineStoreServiceClient.StreamingFetchFeatureValuesStream StreamingFetchFeatureValues(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Bidirectional streaming RPC to fetch feature values under a FeatureView.
Requests may not have a one-to-one mapping to responses and responses may
be returned out-of-order to reduce latency.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.FeatureOnlineStoreServiceClient.StreamingFetchFeatureValuesStream` | The client-server stream. |

**Example**

    // Create client
    FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = FeatureOnlineStoreServiceClient.Create();
    // Initialize streaming call, retrieving the stream object
    using FeatureOnlineStoreServiceClient.StreamingFetchFeatureValuesStream response = featureOnlineStoreServiceClient.StreamingFetchFeatureValues();

    // Sending requests and retrieving responses can be arbitrarily interleaved
    // Exact sequence will depend on client/server behavior

    // Create task to do something with responses from server
    Task responseHandlerTask = Task.Run(async () =>
    {
        // Note that C# 8 code can use await foreach
        AsyncResponseStream<StreamingFetchFeatureValuesResponse> responseStream = response.GetResponseStream();
        while (await responseStream.MoveNextAsync())
        {
            StreamingFetchFeatureValuesResponse responseItem = responseStream.Current;
            // Do something with streamed response
        }
        // The response stream has completed
    });

    // Send requests to the server
    bool done = false;
    while (!done)
    {
        // Initialize a request
        StreamingFetchFeatureValuesRequest request = new StreamingFetchFeatureValuesRequest
        {
            FeatureViewAsFeatureViewName = FeatureViewName.FromProjectLocationFeatureOnlineStoreFeatureView("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"),
            DataKeys =
            {
                new FeatureViewDataKey(),
            },
            DataFormat = FeatureViewDataFormat.Unspecified,
        };
        // Stream a request to the server
        await response.WriteAsync(request);
        // Set "done" to true when sending requests is complete
    }

    // Complete writing requests to the stream
    await response.WriteCompleteAsync();
    // Await the response handler
    // This will complete once all server responses have been processed
    await responseHandlerTask;