Class PutGooglevertexaiRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutGooglevertexaiRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutGooglevertexaiRequest.Builder
- All Implemented Interfaces:
WithJson<PutGooglevertexaiRequest.Builder>
,ObjectBuilder<PutGooglevertexaiRequest>
- Enclosing class:
- PutGooglevertexaiRequest
public static class PutGooglevertexaiRequest.Builder
extends RequestBase.AbstractBuilder<PutGooglevertexaiRequest.Builder>
implements ObjectBuilder<PutGooglevertexaiRequest>
Builder for
PutGooglevertexaiRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutGooglevertexaiRequest
.The chunking configuration object.chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.googlevertexaiInferenceId
(String value) Required - The unique identifier of the inference endpoint.protected PutGooglevertexaiRequest.Builder
self()
service
(GoogleVertexAIServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings
(Function<GoogleVertexAIServiceSettings.Builder, ObjectBuilder<GoogleVertexAIServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.taskSettings
(Function<GoogleVertexAITaskSettings.Builder, ObjectBuilder<GoogleVertexAITaskSettings>> fn) Settings to configure the inference task.taskType
(GoogleVertexAITaskType value) Required - The type of the inference task that the model will perform.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
-
chunkingSettings
public final PutGooglevertexaiRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutGooglevertexaiRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
googlevertexaiInferenceId
Required - The unique identifier of the inference endpoint.API name:
googlevertexai_inference_id
-
service
Required - The type of service supported for the specified task type. In this case,googlevertexai
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thegooglevertexai
service.API name:
service_settings
-
serviceSettings
public final PutGooglevertexaiRequest.Builder serviceSettings(Function<GoogleVertexAIServiceSettings.Builder, ObjectBuilder<GoogleVertexAIServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thegooglevertexai
service.API name:
service_settings
-
taskSettings
public final PutGooglevertexaiRequest.Builder taskSettings(@Nullable GoogleVertexAITaskSettings value) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskSettings
public final PutGooglevertexaiRequest.Builder taskSettings(Function<GoogleVertexAITaskSettings.Builder, ObjectBuilder<GoogleVertexAITaskSettings>> fn) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskType
Required - The type of the inference task that the model will perform.API name:
task_type
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutGooglevertexaiRequest.Builder>
-
build
Builds aPutGooglevertexaiRequest
.- Specified by:
build
in interfaceObjectBuilder<PutGooglevertexaiRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-