/// <summary>Snippet for ReadFeatureValuesAsync</summary> public async Task ReadFeatureValuesRequestObjectAsync() { // Snippet: ReadFeatureValuesAsync(ReadFeatureValuesRequest, CallSettings) // Additional: ReadFeatureValuesAsync(ReadFeatureValuesRequest, CancellationToken) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = await FeaturestoreOnlineServingServiceClient.CreateAsync(); // Initialize request argument(s) ReadFeatureValuesRequest request = new ReadFeatureValuesRequest { EntityTypeAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"), EntityId = "", FeatureSelector = new FeatureSelector(), }; // Make the request ReadFeatureValuesResponse response = await featurestoreOnlineServingServiceClient.ReadFeatureValuesAsync(request); // End snippet }
/// <summary>Snippet for ReadFeatureValuesAsync</summary> public async Task ReadFeatureValuesAsync() { // Snippet: ReadFeatureValuesAsync(string, CallSettings) // Additional: ReadFeatureValuesAsync(string, CancellationToken) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = await FeaturestoreOnlineServingServiceClient.CreateAsync(); // Initialize request argument(s) string entityType = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]"; // Make the request ReadFeatureValuesResponse response = await featurestoreOnlineServingServiceClient.ReadFeatureValuesAsync(entityType); // End snippet }
/// <summary>Snippet for ReadFeatureValuesAsync</summary> public async Task ReadFeatureValuesResourceNamesAsync() { // Snippet: ReadFeatureValuesAsync(EntityTypeName, CallSettings) // Additional: ReadFeatureValuesAsync(EntityTypeName, CancellationToken) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = await FeaturestoreOnlineServingServiceClient.CreateAsync(); // Initialize request argument(s) EntityTypeName entityType = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); // Make the request ReadFeatureValuesResponse response = await featurestoreOnlineServingServiceClient.ReadFeatureValuesAsync(entityType); // End snippet }