code: public final Policy getIamPolicy(QueueName resource) {
  
      GetIamPolicyRequest request =
          GetIamPolicyRequest.newBuilder()
              .setResource(resource == null ? null : resource.toString())
              .build();
      return getIamPolicy(request);
    }
docs: Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty
  policy if the resource exists and does not have a policy set.
  
  <p>Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission
  on the specified resource parent:
  
  <p>&#42; `cloudtasks.queues.getIamPolicy`
  
  <p>Sample code:
  
  <pre><code>
  try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  QueueName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  Policy response = cloudTasksClient.getIamPolicy(resource);
  }
  </code></pre>
  
  @param resource REQUIRED: The resource for which the policy is being requested. `resource` is
  usually specified as a path. For example, a Project resource is specified as
  `projects/{project}`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails