/// <summary>Snippet for CheckAndMutateRowAsync</summary> public async Task CheckAndMutateRow1Async() { // Snippet: CheckAndMutateRowAsync(string, ByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, CallSettings) // Additional: CheckAndMutateRowAsync(string, ByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) string tableName = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; ByteString rowKey = ByteString.Empty; RowFilter predicateFilter = new RowFilter(); IEnumerable <Mutation> trueMutations = new Mutation[] { new Mutation(), }; IEnumerable <Mutation> falseMutations = new Mutation[] { new Mutation(), }; // Make the request CheckAndMutateRowResponse response = await bigtableServiceApiClient.CheckAndMutateRowAsync(tableName, rowKey, predicateFilter, trueMutations, falseMutations); // End snippet }
/// <summary>Snippet for ReadModifyWriteRowAsync</summary> public async Task ReadModifyWriteRowAsync_RequestObject() { // Snippet: ReadModifyWriteRowAsync(ReadModifyWriteRowRequest,CallSettings) // Additional: ReadModifyWriteRowAsync(ReadModifyWriteRowRequest,CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) ReadModifyWriteRowRequest request = new ReadModifyWriteRowRequest { TableNameAsTableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"), RowKey = ByteString.Empty, Rules = { }, }; // Make the request ReadModifyWriteRowResponse response = await bigtableServiceApiClient.ReadModifyWriteRowAsync(request); // End snippet }
/// <summary>Snippet for MutateRowAsync</summary> public async Task MutateRowAsync_RequestObject() { // Snippet: MutateRowAsync(MutateRowRequest,CallSettings) // Additional: MutateRowAsync(MutateRowRequest,CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) MutateRowRequest request = new MutateRowRequest { TableNameAsTableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"), RowKey = Google.Protobuf.ByteString.CopyFromUtf8(""), Mutations = { }, }; // Make the request MutateRowResponse response = await bigtableServiceApiClient.MutateRowAsync(request); // End snippet }
/// <summary>Snippet for ReadModifyWriteRowAsync</summary> public async Task ReadModifyWriteRow1Async_ResourceNames() { // Snippet: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, CallSettings) // Additional: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) TableName tableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"); ByteString rowKey = ByteString.Empty; IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[] { new ReadModifyWriteRule(), }; // Make the request ReadModifyWriteRowResponse response = await bigtableServiceApiClient.ReadModifyWriteRowAsync(tableName, rowKey, rules); // End snippet }
/// <summary>Snippet for CheckAndMutateRowAsync</summary> public async Task CheckAndMutateRow2Async_ResourceNames() { // Snippet: CheckAndMutateRowAsync(TableName, ByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, string, CallSettings) // Additional: CheckAndMutateRowAsync(TableName, ByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, string, CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) TableName tableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"); ByteString rowKey = ByteString.Empty; RowFilter predicateFilter = new RowFilter(); IEnumerable <Mutation> trueMutations = new Mutation[] { new Mutation(), }; IEnumerable <Mutation> falseMutations = new Mutation[] { new Mutation(), }; string appProfileId = ""; // Make the request CheckAndMutateRowResponse response = await bigtableServiceApiClient.CheckAndMutateRowAsync(tableName, rowKey, predicateFilter, trueMutations, falseMutations, appProfileId); // End snippet }
/// <summary>Snippet for CheckAndMutateRow</summary> public void CheckAndMutateRow_RequestObject() { // Snippet: CheckAndMutateRow(CheckAndMutateRowRequest, CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument(s) CheckAndMutateRowRequest request = new CheckAndMutateRowRequest { TableNameAsTableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"), RowKey = ByteString.Empty, TrueMutations = { new Mutation(), }, FalseMutations = { new Mutation(), }, PredicateFilter = new RowFilter(), AppProfileId = "", }; // Make the request CheckAndMutateRowResponse response = bigtableServiceApiClient.CheckAndMutateRow(request); // End snippet }
/// <summary>Snippet for ReadModifyWriteRowAsync</summary> public async Task ReadModifyWriteRow2Async() { // Snippet: ReadModifyWriteRowAsync(string, ByteString, IEnumerable<ReadModifyWriteRule>, string, CallSettings) // Additional: ReadModifyWriteRowAsync(string, ByteString, IEnumerable<ReadModifyWriteRule>, string, CancellationToken) // Create client BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync(); // Initialize request argument(s) string tableName = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; ByteString rowKey = ByteString.Empty; IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[] { new ReadModifyWriteRule(), }; string appProfileId = ""; // Make the request ReadModifyWriteRowResponse response = await bigtableServiceApiClient.ReadModifyWriteRowAsync(tableName, rowKey, rules, appProfileId); // End snippet }
/// <summary>Snippet for ReadModifyWriteRow</summary> public void ReadModifyWriteRow_RequestObject() { // Snippet: ReadModifyWriteRow(ReadModifyWriteRowRequest, CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument(s) ReadModifyWriteRowRequest request = new ReadModifyWriteRowRequest { TableNameAsTableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"), RowKey = ByteString.Empty, Rules = { new ReadModifyWriteRule(), }, AppProfileId = "", }; // Make the request ReadModifyWriteRowResponse response = bigtableServiceApiClient.ReadModifyWriteRow(request); // End snippet }
/// <summary>Snippet for ReadRows</summary> public async Task ReadRows1_ResourceNames() { // Snippet: ReadRows(TableName, CallSettings) // Create client BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create(); // Initialize request argument(s) TableName tableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]"); // Make the request, returning a streaming response BigtableServiceApiClient.ReadRowsStream response = bigtableServiceApiClient.ReadRows(tableName); // Read streaming responses from server until complete IAsyncEnumerator <ReadRowsResponse> responseStream = response.ResponseStream; while (await responseStream.MoveNext()) { ReadRowsResponse responseItem = 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 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 }