Class PutGoogleaistudioRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutGoogleaistudioRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutGoogleaistudioRequest.Builder
- All Implemented Interfaces:
WithJson<PutGoogleaistudioRequest.Builder>
,ObjectBuilder<PutGoogleaistudioRequest>
- Enclosing class:
- PutGoogleaistudioRequest
public static class PutGoogleaistudioRequest.Builder
extends RequestBase.AbstractBuilder<PutGoogleaistudioRequest.Builder>
implements ObjectBuilder<PutGoogleaistudioRequest>
Builder for
PutGoogleaistudioRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutGoogleaistudioRequest
.The chunking configuration object.chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.googleaistudioInferenceId
(String value) Required - The unique identifier of the inference endpoint.protected PutGoogleaistudioRequest.Builder
self()
service
(GoogleAiServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings
(Function<GoogleAiStudioServiceSettings.Builder, ObjectBuilder<GoogleAiStudioServiceSettings>> fn) Required - Settings used to install the inference model.taskType
(GoogleAiStudioTaskType value) Required - The type of the inference task that the model will perform.Specifies the amount of time to wait for the inference endpoint to be created.Specifies the amount of time to wait for the inference endpoint to be created.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 PutGoogleaistudioRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutGoogleaistudioRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
googleaistudioInferenceId
Required - The unique identifier of the inference endpoint.API name:
googleaistudio_inference_id
-
service
Required - The type of service supported for the specified task type. In this case,googleaistudio
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thegoogleaistudio
service.API name:
service_settings
-
serviceSettings
public final PutGoogleaistudioRequest.Builder serviceSettings(Function<GoogleAiStudioServiceSettings.Builder, ObjectBuilder<GoogleAiStudioServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thegoogleaistudio
service.API name:
service_settings
-
taskType
Required - The type of the inference task that the model will perform.API name:
task_type
-
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout
-
timeout
public final PutGoogleaistudioRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutGoogleaistudioRequest.Builder>
-
build
Builds aPutGoogleaistudioRequest
.- Specified by:
build
in interfaceObjectBuilder<PutGoogleaistudioRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-