Class FeaturestoreServiceClient (1.6.0)

public abstract class FeaturestoreServiceClient

FeaturestoreService client wrapper, for convenient use.

Inheritance

Object > FeaturestoreServiceClient

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Remarks

The service that handles CRUD and List for resources for Featurestore.

Properties

BatchCreateFeaturesOperationsClient

public virtual OperationsClient BatchCreateFeaturesOperationsClient { get; }

The long-running operations client for BatchCreateFeatures.

Property Value
TypeDescription
OperationsClient

BatchReadFeatureValuesOperationsClient

public virtual OperationsClient BatchReadFeatureValuesOperationsClient { get; }

The long-running operations client for BatchReadFeatureValues.

Property Value
TypeDescription
OperationsClient

CreateEntityTypeOperationsClient

public virtual OperationsClient CreateEntityTypeOperationsClient { get; }

The long-running operations client for CreateEntityType.

Property Value
TypeDescription
OperationsClient

CreateFeatureOperationsClient

public virtual OperationsClient CreateFeatureOperationsClient { get; }

The long-running operations client for CreateFeature.

Property Value
TypeDescription
OperationsClient

CreateFeaturestoreOperationsClient

public virtual OperationsClient CreateFeaturestoreOperationsClient { get; }

The long-running operations client for CreateFeaturestore.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default FeaturestoreService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default FeaturestoreService scopes are:

DeleteEntityTypeOperationsClient

public virtual OperationsClient DeleteEntityTypeOperationsClient { get; }

The long-running operations client for DeleteEntityType.

Property Value
TypeDescription
OperationsClient

DeleteFeatureOperationsClient

public virtual OperationsClient DeleteFeatureOperationsClient { get; }

The long-running operations client for DeleteFeature.

Property Value
TypeDescription
OperationsClient

DeleteFeaturestoreOperationsClient

public virtual OperationsClient DeleteFeaturestoreOperationsClient { get; }

The long-running operations client for DeleteFeaturestore.

Property Value
TypeDescription
OperationsClient

ExportFeatureValuesOperationsClient

public virtual OperationsClient ExportFeatureValuesOperationsClient { get; }

The long-running operations client for ExportFeatureValues.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual FeaturestoreService.FeaturestoreServiceClient GrpcClient { get; }

The underlying gRPC FeaturestoreService client

Property Value
TypeDescription
FeaturestoreService.FeaturestoreServiceClient

ImportFeatureValuesOperationsClient

public virtual OperationsClient ImportFeatureValuesOperationsClient { get; }

The long-running operations client for ImportFeatureValues.

Property Value
TypeDescription
OperationsClient

UpdateFeaturestoreOperationsClient

public virtual OperationsClient UpdateFeaturestoreOperationsClient { get; }

The long-running operations client for UpdateFeaturestore.

Property Value
TypeDescription
OperationsClient

Methods

BatchCreateFeatures(BatchCreateFeaturesRequest, CallSettings)

