diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index bcc2c288cd..4fea608f2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -150,8 +150,8 @@ public final Time masterTimeout() { } /** - * Comma-separated list of component template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of component template to retrieve. Wildcard (*) expressions + * are supported. *

* API name: {@code name} */ @@ -254,8 +254,8 @@ public final Builder masterTimeout(Function> f } /** - * Comma-separated list of component template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of component template to retrieve. Wildcard (*) expressions + * are supported. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java index 4059f042c0..f756239da8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java @@ -143,8 +143,7 @@ public static HealthRequest of(Function> f } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Expand wildcard expression to concrete indices that are open, closed or both. *

* API name: {@code expand_wildcards} */ @@ -153,10 +152,10 @@ public final List expandWildcards() { } /** - * Comma-separated list of data streams, indices, and index aliases used to - * limit the request. Wildcard expressions (*) are supported. To - * target all data streams and indices in a cluster, omit this parameter or use - * _all or *. + * A comma-separated list of data streams, indices, and index aliases that limit + * the request. Wildcard expressions (*) are supported. To target + * all data streams and indices in a cluster, omit this parameter or use _all or + * *. *

* API name: {@code index} */ @@ -165,8 +164,7 @@ public final List index() { } /** - * Can be one of cluster, indices or shards. Controls the details level of the - * health information returned. + * Return health information at a specific level of detail. *

* API name: {@code level} */ @@ -176,8 +174,8 @@ public final Level level() { } /** - * If true, the request retrieves information from the local node only. Defaults - * to false, which means information is retrieved from the master node. + * If true, retrieve information from the local node only. If false, retrieve + * information from the master node. *

* API name: {@code local} */ @@ -187,7 +185,7 @@ public final Boolean local() { } /** - * Period to wait for a connection to the master node. If no response is + * The period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} @@ -198,8 +196,8 @@ public final Time masterTimeout() { } /** - * Period to wait for a response. If no response is received before the timeout - * expires, the request fails and returns an error. + * The period to wait for a response. If no response is received before the + * timeout expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -209,8 +207,8 @@ public final Time timeout() { } /** - * A number controlling to how many active shards to wait for, all to wait for - * all shards in the cluster to be active, or 0 to not wait. + * Wait for the specified number of active shards. Use all to wait + * for all shards in the cluster to be active. Use 0 to not wait. *

* API name: {@code wait_for_active_shards} */ @@ -220,8 +218,7 @@ public final WaitForActiveShards waitForActiveShards() { } /** - * Can be one of immediate, urgent, high, normal, low, languid. Wait until all - * currently queued events with the given priority are processed. + * Wait until all currently queued events with the given priority are processed. *

* API name: {@code wait_for_events} */ @@ -231,9 +228,8 @@ public final WaitForEvents waitForEvents() { } /** - * A boolean value which controls whether to wait (until the timeout provided) - * for the cluster to have no shard initializations. Defaults to false, which - * means it will not wait for initializing shards. + * Wait (until the timeout expires) for the cluster to have no shard + * initializations. If false, the request does not wait for initializing shards. *

* API name: {@code wait_for_no_initializing_shards} */ @@ -243,9 +239,8 @@ public final Boolean waitForNoInitializingShards() { } /** - * A boolean value which controls whether to wait (until the timeout provided) - * for the cluster to have no shard relocations. Defaults to false, which means - * it will not wait for relocating shards. + * Wait (until the timeout expires) for the cluster to have no shard + * relocations. If false, the request not wait for relocating shards. *

* API name: {@code wait_for_no_relocating_shards} */ @@ -255,9 +250,10 @@ public final Boolean waitForNoRelocatingShards() { } /** - * The request waits until the specified number N of nodes is available. It also - * accepts >=N, <=N, >N and <N. Alternatively, it is possible to use - * ge(N), le(N), gt(N) and lt(N) notation. + * Wait until the specified number (N) of nodes is available. It also accepts + * >=N, <=N, >N and + * <N. Alternatively, use the notations ge(N), + * le(N), gt(N), and lt(N). *

* API name: {@code wait_for_nodes} */ @@ -267,9 +263,10 @@ public final String waitForNodes() { } /** - * One of green, yellow or red. Will wait (until the timeout provided) until the - * status of the cluster changes to the one provided or better, i.e. green > - * yellow > red. By default, will not wait for any status. + * Wait (until the timeout expires) for the cluster to reach a specific health + * status (or a better status). A green status is better than yellow and yellow + * is better than red. By default, the request does not wait for a particular + * status. *

* API name: {@code wait_for_status} */ @@ -322,8 +319,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private HealthStatus waitForStatus; /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Expand wildcard expression to concrete indices that are open, closed or both. *

* API name: {@code expand_wildcards} *

@@ -335,8 +331,7 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * Expand wildcard expression to concrete indices that are open, closed or both. *

* API name: {@code expand_wildcards} *

@@ -348,10 +343,10 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Comma-separated list of data streams, indices, and index aliases used to - * limit the request. Wildcard expressions (*) are supported. To - * target all data streams and indices in a cluster, omit this parameter or use - * _all or *. + * A comma-separated list of data streams, indices, and index aliases that limit + * the request. Wildcard expressions (*) are supported. To target + * all data streams and indices in a cluster, omit this parameter or use _all or + * *. *

* API name: {@code index} *

