- 3.50.0 (latest)
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public abstract class FeatureRegistryServiceClientReference documentation and code samples for the Vertex AI v1 API class FeatureRegistryServiceClient.
FeatureRegistryService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Remarks
The service that handles CRUD and List for resources for FeatureRegistry.
Properties
BatchCreateFeaturesOperationsClient
public virtual OperationsClient BatchCreateFeaturesOperationsClient { get; }The long-running operations client for BatchCreateFeatures.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateFeatureGroupOperationsClient
public virtual OperationsClient CreateFeatureGroupOperationsClient { get; }The long-running operations client for CreateFeatureGroup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateFeatureOperationsClient
public virtual OperationsClient CreateFeatureOperationsClient { get; }The long-running operations client for CreateFeature.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the FeatureRegistryService service, which is a host of "aiplatform.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default FeatureRegistryService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default FeatureRegistryService scopes are:
DeleteFeatureGroupOperationsClient
public virtual OperationsClient DeleteFeatureGroupOperationsClient { get; }The long-running operations client for DeleteFeatureGroup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteFeatureOperationsClient
public virtual OperationsClient DeleteFeatureOperationsClient { get; }The long-running operations client for DeleteFeature.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual FeatureRegistryService.FeatureRegistryServiceClient GrpcClient { get; }The underlying gRPC FeatureRegistryService client
| Property Value | |
|---|---|
| Type | Description |
FeatureRegistryServiceFeatureRegistryServiceClient |
|
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public virtual LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
UpdateFeatureGroupOperationsClient
public virtual OperationsClient UpdateFeatureGroupOperationsClient { get; }The long-running operations client for UpdateFeatureGroup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateFeatureOperationsClient
public virtual OperationsClient UpdateFeatureOperationsClient { get; }The long-running operations client for UpdateFeature.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
BatchCreateFeatures(BatchCreateFeaturesRequest, CallSettings)
public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> BatchCreateFeatures(BatchCreateFeaturesRequest request, CallSettings callSettings = null)Creates a batch of Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchCreateFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.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 = featureRegistryServiceClient.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 = featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.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 = featureRegistryServiceClient.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 = featureRegistryServiceClient.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(FeatureGroupName, IEnumerable<CreateFeatureRequest>, CallSettings)
public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> BatchCreateFeatures(FeatureGroupName parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)Creates a batch of Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = featureRegistryServiceClient.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 = featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.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 = featureRegistryServiceClient.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 = featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchCreateFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchCreateFeaturesRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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(FeatureGroupName, IEnumerable<CreateFeatureRequest>, CallSettings)
public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(FeatureGroupName parent, IEnumerable<CreateFeatureRequest> requests, CallSettings callSettings = null)Creates a batch of Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featureRegistryServiceClient.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 featureRegistryServiceClient.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(FeatureGroupName, IEnumerable<CreateFeatureRequest>, CancellationToken)
public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> BatchCreateFeaturesAsync(FeatureGroupName parent, IEnumerable<CreateFeatureRequest> requests, CancellationToken cancellationToken)Creates a batch of Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
IEnumerable<CreateFeatureRequest> requests = new CreateFeatureRequest[]
{
new CreateFeatureRequest(),
};
// Make the request
Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> response = await featureRegistryServiceClient.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 featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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 FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType/FeatureGroup to create the
batch of Features under. Format:
|
requests |
IEnumerableCreateFeatureRequestRequired. The request message specifying the Features to create. All
Features must be created under the same parent EntityType / FeatureGroup.
The |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.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 featureRegistryServiceClient.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 featureRegistryServiceClient.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;
}
Create()
public static FeatureRegistryServiceClient Create()Synchronously creates a FeatureRegistryServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeatureRegistryServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
FeatureRegistryServiceClient |
The created FeatureRegistryServiceClient. |
CreateAsync(CancellationToken)
public static Task<FeatureRegistryServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a FeatureRegistryServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeatureRegistryServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureRegistryServiceClient |
The task representing the created FeatureRegistryServiceClient. |
CreateFeature(CreateFeatureRequest, CallSettings)
public virtual Operation<Feature, CreateFeatureOperationMetadata> CreateFeature(CreateFeatureRequest request, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureCreateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
Feature = new Feature(),
FeatureId = "",
};
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = featureRegistryServiceClient.CreateFeature(request);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeature(EntityTypeName, Feature, string, CallSettings)
public virtual Operation<Feature, CreateFeatureOperationMetadata> CreateFeature(EntityTypeName parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureCreateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = featureRegistryServiceClient.CreateFeature(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeature(FeatureGroupName, Feature, string, CallSettings)
public virtual Operation<Feature, CreateFeatureOperationMetadata> CreateFeature(FeatureGroupName parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureCreateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = featureRegistryServiceClient.CreateFeature(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeature(string, Feature, string, CallSettings)
public virtual Operation<Feature, CreateFeatureOperationMetadata> CreateFeature(string parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureCreateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = featureRegistryServiceClient.CreateFeature(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(CreateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(CreateFeatureRequest request, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
Feature = new Feature(),
FeatureId = "",
};
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(CreateFeatureRequest, CancellationToken)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(CreateFeatureRequest request, CancellationToken cancellationToken)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
Feature = new Feature(),
FeatureId = "",
};
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(EntityTypeName, Feature, string, CallSettings)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(EntityTypeName parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(EntityTypeName, Feature, string, CancellationToken)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(EntityTypeName parent, Feature feature, string featureId, CancellationToken cancellationToken)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(FeatureGroupName, Feature, string, CallSettings)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(FeatureGroupName parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(FeatureGroupName, Feature, string, CancellationToken)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(FeatureGroupName parent, Feature feature, string featureId, CancellationToken cancellationToken)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(string, Feature, string, CallSettings)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(string parent, Feature feature, string featureId, CallSettings callSettings = null)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(string, Feature, string, CancellationToken)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> CreateFeatureAsync(string parent, Feature feature, string featureId, CancellationToken cancellationToken)Creates a new Feature in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
|
feature |
FeatureRequired. The Feature to create. |
featureId |
stringRequired. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within an EntityType/FeatureGroup. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
Feature feature = new Feature();
string featureId = "";
// Make the request
Operation<Feature, CreateFeatureOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureAsync(parent, feature, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, CreateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, CreateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroup(LocationName, FeatureGroup, string, CallSettings)
public virtual Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> CreateFeatureGroup(LocationName parent, FeatureGroup featureGroup, string featureGroupId, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupCreateFeatureGroupOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = featureRegistryServiceClient.CreateFeatureGroup(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroup(CreateFeatureGroupRequest, CallSettings)
public virtual Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> CreateFeatureGroup(CreateFeatureGroupRequest request, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupCreateFeatureGroupOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
CreateFeatureGroupRequest request = new CreateFeatureGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
FeatureGroup = new FeatureGroup(),
FeatureGroupId = "",
};
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = featureRegistryServiceClient.CreateFeatureGroup(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroup(string, FeatureGroup, string, CallSettings)
public virtual Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> CreateFeatureGroup(string parent, FeatureGroup featureGroup, string featureGroupId, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupCreateFeatureGroupOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = featureRegistryServiceClient.CreateFeatureGroup(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceCreateFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(LocationName, FeatureGroup, string, CallSettings)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(LocationName parent, FeatureGroup featureGroup, string featureGroupId, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(LocationName, FeatureGroup, string, CancellationToken)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(LocationName parent, FeatureGroup featureGroup, string featureGroupId, CancellationToken cancellationToken)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(CreateFeatureGroupRequest, CallSettings)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(CreateFeatureGroupRequest request, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureGroupRequest request = new CreateFeatureGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
FeatureGroup = new FeatureGroup(),
FeatureGroupId = "",
};
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(CreateFeatureGroupRequest, CancellationToken)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(CreateFeatureGroupRequest request, CancellationToken cancellationToken)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureGroupRequest request = new CreateFeatureGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
FeatureGroup = new FeatureGroup(),
FeatureGroupId = "",
};
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(string, FeatureGroup, string, CallSettings)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(string parent, FeatureGroup featureGroup, string featureGroupId, CallSettings callSettings = null)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
CreateFeatureGroupAsync(string, FeatureGroup, string, CancellationToken)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> CreateFeatureGroupAsync(string parent, FeatureGroup featureGroup, string featureGroupId, CancellationToken cancellationToken)Creates a new FeatureGroup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to create FeatureGroups.
Format:
|
featureGroup |
FeatureGroupRequired. The FeatureGroup to create. |
featureGroupId |
stringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are
The value must be unique within the project and location. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FeatureGroup featureGroup = new FeatureGroup();
string featureGroupId = "";
// Make the request
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.CreateFeatureGroupAsync(parent, featureGroup, featureGroupId);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, CreateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceCreateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
DeleteFeature(DeleteFeatureRequest, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeature(DeleteFeatureRequest request, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeature(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeature(FeatureName, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeature(FeatureName name, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Features to be deleted.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeature(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeature(string, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeature(string name, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Features to be deleted.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeature(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(DeleteFeatureRequest, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(DeleteFeatureRequest request, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(DeleteFeatureRequest, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(DeleteFeatureRequest request, CancellationToken cancellationToken)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(FeatureName, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(FeatureName name, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Features to be deleted.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(FeatureName, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(FeatureName name, CancellationToken cancellationToken)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Features to be deleted.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(string name, CallSettings callSettings = null)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Features to be deleted.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(string, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureAsync(string name, CancellationToken cancellationToken)Deletes a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Features to be deleted.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroup(DeleteFeatureGroupRequest, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeatureGroup(DeleteFeatureGroupRequest request, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
DeleteFeatureGroupRequest request = new DeleteFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeatureGroup(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroup(FeatureGroupName, bool, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeatureGroup(FeatureGroupName name, bool force, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeatureGroup(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroup(string, bool, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteFeatureGroup(string name, bool force, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = featureRegistryServiceClient.DeleteFeatureGroup(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceDeleteFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(DeleteFeatureGroupRequest, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(DeleteFeatureGroupRequest request, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureGroupRequest request = new DeleteFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(DeleteFeatureGroupRequest, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(DeleteFeatureGroupRequest request, CancellationToken cancellationToken)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureGroupRequest request = new DeleteFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
Force = false,
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(FeatureGroupName, bool, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(FeatureGroupName name, bool force, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(FeatureGroupName, bool, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(FeatureGroupName name, bool force, CancellationToken cancellationToken)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(string, bool, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(string name, bool force, CallSettings callSettings = null)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureGroupAsync(string, bool, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteFeatureGroupAsync(string name, bool force, CancellationToken cancellationToken)Deletes a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup to be deleted.
Format:
|
force |
boolIf set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.) |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
bool force = false;
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await featureRegistryServiceClient.DeleteFeatureGroupAsync(name, force);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, DeleteOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceDeleteFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GetFeature(FeatureName, CallSettings)
public virtual Feature GetFeature(FeatureName name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Feature resource.
Format for entity_type as parent:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feature |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Feature response = featureRegistryServiceClient.GetFeature(name);
GetFeature(GetFeatureRequest, CallSettings)
public virtual Feature GetFeature(GetFeatureRequest request, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feature |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Feature response = featureRegistryServiceClient.GetFeature(request);
GetFeature(string, CallSettings)
public virtual Feature GetFeature(string name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Feature resource.
Format for entity_type as parent:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feature |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Feature response = featureRegistryServiceClient.GetFeature(name);
GetFeatureAsync(FeatureName, CallSettings)
public virtual Task<Feature> GetFeatureAsync(FeatureName name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Feature resource.
Format for entity_type as parent:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(name);
GetFeatureAsync(FeatureName, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(FeatureName name, CancellationToken cancellationToken)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The name of the Feature resource.
Format for entity_type as parent:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(name);
GetFeatureAsync(GetFeatureRequest, CallSettings)
public virtual Task<Feature> GetFeatureAsync(GetFeatureRequest request, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(request);
GetFeatureAsync(GetFeatureRequest, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(GetFeatureRequest request, CancellationToken cancellationToken)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeaturestoreEntityTypeFeature("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]"),
};
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(request);
GetFeatureAsync(string, CallSettings)
public virtual Task<Feature> GetFeatureAsync(string name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Feature resource.
Format for entity_type as parent:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(name);
GetFeatureAsync(string, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(string name, CancellationToken cancellationToken)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the Feature resource.
Format for entity_type as parent:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]/features/[FEATURE]";
// Make the request
Feature response = await featureRegistryServiceClient.GetFeatureAsync(name);
GetFeatureGroup(FeatureGroupName, CallSettings)
public virtual FeatureGroup GetFeatureGroup(FeatureGroupName name, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup resource. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeatureGroup |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
// Make the request
FeatureGroup response = featureRegistryServiceClient.GetFeatureGroup(name);
GetFeatureGroup(GetFeatureGroupRequest, CallSettings)
public virtual FeatureGroup GetFeatureGroup(GetFeatureGroupRequest request, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeatureGroup |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
GetFeatureGroupRequest request = new GetFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
};
// Make the request
FeatureGroup response = featureRegistryServiceClient.GetFeatureGroup(request);
GetFeatureGroup(string, CallSettings)
public virtual FeatureGroup GetFeatureGroup(string name, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup resource. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeatureGroup |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
// Make the request
FeatureGroup response = featureRegistryServiceClient.GetFeatureGroup(name);
GetFeatureGroupAsync(FeatureGroupName, CallSettings)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(FeatureGroupName name, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup resource. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(name);
GetFeatureGroupAsync(FeatureGroupName, CancellationToken)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(FeatureGroupName name, CancellationToken cancellationToken)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureGroupNameRequired. The name of the FeatureGroup resource. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName name = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(name);
GetFeatureGroupAsync(GetFeatureGroupRequest, CallSettings)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(GetFeatureGroupRequest request, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeatureGroupRequest request = new GetFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
};
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(request);
GetFeatureGroupAsync(GetFeatureGroupRequest, CancellationToken)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(GetFeatureGroupRequest request, CancellationToken cancellationToken)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeatureGroupRequest request = new GetFeatureGroupRequest
{
FeatureGroupName = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"),
};
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(request);
GetFeatureGroupAsync(string, CallSettings)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(string name, CallSettings callSettings = null)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup resource. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(name);
GetFeatureGroupAsync(string, CancellationToken)
public virtual Task<FeatureGroup> GetFeatureGroupAsync(string name, CancellationToken cancellationToken)Gets details of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the FeatureGroup resource. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeatureGroup |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/featureGroups/[FEATURE_GROUP]";
// Make the request
FeatureGroup response = await featureRegistryServiceClient.GetFeatureGroupAsync(name);
ListFeatureGroups(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The resource name of the Location to list FeatureGroups.
Format:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeatureGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeatureGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatureGroups(ListFeatureGroupsRequest, CallSettings)
public virtual PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroups(ListFeatureGroupsRequest request, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeatureGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
ListFeatureGroupsRequest request = new ListFeatureGroupsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroups(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeatureGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeatureGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatureGroups(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to list FeatureGroups.
Format:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeatureGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeatureGroupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatureGroupsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The resource name of the Location to list FeatureGroups.
Format:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable asynchronous sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FeatureGroup item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeatureGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatureGroupsAsync(ListFeatureGroupsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroupsAsync(ListFeatureGroupsRequest request, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeatureGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable asynchronous sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeatureGroupsRequest request = new ListFeatureGroupsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroupsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FeatureGroup item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeatureGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatureGroupsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> ListFeatureGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists FeatureGroups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to list FeatureGroups.
Format:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeatureGroupsResponseFeatureGroup |
A pageable asynchronous sequence of FeatureGroup resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFeatureGroupsResponse, FeatureGroup> response = featureRegistryServiceClient.ListFeatureGroupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FeatureGroup item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeatureGroupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeatureGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeatureGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeatureGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatures(EntityTypeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(EntityTypeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeatures(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatures(FeatureGroupName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(FeatureGroupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeatures(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatures(ListFeaturesRequest, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(ListFeaturesRequest request, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
Filter = "",
OrderBy = "",
ReadMask = new FieldMask(),
LatestStatsCount = 0,
};
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeatures(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatures(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeatures(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(EntityTypeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(EntityTypeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
EntityTypeNameRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
EntityTypeName parent = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(FeatureGroupName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(FeatureGroupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeatureGroupNameRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroupName parent = FeatureGroupName.FromProjectLocationFeatureGroup("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]");
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(ListFeaturesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(ListFeaturesRequest request, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
ParentAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"),
Filter = "",
OrderBy = "",
ReadMask = new FieldMask(),
LatestStatsCount = 0,
};
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeaturesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The resource name of the Location to list Features.
Format for entity_type as parent:
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]";
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = featureRegistryServiceClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceBatchCreateFeatures(string, CallSettings)
public virtual Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata> PollOnceBatchCreateFeatures(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of BatchCreateFeatures
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
The result of polling the operation. |
PollOnceBatchCreateFeaturesAsync(string, CallSettings)
public virtual Task<Operation<BatchCreateFeaturesResponse, BatchCreateFeaturesOperationMetadata>> PollOnceBatchCreateFeaturesAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
BatchCreateFeatures.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchCreateFeaturesResponseBatchCreateFeaturesOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateFeature(string, CallSettings)
public virtual Operation<Feature, CreateFeatureOperationMetadata> PollOnceCreateFeature(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureCreateFeatureOperationMetadata |
The result of polling the operation. |
PollOnceCreateFeatureAsync(string, CallSettings)
public virtual Task<Operation<Feature, CreateFeatureOperationMetadata>> PollOnceCreateFeatureAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureCreateFeatureOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateFeatureGroup(string, CallSettings)
public virtual Operation<FeatureGroup, CreateFeatureGroupOperationMetadata> PollOnceCreateFeatureGroup(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateFeatureGroup
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupCreateFeatureGroupOperationMetadata |
The result of polling the operation. |
PollOnceCreateFeatureGroupAsync(string, CallSettings)
public virtual Task<Operation<FeatureGroup, CreateFeatureGroupOperationMetadata>> PollOnceCreateFeatureGroupAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateFeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupCreateFeatureGroupOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteFeature(string, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteFeature(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The result of polling the operation. |
PollOnceDeleteFeatureAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteFeatureAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteFeatureGroup(string, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteFeatureGroup(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteFeatureGroup
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteOperationMetadata |
The result of polling the operation. |
PollOnceDeleteFeatureGroupAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteFeatureGroupAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteFeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateFeature(string, CallSettings)
public virtual Operation<Feature, UpdateFeatureOperationMetadata> PollOnceUpdateFeature(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureUpdateFeatureOperationMetadata |
The result of polling the operation. |
PollOnceUpdateFeatureAsync(string, CallSettings)
public virtual Task<Operation<Feature, UpdateFeatureOperationMetadata>> PollOnceUpdateFeatureAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateFeature.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureUpdateFeatureOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateFeatureGroup(string, CallSettings)
public virtual Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> PollOnceUpdateFeatureGroup(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateFeatureGroup
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupUpdateFeatureGroupOperationMetadata |
The result of polling the operation. |
PollOnceUpdateFeatureGroupAsync(string, CallSettings)
public virtual Task<Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata>> PollOnceUpdateFeatureGroupAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateFeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupUpdateFeatureGroupOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateFeature(Feature, FieldMask, CallSettings)
public virtual Operation<Feature, UpdateFeatureOperationMetadata> UpdateFeature(Feature feature, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
feature |
FeatureRequired. The Feature's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
Features resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureUpdateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
Feature feature = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = featureRegistryServiceClient.UpdateFeature(feature, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceUpdateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeature(UpdateFeatureRequest, CallSettings)
public virtual Operation<Feature, UpdateFeatureOperationMetadata> UpdateFeature(UpdateFeatureRequest request, CallSettings callSettings = null)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureUpdateFeatureOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Feature = new Feature(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = featureRegistryServiceClient.UpdateFeature(request);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceUpdateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(Feature, FieldMask, CallSettings)
public virtual Task<Operation<Feature, UpdateFeatureOperationMetadata>> UpdateFeatureAsync(Feature feature, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
feature |
FeatureRequired. The Feature's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
Features resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureUpdateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
Feature feature = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureAsync(feature, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(Feature, FieldMask, CancellationToken)
public virtual Task<Operation<Feature, UpdateFeatureOperationMetadata>> UpdateFeatureAsync(Feature feature, FieldMask updateMask, CancellationToken cancellationToken)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
feature |
FeatureRequired. The Feature's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
Features resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureUpdateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
Feature feature = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureAsync(feature, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(UpdateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, UpdateFeatureOperationMetadata>> UpdateFeatureAsync(UpdateFeatureRequest request, CallSettings callSettings = null)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureUpdateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Feature = new Feature(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(UpdateFeatureRequest, CancellationToken)
public virtual Task<Operation<Feature, UpdateFeatureOperationMetadata>> UpdateFeatureAsync(UpdateFeatureRequest request, CancellationToken cancellationToken)Updates the parameters of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureUpdateFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Feature = new Feature(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Feature, UpdateFeatureOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, UpdateFeatureOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature 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<Feature, UpdateFeatureOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroup(FeatureGroup, FieldMask, CallSettings)
public virtual Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> UpdateFeatureGroup(FeatureGroup featureGroup, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
featureGroup |
FeatureGroupRequired. The FeatureGroup's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
FeatureGroup resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupUpdateFeatureGroupOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
FeatureGroup featureGroup = new FeatureGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = featureRegistryServiceClient.UpdateFeatureGroup(featureGroup, updateMask);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceUpdateFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroup(UpdateFeatureGroupRequest, CallSettings)
public virtual Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> UpdateFeatureGroup(UpdateFeatureGroupRequest request, CallSettings callSettings = null)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureGroupUpdateFeatureGroupOperationMetadata |
The RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = FeatureRegistryServiceClient.Create();
// Initialize request argument(s)
UpdateFeatureGroupRequest request = new UpdateFeatureGroupRequest
{
FeatureGroup = new FeatureGroup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = featureRegistryServiceClient.UpdateFeatureGroup(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = featureRegistryServiceClient.PollOnceUpdateFeatureGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroupAsync(FeatureGroup, FieldMask, CallSettings)
public virtual Task<Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata>> UpdateFeatureGroupAsync(FeatureGroup featureGroup, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
featureGroup |
FeatureGroupRequired. The FeatureGroup's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
FeatureGroup resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupUpdateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroup featureGroup = new FeatureGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureGroupAsync(featureGroup, updateMask);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroupAsync(FeatureGroup, FieldMask, CancellationToken)
public virtual Task<Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata>> UpdateFeatureGroupAsync(FeatureGroup featureGroup, FieldMask updateMask, CancellationToken cancellationToken)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
featureGroup |
FeatureGroupRequired. The FeatureGroup's |
updateMask |
FieldMaskField mask is used to specify the fields to be overwritten in the
FeatureGroup resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then only the non-empty fields present in the
request will be overwritten. Set the update_mask to Updatable fields:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupUpdateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
FeatureGroup featureGroup = new FeatureGroup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureGroupAsync(featureGroup, updateMask);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroupAsync(UpdateFeatureGroupRequest, CallSettings)
public virtual Task<Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata>> UpdateFeatureGroupAsync(UpdateFeatureGroupRequest request, CallSettings callSettings = null)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupUpdateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureGroupRequest request = new UpdateFeatureGroupRequest
{
FeatureGroup = new FeatureGroup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}
UpdateFeatureGroupAsync(UpdateFeatureGroupRequest, CancellationToken)
public virtual Task<Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata>> UpdateFeatureGroupAsync(UpdateFeatureGroupRequest request, CancellationToken cancellationToken)Updates the parameters of a single FeatureGroup.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureGroupUpdateFeatureGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
FeatureRegistryServiceClient featureRegistryServiceClient = await FeatureRegistryServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureGroupRequest request = new UpdateFeatureGroupRequest
{
FeatureGroup = new FeatureGroup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> response = await featureRegistryServiceClient.UpdateFeatureGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<FeatureGroup, UpdateFeatureGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
FeatureGroup 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<FeatureGroup, UpdateFeatureGroupOperationMetadata> retrievedResponse = await featureRegistryServiceClient.PollOnceUpdateFeatureGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
FeatureGroup retrievedResult = retrievedResponse.Result;
}