예제 #1
0
 /// <summary>Snippet for MutateRowAsync</summary>
 public async Task MutateRowAsync()
 {
     // Snippet: MutateRowAsync(TableName,ByteString,IEnumerable<Mutation>,CallSettings)
     // Additional: MutateRowAsync(TableName,ByteString,IEnumerable<Mutation>,CancellationToken)
     // Create client
     BigtableServiceApiClient bigtableServiceApiClient = await BigtableServiceApiClient.CreateAsync();
     // Initialize request argument(s)
     TableName tableName = new TableName("[PROJECT]", "[INSTANCE]", "[TABLE]");
     ByteString rowKey = ByteString.Empty;
     IEnumerable<Mutation> mutations = new List<Mutation>();
     // Make the request
     MutateRowResponse response = await bigtableServiceApiClient.MutateRowAsync(tableName, rowKey, mutations);
     // End snippet
 }
        /// <summary>Snippet for MutateRowAsync</summary>
        public async Task MutateRow1Async()
        {
            // Snippet: MutateRowAsync(string, ByteString, IEnumerable<Mutation>, CallSettings)
            // Additional: MutateRowAsync(string, ByteString, 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;
            IEnumerable <Mutation> mutations = new Mutation[] { new Mutation(), };
            // Make the request
            MutateRowResponse response = await bigtableServiceApiClient.MutateRowAsync(tableName, rowKey, mutations);

            // End snippet
        }
예제 #3
0
 /// <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 = ByteString.Empty,
         Mutations = { },
     };
     // Make the request
     MutateRowResponse response = await bigtableServiceApiClient.MutateRowAsync(request);
     // End snippet
 }