@@ -363,10 +358,10 @@ public final Builder index(List list) { } /** - * Comma-separated list of data streams, indices, and index aliases used to - * limit the request. Wildcard expressions (*) are supported. To - * target all data streams and indices in a cluster, omit this parameter or use - * _all or *. + * A comma-separated list of data streams, indices, and index aliases that limit + * the request. Wildcard expressions (*) are supported. To target + * all data streams and indices in a cluster, omit this parameter or use _all or + * *. *

* API name: {@code index} *

@@ -378,8 +373,7 @@ public final Builder index(String value, String... values) { } /** - * Can be one of cluster, indices or shards. Controls the details level of the - * health information returned. + * Return health information at a specific level of detail. *

* API name: {@code level} */ @@ -389,8 +383,8 @@ public final Builder level(@Nullable Level value) { } /** - * If true, the request retrieves information from the local node only. Defaults - * to false, which means information is retrieved from the master node. + * If true, retrieve information from the local node only. If false, retrieve + * information from the master node. *

* API name: {@code local} */ @@ -400,7 +394,7 @@ public final Builder local(@Nullable Boolean value) { } /** - * Period to wait for a connection to the master node. If no response is + * The period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} @@ -411,7 +405,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Period to wait for a connection to the master node. If no response is + * The period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. *

* API name: {@code master_timeout} @@ -421,8 +415,8 @@ public final Builder masterTimeout(Function> f } /** - * Period to wait for a response. If no response is received before the timeout - * expires, the request fails and returns an error. + * The period to wait for a response. If no response is received before the + * timeout expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -432,8 +426,8 @@ public final Builder timeout(@Nullable Time value) { } /** - * Period to wait for a response. If no response is received before the timeout - * expires, the request fails and returns an error. + * The period to wait for a response. If no response is received before the + * timeout expires, the request fails and returns an error. *

* API name: {@code timeout} */ @@ -442,8 +436,8 @@ public final Builder timeout(Function> fn) { } /** - * A number controlling to how many active shards to wait for, all to wait for - * all shards in the cluster to be active, or 0 to not wait. + * Wait for the specified number of active shards. Use all to wait + * for all shards in the cluster to be active. Use 0 to not wait. *

* API name: {@code wait_for_active_shards} */ @@ -453,8 +447,8 @@ public final Builder waitForActiveShards(@Nullable WaitForActiveShards value) { } /** - * A number controlling to how many active shards to wait for, all to wait for - * all shards in the cluster to be active, or 0 to not wait. + * Wait for the specified number of active shards. Use all to wait + * for all shards in the cluster to be active. Use 0 to not wait. *

* API name: {@code wait_for_active_shards} */ @@ -464,8 +458,7 @@ public final Builder waitForActiveShards( } /** - * Can be one of immediate, urgent, high, normal, low, languid. Wait until all - * currently queued events with the given priority are processed. + * Wait until all currently queued events with the given priority are processed. *

* API name: {@code wait_for_events} */ @@ -475,9 +468,8 @@ public final Builder waitForEvents(@Nullable WaitForEvents value) { } /** - * A boolean value which controls whether to wait (until the timeout provided) - * for the cluster to have no shard initializations. Defaults to false, which - * means it will not wait for initializing shards. + * Wait (until the timeout expires) for the cluster to have no shard + * initializations. If false, the request does not wait for initializing shards. *

* API name: {@code wait_for_no_initializing_shards} */ @@ -487,9 +479,8 @@ public final Builder waitForNoInitializingShards(@Nullable Boolean value) { } /** - * A boolean value which controls whether to wait (until the timeout provided) - * for the cluster to have no shard relocations. Defaults to false, which means - * it will not wait for relocating shards. + * Wait (until the timeout expires) for the cluster to have no shard + * relocations. If false, the request not wait for relocating shards. *

* API name: {@code wait_for_no_relocating_shards} */ @@ -499,9 +490,10 @@ public final Builder waitForNoRelocatingShards(@Nullable Boolean value) { } /** - * The request waits until the specified number N of nodes is available. It also - * accepts >=N, <=N, >N and <N. Alternatively, it is possible to use - * ge(N), le(N), gt(N) and lt(N) notation. + * Wait until the specified number (N) of nodes is available. It also accepts + * >=N, <=N, >N and + * <N. Alternatively, use the notations ge(N), + * le(N), gt(N), and lt(N). *

* API name: {@code wait_for_nodes} */ @@ -511,9 +503,10 @@ public final Builder waitForNodes(@Nullable String value) { } /** - * One of green, yellow or red. Will wait (until the timeout provided) until the - * status of the cluster changes to the one provided or better, i.e. green > - * yellow > red. By default, will not wait for any status. + * Wait (until the timeout expires) for the cluster to reach a specific health + * status (or a better status). A green status is better than yellow and yellow + * is better than red. By default, the request does not wait for a particular + * status. *

* API name: {@code wait_for_status} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index bd5d6746eb..9f29d6e331 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -1251,13 +1251,13 @@ 'cluster.delete_component_template.Response': 'cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L25', 'cluster.delete_voting_config_exclusions.Request': 'cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L24-L58', 'cluster.exists_component_template.Request': 'cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L65', -'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L85', +'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L82', 'cluster.get_component_template.Response': 'cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24', 'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L24-L72', 'cluster.get_settings.Response': 'cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L32', 'cluster.health.HealthResponseBody': 'cluster/health/ClusterHealthResponse.ts#L40-L77', 'cluster.health.IndexHealthStats': 'cluster/health/types.ts#L24-L35', -'cluster.health.Request': 'cluster/health/ClusterHealthRequest.ts#L33-L124', +'cluster.health.Request': 'cluster/health/ClusterHealthRequest.ts#L33-L137', 'cluster.health.Response': 'cluster/health/ClusterHealthResponse.ts#L26-L38', 'cluster.health.ShardHealthStats': 'cluster/health/types.ts#L37-L45', 'cluster.info.Request': 'cluster/info/ClusterInfoRequest.ts#L23-L44', @@ -1760,8 +1760,8 @@ 'indices.put_data_stream_settings.Request': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L79', 'indices.put_data_stream_settings.Response': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L23-L28', 'indices.put_data_stream_settings.UpdatedDataStreamSettings': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L30-L55', -'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L166-L188', -'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L38-L164', +'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L167-L194', +'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L39-L165', 'indices.put_index_template.Response': 'indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L25', 'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L172', 'indices.put_mapping.Response': 'indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25', @@ -2016,7 +2016,7 @@ 'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1947-L1951', 'inference.chat_completion_unified.Request': 'inference/chat_completion_unified/UnifiedRequest.ts#L24-L63', 'inference.chat_completion_unified.Response': 'inference/chat_completion_unified/UnifiedResponse.ts#L22-L25', -'inference.completion.Request': 'inference/completion/CompletionRequest.ts#L25-L66', +'inference.completion.Request': 'inference/completion/CompletionRequest.ts#L25-L72', 'inference.completion.Response': 'inference/completion/CompletionResponse.ts#L22-L25', 'inference.delete.Request': 'inference/delete/DeleteRequest.ts#L24-L69', 'inference.delete.Response': 'inference/delete/DeleteResponse.ts#L22-L25', @@ -2070,7 +2070,7 @@ 'inference.put_voyageai.Response': 'inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25', 'inference.put_watsonx.Request': 'inference/put_watsonx/PutWatsonxRequest.ts#L30-L85', 'inference.put_watsonx.Response': 'inference/put_watsonx/PutWatsonxResponse.ts#L22-L25', -'inference.rerank.Request': 'inference/rerank/RerankRequest.ts#L25-L76', +'inference.rerank.Request': 'inference/rerank/RerankRequest.ts#L26-L81', 'inference.rerank.Response': 'inference/rerank/RerankResponse.ts#L22-L25', 'inference.sparse_embedding.Request': 'inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L66', 'inference.sparse_embedding.Response': 'inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L25', @@ -2080,79 +2080,79 @@ 'inference.text_embedding.Response': 'inference/text_embedding/TextEmbeddingResponse.ts#L22-L25', 'inference.update.Request': 'inference/update/UpdateInferenceRequest.ts#L25-L63', 'inference.update.Response': 'inference/update/UpdateInferenceResponse.ts#L22-L25', -'ingest._types.AppendProcessor': 'ingest/_types/Processors.ts#L329-L348', -'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L350-L391', -'ingest._types.BytesProcessor': 'ingest/_types/Processors.ts#L560-L576', -'ingest._types.CircleProcessor': 'ingest/_types/Processors.ts#L578-L601', -'ingest._types.CommunityIDProcessor': 'ingest/_types/Processors.ts#L603-L664', -'ingest._types.ConvertProcessor': 'ingest/_types/Processors.ts#L677-L697', -'ingest._types.ConvertType': 'ingest/_types/Processors.ts#L666-L675', -'ingest._types.CsvProcessor': 'ingest/_types/Processors.ts#L699-L732', +'ingest._types.AppendProcessor': 'ingest/_types/Processors.ts#L329-L361', +'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L363-L404', +'ingest._types.BytesProcessor': 'ingest/_types/Processors.ts#L573-L589', +'ingest._types.CircleProcessor': 'ingest/_types/Processors.ts#L591-L614', +'ingest._types.CommunityIDProcessor': 'ingest/_types/Processors.ts#L616-L677', +'ingest._types.ConvertProcessor': 'ingest/_types/Processors.ts#L690-L710', +'ingest._types.ConvertType': 'ingest/_types/Processors.ts#L679-L688', +'ingest._types.CsvProcessor': 'ingest/_types/Processors.ts#L712-L745', 'ingest._types.DatabaseConfiguration': 'ingest/_types/Database.ts#L22-L37', 'ingest._types.DatabaseConfigurationFull': 'ingest/_types/Database.ts#L39-L53', -'ingest._types.DateIndexNameProcessor': 'ingest/_types/Processors.ts#L734-L772', -'ingest._types.DateProcessor': 'ingest/_types/Processors.ts#L774-L807', -'ingest._types.DissectProcessor': 'ingest/_types/Processors.ts#L809-L828', +'ingest._types.DateIndexNameProcessor': 'ingest/_types/Processors.ts#L747-L785', +'ingest._types.DateProcessor': 'ingest/_types/Processors.ts#L787-L820', +'ingest._types.DissectProcessor': 'ingest/_types/Processors.ts#L822-L841', 'ingest._types.Document': 'ingest/_types/Simulation.ts#L69-L83', 'ingest._types.DocumentSimulation': 'ingest/_types/Simulation.ts#L85-L115', -'ingest._types.DotExpanderProcessor': 'ingest/_types/Processors.ts#L830-L848', -'ingest._types.DropProcessor': 'ingest/_types/Processors.ts#L850-L850', -'ingest._types.EnrichProcessor': 'ingest/_types/Processors.ts#L852-L891', -'ingest._types.FailProcessor': 'ingest/_types/Processors.ts#L893-L899', +'ingest._types.DotExpanderProcessor': 'ingest/_types/Processors.ts#L843-L861', +'ingest._types.DropProcessor': 'ingest/_types/Processors.ts#L863-L863', +'ingest._types.EnrichProcessor': 'ingest/_types/Processors.ts#L865-L904', +'ingest._types.FailProcessor': 'ingest/_types/Processors.ts#L906-L912', 'ingest._types.FieldAccessPattern': 'ingest/_types/Pipeline.ts#L115-L118', -'ingest._types.FingerprintDigest': 'ingest/_types/Processors.ts#L901-L907', -'ingest._types.FingerprintProcessor': 'ingest/_types/Processors.ts#L909-L937', -'ingest._types.ForeachProcessor': 'ingest/_types/Processors.ts#L939-L953', -'ingest._types.GeoGridProcessor': 'ingest/_types/Processors.ts#L393-L434', -'ingest._types.GeoGridTargetFormat': 'ingest/_types/Processors.ts#L442-L445', -'ingest._types.GeoGridTileType': 'ingest/_types/Processors.ts#L436-L440', -'ingest._types.GeoIpProcessor': 'ingest/_types/Processors.ts#L447-L481', -'ingest._types.GrokProcessor': 'ingest/_types/Processors.ts#L955-L986', -'ingest._types.GsubProcessor': 'ingest/_types/Processors.ts#L988-L1012', -'ingest._types.HtmlStripProcessor': 'ingest/_types/Processors.ts#L1014-L1030', -'ingest._types.InferenceConfig': 'ingest/_types/Processors.ts#L1071-L1083', -'ingest._types.InferenceConfigClassification': 'ingest/_types/Processors.ts#L1098-L1124', -'ingest._types.InferenceConfigRegression': 'ingest/_types/Processors.ts#L1085-L1096', -'ingest._types.InferenceProcessor': 'ingest/_types/Processors.ts#L1032-L1064', +'ingest._types.FingerprintDigest': 'ingest/_types/Processors.ts#L914-L920', +'ingest._types.FingerprintProcessor': 'ingest/_types/Processors.ts#L922-L950', +'ingest._types.ForeachProcessor': 'ingest/_types/Processors.ts#L952-L966', +'ingest._types.GeoGridProcessor': 'ingest/_types/Processors.ts#L406-L447', +'ingest._types.GeoGridTargetFormat': 'ingest/_types/Processors.ts#L455-L458', +'ingest._types.GeoGridTileType': 'ingest/_types/Processors.ts#L449-L453', +'ingest._types.GeoIpProcessor': 'ingest/_types/Processors.ts#L460-L494', +'ingest._types.GrokProcessor': 'ingest/_types/Processors.ts#L968-L999', +'ingest._types.GsubProcessor': 'ingest/_types/Processors.ts#L1001-L1025', +'ingest._types.HtmlStripProcessor': 'ingest/_types/Processors.ts#L1027-L1043', +'ingest._types.InferenceConfig': 'ingest/_types/Processors.ts#L1084-L1096', +'ingest._types.InferenceConfigClassification': 'ingest/_types/Processors.ts#L1111-L1137', +'ingest._types.InferenceConfigRegression': 'ingest/_types/Processors.ts#L1098-L1109', +'ingest._types.InferenceProcessor': 'ingest/_types/Processors.ts#L1045-L1077', 'ingest._types.Ingest': 'ingest/_types/Simulation.ts#L28-L36', -'ingest._types.InputConfig': 'ingest/_types/Processors.ts#L1066-L1069', -'ingest._types.IpLocationProcessor': 'ingest/_types/Processors.ts#L483-L517', +'ingest._types.InputConfig': 'ingest/_types/Processors.ts#L1079-L1082', +'ingest._types.IpLocationProcessor': 'ingest/_types/Processors.ts#L496-L530', 'ingest._types.Ipinfo': 'ingest/_types/Database.ts#L59-L59', -'ingest._types.JoinProcessor': 'ingest/_types/Processors.ts#L1126-L1141', -'ingest._types.JsonProcessor': 'ingest/_types/Processors.ts#L1143-L1172', -'ingest._types.JsonProcessorConflictStrategy': 'ingest/_types/Processors.ts#L1174-L1179', -'ingest._types.KeyValueProcessor': 'ingest/_types/Processors.ts#L1181-L1233', +'ingest._types.JoinProcessor': 'ingest/_types/Processors.ts#L1139-L1154', +'ingest._types.JsonProcessor': 'ingest/_types/Processors.ts#L1156-L1185', +'ingest._types.JsonProcessorConflictStrategy': 'ingest/_types/Processors.ts#L1187-L1192', +'ingest._types.KeyValueProcessor': 'ingest/_types/Processors.ts#L1194-L1246', 'ingest._types.Local': 'ingest/_types/Database.ts#L63-L65', -'ingest._types.LowercaseProcessor': 'ingest/_types/Processors.ts#L1235-L1251', +'ingest._types.LowercaseProcessor': 'ingest/_types/Processors.ts#L1248-L1264', 'ingest._types.Maxmind': 'ingest/_types/Database.ts#L55-L57', -'ingest._types.NetworkDirectionProcessor': 'ingest/_types/Processors.ts#L1253-L1287', +'ingest._types.NetworkDirectionProcessor': 'ingest/_types/Processors.ts#L1266-L1300', 'ingest._types.Pipeline': 'ingest/_types/Pipeline.ts#L24-L83', 'ingest._types.PipelineConfig': 'ingest/_types/Pipeline.ts#L99-L113', -'ingest._types.PipelineProcessor': 'ingest/_types/Processors.ts#L1289-L1300', +'ingest._types.PipelineProcessor': 'ingest/_types/Processors.ts#L1302-L1313', 'ingest._types.PipelineProcessorResult': 'ingest/_types/Simulation.ts#L59-L67', 'ingest._types.PipelineSimulationStatusOptions': 'ingest/_types/Simulation.ts#L51-L57', 'ingest._types.ProcessorBase': 'ingest/_types/Processors.ts#L304-L327', 'ingest._types.ProcessorContainer': 'ingest/_types/Processors.ts#L28-L302', 'ingest._types.Redact': 'ingest/_types/Simulation.ts#L38-L43', -'ingest._types.RedactProcessor': 'ingest/_types/Processors.ts#L1302-L1343', -'ingest._types.RegisteredDomainProcessor': 'ingest/_types/Processors.ts#L1345-L1361', -'ingest._types.RemoveProcessor': 'ingest/_types/Processors.ts#L1363-L1377', -'ingest._types.RenameProcessor': 'ingest/_types/Processors.ts#L1379-L1395', -'ingest._types.RerouteProcessor': 'ingest/_types/Processors.ts#L1397-L1425', -'ingest._types.ScriptProcessor': 'ingest/_types/Processors.ts#L1427-L1447', -'ingest._types.SetProcessor': 'ingest/_types/Processors.ts#L1449-L1483', -'ingest._types.SetSecurityUserProcessor': 'ingest/_types/Processors.ts#L1485-L1494', -'ingest._types.ShapeType': 'ingest/_types/Processors.ts#L1496-L1499', +'ingest._types.RedactProcessor': 'ingest/_types/Processors.ts#L1315-L1356', +'ingest._types.RegisteredDomainProcessor': 'ingest/_types/Processors.ts#L1358-L1374', +'ingest._types.RemoveProcessor': 'ingest/_types/Processors.ts#L1376-L1390', +'ingest._types.RenameProcessor': 'ingest/_types/Processors.ts#L1392-L1408', +'ingest._types.RerouteProcessor': 'ingest/_types/Processors.ts#L1410-L1438', +'ingest._types.ScriptProcessor': 'ingest/_types/Processors.ts#L1440-L1460', +'ingest._types.SetProcessor': 'ingest/_types/Processors.ts#L1462-L1497', +'ingest._types.SetSecurityUserProcessor': 'ingest/_types/Processors.ts#L1499-L1508', +'ingest._types.ShapeType': 'ingest/_types/Processors.ts#L1510-L1513', 'ingest._types.SimulateDocumentResult': 'ingest/_types/Simulation.ts#L45-L49', -'ingest._types.SortProcessor': 'ingest/_types/Processors.ts#L1501-L1517', -'ingest._types.SplitProcessor': 'ingest/_types/Processors.ts#L1519-L1544', -'ingest._types.TerminateProcessor': 'ingest/_types/Processors.ts#L1546-L1546', -'ingest._types.TrimProcessor': 'ingest/_types/Processors.ts#L1548-L1564', -'ingest._types.UppercaseProcessor': 'ingest/_types/Processors.ts#L1566-L1582', -'ingest._types.UriPartsProcessor': 'ingest/_types/Processors.ts#L1602-L1628', -'ingest._types.UrlDecodeProcessor': 'ingest/_types/Processors.ts#L1584-L1600', -'ingest._types.UserAgentProcessor': 'ingest/_types/Processors.ts#L519-L550', -'ingest._types.UserAgentProperty': 'ingest/_types/Processors.ts#L552-L558', +'ingest._types.SortProcessor': 'ingest/_types/Processors.ts#L1515-L1531', +'ingest._types.SplitProcessor': 'ingest/_types/Processors.ts#L1533-L1558', +'ingest._types.TerminateProcessor': 'ingest/_types/Processors.ts#L1560-L1560', +'ingest._types.TrimProcessor': 'ingest/_types/Processors.ts#L1562-L1578', +'ingest._types.UppercaseProcessor': 'ingest/_types/Processors.ts#L1580-L1596', +'ingest._types.UriPartsProcessor': 'ingest/_types/Processors.ts#L1616-L1642', +'ingest._types.UrlDecodeProcessor': 'ingest/_types/Processors.ts#L1598-L1614', +'ingest._types.UserAgentProcessor': 'ingest/_types/Processors.ts#L532-L563', +'ingest._types.UserAgentProperty': 'ingest/_types/Processors.ts#L565-L571', 'ingest._types.Web': 'ingest/_types/Database.ts#L61-L61', 'ingest.delete_geoip_database.Request': 'ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L58', 'ingest.delete_geoip_database.Response': 'ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L25', @@ -3440,10 +3440,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/1819efc45f2245f1f2f74a2997f0eb6d62433300/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/6592056603865c2893c8a25ff47b115a3b1fa5db/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java index 0b7be581ce..506fe2fd3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java @@ -236,7 +236,7 @@ public final List index() { } /** - * The number of segments the index should be merged into (defayult: dynamic) + * The number of segments the index should be merged into (default: dynamic) *

* API name: {@code max_num_segments} */ @@ -384,7 +384,7 @@ public final Builder index(String value, String... values) { } /** - * The number of segments the index should be merged into (defayult: dynamic) + * The number of segments the index should be merged into (default: dynamic) *

* API name: {@code max_num_segments} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index b229239198..fa8cb1956f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -22,6 +22,7 @@ import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; import co.elastic.clients.elasticsearch.indices.Alias; import co.elastic.clients.elasticsearch.indices.DataStreamLifecycle; +import co.elastic.clients.elasticsearch.indices.DataStreamOptionsTemplate; import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -76,6 +77,9 @@ public class IndexTemplateMapping implements JsonpSerializable { @Nullable private final DataStreamLifecycle lifecycle; + @Nullable + private final DataStreamOptionsTemplate dataStreamOptions; + // --------------------------------------------------------------------------------------------- private IndexTemplateMapping(Builder builder) { @@ -84,6 +88,7 @@ private IndexTemplateMapping(Builder builder) { this.mappings = builder.mappings; this.settings = builder.settings; this.lifecycle = builder.lifecycle; + this.dataStreamOptions = builder.dataStreamOptions; } @@ -132,6 +137,14 @@ public final DataStreamLifecycle lifecycle() { return this.lifecycle; } + /** + * API name: {@code data_stream_options} + */ + @Nullable + public final DataStreamOptionsTemplate dataStreamOptions() { + return this.dataStreamOptions; + } + /** * Serialize this object to JSON. */ @@ -169,6 +182,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.lifecycle.serialize(generator, mapper); } + if (this.dataStreamOptions != null) { + generator.writeKey("data_stream_options"); + this.dataStreamOptions.serialize(generator, mapper); + + } } @@ -198,6 +216,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamLifecycle lifecycle; + @Nullable + private DataStreamOptionsTemplate dataStreamOptions; + /** * Aliases to add. If the index template includes a data_stream * object, these are data stream aliases. Otherwise, these are index aliases. @@ -297,6 +318,22 @@ public final Builder lifecycle(Function> fn) { + return this.dataStreamOptions(fn.apply(new DataStreamOptionsTemplate.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -329,6 +366,7 @@ protected static void setupIndexTemplateMappingDeserializer(ObjectDeserializer * The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionRequest.java index bac94cdfad..5d4c973a65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionRequest.java @@ -61,6 +61,22 @@ /** * Perform completion inference on the service. + *

+ * Get responses for completion tasks. This API works only with the completion + * task type. + *

+ * IMPORTANT: The inference APIs enable you to use certain services, such as + * built-in machine learning models (ELSER, E5), models uploaded through Eland, + * Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, + * Watsonx.ai, or Hugging Face. For built-in models and models uploaded through + * Eland, the inference APIs offer an alternative way to use and manage trained + * models. However, if you do not plan to use the inference APIs to use these + * models or if you want to use non-NLP models, use the machine learning trained + * model APIs. + *

+ * This API requires the monitor_inference cluster privilege (the + * built-in inference_admin and inference_user roles + * grant this privilege). * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java index 9d855df7d0..7098a4eaae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java @@ -71,7 +71,7 @@ public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable Transpor // ----- Endpoint: inference.chat_completion_unified /** - * Perform chat completion inference. + * Perform chat completion inference on the service. *

* The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times @@ -99,7 +99,7 @@ public CompletableFuture chatCompletionUnified(ChatCompletionUni } /** - * Perform chat completion inference. + * Perform chat completion inference on the service. *

* The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times @@ -131,6 +131,22 @@ public final CompletableFuture chatCompletionUnified( /** * Perform completion inference on the service. + *

+ * Get responses for completion tasks. This API works only with the completion + * task type. + *

+ * IMPORTANT: The inference APIs enable you to use certain services, such as + * built-in machine learning models (ELSER, E5), models uploaded through Eland, + * Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, + * Watsonx.ai, or Hugging Face. For built-in models and models uploaded through + * Eland, the inference APIs offer an alternative way to use and manage trained + * models. However, if you do not plan to use the inference APIs to use these + * models or if you want to use non-NLP models, use the machine learning trained + * model APIs. + *

+ * This API requires the monitor_inference cluster privilege (the + * built-in inference_admin and inference_user roles + * grant this privilege). * * @see Documentation @@ -146,6 +162,22 @@ public CompletableFuture completion(CompletionRequest reques /** * Perform completion inference on the service. + *

+ * Get responses for completion tasks. This API works only with the completion + * task type. + *

+ * IMPORTANT: The inference APIs enable you to use certain services, such as + * built-in machine learning models (ELSER, E5), models uploaded through Eland, + * Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, + * Watsonx.ai, or Hugging Face. For built-in models and models uploaded through + * Eland, the inference APIs offer an alternative way to use and manage trained + * models. However, if you do not plan to use the inference APIs to use these + * models or if you want to use non-NLP models, use the machine learning trained + * model APIs. + *

+ * This API requires the monitor_inference cluster privilege (the + * built-in inference_admin and inference_user roles + * grant this privilege). * * @param fn * a function that initializes a builder to create the @@ -1781,7 +1813,7 @@ public final CompletableFuture sparseEmbedding( // ----- Endpoint: inference.stream_completion /** - * Perform streaming inference. + * Perform streaming inference on the service. *

* Get real-time responses for completion tasks by delivering answers * incrementally, reducing response times during computation. This API works @@ -1813,7 +1845,7 @@ public CompletableFuture streamCompletion(StreamCompletionReques } /** - * Perform streaming inference. + * Perform streaming inference on the service. *

* Get real-time responses for completion tasks by delivering answers * incrementally, reducing response times during computation. This API works diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java index ab59c4d48d..e0e3156f76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java @@ -69,7 +69,7 @@ public ElasticsearchInferenceClient withTransportOptions(@Nullable TransportOpti // ----- Endpoint: inference.chat_completion_unified /** - * Perform chat completion inference. + * Perform chat completion inference on the service. *

* The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times @@ -98,7 +98,7 @@ public BinaryResponse chatCompletionUnified(ChatCompletionUnifiedRequest request } /** - * Perform chat completion inference. + * Perform chat completion inference on the service. *

* The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times @@ -131,6 +131,22 @@ public final BinaryResponse chatCompletionUnified( /** * Perform completion inference on the service. + *

+ * Get responses for completion tasks. This API works only with the completion + * task type. + *

+ * IMPORTANT: The inference APIs enable you to use certain services, such as + * built-in machine learning models (ELSER, E5), models uploaded through Eland, + * Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, + * Watsonx.ai, or Hugging Face. For built-in models and models uploaded through + * Eland, the inference APIs offer an alternative way to use and manage trained + * models. However, if you do not plan to use the inference APIs to use these + * models or if you want to use non-NLP models, use the machine learning trained + * model APIs. + *

+ * This API requires the monitor_inference cluster privilege (the + * built-in inference_admin and inference_user roles + * grant this privilege). * * @see Documentation @@ -146,6 +162,22 @@ public CompletionResponse completion(CompletionRequest request) throws IOExcepti /** * Perform completion inference on the service. + *

+ * Get responses for completion tasks. This API works only with the completion + * task type. + *

+ * IMPORTANT: The inference APIs enable you to use certain services, such as + * built-in machine learning models (ELSER, E5), models uploaded through Eland, + * Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, + * Watsonx.ai, or Hugging Face. For built-in models and models uploaded through + * Eland, the inference APIs offer an alternative way to use and manage trained + * models. However, if you do not plan to use the inference APIs to use these + * models or if you want to use non-NLP models, use the machine learning trained + * model APIs. + *

+ * This API requires the monitor_inference cluster privilege (the + * built-in inference_admin and inference_user roles + * grant this privilege). * * @param fn * a function that initializes a builder to create the @@ -1808,7 +1840,7 @@ public final SparseEmbeddingResponse sparseEmbedding( // ----- Endpoint: inference.stream_completion /** - * Perform streaming inference. + * Perform streaming inference on the service. *

* Get real-time responses for completion tasks by delivering answers * incrementally, reducing response times during computation. This API works @@ -1840,7 +1872,7 @@ public BinaryResponse streamCompletion(StreamCompletionRequest request) throws I } /** - * Perform streaming inference. + * Perform streaming inference on the service. *

* Get real-time responses for completion tasks by delivering answers * incrementally, reducing response times during computation. This API works diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RerankRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RerankRequest.java index 063d84992d..ef0b9aa2a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RerankRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RerankRequest.java @@ -34,6 +34,8 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; import java.lang.String; import java.util.HashMap; import java.util.List; @@ -73,12 +75,18 @@ public class RerankRequest extends RequestBase implements JsonpSerializable { private final String query; + @Nullable + private final Boolean returnDocuments; + @Nullable private final JsonData taskSettings; @Nullable private final Time timeout; + @Nullable + private final Integer topN; + // --------------------------------------------------------------------------------------------- private RerankRequest(Builder builder) { @@ -86,8 +94,10 @@ private RerankRequest(Builder builder) { this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); this.input = ApiTypeHelper.unmodifiableRequired(builder.input, this, "input"); this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + this.returnDocuments = builder.returnDocuments; this.taskSettings = builder.taskSettings; this.timeout = builder.timeout; + this.topN = builder.topN; } @@ -105,13 +115,7 @@ public final String inferenceId() { } /** - * Required - The text on which you want to perform the inference task. It can - * be a single string or an array.

- *

- * info Inference endpoints for the completion task type currently - * only support a single string as input. - *

- *
+ * Required - The documents to rank. *

* API name: {@code input} */ @@ -128,6 +132,16 @@ public final String query() { return this.query; } + /** + * Include the document text in the response. + *

+ * API name: {@code return_documents} + */ + @Nullable + public final Boolean returnDocuments() { + return this.returnDocuments; + } + /** * Task settings for the individual inference request. These settings are * specific to the task type you specified and override the task settings @@ -150,6 +164,16 @@ public final Time timeout() { return this.timeout; } + /** + * Limit the response to the top N documents. + *

+ * API name: {@code top_n} + */ + @Nullable + public final Integer topN() { + return this.topN; + } + /** * Serialize this object to JSON. */ @@ -174,11 +198,21 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("query"); generator.write(this.query); + if (this.returnDocuments != null) { + generator.writeKey("return_documents"); + generator.write(this.returnDocuments); + + } if (this.taskSettings != null) { generator.writeKey("task_settings"); this.taskSettings.serialize(generator, mapper); } + if (this.topN != null) { + generator.writeKey("top_n"); + generator.write(this.topN); + + } } @@ -195,12 +229,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String query; + @Nullable + private Boolean returnDocuments; + @Nullable private JsonData taskSettings; @Nullable private Time timeout; + @Nullable + private Integer topN; + /** * Required - The unique identifier for the inference endpoint. *

@@ -212,13 +252,7 @@ public final Builder inferenceId(String value) { } /** - * Required - The text on which you want to perform the inference task. It can - * be a single string or an array.

- *

- * info Inference endpoints for the completion task type currently - * only support a single string as input. - *

- *
+ * Required - The documents to rank. *

* API name: {@code input} *

@@ -230,13 +264,7 @@ public final Builder input(List list) { } /** - * Required - The text on which you want to perform the inference task. It can - * be a single string or an array.

- *

- * info Inference endpoints for the completion task type currently - * only support a single string as input. - *

- *
+ * Required - The documents to rank. *

* API name: {@code input} *

@@ -257,6 +285,16 @@ public final Builder query(String value) { return this; } + /** + * Include the document text in the response. + *

+ * API name: {@code return_documents} + */ + public final Builder returnDocuments(@Nullable Boolean value) { + this.returnDocuments = value; + return this; + } + /** * Task settings for the individual inference request. These settings are * specific to the task type you specified and override the task settings @@ -288,6 +326,16 @@ public final Builder timeout(Function> fn) { return this.timeout(fn.apply(new Time.Builder()).build()); } + /** + * Limit the response to the top N documents. + *

+ * API name: {@code top_n} + */ + public final Builder topN(@Nullable Integer value) { + this.topN = value; + return this; + } + @Override protected Builder self() { return this; @@ -318,7 +366,9 @@ protected static void setupRerankRequestDeserializer(ObjectDeserializer * Get real-time responses for completion tasks by delivering answers * incrementally, reducing response times during computation. This API works diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java index f96666860e..e989a59799 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java @@ -63,12 +63,18 @@ public class AppendProcessor extends ProcessorBase implements ProcessorVariant { private final List value; + @Nullable + private final String mediaType; + @Nullable private final String copyFrom; @Nullable private final Boolean allowDuplicates; + @Nullable + private final Boolean ignoreEmptyValues; + // --------------------------------------------------------------------------------------------- private AppendProcessor(Builder builder) { @@ -76,8 +82,10 @@ private AppendProcessor(Builder builder) { this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); this.value = ApiTypeHelper.unmodifiable(builder.value); + this.mediaType = builder.mediaType; this.copyFrom = builder.copyFrom; this.allowDuplicates = builder.allowDuplicates; + this.ignoreEmptyValues = builder.ignoreEmptyValues; } @@ -112,6 +120,18 @@ public final List value() { return this.value; } + /** + * The media type for encoding value. Applies only when value is a + * template snippet. Must be one of application/json, + * text/plain, or application/x-www-form-urlencoded. + *

+ * API name: {@code media_type} + */ + @Nullable + public final String mediaType() { + return this.mediaType; + } + /** * The origin field which will be appended to field, cannot set * value simultaneously. @@ -134,6 +154,18 @@ public final Boolean allowDuplicates() { return this.allowDuplicates; } + /** + * If true, the processor will skip empty values from the source + * (e.g. empty strings, and null values), rather than appending them to the + * field. + *

+ * API name: {@code ignore_empty_values} + */ + @Nullable + public final Boolean ignoreEmptyValues() { + return this.ignoreEmptyValues; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { super.serializeInternal(generator, mapper); @@ -149,6 +181,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (this.mediaType != null) { + generator.writeKey("media_type"); + generator.write(this.mediaType); + } if (this.copyFrom != null) { generator.writeKey("copy_from"); @@ -160,6 +197,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.allowDuplicates); } + if (this.ignoreEmptyValues != null) { + generator.writeKey("ignore_empty_values"); + generator.write(this.ignoreEmptyValues); + + } } @@ -177,12 +219,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private List value; + @Nullable + private String mediaType; + @Nullable private String copyFrom; @Nullable private Boolean allowDuplicates; + @Nullable + private Boolean ignoreEmptyValues; + /** * Required - The field to be appended to. Supports template snippets. *

@@ -219,6 +267,18 @@ public final Builder value(JsonData value, JsonData... values) { return this; } + /** + * The media type for encoding value. Applies only when value is a + * template snippet. Must be one of application/json, + * text/plain, or application/x-www-form-urlencoded. + *

+ * API name: {@code media_type} + */ + public final Builder mediaType(@Nullable String value) { + this.mediaType = value; + return this; + } + /** * The origin field which will be appended to field, cannot set * value simultaneously. @@ -241,6 +301,18 @@ public final Builder allowDuplicates(@Nullable Boolean value) { return this; } + /** + * If true, the processor will skip empty values from the source + * (e.g. empty strings, and null values), rather than appending them to the + * field. + *

+ * API name: {@code ignore_empty_values} + */ + public final Builder ignoreEmptyValues(@Nullable Boolean value) { + this.ignoreEmptyValues = value; + return this; + } + @Override protected Builder self() { return this; @@ -271,8 +343,10 @@ protected static void setupAppendProcessorDeserializer(ObjectDeserializer