/// <summary>Snippet for StreamingReadFeatureValues</summary> public async Task StreamingReadFeatureValuesRequestObject() { // Snippet: StreamingReadFeatureValues(StreamingReadFeatureValuesRequest, CallSettings) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = FeaturestoreOnlineServingServiceClient.Create(); // Initialize request argument(s) StreamingReadFeatureValuesRequest request = new StreamingReadFeatureValuesRequest { EntityTypeAsEntityTypeName = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"), EntityIds = { "", }, FeatureSelector = new FeatureSelector(), }; // Make the request, returning a streaming response FeaturestoreOnlineServingServiceClient.StreamingReadFeatureValuesStream response = featurestoreOnlineServingServiceClient.StreamingReadFeatureValues(request); // Read streaming responses from server until complete // Note that C# 8 code can use await foreach AsyncResponseStream <ReadFeatureValuesResponse> responseStream = response.GetResponseStream(); while (await responseStream.MoveNextAsync()) { ReadFeatureValuesResponse responseItem = responseStream.Current; // Do something with streamed response } // The response stream has completed // End snippet }
/// <summary>Snippet for ReadFeatureValues</summary> public void ReadFeatureValuesResourceNames() { // Snippet: ReadFeatureValues(EntityTypeName, CallSettings) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = FeaturestoreOnlineServingServiceClient.Create(); // Initialize request argument(s) EntityTypeName entityType = EntityTypeName.FromProjectLocationFeaturestoreEntityType("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); // Make the request ReadFeatureValuesResponse response = featurestoreOnlineServingServiceClient.ReadFeatureValues(entityType); // End snippet }
/// <summary>Snippet for ReadFeatureValues</summary> public void ReadFeatureValues() { // Snippet: ReadFeatureValues(string, CallSettings) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = FeaturestoreOnlineServingServiceClient.Create(); // Initialize request argument(s) string entityType = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]"; // Make the request ReadFeatureValuesResponse response = featurestoreOnlineServingServiceClient.ReadFeatureValues(entityType); // 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 }
/// <summary>Snippet for ReadFeatureValues</summary> public void ReadFeatureValuesRequestObject() { // Snippet: ReadFeatureValues(ReadFeatureValuesRequest, CallSettings) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = FeaturestoreOnlineServingServiceClient.Create(); // 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 = featurestoreOnlineServingServiceClient.ReadFeatureValues(request); // End snippet }
/// <summary>Snippet for StreamingReadFeatureValues</summary> public async Task StreamingReadFeatureValues() { // Snippet: StreamingReadFeatureValues(string, CallSettings) // Create client FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient = FeaturestoreOnlineServingServiceClient.Create(); // Initialize request argument(s) string entityType = "projects/[PROJECT]/locations/[LOCATION]/featurestores/[FEATURESTORE]/entityTypes/[ENTITY_TYPE]"; // Make the request, returning a streaming response FeaturestoreOnlineServingServiceClient.StreamingReadFeatureValuesStream response = featurestoreOnlineServingServiceClient.StreamingReadFeatureValues(entityType); // Read streaming responses from server until complete // Note that C# 8 code can use await foreach AsyncResponseStream <ReadFeatureValuesResponse> responseStream = response.GetResponseStream(); while (await responseStream.MoveNextAsync()) { ReadFeatureValuesResponse responseItem = responseStream.Current; // Do something with streamed response } // The response stream has completed // End snippet }