Beispiel #1
0
 /// <summary>Snippet for ReadModifyWriteRow</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void ReadModifyWriteRow1ResourceNames()
 {
     // Create client
     BigtableClient bigtableClient = BigtableClient.Create();
     // Initialize request argument(s)
     TableName  tableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]");
     ByteString rowKey    = ByteString.Empty;
     IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
     {
         new ReadModifyWriteRule(),
     };
     // Make the request
     ReadModifyWriteRowResponse response = bigtableClient.ReadModifyWriteRow(tableName, rowKey, rules);
 }
Beispiel #2
0
 /// <summary>Snippet for ReadModifyWriteRow</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void ReadModifyWriteRow1()
 {
     // Create client
     BigtableClient bigtableClient = BigtableClient.Create();
     // Initialize request argument(s)
     string     tableName = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]";
     ByteString rowKey    = ByteString.Empty;
     IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
     {
         new ReadModifyWriteRule(),
     };
     // Make the request
     ReadModifyWriteRowResponse response = bigtableClient.ReadModifyWriteRow(tableName, rowKey, rules);
 }
Beispiel #3
0
        /// <summary>Snippet for ReadModifyWriteRowAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ReadModifyWriteRow2ResourceNamesAsync()
        {
            // Create client
            BigtableClient bigtableClient = await BigtableClient.CreateAsync();

            // Initialize request argument(s)
            TableName  tableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]");
            ByteString rowKey    = ByteString.Empty;
            IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
            {
                new ReadModifyWriteRule(),
            };
            string appProfileId = "";
            // Make the request
            ReadModifyWriteRowResponse response = await bigtableClient.ReadModifyWriteRowAsync(tableName, rowKey, rules, appProfileId);
        }
Beispiel #4
0
        /// <summary>Snippet for ReadModifyWriteRowAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ReadModifyWriteRow2Async()
        {
            // Create client
            BigtableClient bigtableClient = await BigtableClient.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 bigtableClient.ReadModifyWriteRowAsync(tableName, rowKey, rules, appProfileId);
        }
 /// <summary>Snippet for ReadModifyWriteRow</summary>
 public void ReadModifyWriteRow1_ResourceNames()
 {
     // Snippet: ReadModifyWriteRow(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, CallSettings)
     // Create client
     BigtableServiceApiClient bigtableServiceApiClient = BigtableServiceApiClient.Create();
     // 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 = bigtableServiceApiClient.ReadModifyWriteRow(tableName, rowKey, rules);
     // End snippet
 }
Beispiel #6
0
 /// <summary>Snippet for ReadModifyWriteRow</summary>
 public void ReadModifyWriteRow2ResourceNames()
 {
     // Snippet: ReadModifyWriteRow(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, string, CallSettings)
     // Create client
     BigtableClient bigtableClient = BigtableClient.Create();
     // Initialize request argument(s)
     TableName  tableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]");
     ByteString rowKey    = ByteString.Empty;
     IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
     {
         new ReadModifyWriteRule(),
     };
     string appProfileId = "";
     // Make the request
     ReadModifyWriteRowResponse response = bigtableClient.ReadModifyWriteRow(tableName, rowKey, rules, appProfileId);
     // End snippet
 }
Beispiel #7
0
 /// <summary>Snippet for ReadModifyWriteRow</summary>
 public void ReadModifyWriteRow2()
 {
     // Snippet: ReadModifyWriteRow(string, ByteString, IEnumerable<ReadModifyWriteRule>, string, CallSettings)
     // Create client
     BigtableClient bigtableClient = BigtableClient.Create();
     // 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 = bigtableClient.ReadModifyWriteRow(tableName, rowKey, rules, appProfileId);
     // End snippet
 }
Beispiel #8
0
        /// <summary>Snippet for ReadModifyWriteRowAsync</summary>
        public async Task ReadModifyWriteRow1ResourceNamesAsync()
        {
            // Snippet: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, CallSettings)
            // Additional: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, CancellationToken)
            // Create client
            BigtableClient bigtableClient = await BigtableClient.CreateAsync();

            // Initialize request argument(s)
            TableName  tableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]");
            ByteString rowKey    = ByteString.Empty;
            IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
            {
                new ReadModifyWriteRule(),
            };
            // Make the request
            ReadModifyWriteRowResponse response = await bigtableClient.ReadModifyWriteRowAsync(tableName, rowKey, rules);

            // End snippet
        }
Beispiel #9
0
        /// <summary>Snippet for ReadModifyWriteRowAsync</summary>
        public async Task ReadModifyWriteRow1Async()
        {
            // Snippet: ReadModifyWriteRowAsync(string, ByteString, IEnumerable<ReadModifyWriteRule>, CallSettings)
            // Additional: ReadModifyWriteRowAsync(string, ByteString, IEnumerable<ReadModifyWriteRule>, CancellationToken)
            // Create client
            BigtableClient bigtableClient = await BigtableClient.CreateAsync();

            // Initialize request argument(s)
            string     tableName = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]";
            ByteString rowKey    = ByteString.Empty;
            IEnumerable <ReadModifyWriteRule> rules = new ReadModifyWriteRule[]
            {
                new ReadModifyWriteRule(),
            };
            // Make the request
            ReadModifyWriteRowResponse response = await bigtableClient.ReadModifyWriteRowAsync(tableName, rowKey, rules);

            // End snippet
        }
        /// <summary>Snippet for ReadModifyWriteRowAsync</summary>
        public async Task ReadModifyWriteRow2Async_ResourceNames()
        {
            // Snippet: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, string, CallSettings)
            // Additional: ReadModifyWriteRowAsync(TableName, ByteString, IEnumerable<ReadModifyWriteRule>, string, 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(),
            };
            string appProfileId = "";
            // Make the request
            ReadModifyWriteRowResponse response = await bigtableServiceApiClient.ReadModifyWriteRowAsync(tableName, rowKey, rules, appProfileId);

            // End snippet
        }