public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
      listLocationsSettings() {
    return ((CloudTasksStubSettings) getStubSettings()).listLocationsSettings();
  }
Returns the object with the settings used for calls to listLocations.
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java