Exemple #1
0
 /// <summary>Snippet for CreateReadSession</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateReadSession()
 {
     // Create client
     BigQueryStorageClient bigQueryStorageClient = BigQueryStorageClient.Create();
     // Initialize request argument(s)
     TableReference tableReference   = new TableReference();
     string         parent           = "projects/[PROJECT]";
     int            requestedStreams = 0;
     // Make the request
     ReadSession response = bigQueryStorageClient.CreateReadSession(tableReference, parent, requestedStreams);
 }
 /// <summary>Snippet for CreateReadSession</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateReadSessionResourceNames()
 {
     // Create client
     BigQueryStorageClient bigQueryStorageClient = BigQueryStorageClient.Create();
     // Initialize request argument(s)
     TableReference tableReference   = new TableReference();
     ProjectName    parent           = ProjectName.FromProject("[PROJECT]");
     int            requestedStreams = 0;
     // Make the request
     ReadSession response = bigQueryStorageClient.CreateReadSession(tableReference, parent, requestedStreams);
 }
Exemple #3
0
 /// <summary>Snippet for CreateReadSession</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateReadSessionRequestObject()
 {
     // Create client
     BigQueryStorageClient bigQueryStorageClient = BigQueryStorageClient.Create();
     // Initialize request argument(s)
     CreateReadSessionRequest request = new CreateReadSessionRequest
     {
         TableReference      = new TableReference(),
         TableModifiers      = new TableModifiers(),
         RequestedStreams    = 0,
         ReadOptions         = new TableReadOptions(),
         Format              = DataFormat.Unspecified,
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         ShardingStrategy    = ShardingStrategy.Unspecified,
     };
     // Make the request
     ReadSession response = bigQueryStorageClient.CreateReadSession(request);
 }