public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
    return stub.getIamPolicyCallable();
  }
Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.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:

<ul>
  <li>`cloudtasks.queues.getIamPolicy`
</ul>

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  GetIamPolicyRequest request =
      GetIamPolicyRequest.newBuilder()
          .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
          .setOptions(GetPolicyOptions.newBuilder().build())
          .build();
  ApiFuture<Policy> future = cloudTasksClient.getIamPolicyCallable().futureCall(request);
  // Do something.
  Policy response = future.get();
}
}</pre>
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java