Class ModelConfig
- java.lang.Object
-
- org.opensearch.client.opensearch.ml.ModelConfig
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ModelConfig.Builder,ModelConfig>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class ModelConfig extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<ModelConfig.Builder,ModelConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelConfig.BuilderBuilder forModelConfig.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ModelConfig>_DESERIALIZERJson deserializer forModelConfig
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringallConfig()The all config.static ModelConfig.Builderbuilder()java.lang.LongembeddingDimension()The embedding dimension.booleanequals(java.lang.Object o)java.lang.StringframeworkType()The framework type.inthashCode()java.lang.StringmodelType()The model type.static ModelConfigof(java.util.function.Function<ModelConfig.Builder,ObjectBuilder<ModelConfig>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupModelConfigDeserializer(ObjectDeserializer<ModelConfig.Builder> op)ModelConfig.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ModelConfig> _DESERIALIZER
Json deserializer forModelConfig
-
-
Method Detail
-
of
public static ModelConfig of(java.util.function.Function<ModelConfig.Builder,ObjectBuilder<ModelConfig>> fn)
-
allConfig
@Nullable public final java.lang.String allConfig()
The all config.API name:
all_config
-
embeddingDimension
@Nullable public final java.lang.Long embeddingDimension()
The embedding dimension.API name:
embedding_dimension
-
frameworkType
@Nullable public final java.lang.String frameworkType()
The framework type.API name:
framework_type
-
modelType
@Nullable public final java.lang.String modelType()
The model type.API name:
model_type
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public ModelConfig.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ModelConfig.Builder,ModelConfig>- Returns:
- a new builder instance.
-
builder
@Nonnull public static ModelConfig.Builder builder()
-
setupModelConfigDeserializer
protected static void setupModelConfigDeserializer(ObjectDeserializer<ModelConfig.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-