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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GoogleVertexAIServiceSettings>
Json deserializer forGoogleVertexAIServiceSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
location()
Required - The name of the location to use for the inference task.final String
modelId()
Required - The name of the model to use for the inference task.final String
Required - The name of the project to use for the inference task.final RateLimitSetting
This setting helps to minimize the number of rate limit errors returned from Google Vertex AI.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final String
Required - A valid service account in JSON format for the Google Vertex AI API.protected static void
setupGoogleVertexAIServiceSettingsDeserializer
(ObjectDeserializer<GoogleVertexAIServiceSettings.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forGoogleVertexAIServiceSettings
-
-
Method Details
-
of
-
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
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
Required - The name of the project to use for the inference task.API name:
project_id
-
rateLimit
This setting helps to minimize the number of rate limit errors returned from Google Vertex AI. By default, thegooglevertexai
service sets the number of requests allowed per minute to 30.000.API name:
rate_limit
-
serviceAccountJson
Required - A valid service account in JSON format for the Google Vertex AI API.API name:
service_account_json
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGoogleVertexAIServiceSettingsDeserializer
protected static void setupGoogleVertexAIServiceSettingsDeserializer(ObjectDeserializer<GoogleVertexAIServiceSettings.Builder> op)
-