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.Builderself()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.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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 thegoogleaistudioservice.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 thegoogleaistudioservice.API name:
service_settings -
taskType
Required - The type of the inference task that the model will perform.API name:
task_type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutGoogleaistudioRequest.Builder>
-
build
Builds aPutGoogleaistudioRequest.- Specified by:
buildin interfaceObjectBuilder<PutGoogleaistudioRequest>- Throws:
NullPointerException- if some of the required fields are null.
-