diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/cat/IndicesRequest.java b/java-client/src/generated/java/org/opensearch/client/opensearch/cat/IndicesRequest.java
index 95a097b22c..59e07f3537 100644
--- a/java-client/src/generated/java/org/opensearch/client/opensearch/cat/IndicesRequest.java
+++ b/java-client/src/generated/java/org/opensearch/client/opensearch/cat/IndicesRequest.java
@@ -137,7 +137,8 @@ public final Time clusterManagerTimeout() {
}
/**
- * The type of index that wildcard patterns can match.
+ * The type of index that wildcard patterns can match. Supported values are all
, open
, closed
,
+ * hidden
, and none
.
*
* API name: {@code expand_wildcards} *
@@ -327,7 +328,8 @@ public final Builder clusterManagerTimeout(Functionopen
,
+ * closed
, hidden
, and none
.
* * API name: {@code expand_wildcards} *
@@ -343,7 +345,8 @@ public final Builder expandWildcards(Listall
, open
,
+ * closed
, hidden
, and none
.
* * API name: {@code expand_wildcards} *
diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/cat/SegmentReplicationRequest.java b/java-client/src/generated/java/org/opensearch/client/opensearch/cat/SegmentReplicationRequest.java index 3ba11e1cbe..a41b806db2 100644 --- a/java-client/src/generated/java/org/opensearch/client/opensearch/cat/SegmentReplicationRequest.java +++ b/java-client/src/generated/java/org/opensearch/client/opensearch/cat/SegmentReplicationRequest.java @@ -183,7 +183,8 @@ public final Boolean detailed() { } /** - * Whether to expand the wildcard expression to include concrete indexes that are open, closed, or both. + * The type of index that wildcard patterns can match. Supported values areall
, open
, closed
,
+ * hidden
, and none
.
* * API name: {@code expand_wildcards} *
@@ -413,7 +414,8 @@ public final Builder detailed(@Nullable Boolean value) { } /** - * Whether to expand the wildcard expression to include concrete indexes that are open, closed, or both. + * The type of index that wildcard patterns can match. Supported values areall
, open
,
+ * closed
, hidden
, and none
.
* * API name: {@code expand_wildcards} *
@@ -429,7 +431,8 @@ public final Builder expandWildcards(Listall
, open
,
+ * closed
, hidden
, and none
.
* * API name: {@code expand_wildcards} *
diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/ml/CreateControllerRequest.java b/java-client/src/generated/java/org/opensearch/client/opensearch/ml/CreateControllerRequest.java new file mode 100644 index 0000000000..b0fa84faf2 --- /dev/null +++ b/java-client/src/generated/java/org/opensearch/client/opensearch/ml/CreateControllerRequest.java @@ -0,0 +1,268 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package org.opensearch.client.opensearch.ml; + +import jakarta.json.stream.JsonGenerator; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Generated; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import org.opensearch.client.json.JsonpDeserializable; +import org.opensearch.client.json.JsonpDeserializer; +import org.opensearch.client.json.JsonpMapper; +import org.opensearch.client.json.ObjectBuilderDeserializer; +import org.opensearch.client.json.ObjectDeserializer; +import org.opensearch.client.json.PlainJsonSerializable; +import org.opensearch.client.opensearch._types.ErrorResponse; +import org.opensearch.client.opensearch._types.RequestBase; +import org.opensearch.client.transport.Endpoint; +import org.opensearch.client.transport.endpoints.SimpleEndpoint; +import org.opensearch.client.util.ApiTypeHelper; +import org.opensearch.client.util.CopyableBuilder; +import org.opensearch.client.util.ObjectBuilder; +import org.opensearch.client.util.ToCopyableBuilder; + +// typedef: ml.create_controller.Request + +/** + * Creates a controller. + */ +@JsonpDeserializable +@Generated("org.opensearch.client.codegen.CodeGenerator") +public final class CreateControllerRequest extends RequestBase + implements + PlainJsonSerializable, + ToCopyableBuilder
+ * Adds all elements of map
to userRateLimiter
.
+ *
+ * Adds an entry to userRateLimiter
.
+ *
+ * Adds a value to userRateLimiter
using a builder lambda.
+ *
+ * API name: {@code input} + *
+ */ + @Nullable + public final String input() { + return this.input; + } + + /** + * Required - API name: {@code memory_id} + */ + @Nonnull + public final String memoryId() { + return this.memoryId; + } + + /** + * The system name that generated the response. + *+ * API name: {@code origin} + *
+ */ + @Nullable + public final String origin() { + return this.origin; + } + + /** + * The prompt template. + *+ * API name: {@code prompt_template} + *
+ */ + @Nullable + public final String promptTemplate() { + return this.promptTemplate; + } + + /** + * The answer to the question. + *+ * API name: {@code response} + *
+ */ + @Nullable + public final String response() { + return this.response; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.additionalInfo)) { + generator.writeKey("additional_info"); + generator.writeStartObject(); + for (Map.Entry
+ * Adds all elements of map
to additionalInfo
.
+ *
+ * Adds an entry to additionalInfo
.
+ *
+ * API name: {@code input} + *
+ */ + @Nonnull + public final Builder input(@Nullable String value) { + this.input = value; + return this; + } + + /** + * Required - API name: {@code memory_id} + */ + @Nonnull + public final Builder memoryId(String value) { + this.memoryId = value; + return this; + } + + /** + * The system name that generated the response. + *+ * API name: {@code origin} + *
+ */ + @Nonnull + public final Builder origin(@Nullable String value) { + this.origin = value; + return this; + } + + /** + * The prompt template. + *+ * API name: {@code prompt_template} + *
+ */ + @Nonnull + public final Builder promptTemplate(@Nullable String value) { + this.promptTemplate = value; + return this; + } + + /** + * The answer to the question. + *+ * API name: {@code response} + *
+ */ + @Nonnull + public final Builder response(@Nullable String value) { + this.response = value; + return this; + } + + /** + * Builds a {@link CreateMessageRequest}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public CreateMessageRequest build() { + _checkSingleUse(); + + return new CreateMessageRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CreateMessageRequest} + */ + public static final JsonpDeserializer+ * API name: {@code description} + *
+ */ + @Nullable + public final String description() { + return this.description; + } + + /** + * Required - API name: {@code model_config} + */ + @Nonnull + public final ModelConfig modelConfig() { + return this.modelConfig; + } + + /** + * Required - The model content hash value. + *+ * API name: {@code model_content_hash_value} + *
+ */ + @Nonnull + public final String modelContentHashValue() { + return this.modelContentHashValue; + } + + /** + * Required - API name: {@code model_format} + */ + @Nonnull + public final ModelFormat modelFormat() { + return this.modelFormat; + } + + /** + * API name: {@code model_group_id} + */ + @Nullable + public final String modelGroupId() { + return this.modelGroupId; + } + + /** + * Required - The model name. + *+ * API name: {@code name} + *
+ */ + @Nonnull + public final String name() { + return this.name; + } + + /** + * Required - Number of chunks the model is split into. + *+ * API name: {@code total_chunks} + *
+ */ + public final long totalChunks() { + return this.totalChunks; + } + + /** + * The model URL. + *+ * API name: {@code url} + *
+ */ + @Nullable + public final String url() { + return this.url; + } + + /** + * Required - API name: {@code version} + */ + @Nonnull + public final String version() { + return this.version; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.description != null) { + generator.writeKey("description"); + generator.write(this.description); + } + + generator.writeKey("model_config"); + this.modelConfig.serialize(generator, mapper); + + generator.writeKey("model_content_hash_value"); + generator.write(this.modelContentHashValue); + + generator.writeKey("model_format"); + this.modelFormat.serialize(generator, mapper); + + if (this.modelGroupId != null) { + generator.writeKey("model_group_id"); + generator.write(this.modelGroupId); + } + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("total_chunks"); + generator.write(this.totalChunks); + + if (this.url != null) { + generator.writeKey("url"); + generator.write(this.url); + } + + generator.writeKey("version"); + generator.write(this.version); + } + // --------------------------------------------------------------------------------------------- + + @Override + @Nonnull + public Builder toBuilder() { + return new Builder(this); + } + + @Nonnull + public static Builder builder() { + return new Builder(); + } + + /** + * Builder for {@link CreateModelMetaRequest}. + */ + public static class Builder extends RequestBase.AbstractBuilder+ * API name: {@code description} + *
+ */ + @Nonnull + public final Builder description(@Nullable String value) { + this.description = value; + return this; + } + + /** + * Required - API name: {@code model_config} + */ + @Nonnull + public final Builder modelConfig(ModelConfig value) { + this.modelConfig = value; + return this; + } + + /** + * Required - API name: {@code model_config} + */ + @Nonnull + public final Builder modelConfig(Function+ * API name: {@code model_content_hash_value} + *
+ */ + @Nonnull + public final Builder modelContentHashValue(String value) { + this.modelContentHashValue = value; + return this; + } + + /** + * Required - API name: {@code model_format} + */ + @Nonnull + public final Builder modelFormat(ModelFormat value) { + this.modelFormat = value; + return this; + } + + /** + * API name: {@code model_group_id} + */ + @Nonnull + public final Builder modelGroupId(@Nullable String value) { + this.modelGroupId = value; + return this; + } + + /** + * Required - The model name. + *+ * API name: {@code name} + *
+ */ + @Nonnull + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - Number of chunks the model is split into. + *+ * API name: {@code total_chunks} + *
+ */ + @Nonnull + public final Builder totalChunks(long value) { + this.totalChunks = value; + return this; + } + + /** + * The model URL. + *+ * API name: {@code url} + *
+ */ + @Nonnull + public final Builder url(@Nullable String value) { + this.url = value; + return this; + } + + /** + * Required - API name: {@code version} + */ + @Nonnull + public final Builder version(String value) { + this.version = value; + return this; + } + + /** + * Builds a {@link CreateModelMetaRequest}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public CreateModelMetaRequest build() { + _checkSingleUse(); + + return new CreateModelMetaRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CreateModelMetaRequest} + */ + public static final JsonpDeserializer+ * API name: {@code success} + *
+ */ + public final boolean success() { + return this.success; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeKey("success"); + generator.write(this.success); + } + + // --------------------------------------------------------------------------------------------- + + @Override + @Nonnull + public Builder toBuilder() { + return new Builder(this); + } + + @Nonnull + public static Builder builder() { + return new Builder(); + } + + /** + * Builder for {@link DeleteMemoryResponse}. + */ + public static class Builder extends ObjectBuilderBase implements CopyableBuilder+ * API name: {@code success} + *
+ */ + @Nonnull + public final Builder success(boolean value) { + this.success = value; + return this; + } + + /** + * Builds a {@link DeleteMemoryResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public DeleteMemoryResponse build() { + _checkSingleUse(); + + return new DeleteMemoryResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteMemoryResponse} + */ + public static final JsonpDeserializer+ * API name: {@code next_token} + *
+ */ + @Nullable + public final Integer nextToken() { + return this.nextToken; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeKey("memories"); + generator.writeStartArray(); + for (Memory item0 : this.memories) { + item0.serialize(generator, mapper); + } + generator.writeEnd(); + + if (this.nextToken != null) { + generator.writeKey("next_token"); + generator.write(this.nextToken); + } + } + + // --------------------------------------------------------------------------------------------- + + @Override + @Nonnull + public Builder toBuilder() { + return new Builder(this); + } + + @Nonnull + public static Builder builder() { + return new Builder(); + } + + /** + * Builder for {@link GetAllMemoriesResponse}. + */ + public static class Builder extends ObjectBuilderBase implements CopyableBuilder
+ * Adds all elements of list
to memories
.
+ *
+ * Adds one or more values to memories
.
+ *
+ * Adds a value to memories
using a builder lambda.
+ *
+ * API name: {@code next_token} + *
+ */ + @Nonnull + public final Builder nextToken(@Nullable Integer value) { + this.nextToken = value; + return this; + } + + /** + * Builds a {@link GetAllMemoriesResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetAllMemoriesResponse build() { + _checkSingleUse(); + + return new GetAllMemoriesResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetAllMemoriesResponse} + */ + public static final JsonpDeserializer+ * API name: {@code next_token} + *
+ */ + @Nullable + public final Integer nextToken() { + return this.nextToken; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + generator.writeKey("messages"); + generator.writeStartArray(); + for (Message item0 : this.messages) { + item0.serialize(generator, mapper); + } + generator.writeEnd(); + + if (this.nextToken != null) { + generator.writeKey("next_token"); + generator.write(this.nextToken); + } + } + + // --------------------------------------------------------------------------------------------- + + @Override + @Nonnull + public Builder toBuilder() { + return new Builder(this); + } + + @Nonnull + public static Builder builder() { + return new Builder(); + } + + /** + * Builder for {@link GetAllMessagesResponse}. + */ + public static class Builder extends ObjectBuilderBase implements CopyableBuilder
+ * Adds all elements of list
to messages
.
+ *
+ * Adds one or more values to messages
.
+ *
+ * Adds a value to messages
using a builder lambda.
+ *
+ * API name: {@code next_token} + *
+ */ + @Nonnull + public final Builder nextToken(@Nullable Integer value) { + this.nextToken = value; + return this; + } + + /** + * Builds a {@link GetAllMessagesResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetAllMessagesResponse build() { + _checkSingleUse(); + + return new GetAllMessagesResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetAllMessagesResponse} + */ + public static final JsonpDeserializer+ * API name: {@code created_time} + *
+ */ + @Nullable + public final Long createdTime() { + return this.createdTime; + } + + /** + * The connector description. + *+ * API name: {@code description} + *
+ */ + @Nullable + public final String description() { + return this.description; + } + + /** + * The last updated time. + *+ * API name: {@code last_updated_time} + *
+ */ + @Nullable + public final Long lastUpdatedTime() { + return this.lastUpdatedTime; + } + + /** + * API name: {@code name} + */ + @Nullable + public final String name() { + return this.name; + } + + /** + * API name: {@code parameters} + */ + @Nonnull + public final Map+ * API name: {@code protocol} + *
+ */ + @Nullable + public final String protocol() { + return this.protocol; + } + + /** + * API name: {@code version} + */ + @Nullable + public final String version() { + return this.version; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.actions)) { + generator.writeKey("actions"); + generator.writeStartArray(); + for (Action item0 : this.actions) { + item0.serialize(generator, mapper); + } + generator.writeEnd(); + } + + if (this.createdTime != null) { + generator.writeKey("created_time"); + generator.write(this.createdTime); + } + + if (this.description != null) { + generator.writeKey("description"); + generator.write(this.description); + } + + if (this.lastUpdatedTime != null) { + generator.writeKey("last_updated_time"); + generator.write(this.lastUpdatedTime); + } + + if (this.name != null) { + generator.writeKey("name"); + generator.write(this.name); + } + + if (ApiTypeHelper.isDefined(this.parameters)) { + generator.writeKey("parameters"); + generator.writeStartObject(); + for (Map.Entry
+ * Adds all elements of list
to actions
.
+ *
+ * Adds one or more values to actions
.
+ *
+ * Adds a value to actions
using a builder lambda.
+ *
+ * API name: {@code created_time} + *
+ */ + @Nonnull + public final Builder createdTime(@Nullable Long value) { + this.createdTime = value; + return this; + } + + /** + * The connector description. + *+ * API name: {@code description} + *
+ */ + @Nonnull + public final Builder description(@Nullable String value) { + this.description = value; + return this; + } + + /** + * The last updated time. + *+ * API name: {@code last_updated_time} + *
+ */ + @Nonnull + public final Builder lastUpdatedTime(@Nullable Long value) { + this.lastUpdatedTime = value; + return this; + } + + /** + * API name: {@code name} + */ + @Nonnull + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + /** + * API name: {@code parameters} + * + *
+ * Adds all elements of map
to parameters
.
+ *
+ * Adds an entry to parameters
.
+ *
+ * API name: {@code protocol} + *
+ */ + @Nonnull + public final Builder protocol(@Nullable String value) { + this.protocol = value; + return this; + } + + /** + * API name: {@code version} + */ + @Nonnull + public final Builder version(@Nullable String value) { + this.version = value; + return this; + } + + /** + * Builds a {@link GetConnectorResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetConnectorResponse build() { + _checkSingleUse(); + + return new GetConnectorResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetConnectorResponse} + */ + public static final JsonpDeserializer
+ * Adds all elements of map
to userRateLimiter
.
+ *
+ * Adds an entry to userRateLimiter
.
+ *
+ * Adds a value to userRateLimiter
using a builder lambda.
+ *
+ * API name: {@code create_time} + *
+ */ + @Nullable + public final String createTime() { + return this.createTime; + } + + /** + * API name: {@code memory_id} + */ + @Nullable + public final String memoryId() { + return this.memoryId; + } + + /** + * API name: {@code name} + */ + @Nullable + public final String name() { + return this.name; + } + + /** + * API name: {@code type} + */ + @Nullable + public final String type() { + return this.type; + } + + /** + * The updated time. + *+ * API name: {@code updated_time} + *
+ */ + @Nullable + public final String updatedTime() { + return this.updatedTime; + } + + /** + * The username of the user. + *+ * API name: {@code user} + *
+ */ + @Nullable + public final String user() { + return this.user; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.additionalInfo)) { + generator.writeKey("additional_info"); + generator.writeStartObject(); + for (Map.Entry
+ * Adds all elements of map
to additionalInfo
.
+ *
+ * Adds an entry to additionalInfo
.
+ *
+ * API name: {@code create_time} + *
+ */ + @Nonnull + public final Builder createTime(@Nullable String value) { + this.createTime = value; + return this; + } + + /** + * API name: {@code memory_id} + */ + @Nonnull + public final Builder memoryId(@Nullable String value) { + this.memoryId = value; + return this; + } + + /** + * API name: {@code name} + */ + @Nonnull + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + /** + * API name: {@code type} + */ + @Nonnull + public final Builder type(@Nullable String value) { + this.type = value; + return this; + } + + /** + * The updated time. + *+ * API name: {@code updated_time} + *
+ */ + @Nonnull + public final Builder updatedTime(@Nullable String value) { + this.updatedTime = value; + return this; + } + + /** + * The username of the user. + *+ * API name: {@code user} + *
+ */ + @Nonnull + public final Builder user(@Nullable String value) { + this.user = value; + return this; + } + + /** + * Builds a {@link GetMemoryResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetMemoryResponse build() { + _checkSingleUse(); + + return new GetMemoryResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetMemoryResponse} + */ + public static final JsonpDeserializer+ * API name: {@code create_time} + *
+ */ + @Nullable + public final String createTime() { + return this.createTime; + } + + /** + * The question in the message. + *+ * API name: {@code input} + *
+ */ + @Nullable + public final String input() { + return this.input; + } + + /** + * API name: {@code memory_id} + */ + @Nullable + public final String memoryId() { + return this.memoryId; + } + + /** + * API name: {@code message_id} + */ + @Nullable + public final String messageId() { + return this.messageId; + } + + /** + * The system name that generated the response. + *+ * API name: {@code origin} + *
+ */ + @Nullable + public final String origin() { + return this.origin; + } + + /** + * The parent message ID. + *+ * API name: {@code parent_message_id} + *
+ */ + @Nullable + public final String parentMessageId() { + return this.parentMessageId; + } + + /** + * The prompt template. + *+ * API name: {@code prompt_template} + *
+ */ + @Nullable + public final String promptTemplate() { + return this.promptTemplate; + } + + /** + * The answer to the question. + *+ * API name: {@code response} + *
+ */ + @Nullable + public final String response() { + return this.response; + } + + /** + * The trace number. + *+ * API name: {@code trace_number} + *
+ */ + @Nullable + public final Long traceNumber() { + return this.traceNumber; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.additionalInfo)) { + generator.writeKey("additional_info"); + generator.writeStartObject(); + for (Map.Entry
+ * Adds all elements of map
to additionalInfo
.
+ *
+ * Adds an entry to additionalInfo
.
+ *
+ * API name: {@code create_time} + *
+ */ + @Nonnull + public final Builder createTime(@Nullable String value) { + this.createTime = value; + return this; + } + + /** + * The question in the message. + *+ * API name: {@code input} + *
+ */ + @Nonnull + public final Builder input(@Nullable String value) { + this.input = value; + return this; + } + + /** + * API name: {@code memory_id} + */ + @Nonnull + public final Builder memoryId(@Nullable String value) { + this.memoryId = value; + return this; + } + + /** + * API name: {@code message_id} + */ + @Nonnull + public final Builder messageId(@Nullable String value) { + this.messageId = value; + return this; + } + + /** + * The system name that generated the response. + *+ * API name: {@code origin} + *
+ */ + @Nonnull + public final Builder origin(@Nullable String value) { + this.origin = value; + return this; + } + + /** + * The parent message ID. + *+ * API name: {@code parent_message_id} + *
+ */ + @Nonnull + public final Builder parentMessageId(@Nullable String value) { + this.parentMessageId = value; + return this; + } + + /** + * The prompt template. + *+ * API name: {@code prompt_template} + *
+ */ + @Nonnull + public final Builder promptTemplate(@Nullable String value) { + this.promptTemplate = value; + return this; + } + + /** + * The answer to the question. + *+ * API name: {@code response} + *
+ */ + @Nonnull + public final Builder response(@Nullable String value) { + this.response = value; + return this; + } + + /** + * The trace number. + *+ * API name: {@code trace_number} + *
+ */ + @Nonnull + public final Builder traceNumber(@Nullable Long value) { + this.traceNumber = value; + return this; + } + + /** + * Builds a {@link GetMessageResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetMessageResponse build() { + _checkSingleUse(); + + return new GetMessageResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetMessageResponse} + */ + public static final JsonpDeserializer
+ * Adds all elements of list
to traces
.
+ *
+ * Adds one or more values to traces
.
+ *
+ * Adds a value to traces
using a builder lambda.
+ *
+ * API name: {@code algorithm} + *
+ */ + @Nullable + public final String algorithm() { + return this.algorithm; + } + + /** + * The created time. + *+ * API name: {@code created_time} + *
+ */ + @Nullable + public final Long createdTime() { + return this.createdTime; + } + + /** + * Whether the model is hidden. + *+ * API name: {@code is_hidden} + *
+ */ + @Nullable + public final Boolean isHidden() { + return this.isHidden; + } + + /** + * The last registered time. + *+ * API name: {@code last_registered_time} + *
+ */ + @Nullable + public final Long lastRegisteredTime() { + return this.lastRegisteredTime; + } + + /** + * The last updated time. + *+ * API name: {@code last_updated_time} + *
+ */ + @Nullable + public final Long lastUpdatedTime() { + return this.lastUpdatedTime; + } + + /** + * API name: {@code model_config} + */ + @Nullable + public final ModelConfig modelConfig() { + return this.modelConfig; + } + + /** + * The model content hash value. + *+ * API name: {@code model_content_hash_value} + *
+ */ + @Nullable + public final String modelContentHashValue() { + return this.modelContentHashValue; + } + + /** + * The model content size in bytes. + *+ * API name: {@code model_content_size_in_bytes} + *
+ */ + @Nullable + public final Long modelContentSizeInBytes() { + return this.modelContentSizeInBytes; + } + + /** + * API name: {@code model_format} + */ + @Nullable + public final ModelFormat modelFormat() { + return this.modelFormat; + } + + /** + * The model group ID. + *+ * API name: {@code model_group_id} + *
+ */ + @Nullable + public final String modelGroupId() { + return this.modelGroupId; + } + + /** + * Required - The model state. + *+ * API name: {@code model_state} + *
+ */ + @Nonnull + public final String modelState() { + return this.modelState; + } + + /** + * The model version. + *+ * API name: {@code model_version} + *
+ */ + @Nullable + public final String modelVersion() { + return this.modelVersion; + } + + /** + * The model name. + *+ * API name: {@code name} + *
+ */ + @Nullable + public final String name() { + return this.name; + } + + /** + * The total chunks. + *+ * API name: {@code total_chunks} + *
+ */ + @Nullable + public final Long totalChunks() { + return this.totalChunks; + } + + /** + * Serialize this object to JSON. + */ + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.algorithm != null) { + generator.writeKey("algorithm"); + generator.write(this.algorithm); + } + + if (this.createdTime != null) { + generator.writeKey("created_time"); + generator.write(this.createdTime); + } + + if (this.isHidden != null) { + generator.writeKey("is_hidden"); + generator.write(this.isHidden); + } + + if (this.lastRegisteredTime != null) { + generator.writeKey("last_registered_time"); + generator.write(this.lastRegisteredTime); + } + + if (this.lastUpdatedTime != null) { + generator.writeKey("last_updated_time"); + generator.write(this.lastUpdatedTime); + } + + if (this.modelConfig != null) { + generator.writeKey("model_config"); + this.modelConfig.serialize(generator, mapper); + } + + if (this.modelContentHashValue != null) { + generator.writeKey("model_content_hash_value"); + generator.write(this.modelContentHashValue); + } + + if (this.modelContentSizeInBytes != null) { + generator.writeKey("model_content_size_in_bytes"); + generator.write(this.modelContentSizeInBytes); + } + + if (this.modelFormat != null) { + generator.writeKey("model_format"); + this.modelFormat.serialize(generator, mapper); + } + + if (this.modelGroupId != null) { + generator.writeKey("model_group_id"); + generator.write(this.modelGroupId); + } + + generator.writeKey("model_state"); + generator.write(this.modelState); + + if (this.modelVersion != null) { + generator.writeKey("model_version"); + generator.write(this.modelVersion); + } + + if (this.name != null) { + generator.writeKey("name"); + generator.write(this.name); + } + + if (this.totalChunks != null) { + generator.writeKey("total_chunks"); + generator.write(this.totalChunks); + } + } + + // --------------------------------------------------------------------------------------------- + + @Override + @Nonnull + public Builder toBuilder() { + return new Builder(this); + } + + @Nonnull + public static Builder builder() { + return new Builder(); + } + + /** + * Builder for {@link GetModelResponse}. + */ + public static class Builder extends ObjectBuilderBase implements CopyableBuilder+ * API name: {@code algorithm} + *
+ */ + @Nonnull + public final Builder algorithm(@Nullable String value) { + this.algorithm = value; + return this; + } + + /** + * The created time. + *+ * API name: {@code created_time} + *
+ */ + @Nonnull + public final Builder createdTime(@Nullable Long value) { + this.createdTime = value; + return this; + } + + /** + * Whether the model is hidden. + *+ * API name: {@code is_hidden} + *
+ */ + @Nonnull + public final Builder isHidden(@Nullable Boolean value) { + this.isHidden = value; + return this; + } + + /** + * The last registered time. + *+ * API name: {@code last_registered_time} + *
+ */ + @Nonnull + public final Builder lastRegisteredTime(@Nullable Long value) { + this.lastRegisteredTime = value; + return this; + } + + /** + * The last updated time. + *+ * API name: {@code last_updated_time} + *
+ */ + @Nonnull + public final Builder lastUpdatedTime(@Nullable Long value) { + this.lastUpdatedTime = value; + return this; + } + + /** + * API name: {@code model_config} + */ + @Nonnull + public final Builder modelConfig(@Nullable ModelConfig value) { + this.modelConfig = value; + return this; + } + + /** + * API name: {@code model_config} + */ + @Nonnull + public final Builder modelConfig(Function+ * API name: {@code model_content_hash_value} + *
+ */ + @Nonnull + public final Builder modelContentHashValue(@Nullable String value) { + this.modelContentHashValue = value; + return this; + } + + /** + * The model content size in bytes. + *+ * API name: {@code model_content_size_in_bytes} + *
+ */ + @Nonnull + public final Builder modelContentSizeInBytes(@Nullable Long value) { + this.modelContentSizeInBytes = value; + return this; + } + + /** + * API name: {@code model_format} + */ + @Nonnull + public final Builder modelFormat(@Nullable ModelFormat value) { + this.modelFormat = value; + return this; + } + + /** + * The model group ID. + *+ * API name: {@code model_group_id} + *
+ */ + @Nonnull + public final Builder modelGroupId(@Nullable String value) { + this.modelGroupId = value; + return this; + } + + /** + * Required - The model state. + *+ * API name: {@code model_state} + *
+ */ + @Nonnull + public final Builder modelState(String value) { + this.modelState = value; + return this; + } + + /** + * The model version. + *+ * API name: {@code model_version} + *
+ */ + @Nonnull + public final Builder modelVersion(@Nullable String value) { + this.modelVersion = value; + return this; + } + + /** + * The model name. + *+ * API name: {@code name} + *
+ */ + @Nonnull + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + /** + * The total chunks. + *+ * API name: {@code total_chunks} + *
+ */ + @Nonnull + public final Builder totalChunks(@Nullable Long value) { + this.totalChunks = value; + return this; + } + + /** + * Builds a {@link GetModelResponse}. + * + * @throws NullPointerException if some of the required fields are null. + */ + @Override + @Nonnull + public GetModelResponse build() { + _checkSingleUse(); + + return new GetModelResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetModelResponse} + */ + public static final JsonpDeserializer+ * API name: {@code return_all_models} + *
+ */ + @Nullable + public final Boolean returnAllModels() { + return this.returnAllModels; + } + + /** + * Whether to return all tasks. + *+ * API name: {@code return_all_tasks} + *
+ */ + @Nullable + public final Boolean returnAllTasks() { + return this.returnAllTasks; + } + + /** + * API name: {@code task_ids} + */ + @Nonnull + public final List
+ * Adds all elements of list
to modelIds
.
+ *
+ * Adds one or more values to modelIds
.
+ *
+ * Adds all elements of list
to nodeIds
.
+ *
+ * Adds one or more values to nodeIds
.
+ *
+ * API name: {@code return_all_models} + *
+ */ + @Nonnull + public final Builder returnAllModels(@Nullable Boolean value) { + this.returnAllModels = value; + return this; + } + + /** + * Whether to return all tasks. + *+ * API name: {@code return_all_tasks} + *
+ */ + @Nonnull + public final Builder returnAllTasks(@Nullable Boolean value) { + this.returnAllTasks = value; + return this; + } + + /** + * API name: {@code task_ids} + * + *
+ * Adds all elements of list
to taskIds
.
+ *
+ * Adds one or more values to taskIds
.
+ *
+ * Adds all elements of map
to nodes
.
+ *
+ * Adds an entry to nodes
.
+ *
+ * Adds a value to nodes
using a builder lambda.
+ *