/// <summary>Snippet for GetBatch</summary> public void GetBatch() { // Snippet: GetBatch(string, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/batches/[BATCH]"; // Make the request Batch response = batchControllerClient.GetBatch(name); // End snippet }
/// <summary>Snippet for GetBatch</summary> public void GetBatchResourceNames() { // Snippet: GetBatch(BatchName, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) BatchName name = BatchName.FromProjectLocationBatch("[PROJECT]", "[LOCATION]", "[BATCH]"); // Make the request Batch response = batchControllerClient.GetBatch(name); // End snippet }
/// <summary>Snippet for GetBatch</summary> public void GetBatchRequestObject() { // Snippet: GetBatch(GetBatchRequest, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) GetBatchRequest request = new GetBatchRequest { BatchName = BatchName.FromProjectLocationBatch("[PROJECT]", "[LOCATION]", "[BATCH]"), }; // Make the request Batch response = batchControllerClient.GetBatch(request); // End snippet }