/// <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
     BigQueryReadClient bigQueryReadClient = BigQueryReadClient.Create();
     // Initialize request argument(s)
     ProjectName parent         = ProjectName.FromProject("[PROJECT]");
     ReadSession readSession    = new ReadSession();
     int         maxStreamCount = 0;
     // Make the request
     ReadSession response = bigQueryReadClient.CreateReadSession(parent, readSession, maxStreamCount);
 }
示例#2
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
     BigQueryReadClient bigQueryReadClient = BigQueryReadClient.Create();
     // Initialize request argument(s)
     string      parent         = "projects/[PROJECT]";
     ReadSession readSession    = new ReadSession();
     int         maxStreamCount = 0;
     // Make the request
     ReadSession response = bigQueryReadClient.CreateReadSession(parent, readSession, maxStreamCount);
 }
 /// <summary>Snippet for CreateReadSession</summary>
 public void CreateReadSession_ResourceNames()
 {
     // Snippet: CreateReadSession(ProjectName, ReadSession, int, CallSettings)
     // Create client
     BigQueryReadClient bigQueryReadClient = BigQueryReadClient.Create();
     // Initialize request argument(s)
     ProjectName parent         = new ProjectName("[PROJECT]");
     ReadSession readSession    = new ReadSession();
     int         maxStreamCount = 0;
     // Make the request
     ReadSession response = bigQueryReadClient.CreateReadSession(parent, readSession, maxStreamCount);
     // End snippet
 }
 /// <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
     BigQueryReadClient bigQueryReadClient = BigQueryReadClient.Create();
     // Initialize request argument(s)
     CreateReadSessionRequest request = new CreateReadSessionRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         ReadSession         = new ReadSession(),
         MaxStreamCount      = 0,
     };
     // Make the request
     ReadSession response = bigQueryReadClient.CreateReadSession(request);
 }
 /// <summary>Snippet for CreateReadSession</summary>
 public void CreateReadSession_RequestObject()
 {
     // Snippet: CreateReadSession(CreateReadSessionRequest, CallSettings)
     // Create client
     BigQueryReadClient bigQueryReadClient = BigQueryReadClient.Create();
     // Initialize request argument(s)
     CreateReadSessionRequest request = new CreateReadSessionRequest
     {
         ParentAsProjectName = new ProjectName("[PROJECT]"),
         ReadSession         = new ReadSession(),
         MaxStreamCount      = 0,
     };
     // Make the request
     ReadSession response = bigQueryReadClient.CreateReadSession(request);
     // End snippet
 }