Class GoogleVertexAIServiceSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GoogleVertexAIServiceSettings.Builder>
co.elastic.clients.elasticsearch.inference.GoogleVertexAIServiceSettings.Builder
- All Implemented Interfaces:
WithJson<GoogleVertexAIServiceSettings.Builder>
,ObjectBuilder<GoogleVertexAIServiceSettings>
- Enclosing class:
- GoogleVertexAIServiceSettings
public static class GoogleVertexAIServiceSettings.Builder
extends WithJsonObjectBuilderBase<GoogleVertexAIServiceSettings.Builder>
implements ObjectBuilder<GoogleVertexAIServiceSettings>
Builder for
GoogleVertexAIServiceSettings
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGoogleVertexAIServiceSettings
.Required - The name of the location to use for the inference task.Required - The name of the model to use for the inference task.Required - The name of the project to use for the inference task.rateLimit
(RateLimitSetting value) This setting helps to minimize the number of rate limit errors returned from Google Vertex AI.This setting helps to minimize the number of rate limit errors returned from Google Vertex AI.protected GoogleVertexAIServiceSettings.Builder
self()
serviceAccountJson
(String value) Required - A valid service account in JSON format for the Google Vertex AI API.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
rateLimit
public final GoogleVertexAIServiceSettings.Builder rateLimit(Function<RateLimitSetting.Builder, ObjectBuilder<RateLimitSetting>> fn) 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GoogleVertexAIServiceSettings.Builder>
-
build
Builds aGoogleVertexAIServiceSettings
.- Specified by:
build
in interfaceObjectBuilder<GoogleVertexAIServiceSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-