@InternalApi
  public static List<ApiMethodDescriptor> getMethodDescriptors() {
    List<ApiMethodDescriptor> methodDescriptors = new ArrayList<>();
    methodDescriptors.add(predictMethodDescriptor);
    methodDescriptors.add(rawPredictMethodDescriptor);
    methodDescriptors.add(streamRawPredictMethodDescriptor);
    methodDescriptors.add(directPredictMethodDescriptor);
    methodDescriptors.add(directRawPredictMethodDescriptor);
    methodDescriptors.add(serverStreamingPredictMethodDescriptor);
    methodDescriptors.add(explainMethodDescriptor);
    methodDescriptors.add(generateContentMethodDescriptor);
    methodDescriptors.add(streamGenerateContentMethodDescriptor);
    methodDescriptors.add(listLocationsMethodDescriptor);
    methodDescriptors.add(getLocationMethodDescriptor);
    methodDescriptors.add(setIamPolicyMethodDescriptor);
    methodDescriptors.add(getIamPolicyMethodDescriptor);
    methodDescriptors.add(testIamPermissionsMethodDescriptor);
    return methodDescriptors;
  }
Constructs an instance of HttpJsonPredictionServiceStub, 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-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java