/// <summary>Snippet for BatchCreateReadSessionStreamsAsync</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 BatchCreateReadSessionStreamsAsync() { // Create client BigQueryStorageClient bigQueryStorageClient = await BigQueryStorageClient.CreateAsync(); // Initialize request argument(s) ReadSession session = new ReadSession(); int requestedStreams = 0; // Make the request BatchCreateReadSessionStreamsResponse response = await bigQueryStorageClient.BatchCreateReadSessionStreamsAsync(session, requestedStreams); }
/// <summary>Snippet for BatchCreateReadSessionStreamsAsync</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 BatchCreateReadSessionStreamsRequestObjectAsync() { // Create client BigQueryStorageClient bigQueryStorageClient = await BigQueryStorageClient.CreateAsync(); // Initialize request argument(s) BatchCreateReadSessionStreamsRequest request = new BatchCreateReadSessionStreamsRequest { Session = new ReadSession(), RequestedStreams = 0, }; // Make the request BatchCreateReadSessionStreamsResponse response = await bigQueryStorageClient.BatchCreateReadSessionStreamsAsync(request); }
/// <summary>Snippet for BatchCreateReadSessionStreamsAsync</summary> public async Task BatchCreateReadSessionStreamsAsync() { // Snippet: BatchCreateReadSessionStreamsAsync(ReadSession, int, CallSettings) // Additional: BatchCreateReadSessionStreamsAsync(ReadSession, int, CancellationToken) // Create client BigQueryStorageClient bigQueryStorageClient = await BigQueryStorageClient.CreateAsync(); // Initialize request argument(s) ReadSession session = new ReadSession(); int requestedStreams = 0; // Make the request BatchCreateReadSessionStreamsResponse response = await bigQueryStorageClient.BatchCreateReadSessionStreamsAsync(session, requestedStreams); // End snippet }