private LlmUtilityServiceSettings getLlmUtilityServiceClientSettings() throws IOException {
    LlmUtilityServiceSettings.Builder settingsBuilder;
    if (transport == Transport.REST) {
      settingsBuilder = LlmUtilityServiceSettings.newHttpJsonBuilder();
    } else {
      settingsBuilder = LlmUtilityServiceSettings.newBuilder();
    }
    settingsBuilder.setEndpoint(String.format("%s:443", apiEndpoint));
    settingsBuilder.setCredentialsProvider(credentialsProvider);

    settingsBuilder.setHeaderProvider(headerProvider);
    return settingsBuilder.build();
  }
Returns the {@link LlmUtilityServiceClient} with GRPC or REST, based on the Transport type. The
client will be instantiated when the first API call is made.

@return {@link LlmUtilityServiceClient} that makes calls 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