Exemple #1
0
        /// <summary>Snippet for GetWriteStreamAsync</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 GetWriteStreamAsync()
        {
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/datasets/[DATASET]/tables/[TABLE]/streams/[STREAM]";
            // Make the request
            WriteStream response = await bigQueryWriteClient.GetWriteStreamAsync(name);
        }
        /// <summary>Snippet for GetWriteStreamAsync</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 GetWriteStreamResourceNamesAsync()
        {
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            WriteStreamName name = WriteStreamName.FromProjectDatasetTableStream("[PROJECT]", "[DATASET]", "[TABLE]", "[STREAM]");
            // Make the request
            WriteStream response = await bigQueryWriteClient.GetWriteStreamAsync(name);
        }
        /// <summary>Snippet for GetWriteStreamAsync</summary>
        public async Task GetWriteStreamResourceNamesAsync()
        {
            // Snippet: GetWriteStreamAsync(WriteStreamName, CallSettings)
            // Additional: GetWriteStreamAsync(WriteStreamName, CancellationToken)
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            WriteStreamName name = WriteStreamName.FromProjectDatasetTableStream("[PROJECT]", "[DATASET]", "[TABLE]", "[STREAM]");
            // Make the request
            WriteStream response = await bigQueryWriteClient.GetWriteStreamAsync(name);

            // End snippet
        }
        /// <summary>Snippet for GetWriteStreamAsync</summary>
        public async Task GetWriteStreamAsync()
        {
            // Snippet: GetWriteStreamAsync(string, CallSettings)
            // Additional: GetWriteStreamAsync(string, CancellationToken)
            // Create client
            BigQueryWriteClient bigQueryWriteClient = await BigQueryWriteClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/datasets/[DATASET]/tables/[TABLE]/streams/[STREAM]";
            // Make the request
            WriteStream response = await bigQueryWriteClient.GetWriteStreamAsync(name);

            // End snippet
        }