Class TrainedModelConfig.AbstractBuilder<BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ml.TrainedModelConfig.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
PutTrainedModelResponse.Builder,TrainedModelConfig.Builder
- Enclosing class:
- TrainedModelConfig
public abstract static class TrainedModelConfig.AbstractBuilder<BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTcompressedDefinition(String value) API name:compressed_definitionfinal BuilderTInformation on the creator of the trained model.final BuilderTcreateTime(DateTime value) The time when the trained model was created.final BuilderTdefaultFieldMap(String key, String value) Any field map described in the inference configuration takes precedence.final BuilderTdefaultFieldMap(Map<String, String> map) Any field map described in the inference configuration takes precedence.final BuilderTdescription(String value) The free-text description of the trained model.final BuilderTThe estimated heap usage in bytes to keep the trained model in memory.final BuilderTestimatedOperations(Integer value) The estimated number of operations to use the trained model.final BuilderTfullyDefined(Boolean value) True if the full model definition is present.final BuilderTThe default configuration for inference.final BuilderTThe default configuration for inference.final BuilderTThe default configuration for inference.final BuilderTinput(TrainedModelConfigInput value) Required - The input field names for the model definition.final BuilderTRequired - The input field names for the model definition.final BuilderTlicenseLevel(String value) The license level of the trained model.final BuilderTlocation(TrainedModelLocation value) API name:locationfinal BuilderTAPI name:locationfinal BuilderTAn object containing metadata about the trained model.final BuilderTAn object containing metadata about the trained model.final BuilderTRequired - Identifier for the trained model.final BuilderTmodelPackage(ModelPackageConfig value) API name:model_packagefinal BuilderTAPI name:model_packagefinal BuilderTmodelSizeBytes(String value) API name:model_size_bytesfinal BuilderTmodelType(TrainedModelType value) The model typefinal BuilderTplatformArchitecture(String value) API name:platform_architecturefinal BuilderTAPI name:prefix_stringsfinal BuilderTprefixStrings(Function<TrainedModelPrefixStrings.Builder, ObjectBuilder<TrainedModelPrefixStrings>> fn) API name:prefix_stringsprotected abstract BuilderTself()final BuilderTRequired - A comma delimited string of tags.final BuilderTRequired - A comma delimited string of tags.final BuilderTThe Elasticsearch version number in which the trained model was created.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
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
modelId
Required - Identifier for the trained model.API name:
model_id -
modelType
The model typeAPI name:
model_type -
tags
Required - A comma delimited string of tags. A trained model can have many tags, or none.API name:
tagsAdds all elements of
listtotags. -
tags
Required - A comma delimited string of tags. A trained model can have many tags, or none.API name:
tagsAdds one or more values to
tags. -
version
The Elasticsearch version number in which the trained model was created.API name:
version -
compressedDefinition
API name:compressed_definition -
createdBy
Information on the creator of the trained model.API name:
created_by -
createTime
The time when the trained model was created.API name:
create_time -
defaultFieldMap
Any field map described in the inference configuration takes precedence.API name:
default_field_mapAdds all entries of
maptodefaultFieldMap. -
defaultFieldMap
Any field map described in the inference configuration takes precedence.API name:
default_field_mapAdds an entry to
defaultFieldMap. -
description
The free-text description of the trained model.API name:
description -
estimatedHeapMemoryUsageBytes
The estimated heap usage in bytes to keep the trained model in memory.API name:
estimated_heap_memory_usage_bytes -
estimatedOperations
The estimated number of operations to use the trained model.API name:
estimated_operations -
fullyDefined
True if the full model definition is present.API name:
fully_defined -
inferenceConfig
The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required.API name:
inference_config -
inferenceConfig
public final BuilderT inferenceConfig(Function<InferenceConfigCreate.Builder, ObjectBuilder<InferenceConfigCreate>> fn) The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required.API name:
inference_config -
inferenceConfig
The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required.API name:
inference_config -
input
Required - The input field names for the model definition.API name:
input -
input
public final BuilderT input(Function<TrainedModelConfigInput.Builder, ObjectBuilder<TrainedModelConfigInput>> fn) Required - The input field names for the model definition.API name:
input -
licenseLevel
The license level of the trained model.API name:
license_level -
metadata
An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects.API name:
metadata -
metadata
public final BuilderT metadata(Function<TrainedModelConfigMetadata.Builder, ObjectBuilder<TrainedModelConfigMetadata>> fn) An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects.API name:
metadata -
modelSizeBytes
API name:model_size_bytes -
modelPackage
API name:model_package -
modelPackage
public final BuilderT modelPackage(Function<ModelPackageConfig.Builder, ObjectBuilder<ModelPackageConfig>> fn) API name:model_package -
location
API name:location -
location
public final BuilderT location(Function<TrainedModelLocation.Builder, ObjectBuilder<TrainedModelLocation>> fn) API name:location -
platformArchitecture
API name:platform_architecture -
prefixStrings
API name:prefix_strings -
prefixStrings
public final BuilderT prefixStrings(Function<TrainedModelPrefixStrings.Builder, ObjectBuilder<TrainedModelPrefixStrings>> fn) API name:prefix_strings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BuilderT extends TrainedModelConfig.AbstractBuilder<BuilderT>>
-