private PredictionServiceClient newPredictionServiceClient() {
    // Disable the warning message logged in getApplicationDefault
    Logger defaultCredentialsProviderLogger =
        Logger.getLogger("com.google.auth.oauth2.DefaultCredentialsProvider");
    Level previousLevel = defaultCredentialsProviderLogger.getLevel();
    defaultCredentialsProviderLogger.setLevel(Level.SEVERE);

    try {
      return PredictionServiceClient.create(getPredictionServiceSettings());
    } catch (IOException e) {
      throw new IllegalStateException(e);
    } finally {
      defaultCredentialsProviderLogger.setLevel(previousLevel);
    }
  }
Returns the {@link PredictionServiceClient} with GRPC or REST, based on the Transport type. The
client will be instantiated when the first prediction API call is made.

@return {@link PredictionServiceClient} that send requests to the backing service through
    method calls that map to the API methods.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java