@InternalApi
  public static List<ApiMethodDescriptor> getMethodDescriptors() {
    List<ApiMethodDescriptor> methodDescriptors = new ArrayList<>();
    methodDescriptors.add(listQueuesMethodDescriptor);
    methodDescriptors.add(getQueueMethodDescriptor);
    methodDescriptors.add(createQueueMethodDescriptor);
    methodDescriptors.add(updateQueueMethodDescriptor);
    methodDescriptors.add(deleteQueueMethodDescriptor);
    methodDescriptors.add(purgeQueueMethodDescriptor);
    methodDescriptors.add(pauseQueueMethodDescriptor);
    methodDescriptors.add(resumeQueueMethodDescriptor);
    methodDescriptors.add(getIamPolicyMethodDescriptor);
    methodDescriptors.add(setIamPolicyMethodDescriptor);
    methodDescriptors.add(testIamPermissionsMethodDescriptor);
    methodDescriptors.add(listTasksMethodDescriptor);
    methodDescriptors.add(getTaskMethodDescriptor);
    methodDescriptors.add(createTaskMethodDescriptor);
    methodDescriptors.add(deleteTaskMethodDescriptor);
    methodDescriptors.add(leaseTasksMethodDescriptor);
    methodDescriptors.add(acknowledgeTaskMethodDescriptor);
    methodDescriptors.add(renewLeaseMethodDescriptor);
    methodDescriptors.add(cancelLeaseMethodDescriptor);
    methodDescriptors.add(runTaskMethodDescriptor);
    methodDescriptors.add(listLocationsMethodDescriptor);
    methodDescriptors.add(getLocationMethodDescriptor);
    return methodDescriptors;
  }
Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected
so that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java