/// <summary>Snippet for SampleRowKeys</summary> public async Task SampleRowKeys() { // Snippet: SampleRowKeys(SampleRowKeysRequest,CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument SampleRowKeysRequest request = new SampleRowKeysRequest { TableNameAsTableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"), }; // Make the request, returning a streaming response BigtableServiceApiClient.SampleRowKeysStream streamingResponse = bigtableServiceApiClient.SampleRowKeys(request); // Read streaming responses from server until complete IAsyncEnumerator <SampleRowKeysResponse> responseStream = streamingResponse.ResponseStream; while (await responseStream.MoveNext()) { SampleRowKeysResponse response = responseStream.Current; // Do something with streamed response } // The response stream has completed // End snippet }
/// <summary>Snippet for SampleRowKeys</summary> public async Task SampleRowKeys1() { // Snippet: SampleRowKeys(string, CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument(s) string tableName = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; // Make the request, returning a streaming response BigtableServiceApiClient.SampleRowKeysStream response = bigtableServiceApiClient.SampleRowKeys(tableName); // Read streaming responses from server until complete IAsyncEnumerator <SampleRowKeysResponse> responseStream = response.ResponseStream; while (await responseStream.MoveNext()) { SampleRowKeysResponse responseItem = responseStream.Current; // Do something with streamed response } // The response stream has completed // End snippet }
/// <summary>Snippet for SampleRowKeys</summary> public async Task SampleRowKeys2_ResourceNames() { // Snippet: SampleRowKeys(TableName, string, CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument(s) TableName tableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"); string appProfileId = ""; // Make the request, returning a streaming response BigtableServiceApiClient.SampleRowKeysStream response = bigtableServiceApiClient.SampleRowKeys(tableName, appProfileId); // Read streaming responses from server until complete IAsyncEnumerator <SampleRowKeysResponse> responseStream = response.ResponseStream; while (await responseStream.MoveNext()) { SampleRowKeysResponse responseItem = responseStream.Current; // Do something with streamed response } // The response stream has completed // End snippet }