コード例 #1
0
        /// <summary>Snippet for CreateWriteStreamAsync</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 CreateWriteStreamAsync()
        {
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            string      parent      = "projects/[PROJECT]/datasets/[DATASET]/tables/[TABLE]";
            WriteStream writeStream = new WriteStream();
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(parent, writeStream);
        }
        /// <summary>Snippet for CreateWriteStreamAsync</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 CreateWriteStreamResourceNamesAsync()
        {
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            TableName   parent      = TableName.FromProjectDatasetTable("[PROJECT]", "[DATASET]", "[TABLE]");
            WriteStream writeStream = new WriteStream();
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(parent, writeStream);
        }
        /// <summary>Snippet for CreateWriteStreamAsync</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 CreateWriteStreamRequestObjectAsync()
        {
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            CreateWriteStreamRequest request = new CreateWriteStreamRequest
            {
                ParentAsTableName = TableName.FromProjectDatasetTable("[PROJECT]", "[DATASET]", "[TABLE]"),
                WriteStream       = new WriteStream(),
            };
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(request);
        }
コード例 #4
0
        /// <summary>Snippet for CreateWriteStreamAsync</summary>
        public async Task CreateWriteStreamAsync()
        {
            // Snippet: CreateWriteStreamAsync(string, WriteStream, CallSettings)
            // Additional: CreateWriteStreamAsync(string, WriteStream, CancellationToken)
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            string      parent      = "projects/[PROJECT]/datasets/[DATASET]/tables/[TABLE]";
            WriteStream writeStream = new WriteStream();
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(parent, writeStream);

            // End snippet
        }
コード例 #5
0
        /// <summary>Snippet for CreateWriteStreamAsync</summary>
        public async Task CreateWriteStreamResourceNamesAsync()
        {
            // Snippet: CreateWriteStreamAsync(TableName, WriteStream, CallSettings)
            // Additional: CreateWriteStreamAsync(TableName, WriteStream, CancellationToken)
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            TableName   parent      = TableName.FromProjectDatasetTable("[PROJECT]", "[DATASET]", "[TABLE]");
            WriteStream writeStream = new WriteStream();
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(parent, writeStream);

            // End snippet
        }
コード例 #6
0
        /// <summary>Snippet for CreateWriteStreamAsync</summary>
        public async Task CreateWriteStreamRequestObjectAsync()
        {
            // Snippet: CreateWriteStreamAsync(CreateWriteStreamRequest, CallSettings)
            // Additional: CreateWriteStreamAsync(CreateWriteStreamRequest, CancellationToken)
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            CreateWriteStreamRequest request = new CreateWriteStreamRequest
            {
                ParentAsTableName = TableName.FromProjectDatasetTable("[PROJECT]", "[DATASET]", "[TABLE]"),
                WriteStream       = new WriteStream(),
            };
            // Make the request
            WriteStream response = await bigQueryWriteClient.CreateWriteStreamAsync(request);

            // End snippet
        }