code: public final WorkflowTemplate createWorkflowTemplate(
        RegionName parent, WorkflowTemplate template) {
  
      CreateWorkflowTemplateRequest request =
          CreateWorkflowTemplateRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setTemplate(template)
              .build();
      return createWorkflowTemplate(request);
    }
docs: Creates new workflow template.
  
  <p>Sample code:
  
  <pre><code>
  try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
  RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
  WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
  WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
  }
  </code></pre>
  
  @param parent Required. The "resource name" of the region, as described in
  https://cloud.google.com/apis/design/resource_names of the form
  `projects/{project_id}/regions/{region}`
  @param template Required. The Dataproc workflow template to create.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails