Class GoogleVertexAIServiceSettings

java.lang.Object
co.elastic.clients.elasticsearch.inference.GoogleVertexAIServiceSettings
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class GoogleVertexAIServiceSettings extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • location

      public final String location()
      Required - The name of the location to use for the inference task. Refer to the Google documentation for the list of supported locations.

      API name: location

    • modelId

      public final String modelId()
      Required - The name of the model to use for the inference task. Refer to the Google documentation for the list of supported models.

      API name: model_id

    • projectId

      public final String projectId()
      Required - The name of the project to use for the inference task.

      API name: project_id

    • rateLimit

      @Nullable public final RateLimitSetting rateLimit()
      This setting helps to minimize the number of rate limit errors returned from Google Vertex AI. By default, the googlevertexai service sets the number of requests allowed per minute to 30.000.

      API name: rate_limit

    • serviceAccountJson

      public final String serviceAccountJson()
      Required - A valid service account in JSON format for the Google Vertex AI API.

      API name: service_account_json

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupGoogleVertexAIServiceSettingsDeserializer

      protected static void setupGoogleVertexAIServiceSettingsDeserializer(ObjectDeserializer<GoogleVertexAIServiceSettings.Builder> op)