Class PutJudgmentsRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.search_relevance.PutJudgmentsRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PutJudgmentsRequest.Builder,PutJudgmentsRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PutJudgmentsRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<PutJudgmentsRequest.Builder,PutJudgmentsRequest>
Creates a judgment.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutJudgmentsRequest> Json deserializer forPutJudgmentsRequeststatic final Endpoint<PutJudgmentsRequest, PutJudgmentsResponse, ErrorResponse> Endpoint "search_relevance.put_judgments". -
Method Summary
Modifier and TypeMethodDescriptionstatic PutJudgmentsRequest.Builderbuilder()final StringAPI name:clickModelAPI name:contextFieldsfinal StringAPI name:descriptionbooleaninthashCode()final BooleanAPI name:ignoreFailureAPI name:judgmentRatingsfinal IntegermaxRank()API name:maxRankfinal StringmodelId()API name:modelIdfinal Stringname()API name:namestatic PutJudgmentsRequestfinal StringAPI name:querySetIdAPI name:searchConfigurationListvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()API name:sizeCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtype()API name:typeMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPutJudgmentsRequest -
_ENDPOINT
Endpoint "search_relevance.put_judgments".
-
-
Method Details
-
of
public static PutJudgmentsRequest of(Function<PutJudgmentsRequest.Builder, ObjectBuilder<PutJudgmentsRequest>> fn) -
clickModel
API name:clickModel -
contextFields
API name:contextFields -
description
API name:description -
ignoreFailure
API name:ignoreFailure -
judgmentRatings
API name:judgmentRatings -
maxRank
API name:maxRank -
modelId
API name:modelId -
name
API name:name -
querySetId
API name:querySetId -
searchConfigurationList
API name:searchConfigurationList -
size
API name:size -
type
API name:type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PutJudgmentsRequest.Builder,PutJudgmentsRequest> - Returns:
- a new builder instance.
-
builder
-
setupPutJudgmentsRequestDeserializer
protected static void setupPutJudgmentsRequestDeserializer(ObjectDeserializer<PutJudgmentsRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-