Class GoogleVertexAITaskSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GoogleVertexAITaskSettings.Builder>
co.elastic.clients.elasticsearch.inference.GoogleVertexAITaskSettings.Builder
- All Implemented Interfaces:
WithJson<GoogleVertexAITaskSettings.Builder>
,ObjectBuilder<GoogleVertexAITaskSettings>
- Enclosing class:
- GoogleVertexAITaskSettings
public static class GoogleVertexAITaskSettings.Builder
extends WithJsonObjectBuilderBase<GoogleVertexAITaskSettings.Builder>
implements ObjectBuilder<GoogleVertexAITaskSettings>
Builder for
GoogleVertexAITaskSettings
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoTruncate
(Boolean value) For atext_embedding
task, truncate inputs longer than the maximum token length automatically.build()
Builds aGoogleVertexAITaskSettings
.protected GoogleVertexAITaskSettings.Builder
self()
For arerank
task, the number of the top N documents that should be returned.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
-
autoTruncate
For atext_embedding
task, truncate inputs longer than the maximum token length automatically.API name:
auto_truncate
-
topN
For arerank
task, the number of the top N documents that should be returned.API name:
top_n
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GoogleVertexAITaskSettings.Builder>
-
build
Builds aGoogleVertexAITaskSettings
.- Specified by:
build
in interfaceObjectBuilder<GoogleVertexAITaskSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-