public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> BatchCreateFeatures(BatchCreateFeaturesRequest request, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
requestBatchCreateFeaturesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
BatchCreateFeaturesRequest request = new BatchCreateFeaturesRequest
{
    ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
    Requests =
    {
        new CreateFeatureRequest(),
    },
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = featurestoreServiceClient.BatchCreateFeatures(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchCreateFeatures(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeatures(EntityTypeName, IEnumerable<CreateFeatureRequest>, CallSettings)

public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> BatchCreateFeatures(EntityTypeName parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentEntityTypeName

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = featurestoreServiceClient.BatchCreateFeatures(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchCreateFeatures(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeatures(String, IEnumerable<CreateFeatureRequest>, CallSettings)

public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> BatchCreateFeatures(string parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentString

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = featurestoreServiceClient.BatchCreateFeatures(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchCreateFeatures(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(BatchCreateFeaturesRequest, CallSettings)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(BatchCreateFeaturesRequest request, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
requestBatchCreateFeaturesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateFeaturesRequest request = new BatchCreateFeaturesRequest
{
    ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
    Requests =
    {
        new CreateFeatureRequest(),
    },
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(BatchCreateFeaturesRequest, CancellationToken)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(BatchCreateFeaturesRequest request, CancellationToken cancellationToken)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
requestBatchCreateFeaturesRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateFeaturesRequest request = new BatchCreateFeaturesRequest
{
    ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
    Requests =
    {
        new CreateFeatureRequest(),
    },
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(EntityTypeName, IEnumerable<CreateFeatureRequest>, CallSettings)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(EntityTypeName parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentEntityTypeName

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(EntityTypeName, IEnumerable<CreateFeatureRequest>, CancellationToken)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(EntityTypeName parent, IEnumerable<CreateFeatureRequest> requests, CancellationToken cancellationToken)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentEntityTypeName

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(String, IEnumerable<CreateFeatureRequest>, CallSettings)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(string parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentString

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchCreateFeaturesAsync(String, IEnumerable<CreateFeatureRequest>, CancellationToken)

public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(string parent, IEnumerable<CreateFeatureRequest> requests, CancellationToken cancellationToken)

Creates a batch of Features in a given EntityType.

Parameters
NameDescription
parentString

Required. The resource name of the EntityType to create the batch of Features under. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

requestsIEnumerable<CreateFeatureRequest>

Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType. The parent field in each child request message can be omitted. If parent is set in a child request, then the value must match the parent value in this request message.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
    new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featurestoreServiceClient.BatchCreateFeaturesAsync(parent, requests);

// Poll until the returned long-running operation is complete
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateFeaturesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchCreateFeaturesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchCreateFeaturesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValues(BatchReadFeatureValuesRequest, CallSettings)

public virtual Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> BatchReadFeatureValues(BatchReadFeatureValuesRequest request, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
requestBatchReadFeatureValuesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
BatchReadFeatureValuesRequest request = new BatchReadFeatureValuesRequest
{
    FeaturestoreAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    CsvReadInstances = new CsvSource(),
    Destination = new FeatureValueDestination(),
    EntityTypeSpecs =
    {
        new BatchReadFeatureValuesRequest.Types.EntityTypeSpec(),
    },
    PassThroughFields =
    {
        new BatchReadFeatureValuesRequest.Types.PassThroughField(),
    },
};
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = featurestoreServiceClient.BatchReadFeatureValues(request);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchReadFeatureValues(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValues(FeaturestoreName, CallSettings)

public virtual Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> BatchReadFeatureValues(FeaturestoreName featurestore, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreFeaturestoreName

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
FeaturestoreName featurestore = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = featurestoreServiceClient.BatchReadFeatureValues(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchReadFeatureValues(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValues(String, CallSettings)

public virtual Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> BatchReadFeatureValues(string featurestore, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreString

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
string featurestore = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]";
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = featurestoreServiceClient.BatchReadFeatureValues(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceBatchReadFeatureValues(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(BatchReadFeatureValuesRequest, CallSettings)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(BatchReadFeatureValuesRequest request, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
requestBatchReadFeatureValuesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReadFeatureValuesRequest request = new BatchReadFeatureValuesRequest
{
    FeaturestoreAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    CsvReadInstances = new CsvSource(),
    Destination = new FeatureValueDestination(),
    EntityTypeSpecs =
    {
        new BatchReadFeatureValuesRequest.Types.EntityTypeSpec(),
    },
    PassThroughFields =
    {
        new BatchReadFeatureValuesRequest.Types.PassThroughField(),
    },
};
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(BatchReadFeatureValuesRequest, CancellationToken)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(BatchReadFeatureValuesRequest request, CancellationToken cancellationToken)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
requestBatchReadFeatureValuesRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReadFeatureValuesRequest request = new BatchReadFeatureValuesRequest
{
    FeaturestoreAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    CsvReadInstances = new CsvSource(),
    Destination = new FeatureValueDestination(),
    EntityTypeSpecs =
    {
        new BatchReadFeatureValuesRequest.Types.EntityTypeSpec(),
    },
    PassThroughFields =
    {
        new BatchReadFeatureValuesRequest.Types.PassThroughField(),
    },
};
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(FeaturestoreName, CallSettings)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(FeaturestoreName featurestore, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreFeaturestoreName

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturestoreName featurestore = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(FeaturestoreName, CancellationToken)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(FeaturestoreName featurestore, CancellationToken cancellationToken)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreFeaturestoreName

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturestoreName featurestore = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(String, CallSettings)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(string featurestore, CallSettings callSettings = null)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreString

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
string featurestore = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]";
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

BatchReadFeatureValuesAsync(String, CancellationToken)

public virtual Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>> BatchReadFeatureValuesAsync(string featurestore, CancellationToken cancellationToken)

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.

Parameters
NameDescription
featurestoreString

Required. The resource name of the Featurestore from which to query Feature values. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
string featurestore = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]";
// Make the request
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> response = await featurestoreServiceClient.BatchReadFeatureValuesAsync(featurestore);

// Poll until the returned long-running operation is complete
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchReadFeatureValuesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceBatchReadFeatureValuesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchReadFeatureValuesResponse retrievedResult = retrievedResponse.Result;
}

Create()

public static FeaturestoreServiceClient Create()

Synchronously creates a FeaturestoreServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeaturestoreServiceClientBuilder.

Returns
TypeDescription
FeaturestoreServiceClient

The created FeaturestoreServiceClient.

CreateAsync(CancellationToken)

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

Asynchronously creates a FeaturestoreServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeaturestoreServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<FeaturestoreServiceClient>

The task representing the created FeaturestoreServiceClient.

CreateEntityType(CreateEntityTypeRequest, CallSettings)

public virtual Operation<EntityType, CreateEntityTypeOperationMetadata> CreateEntityType(CreateEntityTypeRequest request, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
requestCreateEntityTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<EntityType, CreateEntityTypeOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
CreateEntityTypeRequest request = new CreateEntityTypeRequest
{
    ParentAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    EntityType = new EntityType(),
    EntityTypeId = "",
};
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = featurestoreServiceClient.CreateEntityType(request);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceCreateEntityType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityType(FeaturestoreName, EntityType, CallSettings)

public virtual Operation<EntityType, CreateEntityTypeOperationMetadata> CreateEntityType(FeaturestoreName parent, EntityType entityType, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentFeaturestoreName

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<EntityType, CreateEntityTypeOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
FeaturestoreName parent = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
EntityType entityType = new EntityType();
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = featurestoreServiceClient.CreateEntityType(parent, entityType);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceCreateEntityType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityType(FeaturestoreName, EntityType, String, CallSettings)

public virtual Operation<EntityType, CreateEntityTypeOperationMetadata> CreateEntityType(FeaturestoreName parent, EntityType entityType, string entityTypeId, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentFeaturestoreName

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

entityTypeIdString

Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name.

This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.

The value must be unique within a featurestore.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<EntityType, CreateEntityTypeOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
FeaturestoreName parent = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
EntityType entityType = new EntityType();
string entityTypeId = "";
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = featurestoreServiceClient.CreateEntityType(parent, entityType, entityTypeId);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceCreateEntityType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityType(String, EntityType, CallSettings)

public virtual Operation<EntityType, CreateEntityTypeOperationMetadata> CreateEntityType(string parent, EntityType entityType, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentString

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<EntityType, CreateEntityTypeOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]";
EntityType entityType = new EntityType();
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = featurestoreServiceClient.CreateEntityType(parent, entityType);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceCreateEntityType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityType(String, EntityType, String, CallSettings)

public virtual Operation<EntityType, CreateEntityTypeOperationMetadata> CreateEntityType(string parent, EntityType entityType, string entityTypeId, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentString

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

entityTypeIdString

Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name.

This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.

The value must be unique within a featurestore.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<EntityType, CreateEntityTypeOperationMetadata>

The RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]";
EntityType entityType = new EntityType();
string entityTypeId = "";
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = featurestoreServiceClient.CreateEntityType(parent, entityType, entityTypeId);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = featurestoreServiceClient.PollOnceCreateEntityType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityTypeAsync(CreateEntityTypeRequest, CallSettings)

public virtual Task<Operation<EntityType, CreateEntityTypeOperationMetadata>> CreateEntityTypeAsync(CreateEntityTypeRequest request, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
requestCreateEntityTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<EntityType, CreateEntityTypeOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEntityTypeRequest request = new CreateEntityTypeRequest
{
    ParentAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    EntityType = new EntityType(),
    EntityTypeId = "",
};
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = await featurestoreServiceClient.CreateEntityTypeAsync(request);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceCreateEntityTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityTypeAsync(CreateEntityTypeRequest, CancellationToken)

public virtual Task<Operation<EntityType, CreateEntityTypeOperationMetadata>> CreateEntityTypeAsync(CreateEntityTypeRequest request, CancellationToken cancellationToken)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
requestCreateEntityTypeRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<EntityType, CreateEntityTypeOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEntityTypeRequest request = new CreateEntityTypeRequest
{
    ParentAsFeaturestoreName = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]"),
    EntityType = new EntityType(),
    EntityTypeId = "",
};
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = await featurestoreServiceClient.CreateEntityTypeAsync(request);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceCreateEntityTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityTypeAsync(FeaturestoreName, EntityType, CallSettings)

public virtual Task<Operation<EntityType, CreateEntityTypeOperationMetadata>> CreateEntityTypeAsync(FeaturestoreName parent, EntityType entityType, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentFeaturestoreName

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<EntityType, CreateEntityTypeOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturestoreName parent = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
EntityType entityType = new EntityType();
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = await featurestoreServiceClient.CreateEntityTypeAsync(parent, entityType);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceCreateEntityTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityTypeAsync(FeaturestoreName, EntityType, String, CallSettings)

public virtual Task<Operation<EntityType, CreateEntityTypeOperationMetadata>> CreateEntityTypeAsync(FeaturestoreName parent, EntityType entityType, string entityTypeId, CallSettings callSettings = null)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentFeaturestoreName

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

entityTypeIdString

Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name.

This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.

The value must be unique within a featurestore.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<EntityType, CreateEntityTypeOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturestoreName parent = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
EntityType entityType = new EntityType();
string entityTypeId = "";
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = await featurestoreServiceClient.CreateEntityTypeAsync(parent, entityType, entityTypeId);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceCreateEntityTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    EntityType retrievedResult = retrievedResponse.Result;
}

CreateEntityTypeAsync(FeaturestoreName, EntityType, String, CancellationToken)

public virtual Task<Operation<EntityType, CreateEntityTypeOperationMetadata>> CreateEntityTypeAsync(FeaturestoreName parent, EntityType entityType, string entityTypeId, CancellationToken cancellationToken)

Creates a new EntityType in a given Featurestore.

Parameters
NameDescription
parentFeaturestoreName

Required. The resource name of the Featurestore to create EntityTypes. Format: projects/{project}/locations/{location}/featurestores/{featurestore}

entityTypeEntityType

The EntityType to create.

entityTypeIdString

Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name.

This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.

The value must be unique within a featurestore.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<EntityType, CreateEntityTypeOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
FeaturestoreServiceClient featurestoreServiceClient = await FeaturestoreServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturestoreName parent = FeaturestoreName.FromProjectLocationFeaturestore("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
EntityType entityType = new EntityType();
string entityTypeId = "";
// Make the request
Operation<EntityType, CreateEntityTypeOperationMetadata> response = await featurestoreServiceClient.CreateEntityTypeAsync(parent, entityType, entityTypeId);

// Poll until the returned long-running operation is complete
Operation<EntityType, CreateEntityTypeOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
EntityType result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<EntityType, CreateEntityTypeOperationMetadata> retrievedResponse = await featurestoreServiceClient.PollOnceCreateEntityTypeAsync(operationName)