code: public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) {
  
      UpdateWorkflowTemplateRequest request =
          UpdateWorkflowTemplateRequest.newBuilder().setTemplate(template).build();
      return updateWorkflowTemplate(request);
    }
docs: Updates (replaces) workflow template. The updated template must contain version that matches
  the current server version.
  
  <p>Sample code:
  
  <pre><code>
  try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
  WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
  WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
  }
  </code></pre>
  
  @param template Required. The updated workflow template.
  <p>The `template.version` field must match the current version.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails