public static final CloudTasksSettings create(CloudTasksStubSettings stub) throws IOException {
    return new CloudTasksSettings.Builder(stub.toBuilder()).build();
  }
Returns the object with the settings used for calls to getLocation.
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java