From 1e8e08660de1c72b47e3fa8bb8f1ff7343aed2dd Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 8 Jan 2026 14:18:35 +0000 Subject: [PATCH 1/3] [codegen] update to latest spec --- .../ElasticsearchAsyncClient.java | 257 +- .../elasticsearch/ElasticsearchClient.java | 257 +- .../elasticsearch/_types/CommonStatsFlag.java | 106 + .../_types/DiversifyRetriever.java | 439 +++ .../_types/DiversifyRetrieverTypes.java | 64 + .../_types/GeoHashPrecision.java | 12 +- .../elasticsearch/_types/InlineGet.java | 39 +- .../elasticsearch/_types/KnnQuery.java | 35 + .../elasticsearch/_types/KnnRetriever.java | 35 + .../elasticsearch/_types/KnnSearch.java | 35 + .../elasticsearch/_types/RRFRetriever.java | 46 +- .../_types/RRFRetrieverComponent.java | 217 ++ .../_types/RRFRetrieverEntry.java | 188 ++ .../_types/RRFRetrieverEntryBuilders.java | 63 + .../ReindexStatus.java | 126 +- .../elasticsearch/_types/Retriever.java | 31 + .../_types/RetrieverBuilders.java | 18 + .../aggregations/GeoLineAggregation.java | 25 +- .../aggregations/GeoTileGridAggregation.java | 13 +- .../mapping/DenseVectorElementType.java | 5 + .../mapping/DenseVectorIndexOptions.java | 6 +- .../mapping/ExponentialHistogramProperty.java | 155 + .../_types/mapping/HistogramProperty.java | 28 + .../_types/mapping/Property.java | 32 + .../_types/mapping/PropertyBuilders.java | 19 + .../_types/query_dsl/FieldLookup.java | 41 +- .../_types/query_dsl/LikeDocument.java | 38 +- .../_types/query_dsl/MoreLikeThisQuery.java | 38 +- .../_types/query_dsl/PercolateQuery.java | 40 +- .../_types/query_dsl/TermsLookup.java | 39 +- .../async_search/AsyncSearchResponseBase.java | 38 + .../async_search/SubmitRequest.java | 59 +- .../DeleteAutoscalingPolicyRequest.java | 4 +- .../GetAutoscalingPolicyRequest.java | 4 +- .../PutAutoscalingPolicyRequest.java | 4 +- .../elasticsearch/cat/CountRequest.java | 64 +- .../elasticsearch/cat/SegmentsRequest.java | 182 ++ .../cat/indices/IndicesRecord.java | 12 +- .../ccr/ElasticsearchCcrAsyncClient.java | 82 +- .../ccr/ElasticsearchCcrClient.java | 82 +- .../elasticsearch/ccr/FollowRequest.java | 10 +- .../ccr/ForgetFollowerRequest.java | 14 +- .../ccr/PutAutoFollowPatternRequest.java | 13 +- .../ccr/ResumeFollowRequest.java | 16 +- .../cluster/AllocationExplainRequest.java | 22 +- .../cluster/ClusterInfoRequest.java | 4 +- .../cluster/ClusterStatsRequest.java | 8 +- .../cluster/ComponentTemplateSummary.java | 16 +- .../DeleteComponentTemplateRequest.java | 7 +- .../DeleteVotingConfigExclusionsRequest.java | 5 +- .../ElasticsearchClusterAsyncClient.java | 292 +- .../cluster/ElasticsearchClusterClient.java | 292 +- .../ExistsComponentTemplateRequest.java | 13 +- .../cluster/GetComponentTemplateRequest.java | 24 +- .../elasticsearch/cluster/HealthRequest.java | 131 +- .../cluster/PendingTasksRequest.java | 7 +- .../PostVotingConfigExclusionsRequest.java | 21 +- .../cluster/PutClusterSettingsRequest.java | 16 +- .../cluster/PutComponentTemplateRequest.java | 23 +- .../elasticsearch/cluster/RerouteRequest.java | 22 +- .../elasticsearch/cluster/StateRequest.java | 65 +- .../NodeAllocationExplanation.java | 33 +- .../cluster/state/ClusterStateMetric.java | 81 + .../stats/DenseVectorOffHeapStats.java | 108 + .../ElasticsearchConnectorAsyncClient.java | 84 +- .../ElasticsearchConnectorClient.java | 84 +- .../connector/SyncJobCheckInRequest.java | 7 +- .../connector/SyncJobClaimRequest.java | 10 +- .../connector/SyncJobErrorRequest.java | 6 +- .../connector/SyncJobUpdateStatsRequest.java | 12 +- .../connector/UpdateFeaturesRequest.java | 7 +- .../elasticsearch/core/BulkRequest.java | 43 +- .../core/ClearScrollRequest.java | 5 +- .../core/ClosePointInTimeRequest.java | 14 +- .../elasticsearch/core/CountRequest.java | 63 +- .../elasticsearch/core/CreateRequest.java | 34 +- .../core/DeleteByQueryRequest.java | 32 +- .../core/DeleteByQueryResponse.java | 62 + .../core/DeleteByQueryRethrottleRequest.java | 23 +- .../elasticsearch/core/DeleteRequest.java | 34 +- .../core/DeleteScriptRequest.java | 5 +- .../elasticsearch/core/ExistsRequest.java | 32 +- .../core/ExistsSourceRequest.java | 32 +- .../elasticsearch/core/ExplainRequest.java | 39 +- .../elasticsearch/core/FieldCapsRequest.java | 41 +- .../elasticsearch/core/GetRequest.java | 32 +- .../elasticsearch/core/GetScriptRequest.java | 5 +- .../elasticsearch/core/GetSourceRequest.java | 32 +- .../core/HealthReportRequest.java | 7 +- .../elasticsearch/core/IndexRequest.java | 54 +- .../elasticsearch/core/InfoRequest.java | 8 +- .../elasticsearch/core/MgetRequest.java | 32 +- .../elasticsearch/core/MsearchRequest.java | 40 +- .../core/MtermvectorsRequest.java | 32 +- .../core/OpenPointInTimeRequest.java | 41 +- .../elasticsearch/core/PingRequest.java | 4 +- .../elasticsearch/core/PutScriptRequest.java | 5 +- .../elasticsearch/core/RankEvalRequest.java | 11 +- .../elasticsearch/core/ReindexRequest.java | 10 +- .../elasticsearch/core/ReindexResponse.java | 62 + .../core/ReindexRethrottleRequest.java | 23 +- .../elasticsearch/core/SearchMvtRequest.java | 50 +- .../elasticsearch/core/SearchRequest.java | 41 +- .../core/SearchShardsRequest.java | 32 +- .../core/SearchTemplateRequest.java | 32 +- .../elasticsearch/core/TermsEnumRequest.java | 35 +- .../core/TermvectorsRequest.java | 40 +- .../core/UpdateByQueryRequest.java | 41 +- .../core/UpdateByQueryResponse.java | 62 + .../core/UpdateByQueryRethrottleRequest.java | 23 +- .../elasticsearch/core/UpdateRequest.java | 34 +- .../core/bulk/BulkOperationBase.java | 42 +- .../core/mget/MultiGetOperation.java | 41 +- .../core/msearch/MultisearchHeader.java | 38 +- .../MultiTermVectorsOperation.java | 40 +- .../core/reindex/Destination.java | 47 +- .../core/reindex_rethrottle/ReindexTask.java | 25 + .../core/search/CompletionSuggestOption.java | 38 +- .../DeleteDanglingIndexRequest.java | 43 +- ...asticsearchDanglingIndicesAsyncClient.java | 16 +- .../ElasticsearchDanglingIndicesClient.java | 16 +- .../ImportDanglingIndexRequest.java | 35 +- .../elasticsearch/doc-files/api-spec.html | 2579 +++++++++-------- .../enrich/DeletePolicyRequest.java | 5 +- .../ElasticsearchEnrichAsyncClient.java | 56 +- .../enrich/ElasticsearchEnrichClient.java | 56 +- .../enrich/EnrichStatsRequest.java | 6 +- .../enrich/ExecutePolicyRequest.java | 4 +- .../enrich/GetPolicyRequest.java | 4 +- .../enrich/PutPolicyRequest.java | 4 +- .../eql/ElasticsearchEqlAsyncClient.java | 76 +- .../eql/ElasticsearchEqlClient.java | 76 +- .../elasticsearch/eql/EqlDeleteRequest.java | 6 +- .../elasticsearch/eql/EqlGetRequest.java | 6 +- .../elasticsearch/eql/EqlSearchRequest.java | 44 +- .../eql/GetEqlStatusRequest.java | 6 +- .../elasticsearch/esql/DeleteViewRequest.java | 184 ++ .../esql/DeleteViewResponse.java | 107 + .../clients/elasticsearch/esql/ESQLView.java | 186 ++ .../esql/ElasticsearchEsqlAsyncClient.java | 148 +- .../esql/ElasticsearchEsqlClient.java | 148 +- .../elasticsearch/esql/GetQueryRequest.java | 5 +- .../elasticsearch/esql/GetViewRequest.java | 194 ++ .../elasticsearch/esql/GetViewResponse.java | 182 ++ .../esql/ListQueriesRequest.java | 6 +- .../elasticsearch/esql/PutViewRequest.java | 236 ++ .../elasticsearch/esql/PutViewResponse.java | 107 + .../elasticsearch/esql/QueryRequest.java | 48 +- .../ElasticsearchFeaturesAsyncClient.java | 57 +- .../features/ElasticsearchFeaturesClient.java | 57 +- .../features/GetFeaturesRequest.java | 12 +- .../features/ResetFeaturesRequest.java | 7 +- .../fleet/ElasticsearchFleetAsyncClient.java | 32 +- .../fleet/ElasticsearchFleetClient.java | 32 +- .../fleet/FleetSearchRequest.java | 38 +- .../graph/ElasticsearchGraphAsyncClient.java | 36 +- .../graph/ElasticsearchGraphClient.java | 36 +- .../elasticsearch/graph/ExploreRequest.java | 50 +- .../ilm/DeleteLifecycleRequest.java | 7 +- .../ilm/ElasticsearchIlmAsyncClient.java | 176 +- .../ilm/ElasticsearchIlmClient.java | 176 +- .../ilm/ExplainLifecycleRequest.java | 8 +- .../ilm/MigrateToDataTiersRequest.java | 12 +- .../elasticsearch/ilm/MoveToStepRequest.java | 6 +- .../ilm/PutLifecycleRequest.java | 6 +- .../ilm/RemovePolicyRequest.java | 6 +- .../elasticsearch/ilm/RetryRequest.java | 10 +- .../elasticsearch/ilm/StartIlmRequest.java | 9 +- .../elasticsearch/ilm/StopIlmRequest.java | 9 +- .../indices/AddBlockRequest.java | 36 +- .../clients/elasticsearch/indices/Alias.java | 124 +- .../elasticsearch/indices/AnalyzeRequest.java | 6 +- .../indices/ClearCacheRequest.java | 6 +- .../indices/CloneIndexRequest.java | 6 +- .../indices/CloseIndexRequest.java | 12 +- .../indices/CreateIndexRequest.java | 6 +- .../indices/DataStreamLifecycle.java | 96 +- .../indices/DataStreamsStatsRequest.java | 38 +- .../indices/DeleteAliasRequest.java | 4 +- .../indices/DeleteDataLifecycleRequest.java | 24 +- .../DeleteDataStreamOptionsRequest.java | 26 +- .../indices/DeleteDataStreamRequest.java | 5 +- .../indices/DeleteIndexRequest.java | 8 +- .../indices/DeleteIndexTemplateRequest.java | 10 +- .../DeleteSampleConfigurationRequest.java | 271 ++ .../DeleteSampleConfigurationResponse.java | 110 + .../indices/DeleteTemplateRequest.java | 8 +- .../indices/DiskUsageRequest.java | 10 +- .../indices/DownsampleConfig.java | 37 + .../indices/DownsampleRequest.java | 25 +- .../indices/DownsamplingRound.java | 36 +- .../ElasticsearchIndicesAsyncClient.java | 1128 ++++--- .../indices/ElasticsearchIndicesClient.java | 1134 +++++--- .../elasticsearch/indices/ExistsRequest.java | 5 +- .../indices/ExistsTemplateRequest.java | 16 +- .../indices/ExplainDataLifecycleRequest.java | 26 +- .../indices/FieldUsageStatsRequest.java | 11 +- .../elasticsearch/indices/FlushRequest.java | 18 +- .../indices/ForcemergeRequest.java | 14 +- .../indices/GetAliasRequest.java | 5 +- .../GetAllSampleConfigurationRequest.java | 180 ++ ...=> GetAllSampleConfigurationResponse.java} | 91 +- .../indices/GetDataLifecycleStatsRequest.java | 6 +- .../indices/GetFieldMappingRequest.java | 7 +- .../indices/GetIndexRequest.java | 6 +- .../indices/GetIndexTemplateRequest.java | 18 +- .../indices/GetIndicesSettingsRequest.java | 14 +- .../indices/GetMappingRequest.java | 6 +- .../GetSampleConfigurationRequest.java | 228 ++ .../GetSampleConfigurationResponse.java | 190 ++ .../indices/GetSampleRequest.java | 182 ++ .../indices/GetSampleResponse.java | 183 ++ .../indices/GetSampleStatsRequest.java | 184 ++ .../indices/GetSampleStatsResponse.java | 526 ++++ .../indices/GetTemplateRequest.java | 13 +- .../indices/IndexTemplateSummary.java | 14 +- .../indices/IndicesStatsRequest.java | 37 +- .../indices/MigrateToDataStreamRequest.java | 20 +- .../indices/ModifyDataStreamRequest.java | 6 +- .../elasticsearch/indices/OpenRequest.java | 5 +- .../indices/PromoteDataStreamRequest.java | 10 +- .../indices/PutAliasRequest.java | 129 +- .../indices/PutDataLifecycleRequest.java | 87 +- .../indices/PutDataStreamOptionsRequest.java | 5 +- .../indices/PutIndexTemplateRequest.java | 10 +- .../indices/PutIndicesSettingsRequest.java | 6 +- .../indices/PutMappingRequest.java | 12 +- .../PutSampleConfigurationRequest.java | 480 +++ .../PutSampleConfigurationResponse.java | 110 + .../indices/PutTemplateRequest.java | 13 +- .../indices/RecoveryRequest.java | 8 +- .../elasticsearch/indices/RefreshRequest.java | 8 +- .../indices/ReloadSearchAnalyzersRequest.java | 7 +- .../indices/RemoveBlockRequest.java | 36 +- .../indices/ResolveIndexRequest.java | 53 +- .../indices/RolloverRequest.java | 9 +- .../indices/SamplingConfiguration.java | 424 +++ .../elasticsearch/indices/SamplingMethod.java | 66 + .../indices/SegmentsRequest.java | 7 +- .../indices/ShardStoresRequest.java | 8 +- .../elasticsearch/indices/ShrinkRequest.java | 4 +- .../indices/SimulateIndexTemplateRequest.java | 6 +- .../indices/SimulateTemplateRequest.java | 6 +- .../elasticsearch/indices/SplitRequest.java | 4 +- .../indices/UpdateAliasesRequest.java | 4 +- .../indices/ValidateQueryRequest.java | 4 +- .../IndexSamplingConfiguration.java | 190 ++ .../indices/get_sample/RawDocument.java | 222 ++ .../IndexTemplateMapping.java | 38 + .../indices/update_aliases/AddAction.java | 125 +- .../inference/AlibabaCloudTaskType.java | 2 +- .../AzureAiStudioServiceSettings.java | 8 +- .../inference/AzureOpenAIServiceSettings.java | 9 +- .../inference/AzureOpenAITaskSettings.java | 12 +- .../inference/AzureOpenAITaskType.java | 2 + .../ChatCompletionUnifiedRequest.java | 10 +- .../inference/CompletionRequest.java | 14 +- .../inference/CustomResponseParams.java | 32 + .../inference/CustomServiceSettings.java | 50 +- .../inference/DeleteInferenceRequest.java | 15 +- .../ElasticsearchInferenceAsyncClient.java | 225 +- .../ElasticsearchInferenceClient.java | 227 +- .../inference/GetInferenceRequest.java | 6 +- .../inference/GoogleModelGardenProvider.java | 75 + .../GoogleVertexAIServiceSettings.java | 271 +- .../inference/GoogleVertexAITaskSettings.java | 47 + .../inference/GroqServiceSettings.java | 271 ++ .../inference/GroqServiceType.java | 65 + .../elasticsearch/inference/GroqTaskType.java | 64 + .../inference/InferenceEndpointInfoGroq.java | 141 + .../InferenceEndpointInfoNvidia.java | 141 + .../InferenceEndpointInfoOpenShiftAi.java | 141 + .../inference/NvidiaInputType.java | 67 + .../inference/NvidiaServiceSettings.java | 386 +++ .../inference/NvidiaServiceType.java | 65 + .../inference/NvidiaSimilarityType.java | 69 + .../inference/NvidiaTaskSettings.java | 233 ++ .../inference/NvidiaTaskType.java | 70 + .../inference/OpenAITaskSettings.java | 50 + .../inference/OpenShiftAiServiceSettings.java | 361 +++ .../inference/OpenShiftAiServiceType.java | 65 + .../inference/OpenShiftAiSimilarityType.java | 69 + .../inference/OpenShiftAiTaskSettings.java | 204 ++ .../inference/OpenShiftAiTaskType.java | 71 + .../inference/PutAlibabacloudRequest.java | 12 +- .../inference/PutAmazonbedrockRequest.java | 12 +- .../inference/PutAmazonsagemakerRequest.java | 15 +- .../inference/PutAnthropicRequest.java | 49 +- .../inference/PutAzureaistudioRequest.java | 18 +- .../inference/PutAzureopenaiRequest.java | 12 +- .../inference/PutCohereRequest.java | 12 +- .../inference/PutContextualaiRequest.java | 43 - .../inference/PutCustomRequest.java | 12 +- .../inference/PutDeepseekRequest.java | 43 - .../inference/PutElasticsearchRequest.java | 9 +- .../inference/PutGoogleaistudioRequest.java | 12 +- .../inference/PutGooglevertexaiRequest.java | 15 +- .../inference/PutGroqRequest.java | 354 +++ .../inference/PutGroqResponse.java | 106 + .../inference/PutHuggingFaceRequest.java | 15 +- .../inference/PutJinaaiRequest.java | 12 +- .../inference/PutLlamaRequest.java | 12 +- .../inference/PutMistralRequest.java | 12 +- .../inference/PutNvidiaRequest.java | 464 +++ .../inference/PutNvidiaResponse.java | 106 + .../inference/PutOpenaiRequest.java | 12 +- .../inference/PutOpenshiftAiRequest.java | 470 +++ .../inference/PutOpenshiftAiResponse.java | 108 + .../elasticsearch/inference/PutRequest.java | 10 +- .../inference/PutVoyageaiRequest.java | 12 +- .../inference/PutWatsonxRequest.java | 49 + .../inference/RateLimitSetting.java | 10 +- .../inference/RequestChatCompletion.java | 6 +- .../inference/RerankRequest.java | 2 +- .../inference/SparseEmbeddingRequest.java | 10 +- .../inference/StreamCompletionRequest.java | 16 +- .../inference/TaskTypeAzureOpenAI.java | 2 + .../inference/TaskTypeGoogleVertexAI.java | 4 + .../elasticsearch/inference/TaskTypeGroq.java | 64 + .../inference/TaskTypeNvidia.java | 70 + .../inference/TaskTypeOpenShiftAi.java | 71 + .../inference/TextEmbeddingRequest.java | 10 +- .../elasticsearch/ingest/AppendProcessor.java | 74 + .../elasticsearch/ingest/CefProcessor.java | 294 ++ .../ingest/DeletePipelineRequest.java | 4 +- .../ElasticsearchIngestAsyncClient.java | 35 +- .../ingest/ElasticsearchIngestClient.java | 35 +- .../ingest/GeoIpStatsRequest.java | 6 +- .../ingest/GetPipelineRequest.java | 4 +- .../elasticsearch/ingest/Processor.java | 30 + .../ingest/ProcessorBuilders.java | 17 + .../ingest/ProcessorGrokRequest.java | 11 +- .../ingest/PutPipelineRequest.java | 14 +- .../ElasticsearchLicenseAsyncClient.java | 15 +- .../license/ElasticsearchLicenseClient.java | 15 +- .../license/PostStartBasicRequest.java | 4 +- .../license/PostStartTrialRequest.java | 13 +- .../logstash/DeletePipelineRequest.java | 8 +- .../ElasticsearchLogstashAsyncClient.java | 31 +- .../logstash/ElasticsearchLogstashClient.java | 31 +- .../logstash/GetPipelineRequest.java | 5 +- .../migration/DeprecationsRequest.java | 8 +- .../ElasticsearchMigrationAsyncClient.java | 41 +- .../ElasticsearchMigrationClient.java | 41 +- .../GetFeatureUpgradeStatusRequest.java | 9 +- .../migration/PostFeatureUpgradeRequest.java | 8 +- .../ml/ElasticsearchMlAsyncClient.java | 819 +++--- .../ml/ElasticsearchMlClient.java | 819 +++--- .../elasticsearch/ml/FlushJobRequest.java | 18 +- .../elasticsearch/ml/GetBucketsRequest.java | 5 +- .../ml/GetCategoriesRequest.java | 13 +- .../ml/GetDataFrameAnalyticsRequest.java | 8 +- .../ml/GetDatafeedStatsRequest.java | 11 +- .../elasticsearch/ml/GetDatafeedsRequest.java | 11 +- .../elasticsearch/ml/GetFiltersRequest.java | 4 +- .../ml/GetInfluencersRequest.java | 7 +- .../elasticsearch/ml/GetJobsRequest.java | 13 +- .../ml/GetMemoryStatsRequest.java | 8 +- .../elasticsearch/ml/GetRecordsRequest.java | 20 +- .../ml/GetTrainedModelsStatsRequest.java | 8 +- .../elasticsearch/ml/MlInfoRequest.java | 15 +- .../ml/PreviewDataFrameAnalyticsRequest.java | 5 +- .../ml/PreviewDatafeedRequest.java | 22 +- .../ml/PutDataFrameAnalyticsRequest.java | 10 +- .../elasticsearch/ml/PutDatafeedRequest.java | 12 +- .../elasticsearch/ml/PutFilterRequest.java | 6 +- .../ml/PutTrainedModelAliasRequest.java | 28 +- .../ml/PutTrainedModelRequest.java | 6 +- .../ml/PutTrainedModelVocabularyRequest.java | 9 +- .../elasticsearch/ml/ResetJobRequest.java | 9 +- .../ml/RevertModelSnapshotRequest.java | 17 +- .../ml/SetUpgradeModeRequest.java | 24 +- .../ml/StartDataFrameAnalyticsRequest.java | 59 +- .../StartTrainedModelDeploymentRequest.java | 9 +- .../ml/StopDataFrameAnalyticsRequest.java | 73 +- .../elasticsearch/ml/StopDatafeedRequest.java | 40 +- .../ml/StopTrainedModelDeploymentRequest.java | 91 +- .../ml/UpdateDatafeedRequest.java | 12 +- .../elasticsearch/ml/UpdateFilterRequest.java | 6 +- .../elasticsearch/ml/UpdateJobRequest.java | 5 +- .../ml/UpdateModelSnapshotRequest.java | 4 +- .../ml/UpgradeJobSnapshotRequest.java | 18 +- .../elasticsearch/monitoring/BulkRequest.java | 77 +- .../ElasticsearchMonitoringAsyncClient.java | 10 +- .../ElasticsearchMonitoringClient.java | 10 +- ...earRepositoriesMeteringArchiveRequest.java | 5 +- .../nodes/ElasticsearchNodesAsyncClient.java | 75 +- .../nodes/ElasticsearchNodesClient.java | 75 +- .../GetRepositoriesMeteringInfoRequest.java | 13 +- .../nodes/HotThreadsRequest.java | 11 +- .../elasticsearch/nodes/NodeReloadResult.java | 151 + .../elasticsearch/nodes/NodesInfoRequest.java | 25 +- .../nodes/NodesStatsRequest.java | 74 +- .../nodes/NodesUsageRequest.java | 46 +- .../nodes/info/NodesInfoMetric.java | 90 + .../nodes/stats/NodeStatsMetric.java | 100 + .../nodes/usage/NodesUsageMetric.java | 68 + .../ElasticsearchProjectAsyncClient.java | 44 +- .../project/ElasticsearchProjectClient.java | 45 +- .../elasticsearch/project/TagsRequest.java | 80 +- .../query_rules/DeleteRuleRequest.java | 8 +- .../query_rules/DeleteRulesetRequest.java | 6 +- .../ElasticsearchQueryRulesAsyncClient.java | 94 +- .../ElasticsearchQueryRulesClient.java | 94 +- .../query_rules/GetRuleRequest.java | 4 +- .../query_rules/GetRulesetRequest.java | 4 +- .../query_rules/ListRulesetsRequest.java | 4 +- .../query_rules/PutRuleRequest.java | 5 +- .../query_rules/PutRulesetRequest.java | 8 +- .../query_rules/TestRequest.java | 6 +- .../ElasticsearchRollupAsyncClient.java | 127 +- .../rollup/ElasticsearchRollupClient.java | 127 +- .../elasticsearch/rollup/GetJobsRequest.java | 5 +- .../rollup/GetRollupCapsRequest.java | 6 +- .../rollup/GetRollupIndexCapsRequest.java | 10 +- .../rollup/RollupSearchRequest.java | 12 +- .../elasticsearch/rollup/StartJobRequest.java | 7 +- .../elasticsearch/rollup/StopJobRequest.java | 6 +- .../DeleteBehavioralAnalyticsRequest.java | 5 +- ...ticsearchSearchApplicationAsyncClient.java | 92 +- .../ElasticsearchSearchApplicationClient.java | 92 +- .../search_application/ListRequest.java | 4 +- .../RenderQueryRequest.java | 15 +- .../SearchApplicationSearchRequest.java | 10 +- .../CacheStatsRequest.java | 5 +- .../ClearCacheRequest.java | 12 +- ...csearchSearchableSnapshotsAsyncClient.java | 49 +- ...lasticsearchSearchableSnapshotsClient.java | 49 +- .../searchable_snapshots/MountRequest.java | 8 +- .../security/BulkUpdateApiKeysRequest.java | 4 +- .../ClearCachedPrivilegesRequest.java | 36 +- .../security/CreateServiceTokenRequest.java | 8 +- .../security/DeleteServiceTokenRequest.java | 8 +- .../ElasticsearchSecurityAsyncClient.java | 8 +- .../security/ElasticsearchSecurityClient.java | 8 +- .../security/QueryRoleRequest.java | 24 +- .../security/SamlAuthenticateResponse.java | 34 + .../shutdown/DeleteNodeRequest.java | 10 +- .../ElasticsearchShutdownAsyncClient.java | 20 +- .../shutdown/ElasticsearchShutdownClient.java | 20 +- .../shutdown/GetNodeRequest.java | 6 +- .../ElasticsearchSimulateAsyncClient.java | 14 +- .../simulate/ElasticsearchSimulateClient.java | 14 +- .../elasticsearch/simulate/IngestRequest.java | 7 +- .../slm/DeleteLifecycleRequest.java | 8 +- .../slm/ElasticsearchSlmAsyncClient.java | 181 +- .../slm/ElasticsearchSlmClient.java | 181 +- .../slm/ExecuteLifecycleRequest.java | 10 +- .../slm/ExecuteRetentionRequest.java | 9 +- .../slm/GetLifecycleRequest.java | 12 +- .../elasticsearch/slm/GetStatsRequest.java | 6 +- .../slm/PutLifecycleRequest.java | 8 +- .../elasticsearch/slm/StartSlmRequest.java | 8 +- .../elasticsearch/slm/StopSlmRequest.java | 14 +- .../snapshot/CleanupRepositoryRequest.java | 7 +- .../snapshot/CloneSnapshotRequest.java | 5 +- .../snapshot/CreateRepositoryRequest.java | 10 +- .../snapshot/CreateSnapshotRequest.java | 5 +- .../snapshot/DeleteRepositoryRequest.java | 9 +- .../snapshot/DeleteSnapshotRequest.java | 34 +- .../ElasticsearchSnapshotAsyncClient.java | 120 +- .../snapshot/ElasticsearchSnapshotClient.java | 120 +- .../RepositoryVerifyIntegrityRequest.java | 5 +- .../snapshot/RestoreRequest.java | 5 +- .../snapshot/SnapshotStatusRequest.java | 6 +- .../snapshot/VerifyRepositoryRequest.java | 5 +- .../elasticsearch/sql/DeleteAsyncRequest.java | 6 +- .../sql/ElasticsearchSqlAsyncClient.java | 64 +- .../sql/ElasticsearchSqlClient.java | 64 +- .../elasticsearch/sql/GetAsyncRequest.java | 6 +- .../sql/GetAsyncStatusRequest.java | 6 +- .../elasticsearch/sql/QueryRequest.java | 31 +- .../elasticsearch/sql/TranslateRequest.java | 8 +- .../synonyms/DeleteSynonymRuleRequest.java | 4 +- .../ElasticsearchSynonymsAsyncClient.java | 52 +- .../synonyms/ElasticsearchSynonymsClient.java | 52 +- .../synonyms/GetSynonymRuleRequest.java | 4 +- .../synonyms/GetSynonymsSetsRequest.java | 4 +- .../synonyms/PutSynonymRequest.java | 7 +- .../synonyms/PutSynonymRuleRequest.java | 5 +- .../tasks/ElasticsearchTasksAsyncClient.java | 28 +- .../tasks/ElasticsearchTasksClient.java | 28 +- .../elasticsearch/tasks/GetTasksRequest.java | 5 +- .../elasticsearch/tasks/ListRequest.java | 6 +- ...ElasticsearchTextStructureAsyncClient.java | 40 +- .../ElasticsearchTextStructureClient.java | 40 +- .../FindFieldStructureRequest.java | 44 +- .../FindMessageStructureRequest.java | 45 +- .../TestGrokPatternRequest.java | 8 +- .../ElasticsearchTransformAsyncClient.java | 148 +- .../ElasticsearchTransformClient.java | 148 +- .../transform/GetNodeStatsRequest.java | 101 + .../transform/GetNodeStatsResponse.java | 108 + .../transform/GetTransformRequest.java | 4 +- .../transform/PreviewTransformRequest.java | 6 +- .../transform/PutTransformRequest.java | 4 +- .../transform/SetUpgradeModeRequest.java | 24 +- .../transform/StopTransformRequest.java | 4 +- .../transform/UpdateTransformRequest.java | 4 +- .../TransformNodeFullStats.java | 189 ++ .../get_node_stats/TransformNodeStats.java | 163 ++ .../TransformSchedulerStats.java | 190 ++ .../watcher/AckWatchRequest.java | 6 +- .../watcher/ActivateWatchRequest.java | 4 +- .../watcher/DeactivateWatchRequest.java | 4 +- .../watcher/DeleteWatchRequest.java | 7 +- .../ElasticsearchWatcherAsyncClient.java | 188 +- .../watcher/ElasticsearchWatcherClient.java | 188 +- .../watcher/ExecuteWatchRequest.java | 7 +- .../watcher/GetWatcherSettingsRequest.java | 6 +- .../watcher/PutWatchRequest.java | 18 +- .../watcher/QueryWatchesRequest.java | 6 +- .../watcher/StartWatcherRequest.java | 5 +- .../watcher/StopWatcherRequest.java | 4 +- .../watcher/UpdateSettingsRequest.java | 8 +- .../watcher/WatcherStatsRequest.java | 6 +- .../xpack/ElasticsearchXpackAsyncClient.java | 33 +- .../xpack/ElasticsearchXpackClient.java | 33 +- .../elasticsearch/xpack/XpackInfoRequest.java | 14 +- .../xpack/XpackUsageRequest.java | 7 +- 520 files changed, 25378 insertions(+), 7072 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetrieverTypes.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntry.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntryBuilders.java rename java-client/src/main/java/co/elastic/clients/elasticsearch/{core/reindex_rethrottle => _types}/ReindexStatus.java (84%) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ExponentialHistogramProperty.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java rename java-client/src/main/java/co/elastic/clients/elasticsearch/indices/{DataStreamLifecycleDownsampling.java => GetAllSampleConfigurationResponse.java} (55%) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingMethod.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_all_sample_configuration/IndexSamplingConfiguration.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_sample/RawDocument.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleModelGardenProvider.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqTaskType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoGroq.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoNvidia.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoOpenShiftAi.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaInputType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaSimilarityType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiSimilarityType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskType.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGroq.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeNvidia.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeOpenShiftAi.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CefProcessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodesInfoMetric.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/NodeStatsMetric.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodesUsageMetric.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeFullStats.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 2d5fe918ef..a6bbc122f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -383,10 +383,11 @@ public ElasticsearchXpackAsyncClient xpack() { // ----- Endpoint: bulk /** - * Bulk index or delete documents. Perform multiple index, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

+ * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

* If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -483,6 +484,8 @@ public ElasticsearchXpackAsyncClient xpack() { * Search::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -562,10 +565,11 @@ public CompletableFuture bulk(BulkRequest request) { } /** - * Bulk index or delete documents. Perform multiple index, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

    + * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -662,6 +666,8 @@ public CompletableFuture bulk(BulkRequest request) { * Search::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -741,10 +747,11 @@ public final CompletableFuture bulk(Functionindex, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

    + * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -841,6 +848,8 @@ public final CompletableFuture bulk(FunctionSearch::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -920,8 +929,9 @@ public CompletableFuture bulk() { // ----- Endpoint: clear_scroll /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @see Documentation @@ -936,8 +946,9 @@ public CompletableFuture clearScroll(ClearScrollRequest req } /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @param fn * a function that initializes a builder to create the @@ -953,8 +964,9 @@ public final CompletableFuture clearScroll( } /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @see Documentation @@ -969,12 +981,14 @@ public CompletableFuture clearScroll() { // ----- Endpoint: close_point_in_time /** - * Close a point in time. A point in time must be opened explicitly before being - * used in search requests. The keep_alive parameter tells - * Elasticsearch how long it should persist. A point in time is automatically - * closed when the keep_alive period has elapsed. However, keeping - * points in time has a cost; close them as soon as they are no longer required - * for search requests. + * Close a point in time. + *

    + * A point in time must be opened explicitly before being used in search + * requests. The keep_alive parameter tells Elasticsearch how long + * it should persist. A point in time is automatically closed when the + * keep_alive period has elapsed. However, keeping points in time + * has a cost; close them as soon as they are no longer required for search + * requests. * * @see Documentation @@ -989,12 +1003,14 @@ public CompletableFuture closePointInTime(ClosePointIn } /** - * Close a point in time. A point in time must be opened explicitly before being - * used in search requests. The keep_alive parameter tells - * Elasticsearch how long it should persist. A point in time is automatically - * closed when the keep_alive period has elapsed. However, keeping - * points in time has a cost; close them as soon as they are no longer required - * for search requests. + * Close a point in time. + *

    + * A point in time must be opened explicitly before being used in search + * requests. The keep_alive parameter tells Elasticsearch how long + * it should persist. A point in time is automatically closed when the + * keep_alive period has elapsed. However, keeping points in time + * has a cost; close them as soon as they are no longer required for search + * requests. * * @param fn * a function that initializes a builder to create the @@ -1012,7 +1028,9 @@ public final CompletableFuture closePointInTime( // ----- Endpoint: count /** - * Count search results. Get the number of documents matching a query. + * Count search results. + *

    + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1039,7 +1057,9 @@ public CompletableFuture count(CountRequest request) { } /** - * Count search results. Get the number of documents matching a query. + * Count search results. + *

    + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1067,7 +1087,9 @@ public final CompletableFuture count( } /** - * Count search results. Get the number of documents matching a query. + * Count search results. + *

    + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1839,8 +1861,9 @@ public final CompletableFuture deleteByQueryRet // ----- Endpoint: delete_script /** - * Delete a script or search template. Deletes a stored script or search - * template. + * Delete a script or search template. + *

    + * Deletes a stored script or search template. * * @see Documentation @@ -1855,8 +1878,9 @@ public CompletableFuture deleteScript(DeleteScriptRequest } /** - * Delete a script or search template. Deletes a stored script or search - * template. + * Delete a script or search template. + *

    + * Deletes a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -2002,9 +2026,10 @@ public final CompletableFuture existsSource( // ----- Endpoint: explain /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @see Documentation @@ -2022,9 +2047,10 @@ public CompletableFuture> explain(Explain } /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @param fn * a function that initializes a builder to create the @@ -2061,9 +2087,10 @@ public final CompletableFuture> explain( } /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @see Documentation @@ -2081,9 +2108,10 @@ public CompletableFuture> explain(Explain } /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @param fn * a function that initializes a builder to create the @@ -2541,8 +2569,9 @@ public final CompletableFuture> get( // ----- Endpoint: get_script /** - * Get a script or search template. Retrieves a stored script or search - * template. + * Get a script or search template. + *

    + * Retrieves a stored script or search template. * * @see Documentation @@ -2557,8 +2586,9 @@ public CompletableFuture getScript(GetScriptRequest request) } /** - * Get a script or search template. Retrieves a stored script or search - * template. + * Get a script or search template. + *

    + * Retrieves a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -2761,9 +2791,10 @@ public final CompletableFuture> getSour // ----- Endpoint: health_report /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -2803,9 +2834,10 @@ public CompletableFuture healthReport(HealthReportRequest } /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -2846,9 +2878,10 @@ public final CompletableFuture healthReport( } /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -3069,15 +3102,21 @@ public CompletableFuture healthReport() { * "id": "elkbee" * } * } - * - * In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. - * If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). - * - * A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. - * Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. * * - * + *

    + * In this example, the operation will succeed since the supplied version of 2 + * is higher than the current document version of 1. If the document was already + * updated and its version was set to 2 or higher, the indexing command will + * fail and result in a conflict (409 HTTP status code). + *

    + * A nice side effect is that there is no need to maintain strict ordering of + * async indexing operations run as a result of changes to a source database, as + * long as version numbers from the source database are used. Even the simple + * case of updating the Elasticsearch index using data from a database is + * simplified if external versioning is used, as only the latest version will be + * used if the index operations arrive out of order. + * * @see Documentation * on elastic.co @@ -3272,15 +3311,21 @@ public CompletableFuture index(IndexRequest * - * + *

    + * In this example, the operation will succeed since the supplied version of 2 + * is higher than the current document version of 1. If the document was already + * updated and its version was set to 2 or higher, the indexing command will + * fail and result in a conflict (409 HTTP status code). + *

    + * A nice side effect is that there is no need to maintain strict ordering of + * async indexing operations run as a result of changes to a source database, as + * long as version numbers from the source database are used. Even the simple + * case of updating the Elasticsearch index using data from a database is + * simplified if external versioning is used, as only the latest version will be + * used if the index operations arrive out of order. + * * @param fn * a function that initializes a builder to create the * {@link IndexRequest} @@ -3297,9 +3342,11 @@ public final CompletableFuture index( // ----- Endpoint: info /** - * Get cluster info. Get basic build, version, and cluster information. ::: In - * Serverless, this API is retained for backward compatibility only. Some - * response fields, such as the version number, should be ignored. + * Get cluster info. + *

    + * Get basic build, version, and cluster information. ::: In Serverless, this + * API is retained for backward compatibility only. Some response fields, such + * as the version number, should be ignored. * * @see Documentation @@ -4048,7 +4095,9 @@ public final CompletableFuture openPointInTime( // ----- Endpoint: ping /** - * Ping the cluster. Get information about whether the cluster is running. + * Ping the cluster. + *

    + * Get information about whether the cluster is running. * * @see Documentation @@ -4061,8 +4110,9 @@ public CompletableFuture ping() { // ----- Endpoint: put_script /** - * Create or update a script or search template. Creates or updates a stored - * script or search template. + * Create or update a script or search template. + *

    + * Creates or updates a stored script or search template. * * @see Documentation @@ -4077,8 +4127,9 @@ public CompletableFuture putScript(PutScriptRequest request) } /** - * Create or update a script or search template. Creates or updates a stored - * script or search template. + * Create or update a script or search template. + *

    + * Creates or updates a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -4165,9 +4216,13 @@ public final CompletableFuture rankEval( * alias. * *

    - * If reindexing from a remote cluster, you must explicitly allow the remote - * host in the reindex.remote.whitelist setting. Automatic data - * stream creation requires a matching index template with data stream enabled. + * If reindexing from a remote cluster into a cluster using Elastic Stack, you + * must explicitly allow the remote host using the + * reindex.remote.whitelist node setting on the destination + * cluster. If reindexing from a remote cluster into an Elastic Cloud Serverless + * project, only remote hosts from Elastic Cloud Hosted are allowed. Automatic + * data stream creation requires a matching index template with data stream + * enabled. *

    * The dest element can be configured like the index API to control * optimistic concurrency control. Omitting version_type or setting @@ -4257,9 +4312,13 @@ public CompletableFuture reindex(ReindexRequest request) { * alias. * *

    - * If reindexing from a remote cluster, you must explicitly allow the remote - * host in the reindex.remote.whitelist setting. Automatic data - * stream creation requires a matching index template with data stream enabled. + * If reindexing from a remote cluster into a cluster using Elastic Stack, you + * must explicitly allow the remote host using the + * reindex.remote.whitelist node setting on the destination + * cluster. If reindexing from a remote cluster into an Elastic Cloud Serverless + * project, only remote hosts from Elastic Cloud Hosted are allowed. Automatic + * data stream creation requires a matching index template with data stream + * enabled. *

    * The dest element can be configured like the index API to control * optimistic concurrency control. Omitting version_type or setting @@ -6140,10 +6199,11 @@ public final CompletableFuture + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or alias: @@ -6301,10 +6361,11 @@ public CompletableFuture updateByQuery(UpdateByQueryReque } /** - * Update documents. Updates documents that match the specified query. If no - * query is specified, performs an update on every document in the data stream - * or index without modifying the source, which is useful for picking up mapping - * changes. + * Update documents. + *

    + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or alias: diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index fa0bc36ac5..ee5860cd36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -383,10 +383,11 @@ public ElasticsearchXpackClient xpack() { // ----- Endpoint: bulk /** - * Bulk index or delete documents. Perform multiple index, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

    + * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -483,6 +484,8 @@ public ElasticsearchXpackClient xpack() { * Search::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -562,10 +565,11 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE } /** - * Bulk index or delete documents. Perform multiple index, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

    + * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -662,6 +666,8 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE * Search::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -742,10 +748,11 @@ public final BulkResponse bulk(Functionindex, - * create, delete, and update actions in - * a single request. This reduces overhead and can greatly increase indexing - * speed. + * Bulk index or delete documents. + *

    + * Perform multiple index, create, + * delete, and update actions in a single request. + * This reduces overhead and can greatly increase indexing speed. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or index alias: @@ -842,6 +849,8 @@ public final BulkResponse bulk(FunctionSearch::Elasticsearch::Client::5_0::Scroll *

  • Python: Check out elasticsearch.helpers.*
  • *
  • JavaScript: Check out client.helpers.*
  • + *
  • Java: Check out + * co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester
  • *
  • .NET: Check out BulkAllObservable
  • *
  • PHP: Check out bulk indexing.
  • *
  • Ruby: Check out Elasticsearch::Helpers::BulkHelper
  • @@ -921,8 +930,9 @@ public BulkResponse bulk() throws IOException, ElasticsearchException { // ----- Endpoint: clear_scroll /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @see Documentation @@ -937,8 +947,9 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce } /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @param fn * a function that initializes a builder to create the @@ -955,8 +966,9 @@ public final ClearScrollResponse clearScroll( } /** - * Clear a scrolling search. Clear the search context and results for a - * scrolling search. + * Clear a scrolling search. + *

    + * Clear the search context and results for a scrolling search. * * @see Documentation @@ -971,12 +983,14 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept // ----- Endpoint: close_point_in_time /** - * Close a point in time. A point in time must be opened explicitly before being - * used in search requests. The keep_alive parameter tells - * Elasticsearch how long it should persist. A point in time is automatically - * closed when the keep_alive period has elapsed. However, keeping - * points in time has a cost; close them as soon as they are no longer required - * for search requests. + * Close a point in time. + *

    + * A point in time must be opened explicitly before being used in search + * requests. The keep_alive parameter tells Elasticsearch how long + * it should persist. A point in time is automatically closed when the + * keep_alive period has elapsed. However, keeping points in time + * has a cost; close them as soon as they are no longer required for search + * requests. * * @see Documentation @@ -992,12 +1006,14 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request } /** - * Close a point in time. A point in time must be opened explicitly before being - * used in search requests. The keep_alive parameter tells - * Elasticsearch how long it should persist. A point in time is automatically - * closed when the keep_alive period has elapsed. However, keeping - * points in time has a cost; close them as soon as they are no longer required - * for search requests. + * Close a point in time. + *

    + * A point in time must be opened explicitly before being used in search + * requests. The keep_alive parameter tells Elasticsearch how long + * it should persist. A point in time is automatically closed when the + * keep_alive period has elapsed. However, keeping points in time + * has a cost; close them as soon as they are no longer required for search + * requests. * * @param fn * a function that initializes a builder to create the @@ -1016,7 +1032,9 @@ public final ClosePointInTimeResponse closePointInTime( // ----- Endpoint: count /** - * Count search results. Get the number of documents matching a query. + * Count search results. + *

    + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1043,7 +1061,9 @@ public CountResponse count(CountRequest request) throws IOException, Elasticsear } /** - * Count search results. Get the number of documents matching a query. + * Count search results. + *

    + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1071,7 +1091,9 @@ public final CountResponse count(Function + * Get the number of documents matching a query. *

    * The query can be provided either by using a simple query string as a * parameter, or by defining Query DSL within the request body. The query is @@ -1848,8 +1870,9 @@ public final DeleteByQueryRethrottleResponse deleteByQueryRethrottle( // ----- Endpoint: delete_script /** - * Delete a script or search template. Deletes a stored script or search - * template. + * Delete a script or search template. + *

    + * Deletes a stored script or search template. * * @see Documentation @@ -1864,8 +1887,9 @@ public DeleteScriptResponse deleteScript(DeleteScriptRequest request) throws IOE } /** - * Delete a script or search template. Deletes a stored script or search - * template. + * Delete a script or search template. + *

    + * Deletes a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -2013,9 +2037,10 @@ public final BooleanResponse existsSource( // ----- Endpoint: explain /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @see Documentation @@ -2033,9 +2058,10 @@ public ExplainResponse explain(ExplainRequest request, Cl } /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @param fn * a function that initializes a builder to create the @@ -2073,9 +2099,10 @@ public final ExplainResponse explain(Function + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @see Documentation @@ -2093,9 +2120,10 @@ public ExplainResponse explain(ExplainRequest request, Ty } /** - * Explain a document match result. Get information about why a specific - * document matches, or doesn't match, a query. It computes a score explanation - * for a query and a specific document. + * Explain a document match result. + *

    + * Get information about why a specific document matches, or doesn't match, a + * query. It computes a score explanation for a query and a specific document. * * @param fn * a function that initializes a builder to create the @@ -2556,8 +2584,9 @@ public final GetResponse get(Function + * Retrieves a stored script or search template. * * @see Documentation @@ -2572,8 +2601,9 @@ public GetScriptResponse getScript(GetScriptRequest request) throws IOException, } /** - * Get a script or search template. Retrieves a stored script or search - * template. + * Get a script or search template. + *

    + * Retrieves a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -2779,9 +2809,10 @@ public final GetSourceResponse getSource( // ----- Endpoint: health_report /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -2821,9 +2852,10 @@ public HealthReportResponse healthReport(HealthReportRequest request) throws IOE } /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -2865,9 +2897,10 @@ public final HealthReportResponse healthReport( } /** - * Get the cluster health. Get a report with the health status of an - * Elasticsearch cluster. The report contains a list of indicators that compose - * Elasticsearch functionality. + * Get the cluster health. + *

    + * Get a report with the health status of an Elasticsearch cluster. The report + * contains a list of indicators that compose Elasticsearch functionality. *

    * Each indicator has a health status of: green, unknown, yellow or red. The * indicator will provide an explanation and metadata describing the reason for @@ -3088,15 +3121,21 @@ public HealthReportResponse healthReport() throws IOException, ElasticsearchExce * "id": "elkbee" * } * } - * - * In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. - * If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). - * - * A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. - * Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. * * - * + *

    + * In this example, the operation will succeed since the supplied version of 2 + * is higher than the current document version of 1. If the document was already + * updated and its version was set to 2 or higher, the indexing command will + * fail and result in a conflict (409 HTTP status code). + *

    + * A nice side effect is that there is no need to maintain strict ordering of + * async indexing operations run as a result of changes to a source database, as + * long as version numbers from the source database are used. Even the simple + * case of updating the Elasticsearch index using data from a database is + * simplified if external versioning is used, as only the latest version will be + * used if the index operations arrive out of order. + * * @see Documentation * on elastic.co @@ -3291,15 +3330,21 @@ public IndexResponse index(IndexRequest request) throws I * "id": "elkbee" * } * } - * - * In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. - * If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). - * - * A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. - * Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. * * - * + *

    + * In this example, the operation will succeed since the supplied version of 2 + * is higher than the current document version of 1. If the document was already + * updated and its version was set to 2 or higher, the indexing command will + * fail and result in a conflict (409 HTTP status code). + *

    + * A nice side effect is that there is no need to maintain strict ordering of + * async indexing operations run as a result of changes to a source database, as + * long as version numbers from the source database are used. Even the simple + * case of updating the Elasticsearch index using data from a database is + * simplified if external versioning is used, as only the latest version will be + * used if the index operations arrive out of order. + * * @param fn * a function that initializes a builder to create the * {@link IndexRequest} @@ -3317,9 +3362,11 @@ public final IndexResponse index( // ----- Endpoint: info /** - * Get cluster info. Get basic build, version, and cluster information. ::: In - * Serverless, this API is retained for backward compatibility only. Some - * response fields, such as the version number, should be ignored. + * Get cluster info. + *

    + * Get basic build, version, and cluster information. ::: In Serverless, this + * API is retained for backward compatibility only. Some response fields, such + * as the version number, should be ignored. * * @see Documentation @@ -4077,7 +4124,9 @@ public final OpenPointInTimeResponse openPointInTime( // ----- Endpoint: ping /** - * Ping the cluster. Get information about whether the cluster is running. + * Ping the cluster. + *

    + * Get information about whether the cluster is running. * * @see Documentation @@ -4090,8 +4139,9 @@ public BooleanResponse ping() throws IOException, ElasticsearchException { // ----- Endpoint: put_script /** - * Create or update a script or search template. Creates or updates a stored - * script or search template. + * Create or update a script or search template. + *

    + * Creates or updates a stored script or search template. * * @see Documentation @@ -4106,8 +4156,9 @@ public PutScriptResponse putScript(PutScriptRequest request) throws IOException, } /** - * Create or update a script or search template. Creates or updates a stored - * script or search template. + * Create or update a script or search template. + *

    + * Creates or updates a stored script or search template. * * @param fn * a function that initializes a builder to create the @@ -4194,9 +4245,13 @@ public final RankEvalResponse rankEval(Function * *

    - * If reindexing from a remote cluster, you must explicitly allow the remote - * host in the reindex.remote.whitelist setting. Automatic data - * stream creation requires a matching index template with data stream enabled. + * If reindexing from a remote cluster into a cluster using Elastic Stack, you + * must explicitly allow the remote host using the + * reindex.remote.whitelist node setting on the destination + * cluster. If reindexing from a remote cluster into an Elastic Cloud Serverless + * project, only remote hosts from Elastic Cloud Hosted are allowed. Automatic + * data stream creation requires a matching index template with data stream + * enabled. *

    * The dest element can be configured like the index API to control * optimistic concurrency control. Omitting version_type or setting @@ -4286,9 +4341,13 @@ public ReindexResponse reindex(ReindexRequest request) throws IOException, Elast * alias. * *

    - * If reindexing from a remote cluster, you must explicitly allow the remote - * host in the reindex.remote.whitelist setting. Automatic data - * stream creation requires a matching index template with data stream enabled. + * If reindexing from a remote cluster into a cluster using Elastic Stack, you + * must explicitly allow the remote host using the + * reindex.remote.whitelist node setting on the destination + * cluster. If reindexing from a remote cluster into an Elastic Cloud Serverless + * project, only remote hosts from Elastic Cloud Hosted are allowed. Automatic + * data stream creation requires a matching index template with data stream + * enabled. *

    * The dest element can be configured like the index API to control * optimistic concurrency control. Omitting version_type or setting @@ -6189,10 +6248,11 @@ public final UpdateResponse update( // ----- Endpoint: update_by_query /** - * Update documents. Updates documents that match the specified query. If no - * query is specified, performs an update on every document in the data stream - * or index without modifying the source, which is useful for picking up mapping - * changes. + * Update documents. + *

    + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or alias: @@ -6351,10 +6411,11 @@ public UpdateByQueryResponse updateByQuery(UpdateByQueryRequest request) } /** - * Update documents. Updates documents that match the specified query. If no - * query is specified, performs an update on every document in the data stream - * or index without modifying the source, which is useful for picking up mapping - * changes. + * Update documents. + *

    + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. *

    * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or alias: diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java new file mode 100644 index 0000000000..776f9a188c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CommonStatsFlag.java @@ -0,0 +1,106 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum CommonStatsFlag implements JsonEnum { + All("_all"), + + Store("store"), + + Indexing("indexing"), + + Get("get"), + + Search("search"), + + Merge("merge"), + + Flush("flush"), + + Refresh("refresh"), + + QueryCache("query_cache"), + + Fielddata("fielddata"), + + Docs("docs"), + + Warmer("warmer"), + + Completion("completion"), + + Segments("segments"), + + Translog("translog"), + + RequestCache("request_cache"), + + Recovery("recovery"), + + Bulk("bulk"), + + ShardStats("shard_stats"), + + Mappings("mappings"), + + DenseVector("dense_vector"), + + SparseVector("sparse_vector"), + + ; + + private final String jsonValue; + + CommonStatsFlag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + CommonStatsFlag.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java new file mode 100644 index 0000000000..59f2f494a3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java @@ -0,0 +1,439 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.DiversifyRetriever + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DiversifyRetriever extends RetrieverBase implements RetrieverVariant { + private final DiversifyRetrieverTypes type; + + private final String field; + + private final Retriever retriever; + + @Nullable + private final Integer size; + + @Nullable + private final Integer rankWindowSize; + + private final List queryVector; + + @Nullable + private final QueryVectorBuilder queryVectorBuilder; + + @Nullable + private final Float lambda; + + // --------------------------------------------------------------------------------------------- + + private DiversifyRetriever(Builder builder) { + super(builder); + + this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); + this.retriever = ApiTypeHelper.requireNonNull(builder.retriever, this, "retriever"); + this.size = builder.size; + this.rankWindowSize = builder.rankWindowSize; + this.queryVector = ApiTypeHelper.unmodifiable(builder.queryVector); + this.queryVectorBuilder = builder.queryVectorBuilder; + this.lambda = builder.lambda; + + } + + public static DiversifyRetriever of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Retriever variant kind. + */ + @Override + public Retriever.Kind _retrieverKind() { + return Retriever.Kind.Diversify; + } + + /** + * Required - The diversification strategy to apply. + *

    + * API name: {@code type} + */ + public final DiversifyRetrieverTypes type() { + return this.type; + } + + /** + * Required - The document field on which to diversify results on. + *

    + * API name: {@code field} + */ + public final String field() { + return this.field; + } + + /** + * Required - The nested retriever whose results will be diversified. + *

    + * API name: {@code retriever} + */ + public final Retriever retriever() { + return this.retriever; + } + + /** + * The number of top documents to return after diversification. + *

    + * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + /** + * The number of top documents from the nested retriever to consider for + * diversification. + *

    + * API name: {@code rank_window_size} + */ + @Nullable + public final Integer rankWindowSize() { + return this.rankWindowSize; + } + + /** + * The query vector used for diversification. + *

    + * API name: {@code query_vector} + */ + public final List queryVector() { + return this.queryVector; + } + + /** + * a dense vector query vector builder to use instead of a static query_vector + *

    + * API name: {@code query_vector_builder} + */ + @Nullable + public final QueryVectorBuilder queryVectorBuilder() { + return this.queryVectorBuilder; + } + + /** + * Controls the trade-off between relevance and diversity for MMR. A value of + * 0.0 focuses solely on diversity, while a value of 1.0 focuses solely on + * relevance. Required for MMR + *

    + * API name: {@code lambda} + */ + @Nullable + public final Float lambda() { + return this.lambda; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("type"); + this.type.serialize(generator, mapper); + generator.writeKey("field"); + generator.write(this.field); + + generator.writeKey("retriever"); + this.retriever.serialize(generator, mapper); + + if (this.size != null) { + generator.writeKey("size"); + generator.write(this.size); + + } + if (this.rankWindowSize != null) { + generator.writeKey("rank_window_size"); + generator.write(this.rankWindowSize); + + } + if (ApiTypeHelper.isDefined(this.queryVector)) { + generator.writeKey("query_vector"); + generator.writeStartArray(); + for (Float item0 : this.queryVector) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.queryVectorBuilder != null) { + generator.writeKey("query_vector_builder"); + this.queryVectorBuilder.serialize(generator, mapper); + + } + if (this.lambda != null) { + generator.writeKey("lambda"); + generator.write(this.lambda); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DiversifyRetriever}. + */ + + public static class Builder extends RetrieverBase.AbstractBuilder + implements + ObjectBuilder { + private DiversifyRetrieverTypes type; + + private String field; + + private Retriever retriever; + + @Nullable + private Integer size; + + @Nullable + private Integer rankWindowSize; + + @Nullable + private List queryVector; + + @Nullable + private QueryVectorBuilder queryVectorBuilder; + + @Nullable + private Float lambda; + + /** + * Required - The diversification strategy to apply. + *

    + * API name: {@code type} + */ + public final Builder type(DiversifyRetrieverTypes value) { + this.type = value; + return this; + } + + /** + * Required - The document field on which to diversify results on. + *

    + * API name: {@code field} + */ + public final Builder field(String value) { + this.field = value; + return this; + } + + /** + * Required - The nested retriever whose results will be diversified. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(Retriever value) { + this.retriever = value; + return this; + } + + /** + * Required - The nested retriever whose results will be diversified. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(Function> fn) { + return this.retriever(fn.apply(new Retriever.Builder()).build()); + } + + /** + * Required - The nested retriever whose results will be diversified. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(RetrieverVariant value) { + this.retriever = value._toRetriever(); + return this; + } + + /** + * The number of top documents to return after diversification. + *

    + * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + /** + * The number of top documents from the nested retriever to consider for + * diversification. + *

    + * API name: {@code rank_window_size} + */ + public final Builder rankWindowSize(@Nullable Integer value) { + this.rankWindowSize = value; + return this; + } + + /** + * The query vector used for diversification. + *

    + * API name: {@code query_vector} + *

    + * Adds all elements of list to queryVector. + */ + public final Builder queryVector(List list) { + this.queryVector = _listAddAll(this.queryVector, list); + return this; + } + + /** + * The query vector used for diversification. + *

    + * API name: {@code query_vector} + *

    + * Adds one or more values to queryVector. + */ + public final Builder queryVector(Float value, Float... values) { + this.queryVector = _listAdd(this.queryVector, value, values); + return this; + } + + /** + * a dense vector query vector builder to use instead of a static query_vector + *

    + * API name: {@code query_vector_builder} + */ + public final Builder queryVectorBuilder(@Nullable QueryVectorBuilder value) { + this.queryVectorBuilder = value; + return this; + } + + /** + * a dense vector query vector builder to use instead of a static query_vector + *

    + * API name: {@code query_vector_builder} + */ + public final Builder queryVectorBuilder( + Function> fn) { + return this.queryVectorBuilder(fn.apply(new QueryVectorBuilder.Builder()).build()); + } + + /** + * a dense vector query vector builder to use instead of a static query_vector + *

    + * API name: {@code query_vector_builder} + */ + public final Builder queryVectorBuilder(QueryVectorBuilderVariant value) { + this.queryVectorBuilder = value._toQueryVectorBuilder(); + return this; + } + + /** + * Controls the trade-off between relevance and diversity for MMR. A value of + * 0.0 focuses solely on diversity, while a value of 1.0 focuses solely on + * relevance. Required for MMR + *

    + * API name: {@code lambda} + */ + public final Builder lambda(@Nullable Float value) { + this.lambda = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DiversifyRetriever}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DiversifyRetriever build() { + _checkSingleUse(); + + return new DiversifyRetriever(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DiversifyRetriever} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DiversifyRetriever::setupDiversifyRetrieverDeserializer); + + protected static void setupDiversifyRetrieverDeserializer(ObjectDeserializer op) { + RetrieverBase.setupRetrieverBaseDeserializer(op); + op.add(Builder::type, DiversifyRetrieverTypes._DESERIALIZER, "type"); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(Builder::retriever, Retriever._DESERIALIZER, "retriever"); + op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); + op.add(Builder::rankWindowSize, JsonpDeserializer.integerDeserializer(), "rank_window_size"); + op.add(Builder::queryVector, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.floatDeserializer()), + "query_vector"); + op.add(Builder::queryVectorBuilder, QueryVectorBuilder._DESERIALIZER, "query_vector_builder"); + op.add(Builder::lambda, JsonpDeserializer.floatDeserializer(), "lambda"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetrieverTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetrieverTypes.java new file mode 100644 index 0000000000..f670e43025 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetrieverTypes.java @@ -0,0 +1,64 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum DiversifyRetrieverTypes implements JsonEnum { + Mmr("mmr"), + + ; + + private final String jsonValue; + + DiversifyRetrieverTypes(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + DiversifyRetrieverTypes.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java index a0661a79de..6c619b3a3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java @@ -32,7 +32,7 @@ import co.elastic.clients.util.TaggedUnion; import co.elastic.clients.util.TaggedUnionUtils; import jakarta.json.stream.JsonGenerator; -import java.lang.Number; +import java.lang.Integer; import java.lang.Object; import java.lang.String; import java.util.Objects; @@ -92,7 +92,7 @@ private GeoHashPrecision(Kind kind, Object value) { public String _toJsonString() { switch (_kind) { case GeohashLength : - return this.geohashLength().toString(); + return String.valueOf(this.geohashLength()); case Distance : return this.distance(); @@ -125,7 +125,7 @@ public boolean isGeohashLength() { * @throws IllegalStateException * if the current variant is not of the {@code geohash_length} kind. */ - public Number geohashLength() { + public Integer geohashLength() { return TaggedUnionUtils.get(this, Kind.GeohashLength); } @@ -153,7 +153,7 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } else { switch (_kind) { case GeohashLength : - generator.write(((Number) this._value).doubleValue()); + generator.write(((Integer) this._value)); break; case Distance : @@ -174,7 +174,7 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder geohashLength(Number v) { + public ObjectBuilder geohashLength(Integer v) { this._kind = Kind.GeohashLength; this._value = v; return this; @@ -195,7 +195,7 @@ public GeoHashPrecision build() { private static JsonpDeserializer buildGeoHashPrecisionDeserializer() { return new UnionDeserializer.Builder(GeoHashPrecision::new, false) - .addMember(Kind.GeohashLength, JsonpDeserializer.numberDeserializer()) + .addMember(Kind.GeohashLength, JsonpDeserializer.integerDeserializer()) .addMember(Kind.Distance, JsonpDeserializer.stringDeserializer()).build(); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java index 55d6531c79..8fa96c354e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java @@ -37,6 +37,7 @@ import java.lang.Long; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -79,8 +80,7 @@ public class InlineGet implements JsonpSerializable { @Nullable private final Long primaryTerm; - @Nullable - private final String routing; + private final List routing; @Nullable private final TDocument source; @@ -98,7 +98,7 @@ private InlineGet(Builder builder) { this.found = ApiTypeHelper.requireNonNull(builder.found, this, "found", false); this.seqNo = builder.seqNo; this.primaryTerm = builder.primaryTerm; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.source = builder.source; this.tDocumentSerializer = builder.tDocumentSerializer; @@ -149,8 +149,7 @@ public final Long primaryTerm() { /** * API name: {@code _routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -203,9 +202,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.primaryTerm); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("_routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.source != null) { @@ -265,7 +269,7 @@ public final Builder metadata(String key, JsonData value) { private Long primaryTerm; @Nullable - private String routing; + private List routing; @Nullable private TDocument source; @@ -319,9 +323,21 @@ public final Builder primaryTerm(@Nullable Long value) { /** * API name: {@code _routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code _routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -386,7 +402,8 @@ protected static void setupInlineGetDeserializer(ObjectDeserializer< op.add(Builder::found, JsonpDeserializer.booleanDeserializer(), "found"); op.add(Builder::seqNo, JsonpDeserializer.longDeserializer(), "_seq_no"); op.add(Builder::primaryTerm, JsonpDeserializer.longDeserializer(), "_primary_term"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "_routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "_routing"); op.add(Builder::source, tDocumentDeserializer, "_source"); op.setUnknownFieldHandler((builder, name, parser, mapper) -> { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index ab3f74ce0a..250637b8ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -72,6 +72,9 @@ public class KnnQuery extends QueryBase implements QueryVariant { @Nullable private final Integer numCandidates; + @Nullable + private final Float visitPercentage; + @Nullable private final Integer k; @@ -92,6 +95,7 @@ private KnnQuery(Builder builder) { this.queryVector = ApiTypeHelper.unmodifiable(builder.queryVector); this.queryVectorBuilder = builder.queryVectorBuilder; this.numCandidates = builder.numCandidates; + this.visitPercentage = builder.visitPercentage; this.k = builder.k; this.filter = ApiTypeHelper.unmodifiable(builder.filter); this.similarity = builder.similarity; @@ -150,6 +154,17 @@ public final Integer numCandidates() { return this.numCandidates; } + /** + * The percentage of vectors to explore per shard while doing knn search with + * bbq_disk + *

    + * API name: {@code visit_percentage} + */ + @Nullable + public final Float visitPercentage() { + return this.visitPercentage; + } + /** * The final number of nearest neighbors to return as top hits *

    @@ -214,6 +229,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("num_candidates"); generator.write(this.numCandidates); + } + if (this.visitPercentage != null) { + generator.writeKey("visit_percentage"); + generator.write(this.visitPercentage); + } if (this.k != null) { generator.writeKey("k"); @@ -261,6 +281,9 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Integer numCandidates; + @Nullable + private Float visitPercentage; + @Nullable private Integer k; @@ -350,6 +373,17 @@ public final Builder numCandidates(@Nullable Integer value) { return this; } + /** + * The percentage of vectors to explore per shard while doing knn search with + * bbq_disk + *

    + * API name: {@code visit_percentage} + */ + public final Builder visitPercentage(@Nullable Float value) { + this.visitPercentage = value; + return this; + } + /** * The final number of nearest neighbors to return as top hits *

    @@ -472,6 +506,7 @@ protected static void setupKnnQueryDeserializer(ObjectDeserializer + * API name: {@code visit_percentage} + */ + @Nullable + public final Float visitPercentage() { + return this.visitPercentage; + } + /** * The minimum similarity required for a document to be considered a match. *

    @@ -198,6 +213,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("num_candidates"); generator.write(this.numCandidates); + if (this.visitPercentage != null) { + generator.writeKey("visit_percentage"); + generator.write(this.visitPercentage); + + } if (this.similarity != null) { generator.writeKey("similarity"); generator.write(this.similarity); @@ -230,6 +250,9 @@ public static class Builder extends RetrieverBase.AbstractBuilder imple private Integer numCandidates; + @Nullable + private Float visitPercentage; + @Nullable private Float similarity; @@ -324,6 +347,17 @@ public final Builder numCandidates(int value) { return this; } + /** + * The percentage of vectors to explore per shard while doing knn search with + * bbq_disk + *

    + * API name: {@code visit_percentage} + */ + public final Builder visitPercentage(@Nullable Float value) { + this.visitPercentage = value; + return this; + } + /** * The minimum similarity required for a document to be considered a match. *

    @@ -387,6 +421,7 @@ protected static void setupKnnRetrieverDeserializer(ObjectDeserializer + * API name: {@code visit_percentage} + */ + @Nullable + public final Float visitPercentage() { + return this.visitPercentage; + } + /** * Boost value to apply to kNN scores *

    @@ -249,6 +264,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("num_candidates"); generator.write(this.numCandidates); + } + if (this.visitPercentage != null) { + generator.writeKey("visit_percentage"); + generator.write(this.visitPercentage); + } if (this.boost != null) { generator.writeKey("boost"); @@ -309,6 +329,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer numCandidates; + @Nullable + private Float visitPercentage; + @Nullable private Float boost; @@ -411,6 +434,17 @@ public final Builder numCandidates(@Nullable Integer value) { return this; } + /** + * The percentage of vectors to explore per shard while doing knn search with + * bbq_disk + *

    + * API name: {@code visit_percentage} + */ + public final Builder visitPercentage(@Nullable Float value) { + this.visitPercentage = value; + return this; + } + /** * Boost value to apply to kNN scores *

    @@ -553,6 +587,7 @@ protected static void setupKnnSearchDeserializer(ObjectDeserializer retrievers; + private final List retrievers; @Nullable private final Integer rankConstant; @@ -98,11 +98,12 @@ public Retriever.Kind _retrieverKind() { /** * Required - A list of child retrievers to specify which sets of returned top - * documents will have the RRF formula applied to them. + * documents will have the RRF formula applied to them. Each retriever can + * optionally include a weight parameter. *

    * API name: {@code retrievers} */ - public final List retrievers() { + public final List retrievers() { return this.retrievers; } @@ -148,7 +149,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.retrievers)) { generator.writeKey("retrievers"); generator.writeStartArray(); - for (Retriever item0 : this.retrievers) { + for (RRFRetrieverEntry item0 : this.retrievers) { item0.serialize(generator, mapper); } @@ -190,7 +191,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends RetrieverBase.AbstractBuilder implements ObjectBuilder { - private List retrievers; + private List retrievers; @Nullable private Integer rankConstant; @@ -206,56 +207,43 @@ public static class Builder extends RetrieverBase.AbstractBuilder imple /** * Required - A list of child retrievers to specify which sets of returned top - * documents will have the RRF formula applied to them. + * documents will have the RRF formula applied to them. Each retriever can + * optionally include a weight parameter. *

    * API name: {@code retrievers} *

    * Adds all elements of list to retrievers. */ - public final Builder retrievers(List list) { + public final Builder retrievers(List list) { this.retrievers = _listAddAll(this.retrievers, list); return this; } /** * Required - A list of child retrievers to specify which sets of returned top - * documents will have the RRF formula applied to them. + * documents will have the RRF formula applied to them. Each retriever can + * optionally include a weight parameter. *

    * API name: {@code retrievers} *

    * Adds one or more values to retrievers. */ - public final Builder retrievers(Retriever value, Retriever... values) { + public final Builder retrievers(RRFRetrieverEntry value, RRFRetrieverEntry... values) { this.retrievers = _listAdd(this.retrievers, value, values); return this; } /** * Required - A list of child retrievers to specify which sets of returned top - * documents will have the RRF formula applied to them. - *

    - * API name: {@code retrievers} - *

    - * Adds one or more values to retrievers. - */ - public final Builder retrievers(RetrieverVariant value, RetrieverVariant... values) { - this.retrievers = _listAdd(this.retrievers, value._toRetriever()); - for (RetrieverVariant v : values) { - _listAdd(this.retrievers, v._toRetriever()); - } - return this; - } - - /** - * Required - A list of child retrievers to specify which sets of returned top - * documents will have the RRF formula applied to them. + * documents will have the RRF formula applied to them. Each retriever can + * optionally include a weight parameter. *

    * API name: {@code retrievers} *

    * Adds a value to retrievers using a builder lambda. */ - public final Builder retrievers(Function> fn) { - return retrievers(fn.apply(new Retriever.Builder()).build()); + public final Builder retrievers(Function> fn) { + return retrievers(fn.apply(new RRFRetrieverEntry.Builder()).build()); } /** @@ -335,7 +323,7 @@ public RRFRetriever build() { protected static void setupRRFRetrieverDeserializer(ObjectDeserializer op) { RetrieverBase.setupRetrieverBaseDeserializer(op); - op.add(Builder::retrievers, JsonpDeserializer.arrayDeserializer(Retriever._DESERIALIZER), "retrievers"); + op.add(Builder::retrievers, JsonpDeserializer.arrayDeserializer(RRFRetrieverEntry._DESERIALIZER), "retrievers"); op.add(Builder::rankConstant, JsonpDeserializer.integerDeserializer(), "rank_constant"); op.add(Builder::rankWindowSize, JsonpDeserializer.integerDeserializer(), "rank_window_size"); op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java new file mode 100644 index 0000000000..d9dbe4ad07 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java @@ -0,0 +1,217 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Float; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.RRFRetrieverComponent + +/** + * Wraps a retriever with an optional weight for RRF scoring. + * + * @see API + * specification + */ +@JsonpDeserializable +public class RRFRetrieverComponent implements JsonpSerializable { + private final Retriever retriever; + + @Nullable + private final Float weight; + + // --------------------------------------------------------------------------------------------- + + private RRFRetrieverComponent(Builder builder) { + + this.retriever = ApiTypeHelper.requireNonNull(builder.retriever, this, "retriever"); + this.weight = builder.weight; + + } + + public static RRFRetrieverComponent of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The nested retriever configuration. + *

    + * API name: {@code retriever} + */ + public final Retriever retriever() { + return this.retriever; + } + + /** + * Weight multiplier for this retriever's contribution to the RRF score. Higher + * values increase influence. Defaults to 1.0 if not specified. Must be + * non-negative. + *

    + * API name: {@code weight} + */ + @Nullable + public final Float weight() { + return this.weight; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("retriever"); + this.retriever.serialize(generator, mapper); + + if (this.weight != null) { + generator.writeKey("weight"); + generator.write(this.weight); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RRFRetrieverComponent}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Retriever retriever; + + @Nullable + private Float weight; + + /** + * Required - The nested retriever configuration. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(Retriever value) { + this.retriever = value; + return this; + } + + /** + * Required - The nested retriever configuration. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(Function> fn) { + return this.retriever(fn.apply(new Retriever.Builder()).build()); + } + + /** + * Required - The nested retriever configuration. + *

    + * API name: {@code retriever} + */ + public final Builder retriever(RetrieverVariant value) { + this.retriever = value._toRetriever(); + return this; + } + + /** + * Weight multiplier for this retriever's contribution to the RRF score. Higher + * values increase influence. Defaults to 1.0 if not specified. Must be + * non-negative. + *

    + * API name: {@code weight} + */ + public final Builder weight(@Nullable Float value) { + this.weight = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RRFRetrieverComponent}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RRFRetrieverComponent build() { + _checkSingleUse(); + + return new RRFRetrieverComponent(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RRFRetrieverComponent} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, RRFRetrieverComponent::setupRRFRetrieverComponentDeserializer); + + protected static void setupRRFRetrieverComponentDeserializer(ObjectDeserializer op) { + + op.add(Builder::retriever, Retriever._DESERIALIZER, "retriever"); + op.add(Builder::weight, JsonpDeserializer.floatDeserializer(), "weight"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntry.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntry.java new file mode 100644 index 0000000000..416332fcab --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntry.java @@ -0,0 +1,188 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.UnionDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.ObjectBuilderBase; +import co.elastic.clients.util.TaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.RRFRetrieverEntry + +/** + * Either a direct RetrieverContainer (backward compatible) or an + * RRFRetrieverComponent with weight. + * + * @see API + * specification + */ +@JsonpDeserializable +public class RRFRetrieverEntry implements TaggedUnion, JsonpSerializable { + + public enum Kind { + Weighted, Retriever + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + private RRFRetrieverEntry(Kind kind, Object value) { + this._kind = kind; + this._value = value; + } + + private RRFRetrieverEntry(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + + } + + public static RRFRetrieverEntry of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code weighted}? + */ + public boolean isWeighted() { + return _kind == Kind.Weighted; + } + + /** + * Get the {@code weighted} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code weighted} kind. + */ + public RRFRetrieverComponent weighted() { + return TaggedUnionUtils.get(this, Kind.Weighted); + } + + /** + * Is this variant instance of kind {@code retriever}? + */ + public boolean isRetriever() { + return _kind == Kind.Retriever; + } + + /** + * Get the {@code retriever} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code retriever} kind. + */ + public Retriever retriever() { + return TaggedUnionUtils.get(this, Kind.Retriever); + } + + @Override + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + + public ObjectBuilder weighted(RRFRetrieverComponent v) { + this._kind = Kind.Weighted; + this._value = v; + return this; + } + + public ObjectBuilder weighted( + Function> fn) { + return this.weighted(fn.apply(new RRFRetrieverComponent.Builder()).build()); + } + + public ObjectBuilder retriever(Retriever v) { + this._kind = Kind.Retriever; + this._value = v; + return this; + } + + public ObjectBuilder retriever(Function> fn) { + return this.retriever(fn.apply(new Retriever.Builder()).build()); + } + + public RRFRetrieverEntry build() { + _checkSingleUse(); + return new RRFRetrieverEntry(this); + } + + } + + private static JsonpDeserializer buildRRFRetrieverEntryDeserializer() { + return new UnionDeserializer.Builder(RRFRetrieverEntry::new, false) + .addMember(Kind.Weighted, RRFRetrieverComponent._DESERIALIZER) + .addMember(Kind.Retriever, Retriever._DESERIALIZER).build(); + } + + public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer + .lazy(RRFRetrieverEntry::buildRRFRetrieverEntryDeserializer); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntryBuilders.java new file mode 100644 index 0000000000..ee7b88292e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverEntryBuilders.java @@ -0,0 +1,63 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * Builders for {@link RRFRetrieverEntry} variants. + */ +public class RRFRetrieverEntryBuilders { + private RRFRetrieverEntryBuilders() { + } + + /** + * Creates a builder for the {@link RRFRetrieverComponent weighted} + * {@code RRFRetrieverEntry} variant. + */ + public static RRFRetrieverComponent.Builder weighted() { + return new RRFRetrieverComponent.Builder(); + } + + /** + * Creates a builder for the {@link Retriever retriever} + * {@code RRFRetrieverEntry} variant. + */ + public static Retriever.Builder retriever() { + return new Retriever.Builder(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java similarity index 84% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java index 1e1373670e..b0ad752efb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java @@ -17,10 +17,8 @@ * under the License. */ -package co.elastic.clients.elasticsearch.core.reindex_rethrottle; +package co.elastic.clients.elasticsearch._types; -import co.elastic.clients.elasticsearch._types.Retries; -import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -33,7 +31,9 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Float; +import java.lang.Integer; import java.lang.Long; +import java.lang.String; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -53,19 +53,22 @@ // //---------------------------------------------------------------- -// typedef: _global.reindex_rethrottle.ReindexStatus +// typedef: _types.ReindexStatus /** * - * @see API + * @see API * specification */ @JsonpDeserializable public class ReindexStatus implements JsonpSerializable { + @Nullable + private final Integer sliceId; + private final long batches; - private final long created; + @Nullable + private final Long created; private final long deleted; @@ -87,16 +90,21 @@ public class ReindexStatus implements JsonpSerializable { private final long total; - private final long updated; + @Nullable + private final Long updated; private final long versionConflicts; + @Nullable + private final String cancelled; + // --------------------------------------------------------------------------------------------- private ReindexStatus(Builder builder) { + this.sliceId = builder.sliceId; this.batches = ApiTypeHelper.requireNonNull(builder.batches, this, "batches", 0); - this.created = ApiTypeHelper.requireNonNull(builder.created, this, "created", 0); + this.created = builder.created; this.deleted = ApiTypeHelper.requireNonNull(builder.deleted, this, "deleted", 0); this.noops = ApiTypeHelper.requireNonNull(builder.noops, this, "noops", 0); this.requestsPerSecond = ApiTypeHelper.requireNonNull(builder.requestsPerSecond, this, "requestsPerSecond", 0); @@ -107,8 +115,9 @@ private ReindexStatus(Builder builder) { this.throttledUntilMillis = ApiTypeHelper.requireNonNull(builder.throttledUntilMillis, this, "throttledUntilMillis", 0); this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total", 0); - this.updated = ApiTypeHelper.requireNonNull(builder.updated, this, "updated", 0); + this.updated = builder.updated; this.versionConflicts = ApiTypeHelper.requireNonNull(builder.versionConflicts, this, "versionConflicts", 0); + this.cancelled = builder.cancelled; } @@ -116,6 +125,16 @@ public static ReindexStatus of(Function> f return fn.apply(new Builder()).build(); } + /** + * The slice ID + *

    + * API name: {@code slice_id} + */ + @Nullable + public final Integer sliceId() { + return this.sliceId; + } + /** * Required - The number of scroll responses pulled back by the reindex. *

    @@ -126,11 +145,12 @@ public final long batches() { } /** - * Required - The number of documents that were successfully created. + * The number of documents that were successfully created. *

    * API name: {@code created} */ - public final long created() { + @Nullable + public final Long created() { return this.created; } @@ -223,13 +243,13 @@ public final long total() { } /** - * Required - The number of documents that were successfully updated, for - * example, a document with same ID already existed prior to reindex updating - * it. + * The number of documents that were successfully updated, for example, a + * document with same ID already existed prior to reindex updating it. *

    * API name: {@code updated} */ - public final long updated() { + @Nullable + public final Long updated() { return this.updated; } @@ -242,6 +262,16 @@ public final long versionConflicts() { return this.versionConflicts; } + /** + * The reason for cancellation if the slice was canceled + *

    + * API name: {@code cancelled} + */ + @Nullable + public final String cancelled() { + return this.cancelled; + } + /** * Serialize this object to JSON. */ @@ -253,12 +283,19 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.sliceId != null) { + generator.writeKey("slice_id"); + generator.write(this.sliceId); + + } generator.writeKey("batches"); generator.write(this.batches); - generator.writeKey("created"); - generator.write(this.created); + if (this.created != null) { + generator.writeKey("created"); + generator.write(this.created); + } generator.writeKey("deleted"); generator.write(this.deleted); @@ -290,12 +327,20 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("total"); generator.write(this.total); - generator.writeKey("updated"); - generator.write(this.updated); + if (this.updated != null) { + generator.writeKey("updated"); + generator.write(this.updated); + } generator.writeKey("version_conflicts"); generator.write(this.versionConflicts); + if (this.cancelled != null) { + generator.writeKey("cancelled"); + generator.write(this.cancelled); + + } + } @Override @@ -310,8 +355,12 @@ public String toString() { */ public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Integer sliceId; + private Long batches; + @Nullable private Long created; private Long deleted; @@ -334,10 +383,24 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long total; + @Nullable private Long updated; private Long versionConflicts; + @Nullable + private String cancelled; + + /** + * The slice ID + *

    + * API name: {@code slice_id} + */ + public final Builder sliceId(@Nullable Integer value) { + this.sliceId = value; + return this; + } + /** * Required - The number of scroll responses pulled back by the reindex. *

    @@ -349,11 +412,11 @@ public final Builder batches(long value) { } /** - * Required - The number of documents that were successfully created. + * The number of documents that were successfully created. *

    * API name: {@code created} */ - public final Builder created(long value) { + public final Builder created(@Nullable Long value) { this.created = value; return this; } @@ -479,13 +542,12 @@ public final Builder total(long value) { } /** - * Required - The number of documents that were successfully updated, for - * example, a document with same ID already existed prior to reindex updating - * it. + * The number of documents that were successfully updated, for example, a + * document with same ID already existed prior to reindex updating it. *

    * API name: {@code updated} */ - public final Builder updated(long value) { + public final Builder updated(@Nullable Long value) { this.updated = value; return this; } @@ -500,6 +562,16 @@ public final Builder versionConflicts(long value) { return this; } + /** + * The reason for cancellation if the slice was canceled + *

    + * API name: {@code cancelled} + */ + public final Builder cancelled(@Nullable String value) { + this.cancelled = value; + return this; + } + @Override protected Builder self() { return this; @@ -528,6 +600,7 @@ public ReindexStatus build() { protected static void setupReindexStatusDeserializer(ObjectDeserializer op) { + op.add(Builder::sliceId, JsonpDeserializer.integerDeserializer(), "slice_id"); op.add(Builder::batches, JsonpDeserializer.longDeserializer(), "batches"); op.add(Builder::created, JsonpDeserializer.longDeserializer(), "created"); op.add(Builder::deleted, JsonpDeserializer.longDeserializer(), "deleted"); @@ -541,6 +614,7 @@ protected static void setupReindexStatusDeserializer(ObjectDeserializer pinned(Function diversify(DiversifyRetriever v) { + this._kind = Kind.Diversify; + this._value = v; + return this; + } + + public ObjectBuilder diversify( + Function> fn) { + return this.diversify(fn.apply(new DiversifyRetriever.Builder()).build()); + } + public Retriever build() { _checkSingleUse(); return new Retriever(this); @@ -397,6 +427,7 @@ protected static void setupRetrieverDeserializer(ObjectDeserializer op) op.add(Builder::rescorer, RescorerRetriever._DESERIALIZER, "rescorer"); op.add(Builder::linear, LinearRetriever._DESERIALIZER, "linear"); op.add(Builder::pinned, PinnedRetriever._DESERIALIZER, "pinned"); + op.add(Builder::diversify, DiversifyRetriever._DESERIALIZER, "diversify"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RetrieverBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RetrieverBuilders.java index 9766e80b70..fffdd371ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RetrieverBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RetrieverBuilders.java @@ -187,4 +187,22 @@ public static Retriever pinned(Function> fn) { + Retriever.Builder builder = new Retriever.Builder(); + builder.diversify(fn.apply(new DiversifyRetriever.Builder()).build()); + return builder.build(); + } + } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java index 0f27b3444d..ba1f5cef6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java @@ -64,6 +64,7 @@ public class GeoLineAggregation implements AggregationVariant, JsonpSerializable { private final GeoLinePoint point; + @Nullable private final GeoLineSort sort; @Nullable @@ -80,7 +81,7 @@ public class GeoLineAggregation implements AggregationVariant, JsonpSerializable private GeoLineAggregation(Builder builder) { this.point = ApiTypeHelper.requireNonNull(builder.point, this, "point"); - this.sort = ApiTypeHelper.requireNonNull(builder.sort, this, "sort"); + this.sort = builder.sort; this.includeSort = builder.includeSort; this.sortOrder = builder.sortOrder; this.size = builder.size; @@ -109,13 +110,14 @@ public final GeoLinePoint point() { } /** - * Required - The name of the numeric field to use as the sort key for ordering - * the points. When the geo_line aggregation is nested inside a + * The name of the numeric field to use as the sort key for ordering the points. + * When the geo_line aggregation is nested inside a * time_series aggregation, this field defaults to * @timestamp, and any other value will result in error. *

    * API name: {@code sort} */ + @Nullable public final GeoLineSort sort() { return this.sort; } @@ -166,9 +168,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("point"); this.point.serialize(generator, mapper); - generator.writeKey("sort"); - this.sort.serialize(generator, mapper); + if (this.sort != null) { + generator.writeKey("sort"); + this.sort.serialize(generator, mapper); + } if (this.includeSort != null) { generator.writeKey("include_sort"); generator.write(this.includeSort); @@ -202,6 +206,7 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private GeoLinePoint point; + @Nullable private GeoLineSort sort; @Nullable @@ -233,21 +238,21 @@ public final Builder point(Functiongeo_line aggregation is nested inside a + * The name of the numeric field to use as the sort key for ordering the points. + * When the geo_line aggregation is nested inside a * time_series aggregation, this field defaults to * @timestamp, and any other value will result in error. *

    * API name: {@code sort} */ - public final Builder sort(GeoLineSort value) { + public final Builder sort(@Nullable GeoLineSort value) { this.sort = value; return this; } /** - * Required - The name of the numeric field to use as the sort key for ordering - * the points. When the geo_line aggregation is nested inside a + * The name of the numeric field to use as the sort key for ordering the points. + * When the geo_line aggregation is nested inside a * time_series aggregation, this field defaults to * @timestamp, and any other value will result in error. *

    diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java index 7928c64452..ad42320a8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java @@ -32,7 +32,6 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; -import java.lang.Number; import java.lang.String; import java.util.Objects; import java.util.function.Function; @@ -71,7 +70,7 @@ public class GeoTileGridAggregation extends BucketAggregationBase private final String field; @Nullable - private final Number precision; + private final Integer precision; @Nullable private final Integer shardSize; @@ -133,7 +132,7 @@ public final String field() { * API name: {@code precision} */ @Nullable - public final Number precision() { + public final Integer precision() { return this.precision; } @@ -187,7 +186,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } if (this.precision != null) { generator.writeKey("precision"); - generator.write(this.precision.doubleValue()); + generator.write(this.precision); } if (this.shardSize != null) { @@ -226,7 +225,7 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code precision} */ - public final Builder precision(@Nullable Number value) { + public final Builder precision(@Nullable Integer value) { this.precision = value; return this; } @@ -331,7 +330,7 @@ protected static void setupGeoTileGridAggregationDeserializer( ObjectDeserializer op) { op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); - op.add(Builder::precision, JsonpDeserializer.numberDeserializer(), "precision"); + op.add(Builder::precision, JsonpDeserializer.integerDeserializer(), "precision"); op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size"); op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); op.add(Builder::bounds, GeoBounds._DESERIALIZER, "bounds"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorElementType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorElementType.java index 15678bbd40..2ecb413e61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorElementType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorElementType.java @@ -65,6 +65,11 @@ public enum DenseVectorElementType implements JsonEnum { */ Float("float"), + /** + * Indexes a 2-byte floating-point value per dimension. + */ + Bfloat16("bfloat16"), + ; private final String jsonValue; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java index c0e92c9154..f4c04ae0c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java @@ -173,7 +173,8 @@ public final DenseVectorIndexOptionsRescoreVector rescoreVector() { /** * true if vector rescoring should be done on-disk *

    - * Only applicable to bbq_hnsw + * Only applicable to bbq_disk, bbq_hnsw, + * int4_hnsw, int8_hnsw *

    * API name: {@code on_disk_rescore} */ @@ -345,7 +346,8 @@ public final Builder rescoreVector( /** * true if vector rescoring should be done on-disk *

    - * Only applicable to bbq_hnsw + * Only applicable to bbq_disk, bbq_hnsw, + * int4_hnsw, int8_hnsw *

    * API name: {@code on_disk_rescore} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ExponentialHistogramProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ExponentialHistogramProperty.java new file mode 100644 index 0000000000..bce4e42e4f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ExponentialHistogramProperty.java @@ -0,0 +1,155 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch._types.mapping; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: _types.mapping.ExponentialHistogramProperty + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ExponentialHistogramProperty extends PropertyBase implements PropertyVariant { + @Nullable + private final TimeSeriesMetricType timeSeriesMetric; + + // --------------------------------------------------------------------------------------------- + + private ExponentialHistogramProperty(Builder builder) { + super(builder); + + this.timeSeriesMetric = builder.timeSeriesMetric; + + } + + public static ExponentialHistogramProperty of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Property variant kind. + */ + @Override + public Property.Kind _propertyKind() { + return Property.Kind.ExponentialHistogram; + } + + /** + * API name: {@code time_series_metric} + */ + @Nullable + public final TimeSeriesMetricType timeSeriesMetric() { + return this.timeSeriesMetric; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.write("type", "exponential_histogram"); + super.serializeInternal(generator, mapper); + if (this.timeSeriesMetric != null) { + generator.writeKey("time_series_metric"); + this.timeSeriesMetric.serialize(generator, mapper); + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ExponentialHistogramProperty}. + */ + + public static class Builder extends PropertyBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private TimeSeriesMetricType timeSeriesMetric; + + /** + * API name: {@code time_series_metric} + */ + public final Builder timeSeriesMetric(@Nullable TimeSeriesMetricType value) { + this.timeSeriesMetric = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ExponentialHistogramProperty}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ExponentialHistogramProperty build() { + _checkSingleUse(); + + return new ExponentialHistogramProperty(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ExponentialHistogramProperty} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ExponentialHistogramProperty::setupExponentialHistogramPropertyDeserializer); + + protected static void setupExponentialHistogramPropertyDeserializer( + ObjectDeserializer op) { + PropertyBase.setupPropertyBaseDeserializer(op); + op.add(Builder::timeSeriesMetric, TimeSeriesMetricType._DESERIALIZER, "time_series_metric"); + + op.ignore("type"); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java index f20c76f043..9ac6cd2bf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java @@ -59,12 +59,16 @@ public class HistogramProperty extends PropertyBase implements PropertyVariant { @Nullable private final Boolean ignoreMalformed; + @Nullable + private final TimeSeriesMetricType timeSeriesMetric; + // --------------------------------------------------------------------------------------------- private HistogramProperty(Builder builder) { super(builder); this.ignoreMalformed = builder.ignoreMalformed; + this.timeSeriesMetric = builder.timeSeriesMetric; } @@ -88,6 +92,14 @@ public final Boolean ignoreMalformed() { return this.ignoreMalformed; } + /** + * API name: {@code time_series_metric} + */ + @Nullable + public final TimeSeriesMetricType timeSeriesMetric() { + return this.timeSeriesMetric; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "histogram"); @@ -97,6 +109,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.ignoreMalformed); } + if (this.timeSeriesMetric != null) { + generator.writeKey("time_series_metric"); + this.timeSeriesMetric.serialize(generator, mapper); + } } @@ -112,6 +128,9 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private Boolean ignoreMalformed; + @Nullable + private TimeSeriesMetricType timeSeriesMetric; + /** * API name: {@code ignore_malformed} */ @@ -120,6 +139,14 @@ public final Builder ignoreMalformed(@Nullable Boolean value) { return this; } + /** + * API name: {@code time_series_metric} + */ + public final Builder timeSeriesMetric(@Nullable TimeSeriesMetricType value) { + this.timeSeriesMetric = value; + return this; + } + @Override protected Builder self() { return this; @@ -149,6 +176,7 @@ public HistogramProperty build() { protected static void setupHistogramPropertyDeserializer(ObjectDeserializer op) { PropertyBase.setupPropertyBaseDeserializer(op); op.add(Builder::ignoreMalformed, JsonpDeserializer.booleanDeserializer(), "ignore_malformed"); + op.add(Builder::timeSeriesMetric, TimeSeriesMetricType._DESERIALIZER, "time_series_metric"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index aa4a25bf10..958c8473ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -100,6 +100,8 @@ public enum Kind implements JsonEnum { DynamicType("{dynamic_type}"), + ExponentialHistogram("exponential_histogram"), + Alias("alias"), Flattened("flattened"), @@ -477,6 +479,24 @@ public DynamicProperty dynamicType() { return TaggedUnionUtils.get(this, Kind.DynamicType); } + /** + * Is this variant instance of kind {@code exponential_histogram}? + */ + public boolean isExponentialHistogram() { + return _kind == Kind.ExponentialHistogram; + } + + /** + * Get the {@code exponential_histogram} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the + * {@code exponential_histogram} kind. + */ + public ExponentialHistogramProperty exponentialHistogram() { + return TaggedUnionUtils.get(this, Kind.ExponentialHistogram); + } + /** * Is this variant instance of kind {@code alias}? */ @@ -1327,6 +1347,17 @@ public ObjectBuilder dynamicType( return this.dynamicType(fn.apply(new DynamicProperty.Builder()).build()); } + public ObjectBuilder exponentialHistogram(ExponentialHistogramProperty v) { + this._kind = Kind.ExponentialHistogram; + this._value = v; + return this; + } + + public ObjectBuilder exponentialHistogram( + Function> fn) { + return this.exponentialHistogram(fn.apply(new ExponentialHistogramProperty.Builder()).build()); + } + public ObjectBuilder alias(FieldAliasProperty v) { this._kind = Kind.Alias; this._value = v; @@ -1774,6 +1805,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double"); op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range"); op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_type}"); + op.add(Builder::exponentialHistogram, ExponentialHistogramProperty._DESERIALIZER, "exponential_histogram"); op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias"); op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened"); op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 7f2086bca9..6e19aa8512 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -297,6 +297,25 @@ public static Property dynamicType(Function> fn) { + Property.Builder builder = new Property.Builder(); + builder.exponentialHistogram(fn.apply(new ExponentialHistogramProperty.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link FieldAliasProperty alias} {@code Property} * variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java index 5223759e13..7b02f05a40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java @@ -31,6 +31,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -67,8 +68,7 @@ public class FieldLookup implements JsonpSerializable { @Nullable private final String path; - @Nullable - private final String routing; + private final List routing; // --------------------------------------------------------------------------------------------- @@ -77,7 +77,7 @@ private FieldLookup(Builder builder) { this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.index = builder.index; this.path = builder.path; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); } @@ -119,8 +119,7 @@ public final String path() { *

    * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -148,9 +147,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.path); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } @@ -177,7 +181,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String path; @Nullable - private String routing; + private List routing; /** * Required - id of the document. @@ -213,9 +217,23 @@ public final Builder path(@Nullable String value) { * Custom routing value. *

    * API name: {@code routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Custom routing value. + *

    + * API name: {@code routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -250,7 +268,8 @@ protected static void setupFieldLookupDeserializer(ObjectDeserializer perFieldAnalyzer; - @Nullable - private final String routing; + private final List routing; @Nullable private final Long version; @@ -96,7 +95,7 @@ private LikeDocument(Builder builder) { this.id = builder.id; this.index = builder.index; this.perFieldAnalyzer = ApiTypeHelper.unmodifiable(builder.perFieldAnalyzer); - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.version = builder.version; this.versionType = builder.versionType; @@ -155,8 +154,7 @@ public final Map perFieldAnalyzer() { /** * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -223,9 +221,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.version != null) { @@ -268,7 +271,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map perFieldAnalyzer; @Nullable - private String routing; + private List routing; @Nullable private Long version; @@ -352,9 +355,21 @@ public final Builder perFieldAnalyzer(String key, String value) { /** * API name: {@code routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -408,7 +423,8 @@ protected static void setupLikeDocumentDeserializer(ObjectDeserializer routing; private final List stopWords; @@ -131,7 +130,7 @@ private MoreLikeThisQuery(Builder builder) { this.minimumShouldMatch = builder.minimumShouldMatch; this.minTermFreq = builder.minTermFreq; this.minWordLength = builder.minWordLength; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.stopWords = ApiTypeHelper.unmodifiable(builder.stopWords); this.unlike = ApiTypeHelper.unmodifiable(builder.unlike); this.version = builder.version; @@ -296,8 +295,7 @@ public final Integer minWordLength() { /** * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -414,9 +412,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.minWordLength); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (ApiTypeHelper.isDefined(this.stopWords)) { @@ -497,7 +500,7 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Integer minWordLength; @Nullable - private String routing; + private List routing; @Nullable private List stopWords; @@ -700,9 +703,21 @@ public final Builder minWordLength(@Nullable Integer value) { /** * API name: {@code routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -825,7 +840,8 @@ protected static void setupMoreLikeThisQueryDeserializer(ObjectDeserializer routing; @Nullable private final Long version; @@ -97,7 +96,7 @@ private PercolateQuery(Builder builder) { this.index = builder.index; this.name = builder.name; this.preference = builder.preference; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.version = builder.version; } @@ -189,8 +188,7 @@ public final String preference() { *

    * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -245,9 +243,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.preference); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.version != null) { @@ -286,7 +289,7 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String preference; @Nullable - private String routing; + private List routing; @Nullable private Long version; @@ -381,9 +384,23 @@ public final Builder preference(@Nullable String value) { * Routing used to fetch document to percolate. *

    * API name: {@code routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Routing used to fetch document to percolate. + *

    + * API name: {@code routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -432,7 +449,8 @@ protected static void setupPercolateQueryDeserializer(ObjectDeserializer routing; // --------------------------------------------------------------------------------------------- @@ -75,7 +75,7 @@ private TermsLookup(Builder builder) { this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.path = ApiTypeHelper.requireNonNull(builder.path, this, "path"); - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); } @@ -107,8 +107,7 @@ public final String path() { /** * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -132,9 +131,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("path"); generator.write(this.path); - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } @@ -159,7 +163,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String path; @Nullable - private String routing; + private List routing; /** * Required - API name: {@code index} @@ -187,9 +191,21 @@ public final Builder path(String value) { /** * API name: {@code routing} + *

    + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code routing} + *

    + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -224,7 +240,8 @@ protected static void setupTermsLookupDeserializer(ObjectDeserializer builder) { @@ -99,6 +104,7 @@ protected AsyncSearchResponseBase(AbstractBuilder builder) { this.startTimeInMillis = ApiTypeHelper.requireNonNull(builder.startTimeInMillis, this, "startTimeInMillis", 0); this.completionTime = builder.completionTime; this.completionTimeInMillis = builder.completionTimeInMillis; + this.error = builder.error; } @@ -189,6 +195,14 @@ public final Long completionTimeInMillis() { return this.completionTimeInMillis; } + /** + * API name: {@code error} + */ + @Nullable + public final ErrorCause error() { + return this.error; + } + /** * Serialize this object to JSON. */ @@ -234,6 +248,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.completionTimeInMillis); } + if (this.error != null) { + generator.writeKey("error"); + this.error.serialize(generator, mapper); + + } } @@ -268,6 +287,9 @@ public abstract static class AbstractBuilder> fn) { + return this.error(fn.apply(new ErrorCause.Builder()).build()); + } + protected abstract BuilderT self(); } @@ -378,6 +415,7 @@ protected static > void setupAsyncSea op.add(AbstractBuilder::completionTime, DateTime._DESERIALIZER, "completion_time"); op.add(AbstractBuilder::completionTimeInMillis, JsonpDeserializer.longDeserializer(), "completion_time_in_millis"); + op.add(AbstractBuilder::error, ErrorCause._DESERIALIZER, "error"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java index 3352b83e23..8f6ea21cd3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java @@ -210,8 +210,7 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable { private final List rescore; - @Nullable - private final String routing; + private final List routing; private final Map runtimeMappings; @@ -299,7 +298,7 @@ private SubmitRequest(Builder builder) { this.query = builder.query; this.requestCache = builder.requestCache; this.rescore = ApiTypeHelper.unmodifiable(builder.rescore); - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); this.scriptFields = ApiTypeHelper.unmodifiable(builder.scriptFields); this.searchAfter = ApiTypeHelper.unmodifiable(builder.searchAfter); @@ -366,8 +365,7 @@ public final Boolean allowPartialSearchResults() { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * Specify whether wildcard and prefix queries should be analyzed *

    * API name: {@code analyze_wildcard} */ @@ -450,7 +448,7 @@ public final List docvalueFields() { /** * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * closed or both *

    * API name: {@code expand_wildcards} */ @@ -634,8 +632,7 @@ public final Query postFilter() { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specify the node or shard the operation should be performed on *

    * API name: {@code preference} */ @@ -709,8 +706,7 @@ public final List rescore() { *

    * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -1011,6 +1007,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("profile"); generator.write(this.profile); + } + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + } if (this.query != null) { generator.writeKey("query"); @@ -1262,7 +1263,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List rescore; @Nullable - private String routing; + private List routing; @Nullable private Map runtimeMappings; @@ -1399,8 +1400,7 @@ public final Builder allowPartialSearchResults(@Nullable Boolean value) { } /** - * Specify whether wildcard and prefix queries should be analyzed (default: - * false) + * Specify whether wildcard and prefix queries should be analyzed *

    * API name: {@code analyze_wildcard} */ @@ -1518,7 +1518,7 @@ public final Builder docvalueFields(Function * API name: {@code expand_wildcards} *

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

    * API name: {@code expand_wildcards} *

    @@ -1861,8 +1861,7 @@ public final Builder postFilter(QueryVariant value) { } /** - * Specify the node or shard the operation should be performed on (default: - * random) + * Specify the node or shard the operation should be performed on *

    * API name: {@code preference} */ @@ -1989,9 +1988,23 @@ public final Builder rescore(Function> f * A comma-separated list of specific routing values *

    * API name: {@code routing} + *

    + * Adds all elements of list to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A comma-separated list of specific routing values + *

    + * API name: {@code routing} + *

    + * Adds one or more values to routing. + */ + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -2440,6 +2453,7 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } if (request.ignoreUnavailable != null) { params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java index a86727e9fc..5c619bda82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java @@ -103,7 +103,7 @@ public final Time masterTimeout() { } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ @@ -161,7 +161,7 @@ public final Builder masterTimeout(Function> f } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java index 4faccea7f0..f3f7cac7be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java @@ -98,7 +98,7 @@ public final Time masterTimeout() { } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ @@ -142,7 +142,7 @@ public final Builder masterTimeout(Function> f } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java index 66e553363a..8633a26f6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java @@ -108,7 +108,7 @@ public final Time masterTimeout() { } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ @@ -183,7 +183,7 @@ public final Builder masterTimeout(Function> f } /** - * Required - the name of the autoscaling policy + * Required - Name of the autoscaling policy *

    * API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index 9ab5fb84c4..b6c3297e69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -24,6 +24,8 @@ import co.elastic.clients.elasticsearch._types.TimeUnit; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -72,8 +74,8 @@ * @see API * specification */ - -public class CountRequest extends CatRequestBase { +@JsonpDeserializable +public class CountRequest extends CatRequestBase implements JsonpSerializable { @Nullable private final Bytes bytes; @@ -147,11 +149,10 @@ public final List index() { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

    * API name: {@code project_routing} */ @@ -187,6 +188,25 @@ public final TimeUnit time() { return this.time; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + + } + + } + // --------------------------------------------------------------------------------------------- /** @@ -301,11 +321,10 @@ public final Builder index(String value, String... values) { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

    * API name: {@code project_routing} */ @@ -378,6 +397,20 @@ public CountRequest build() { // --------------------------------------------------------------------------------------------- + /** + * Json deserializer for {@link CountRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + CountRequest::setupCountRequestDeserializer); + + protected static void setupCountRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::projectRouting, JsonpDeserializer.stringDeserializer(), "project_routing"); + + } + + // --------------------------------------------------------------------------------------------- + /** * Endpoint "{@code cat.count}". */ @@ -386,7 +419,7 @@ public CountRequest build() { // Request method request -> { - return "GET"; + return "POST"; }, @@ -448,13 +481,10 @@ public CountRequest build() { if (ApiTypeHelper.isDefined(request.h)) { params.put("h", request.h.stream().map(v -> v).collect(Collectors.joining(","))); } - if (request.projectRouting != null) { - params.put("project_routing", request.projectRouting); - } if (request.time != null) { params.put("time", request.time.jsonValue()); } return params; - }, SimpleEndpoint.emptyMap(), false, CountResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), true, CountResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java index 6358831460..4574f4b94c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java @@ -21,6 +21,7 @@ import co.elastic.clients.elasticsearch._types.Bytes; import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.elasticsearch._types.TimeUnit; import co.elastic.clients.json.JsonpDeserializable; @@ -74,11 +75,25 @@ */ public class SegmentsRequest extends CatRequestBase { + @Nullable + private final Boolean allowClosed; + + @Nullable + private final Boolean allowNoIndices; + @Nullable private final Bytes bytes; + private final List expandWildcards; + private final List h; + @Nullable + private final Boolean ignoreThrottled; + + @Nullable + private final Boolean ignoreUnavailable; + private final List index; @Nullable @@ -96,8 +111,13 @@ public class SegmentsRequest extends CatRequestBase { private SegmentsRequest(Builder builder) { + this.allowClosed = builder.allowClosed; + this.allowNoIndices = builder.allowNoIndices; this.bytes = builder.bytes; + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); this.h = ApiTypeHelper.unmodifiable(builder.h); + this.ignoreThrottled = builder.ignoreThrottled; + this.ignoreUnavailable = builder.ignoreUnavailable; this.index = ApiTypeHelper.unmodifiable(builder.index); this.local = builder.local; this.masterTimeout = builder.masterTimeout; @@ -110,6 +130,32 @@ public static SegmentsRequest of(Function + * API name: {@code allow_closed} + */ + @Nullable + public final Boolean allowClosed() { + return this.allowClosed; + } + + /** + * If false, the request returns an error if any wildcard expression, index + * alias, or _all value targets only missing or closed indices. This behavior + * applies even if the request targets other open indices. For example, a + * request targeting foo*,bar* returns an error if an index starts with foo but + * no index starts with bar. + *

    + * API name: {@code allow_no_indices} + */ + @Nullable + public final Boolean allowNoIndices() { + return this.allowNoIndices; + } + /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -128,6 +174,17 @@ public final Bytes bytes() { return this.bytes; } + /** + * Type of index that wildcard expressions can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as open,hidden. + *

    + * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + /** * A comma-separated list of columns names to display. It supports simple * wildcards. @@ -138,6 +195,26 @@ public final List h() { return this.h; } + /** + * If true, concrete, expanded or aliased indices are ignored when frozen. + *

    + * API name: {@code ignore_throttled} + */ + @Nullable + public final Boolean ignoreThrottled() { + return this.ignoreThrottled; + } + + /** + * If true, missing or closed indices are not included in the response. + *

    + * API name: {@code ignore_unavailable} + */ + @Nullable + public final Boolean ignoreUnavailable() { + return this.ignoreUnavailable; + } + /** * A comma-separated list of data streams, indices, and aliases used to limit * the request. Supports wildcards (*). To target all data streams @@ -209,12 +286,27 @@ public final TimeUnit time() { public static class Builder extends CatRequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean allowClosed; + + @Nullable + private Boolean allowNoIndices; + @Nullable private Bytes bytes; + @Nullable + private List expandWildcards; + @Nullable private List h; + @Nullable + private Boolean ignoreThrottled; + + @Nullable + private Boolean ignoreUnavailable; + @Nullable private List index; @@ -230,6 +322,32 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + /** + * If true, allow closed indices to be returned in the response otherwise if + * false, keep the legacy behaviour of throwing an exception if index pattern + * matches closed indices + *

    + * API name: {@code allow_closed} + */ + public final Builder allowClosed(@Nullable Boolean value) { + this.allowClosed = value; + return this; + } + + /** + * If false, the request returns an error if any wildcard expression, index + * alias, or _all value targets only missing or closed indices. This behavior + * applies even if the request targets other open indices. For example, a + * request targeting foo*,bar* returns an error if an index starts with foo but + * no index starts with bar. + *

    + * API name: {@code allow_no_indices} + */ + public final Builder allowNoIndices(@Nullable Boolean value) { + this.allowNoIndices = value; + return this; + } + /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -248,6 +366,34 @@ public final Builder bytes(@Nullable Bytes value) { return this; } + /** + * Type of index that wildcard expressions can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as open,hidden. + *

    + * API name: {@code expand_wildcards} + *

    + * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Type of index that wildcard expressions can match. If the request can target + * data streams, this argument determines whether wildcard expressions match + * hidden data streams. Supports comma-separated values, such as open,hidden. + *

    + * API name: {@code expand_wildcards} + *

    + * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + /** * A comma-separated list of columns names to display. It supports simple * wildcards. @@ -288,6 +434,26 @@ public final Builder h(CatSegmentsColumn value, CatSegmentsColumn... values) { return this; } + /** + * If true, concrete, expanded or aliased indices are ignored when frozen. + *

    + * API name: {@code ignore_throttled} + */ + public final Builder ignoreThrottled(@Nullable Boolean value) { + this.ignoreThrottled = value; + return this; + } + + /** + * If true, missing or closed indices are not included in the response. + *

    + * API name: {@code ignore_unavailable} + */ + public final Builder ignoreUnavailable(@Nullable Boolean value) { + this.ignoreUnavailable = value; + return this; + } + /** * A comma-separated list of data streams, indices, and aliases used to limit * the request. Supports wildcards (*). To target all data streams @@ -480,12 +646,28 @@ public SegmentsRequest build() { if (ApiTypeHelper.isDefined(request.s)) { params.put("s", request.s.stream().map(v -> v).collect(Collectors.joining(","))); } + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.ignoreUnavailable != null) { + params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); + } + if (request.allowNoIndices != null) { + params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); + } + if (request.allowClosed != null) { + params.put("allow_closed", String.valueOf(request.allowClosed)); + } if (request.bytes != null) { params.put("bytes", request.bytes.jsonValue()); } if (ApiTypeHelper.isDefined(request.h)) { params.put("h", request.h.stream().map(v -> v).collect(Collectors.joining(","))); } + if (request.ignoreThrottled != null) { + params.put("ignore_throttled", String.valueOf(request.ignoreThrottled)); + } if (request.time != null) { params.put("time", request.time.jsonValue()); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java index 533b3b1eec..68fe8f5e57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java @@ -698,7 +698,11 @@ public final String rep() { } /** - * available docs + * The number of documents in the index, including hidden nested documents. For + * indices with semantic_text fields or other nested field types, + * this count includes the internal nested documents. To get the logical + * document count (excluding nested documents), use the _count API + * or _cat/count API instead. *

    * API name: {@code docs.count} */ @@ -3282,7 +3286,11 @@ public final Builder rep(@Nullable String value) { } /** - * available docs + * The number of documents in the index, including hidden nested documents. For + * indices with semantic_text fields or other nested field types, + * this count includes the internal nested documents. To get the logical + * document count (excluding nested documents), use the _count API + * or _cat/count API instead. *

    * API name: {@code docs.count} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java index d3dde85f64..ba876ee09d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrAsyncClient.java @@ -105,10 +105,12 @@ public final CompletableFuture deleteAutoFollow // ----- Endpoint: ccr.follow /** - * Create a follower. Create a cross-cluster replication follower index that - * follows a specific leader index. When the API returns, the follower index - * exists and cross-cluster replication starts replicating operations from the - * leader index to the follower index. + * Create a follower. + *

    + * Create a cross-cluster replication follower index that follows a specific + * leader index. When the API returns, the follower index exists and + * cross-cluster replication starts replicating operations from the leader index + * to the follower index. * * @see Documentation @@ -123,10 +125,12 @@ public CompletableFuture follow(FollowRequest request) { } /** - * Create a follower. Create a cross-cluster replication follower index that - * follows a specific leader index. When the API returns, the follower index - * exists and cross-cluster replication starts replicating operations from the - * leader index to the follower index. + * Create a follower. + *

    + * Create a cross-cluster replication follower index that follows a specific + * leader index. When the API returns, the follower index exists and + * cross-cluster replication starts replicating operations from the leader index + * to the follower index. * * @param fn * a function that initializes a builder to create the @@ -226,8 +230,10 @@ public final CompletableFuture followStats( // ----- Endpoint: ccr.forget_follower /** - * Forget a follower. Remove the cross-cluster replication follower retention - * leases from the leader. + * Forget a follower. + *

    + * Remove the cross-cluster replication follower retention leases from the + * leader. *

    * A following index takes out retention leases on its leader index. These * leases are used to increase the likelihood that the shards of the leader @@ -261,8 +267,10 @@ public CompletableFuture forgetFollower(ForgetFollowerRe } /** - * Forget a follower. Remove the cross-cluster replication follower retention - * leases from the leader. + * Forget a follower. + *

    + * Remove the cross-cluster replication follower retention leases from the + * leader. *

    * A following index takes out retention leases on its leader index. These * leases are used to increase the likelihood that the shards of the leader @@ -450,12 +458,13 @@ public final CompletableFuture pauseFollow( // ----- Endpoint: ccr.put_auto_follow_pattern /** - * Create or update auto-follow patterns. Create a collection of cross-cluster - * replication auto-follow patterns for a remote cluster. Newly created indices - * on the remote cluster that match any of the patterns are automatically - * configured as follower indices. Indices on the remote cluster that were - * created before the auto-follow pattern was created will not be auto-followed - * even if they match the pattern. + * Create or update auto-follow patterns. + *

    + * Create a collection of cross-cluster replication auto-follow patterns for a + * remote cluster. Newly created indices on the remote cluster that match any of + * the patterns are automatically configured as follower indices. Indices on the + * remote cluster that were created before the auto-follow pattern was created + * will not be auto-followed even if they match the pattern. *

    * This API can also be used to update auto-follow patterns. NOTE: Follower * indices that were configured automatically before updating an auto-follow @@ -475,12 +484,13 @@ public CompletableFuture putAutoFollowPattern(PutA } /** - * Create or update auto-follow patterns. Create a collection of cross-cluster - * replication auto-follow patterns for a remote cluster. Newly created indices - * on the remote cluster that match any of the patterns are automatically - * configured as follower indices. Indices on the remote cluster that were - * created before the auto-follow pattern was created will not be auto-followed - * even if they match the pattern. + * Create or update auto-follow patterns. + *

    + * Create a collection of cross-cluster replication auto-follow patterns for a + * remote cluster. Newly created indices on the remote cluster that match any of + * the patterns are automatically configured as follower indices. Indices on the + * remote cluster that were created before the auto-follow pattern was created + * will not be auto-followed even if they match the pattern. *

    * This API can also be used to update auto-follow patterns. NOTE: Follower * indices that were configured automatically before updating an auto-follow @@ -549,11 +559,13 @@ public final CompletableFuture resumeAutoFollow // ----- Endpoint: ccr.resume_follow /** - * Resume a follower. Resume a cross-cluster replication follower index that was - * paused. The follower index could have been paused with the pause follower - * API. Alternatively it could be paused due to replication that cannot be - * retried due to failures during following tasks. When this API returns, the - * follower index will resume fetching operations from the leader index. + * Resume a follower. + *

    + * Resume a cross-cluster replication follower index that was paused. The + * follower index could have been paused with the pause follower API. + * Alternatively it could be paused due to replication that cannot be retried + * due to failures during following tasks. When this API returns, the follower + * index will resume fetching operations from the leader index. * * @see Documentation @@ -568,11 +580,13 @@ public CompletableFuture resumeFollow(ResumeFollowRequest } /** - * Resume a follower. Resume a cross-cluster replication follower index that was - * paused. The follower index could have been paused with the pause follower - * API. Alternatively it could be paused due to replication that cannot be - * retried due to failures during following tasks. When this API returns, the - * follower index will resume fetching operations from the leader index. + * Resume a follower. + *

    + * Resume a cross-cluster replication follower index that was paused. The + * follower index could have been paused with the pause follower API. + * Alternatively it could be paused due to replication that cannot be retried + * due to failures during following tasks. When this API returns, the follower + * index will resume fetching operations from the leader index. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java index 87cdd47a3d..accce4a706 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ElasticsearchCcrClient.java @@ -107,10 +107,12 @@ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( // ----- Endpoint: ccr.follow /** - * Create a follower. Create a cross-cluster replication follower index that - * follows a specific leader index. When the API returns, the follower index - * exists and cross-cluster replication starts replicating operations from the - * leader index to the follower index. + * Create a follower. + *

    + * Create a cross-cluster replication follower index that follows a specific + * leader index. When the API returns, the follower index exists and + * cross-cluster replication starts replicating operations from the leader index + * to the follower index. * * @see Documentation @@ -125,10 +127,12 @@ public FollowResponse follow(FollowRequest request) throws IOException, Elastics } /** - * Create a follower. Create a cross-cluster replication follower index that - * follows a specific leader index. When the API returns, the follower index - * exists and cross-cluster replication starts replicating operations from the - * leader index to the follower index. + * Create a follower. + *

    + * Create a cross-cluster replication follower index that follows a specific + * leader index. When the API returns, the follower index exists and + * cross-cluster replication starts replicating operations from the leader index + * to the follower index. * * @param fn * a function that initializes a builder to create the @@ -229,8 +233,10 @@ public final FollowStatsResponse followStats( // ----- Endpoint: ccr.forget_follower /** - * Forget a follower. Remove the cross-cluster replication follower retention - * leases from the leader. + * Forget a follower. + *

    + * Remove the cross-cluster replication follower retention leases from the + * leader. *

    * A following index takes out retention leases on its leader index. These * leases are used to increase the likelihood that the shards of the leader @@ -265,8 +271,10 @@ public ForgetFollowerResponse forgetFollower(ForgetFollowerRequest request) } /** - * Forget a follower. Remove the cross-cluster replication follower retention - * leases from the leader. + * Forget a follower. + *

    + * Remove the cross-cluster replication follower retention leases from the + * leader. *

    * A following index takes out retention leases on its leader index. These * leases are used to increase the likelihood that the shards of the leader @@ -459,12 +467,13 @@ public final PauseFollowResponse pauseFollow( // ----- Endpoint: ccr.put_auto_follow_pattern /** - * Create or update auto-follow patterns. Create a collection of cross-cluster - * replication auto-follow patterns for a remote cluster. Newly created indices - * on the remote cluster that match any of the patterns are automatically - * configured as follower indices. Indices on the remote cluster that were - * created before the auto-follow pattern was created will not be auto-followed - * even if they match the pattern. + * Create or update auto-follow patterns. + *

    + * Create a collection of cross-cluster replication auto-follow patterns for a + * remote cluster. Newly created indices on the remote cluster that match any of + * the patterns are automatically configured as follower indices. Indices on the + * remote cluster that were created before the auto-follow pattern was created + * will not be auto-followed even if they match the pattern. *

    * This API can also be used to update auto-follow patterns. NOTE: Follower * indices that were configured automatically before updating an auto-follow @@ -485,12 +494,13 @@ public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternReq } /** - * Create or update auto-follow patterns. Create a collection of cross-cluster - * replication auto-follow patterns for a remote cluster. Newly created indices - * on the remote cluster that match any of the patterns are automatically - * configured as follower indices. Indices on the remote cluster that were - * created before the auto-follow pattern was created will not be auto-followed - * even if they match the pattern. + * Create or update auto-follow patterns. + *

    + * Create a collection of cross-cluster replication auto-follow patterns for a + * remote cluster. Newly created indices on the remote cluster that match any of + * the patterns are automatically configured as follower indices. Indices on the + * remote cluster that were created before the auto-follow pattern was created + * will not be auto-followed even if they match the pattern. *

    * This API can also be used to update auto-follow patterns. NOTE: Follower * indices that were configured automatically before updating an auto-follow @@ -561,11 +571,13 @@ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( // ----- Endpoint: ccr.resume_follow /** - * Resume a follower. Resume a cross-cluster replication follower index that was - * paused. The follower index could have been paused with the pause follower - * API. Alternatively it could be paused due to replication that cannot be - * retried due to failures during following tasks. When this API returns, the - * follower index will resume fetching operations from the leader index. + * Resume a follower. + *

    + * Resume a cross-cluster replication follower index that was paused. The + * follower index could have been paused with the pause follower API. + * Alternatively it could be paused due to replication that cannot be retried + * due to failures during following tasks. When this API returns, the follower + * index will resume fetching operations from the leader index. * * @see Documentation @@ -580,11 +592,13 @@ public ResumeFollowResponse resumeFollow(ResumeFollowRequest request) throws IOE } /** - * Resume a follower. Resume a cross-cluster replication follower index that was - * paused. The follower index could have been paused with the pause follower - * API. Alternatively it could be paused due to replication that cannot be - * retried due to failures during following tasks. When this API returns, the - * follower index will resume fetching operations from the leader index. + * Resume a follower. + *

    + * Resume a cross-cluster replication follower index that was paused. The + * follower index could have been paused with the pause follower API. + * Alternatively it could be paused due to replication that cannot be retried + * due to failures during following tasks. When this API returns, the follower + * index will resume fetching operations from the leader index. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java index a9e968997a..55793614ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java @@ -62,10 +62,12 @@ // typedef: ccr.follow.Request /** - * Create a follower. Create a cross-cluster replication follower index that - * follows a specific leader index. When the API returns, the follower index - * exists and cross-cluster replication starts replicating operations from the - * leader index to the follower index. + * Create a follower. + *

    + * Create a cross-cluster replication follower index that follows a specific + * leader index. When the API returns, the follower index exists and + * cross-cluster replication starts replicating operations from the leader index + * to the follower index. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java index 0881761e6d..e2b4f1af42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java @@ -58,8 +58,10 @@ // typedef: ccr.forget_follower.Request /** - * Forget a follower. Remove the cross-cluster replication follower retention - * leases from the leader. + * Forget a follower. + *

    + * Remove the cross-cluster replication follower retention leases from the + * leader. *

    * A following index takes out retention leases on its leader index. These * leases are used to increase the likelihood that the shards of the leader @@ -144,8 +146,8 @@ public final String followerIndexUuid() { } /** - * Required - the name of the leader index for which specified follower - * retention leases should be removed + * Required - Name of the leader index for which specified follower retention + * leases should be removed *

    * API name: {@code index} */ @@ -257,8 +259,8 @@ public final Builder followerIndexUuid(@Nullable String value) { } /** - * Required - the name of the leader index for which specified follower - * retention leases should be removed + * Required - Name of the leader index for which specified follower retention + * leases should be removed *

    * API name: {@code index} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java index a98cd5d5db..26f6535c9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java @@ -61,12 +61,13 @@ // typedef: ccr.put_auto_follow_pattern.Request /** - * Create or update auto-follow patterns. Create a collection of cross-cluster - * replication auto-follow patterns for a remote cluster. Newly created indices - * on the remote cluster that match any of the patterns are automatically - * configured as follower indices. Indices on the remote cluster that were - * created before the auto-follow pattern was created will not be auto-followed - * even if they match the pattern. + * Create or update auto-follow patterns. + *

    + * Create a collection of cross-cluster replication auto-follow patterns for a + * remote cluster. Newly created indices on the remote cluster that match any of + * the patterns are automatically configured as follower indices. Indices on the + * remote cluster that were created before the auto-follow pattern was created + * will not be auto-followed even if they match the pattern. *

    * This API can also be used to update auto-follow patterns. NOTE: Follower * indices that were configured automatically before updating an auto-follow diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java index 587e9efb82..8ce810e4ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java @@ -59,11 +59,13 @@ // typedef: ccr.resume_follow.Request /** - * Resume a follower. Resume a cross-cluster replication follower index that was - * paused. The follower index could have been paused with the pause follower - * API. Alternatively it could be paused due to replication that cannot be - * retried due to failures during following tasks. When this API returns, the - * follower index will resume fetching operations from the leader index. + * Resume a follower. + *

    + * Resume a cross-cluster replication follower index that was paused. The + * follower index could have been paused with the pause follower API. + * Alternatively it could be paused due to replication that cannot be retried + * due to failures during following tasks. When this API returns, the follower + * index will resume fetching operations from the leader index. * * @see API * specification @@ -129,7 +131,7 @@ public static ResumeFollowRequest of(Function * API name: {@code index} */ @@ -336,7 +338,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time readPollTimeout; /** - * Required - The name of the follow index to resume following. + * Required - Name of the follow index to resume following *

    * API name: {@code index} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java index dcaaaecc8f..8b7d8e2611 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java @@ -60,16 +60,18 @@ // typedef: cluster.allocation_explain.Request /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java index e0cbc76f9a..22646ebbfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java @@ -58,7 +58,9 @@ // typedef: cluster.info.Request /** - * Get cluster info. Returns basic information about the cluster. + * Get cluster info. + *

    + * Returns basic information about the cluster. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java index 0d4e38fc4d..76217bc81f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java @@ -59,9 +59,11 @@ // typedef: cluster.stats.Request /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java index 047a99518f..1612ebd055 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java @@ -22,7 +22,7 @@ import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; import co.elastic.clients.elasticsearch.indices.AliasDefinition; import co.elastic.clients.elasticsearch.indices.DataStreamLifecycleWithRollover; -import co.elastic.clients.elasticsearch.indices.DataStreamOptionsTemplate; +import co.elastic.clients.elasticsearch.indices.DataStreamOptions; import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; @@ -84,7 +84,7 @@ public class ComponentTemplateSummary implements JsonpSerializable { private final DataStreamLifecycleWithRollover lifecycle; @Nullable - private final DataStreamOptionsTemplate dataStreamOptions; + private final DataStreamOptions dataStreamOptions; // --------------------------------------------------------------------------------------------- @@ -153,7 +153,7 @@ public final DataStreamLifecycleWithRollover lifecycle() { * API name: {@code data_stream_options} */ @Nullable - public final DataStreamOptionsTemplate dataStreamOptions() { + public final DataStreamOptions dataStreamOptions() { return this.dataStreamOptions; } @@ -257,7 +257,7 @@ public static class Builder extends WithJsonObjectBuilderBase private DataStreamLifecycleWithRollover lifecycle; @Nullable - private DataStreamOptionsTemplate dataStreamOptions; + private DataStreamOptions dataStreamOptions; /** * API name: {@code _meta} @@ -379,7 +379,7 @@ public final Builder lifecycle( /** * API name: {@code data_stream_options} */ - public final Builder dataStreamOptions(@Nullable DataStreamOptionsTemplate value) { + public final Builder dataStreamOptions(@Nullable DataStreamOptions value) { this.dataStreamOptions = value; return this; } @@ -388,8 +388,8 @@ public final Builder dataStreamOptions(@Nullable DataStreamOptionsTemplate value * API name: {@code data_stream_options} */ public final Builder dataStreamOptions( - Function> fn) { - return this.dataStreamOptions(fn.apply(new DataStreamOptionsTemplate.Builder()).build()); + Function> fn) { + return this.dataStreamOptions(fn.apply(new DataStreamOptions.Builder()).build()); } @Override @@ -427,7 +427,7 @@ protected static void setupComponentTemplateSummaryDeserializer( op.add(Builder::mappings, TypeMapping._DESERIALIZER, "mappings"); op.add(Builder::aliases, JsonpDeserializer.stringMapDeserializer(AliasDefinition._DESERIALIZER), "aliases"); op.add(Builder::lifecycle, DataStreamLifecycleWithRollover._DESERIALIZER, "lifecycle"); - op.add(Builder::dataStreamOptions, DataStreamOptionsTemplate._DESERIALIZER, "data_stream_options"); + op.add(Builder::dataStreamOptions, DataStreamOptions._DESERIALIZER, "data_stream_options"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index 095f694f79..2ab2efd72d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -58,9 +58,10 @@ // typedef: cluster.delete_component_template.Request /** - * Delete component templates. Component templates are building blocks for - * constructing index templates that specify index mappings, settings, and - * aliases. + * Delete component templates. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java index f2693fb577..3c01983203 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java @@ -58,8 +58,9 @@ // typedef: cluster.delete_voting_config_exclusions.Request /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java index 1d54471ddd..9cca5bca50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java @@ -71,16 +71,18 @@ public ElasticsearchClusterAsyncClient withTransportOptions(@Nullable TransportO // ----- Endpoint: cluster.allocation_explain /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @see Documentation @@ -95,16 +97,18 @@ public CompletableFuture allocationExplain(Allocation } /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @param fn * a function that initializes a builder to create the @@ -120,16 +124,18 @@ public final CompletableFuture allocationExplain( } /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @see Documentation @@ -144,9 +150,10 @@ public CompletableFuture allocationExplain() { // ----- Endpoint: cluster.delete_component_template /** - * Delete component templates. Component templates are building blocks for - * constructing index templates that specify index mappings, settings, and - * aliases. + * Delete component templates. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. * * @see Documentation @@ -162,9 +169,10 @@ public CompletableFuture deleteComponentTemplat } /** - * Delete component templates. Component templates are building blocks for - * constructing index templates that specify index mappings, settings, and - * aliases. + * Delete component templates. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. * * @param fn * a function that initializes a builder to create the @@ -182,8 +190,9 @@ public final CompletableFuture deleteComponentT // ----- Endpoint: cluster.delete_voting_config_exclusions /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @see Documentation @@ -199,8 +208,9 @@ public CompletableFuture deleteVotingConfigExclusions( } /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @param fn * a function that initializes a builder to create the @@ -216,8 +226,9 @@ public final CompletableFuture deleteVotingConfigExclusions( } /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @see Documentation @@ -232,8 +243,9 @@ public CompletableFuture deleteVotingConfigExclusions() { // ----- Endpoint: cluster.exists_component_template /** - * Check component templates. Returns information about whether a particular - * component template exists. + * Check component templates. + *

    + * Returns information about whether a particular component template exists. * * @see Documentation @@ -248,8 +260,9 @@ public CompletableFuture existsComponentTemplate(ExistsComponen } /** - * Check component templates. Returns information about whether a particular - * component template exists. + * Check component templates. + *

    + * Returns information about whether a particular component template exists. * * @param fn * a function that initializes a builder to create the @@ -267,7 +280,9 @@ public final CompletableFuture existsComponentTemplate( // ----- Endpoint: cluster.get_component_template /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @see Documentation @@ -282,7 +297,9 @@ public CompletableFuture getComponentTemplate(GetC } /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @param fn * a function that initializes a builder to create the @@ -298,7 +315,9 @@ public final CompletableFuture getComponentTemplat } /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @see Documentation @@ -453,7 +472,9 @@ public CompletableFuture health() { // ----- Endpoint: cluster.info /** - * Get cluster info. Returns basic information about the cluster. + * Get cluster info. + *

    + * Returns basic information about the cluster. * * @see Documentation @@ -468,7 +489,9 @@ public CompletableFuture info(ClusterInfoRequest request) { } /** - * Get cluster info. Returns basic information about the cluster. + * Get cluster info. + *

    + * Returns basic information about the cluster. * * @param fn * a function that initializes a builder to create the @@ -486,9 +509,10 @@ public final CompletableFuture info( // ----- Endpoint: cluster.pending_tasks /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -510,9 +534,10 @@ public CompletableFuture pendingTasks(PendingTasksRequest } /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -535,9 +560,10 @@ public final CompletableFuture pendingTasks( } /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -559,16 +585,17 @@ public CompletableFuture pendingTasks() { // ----- Endpoint: cluster.post_voting_config_exclusions /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -609,16 +636,17 @@ public CompletableFuture postVotingConfigExclusions(PostVotingC } /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -660,16 +688,17 @@ public final CompletableFuture postVotingConfigExclusions( } /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -710,9 +739,10 @@ public CompletableFuture postVotingConfigExclusions() { // ----- Endpoint: cluster.put_component_template /** - * Create or update a component template. Component templates are building - * blocks for constructing index templates that specify index mappings, - * settings, and aliases. + * Create or update a component template. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. *

    * An index template can be composed of multiple component templates. To use a * component template, specify it in an index template’s @@ -751,9 +781,10 @@ public CompletableFuture putComponentTemplate(PutC } /** - * Create or update a component template. Component templates are building - * blocks for constructing index templates that specify index mappings, - * settings, and aliases. + * Create or update a component template. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. *

    * An index template can be composed of multiple component templates. To use a * component template, specify it in an index template’s @@ -955,10 +986,12 @@ public CompletableFuture remoteInfo() { // ----- Endpoint: cluster.reroute /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -996,10 +1029,12 @@ public CompletableFuture reroute(RerouteRequest request) { } /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -1038,10 +1073,12 @@ public final CompletableFuture reroute( } /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -1079,8 +1116,9 @@ public CompletableFuture reroute() { // ----- Endpoint: cluster.state /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1123,8 +1161,9 @@ public CompletableFuture state(StateRequest request) { } /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1168,8 +1207,9 @@ public final CompletableFuture state( } /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1212,9 +1252,11 @@ public CompletableFuture state() { // ----- Endpoint: cluster.stats /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @see Documentation @@ -1229,9 +1271,11 @@ public CompletableFuture stats(ClusterStatsRequest request } /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @param fn * a function that initializes a builder to create the @@ -1247,9 +1291,11 @@ public final CompletableFuture stats( } /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java index 4e6b8f391c..0465f61838 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java @@ -69,16 +69,18 @@ public ElasticsearchClusterClient withTransportOptions(@Nullable TransportOption // ----- Endpoint: cluster.allocation_explain /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @see Documentation @@ -94,16 +96,18 @@ public AllocationExplainResponse allocationExplain(AllocationExplainRequest requ } /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @param fn * a function that initializes a builder to create the @@ -120,16 +124,18 @@ public final AllocationExplainResponse allocationExplain( } /** - * Explain the shard allocations. Get explanations for shard allocations in the - * cluster. This API accepts the current_node, index, primary and shard - * parameters in the request body or in query parameters, but not in both at the - * same time. For unassigned shards, it provides an explanation for why the - * shard is unassigned. For assigned shards, it provides an explanation for why - * the shard is remaining on its current node and has not moved or rebalanced to - * another node. This API can be very useful when attempting to diagnose why a - * shard is unassigned or why a shard continues to remain on its current node - * when you might expect otherwise. Refer to the linked documentation for - * examples of how to troubleshoot allocation issues using this API. + * Explain the shard allocations. + *

    + * Get explanations for shard allocations in the cluster. This API accepts the + * current_node, index, primary and shard parameters in the request body or in + * query parameters, but not in both at the same time. For unassigned shards, it + * provides an explanation for why the shard is unassigned. For assigned shards, + * it provides an explanation for why the shard is remaining on its current node + * and has not moved or rebalanced to another node. This API can be very useful + * when attempting to diagnose why a shard is unassigned or why a shard + * continues to remain on its current node when you might expect otherwise. + * Refer to the linked documentation for examples of how to troubleshoot + * allocation issues using this API. * * @see Documentation @@ -144,9 +150,10 @@ public AllocationExplainResponse allocationExplain() throws IOException, Elastic // ----- Endpoint: cluster.delete_component_template /** - * Delete component templates. Component templates are building blocks for - * constructing index templates that specify index mappings, settings, and - * aliases. + * Delete component templates. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. * * @see Documentation @@ -162,9 +169,10 @@ public DeleteComponentTemplateResponse deleteComponentTemplate(DeleteComponentTe } /** - * Delete component templates. Component templates are building blocks for - * constructing index templates that specify index mappings, settings, and - * aliases. + * Delete component templates. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. * * @param fn * a function that initializes a builder to create the @@ -183,8 +191,9 @@ public final DeleteComponentTemplateResponse deleteComponentTemplate( // ----- Endpoint: cluster.delete_voting_config_exclusions /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @see Documentation @@ -200,8 +209,9 @@ public BooleanResponse deleteVotingConfigExclusions(DeleteVotingConfigExclusions } /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @param fn * a function that initializes a builder to create the @@ -218,8 +228,9 @@ public final BooleanResponse deleteVotingConfigExclusions( } /** - * Clear cluster voting config exclusions. Remove master-eligible nodes from the - * voting configuration exclusion list. + * Clear cluster voting config exclusions. + *

    + * Remove master-eligible nodes from the voting configuration exclusion list. * * @see Documentation @@ -234,8 +245,9 @@ public BooleanResponse deleteVotingConfigExclusions() throws IOException, Elasti // ----- Endpoint: cluster.exists_component_template /** - * Check component templates. Returns information about whether a particular - * component template exists. + * Check component templates. + *

    + * Returns information about whether a particular component template exists. * * @see Documentation @@ -251,8 +263,9 @@ public BooleanResponse existsComponentTemplate(ExistsComponentTemplateRequest re } /** - * Check component templates. Returns information about whether a particular - * component template exists. + * Check component templates. + *

    + * Returns information about whether a particular component template exists. * * @param fn * a function that initializes a builder to create the @@ -271,7 +284,9 @@ public final BooleanResponse existsComponentTemplate( // ----- Endpoint: cluster.get_component_template /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @see Documentation @@ -287,7 +302,9 @@ public GetComponentTemplateResponse getComponentTemplate(GetComponentTemplateReq } /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @param fn * a function that initializes a builder to create the @@ -304,7 +321,9 @@ public final GetComponentTemplateResponse getComponentTemplate( } /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @see Documentation @@ -461,7 +480,9 @@ public HealthResponse health() throws IOException, ElasticsearchException { // ----- Endpoint: cluster.info /** - * Get cluster info. Returns basic information about the cluster. + * Get cluster info. + *

    + * Returns basic information about the cluster. * * @see Documentation @@ -476,7 +497,9 @@ public ClusterInfoResponse info(ClusterInfoRequest request) throws IOException, } /** - * Get cluster info. Returns basic information about the cluster. + * Get cluster info. + *

    + * Returns basic information about the cluster. * * @param fn * a function that initializes a builder to create the @@ -494,9 +517,10 @@ public final ClusterInfoResponse info(Function + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -518,9 +542,10 @@ public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOE } /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -544,9 +569,10 @@ public final PendingTasksResponse pendingTasks( } /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which @@ -568,16 +594,17 @@ public PendingTasksResponse pendingTasks() throws IOException, ElasticsearchExce // ----- Endpoint: cluster.post_voting_config_exclusions /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -619,16 +646,17 @@ public BooleanResponse postVotingConfigExclusions(PostVotingConfigExclusionsRequ } /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -671,16 +699,17 @@ public final BooleanResponse postVotingConfigExclusions( } /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. @@ -721,9 +750,10 @@ public BooleanResponse postVotingConfigExclusions() throws IOException, Elastics // ----- Endpoint: cluster.put_component_template /** - * Create or update a component template. Component templates are building - * blocks for constructing index templates that specify index mappings, - * settings, and aliases. + * Create or update a component template. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. *

    * An index template can be composed of multiple component templates. To use a * component template, specify it in an index template’s @@ -763,9 +793,10 @@ public PutComponentTemplateResponse putComponentTemplate(PutComponentTemplateReq } /** - * Create or update a component template. Component templates are building - * blocks for constructing index templates that specify index mappings, - * settings, and aliases. + * Create or update a component template. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. *

    * An index template can be composed of multiple component templates. To use a * component template, specify it in an index template’s @@ -970,10 +1001,12 @@ public RemoteInfoResponse remoteInfo() throws IOException, ElasticsearchExceptio // ----- Endpoint: cluster.reroute /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -1011,10 +1044,12 @@ public RerouteResponse reroute(RerouteRequest request) throws IOException, Elast } /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -1053,10 +1088,12 @@ public final RerouteResponse reroute(Function + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -1094,8 +1131,9 @@ public RerouteResponse reroute() throws IOException, ElasticsearchException { // ----- Endpoint: cluster.state /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1138,8 +1176,9 @@ public StateResponse state(StateRequest request) throws IOException, Elasticsear } /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1183,8 +1222,9 @@ public final StateResponse state(Function + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -1227,9 +1267,11 @@ public StateResponse state() throws IOException, ElasticsearchException { // ----- Endpoint: cluster.stats /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @see Documentation @@ -1244,9 +1286,11 @@ public ClusterStatsResponse stats(ClusterStatsRequest request) throws IOExceptio } /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @param fn * a function that initializes a builder to create the @@ -1263,9 +1307,11 @@ public final ClusterStatsResponse stats( } /** - * Get cluster statistics. Get basic index metrics (shard numbers, store size, - * memory usage) and information about the current nodes that form the cluster - * (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + * Get cluster statistics. + *

    + * Get basic index metrics (shard numbers, store size, memory usage) and + * information about the current nodes that form the cluster (number, roles, os, + * jvm versions, memory usage, cpu and installed plugins). * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index a30c582f5e..af7b715d15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -61,8 +61,9 @@ // typedef: cluster.exists_component_template.Request /** - * Check component templates. Returns information about whether a particular - * component template exists. + * Check component templates. + *

    + * Returns information about whether a particular component template exists. * * @see API @@ -98,7 +99,11 @@ public static ExistsComponentTemplateRequest of( * to false, which means information is retrieved from the master node. *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -147,7 +152,11 @@ public static class Builder extends RequestBase.AbstractBuilder * to false, which means information is retrieved from the master node. *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; 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 a20ce4fd06..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 @@ -59,7 +59,9 @@ // typedef: cluster.get_component_template.Request /** - * Get component templates. Get information about component templates. + * Get component templates. + *

    + * Get information about component templates. * * @see API @@ -112,7 +114,7 @@ public final Boolean flatSettings() { } /** - * Return all default configurations for the component template (default: false) + * Return all default configurations for the component template *

    * API name: {@code include_defaults} */ @@ -126,7 +128,11 @@ public final Boolean includeDefaults() { * only. If false, information is retrieved from the master node. *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -144,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} */ @@ -202,7 +208,7 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Return all default configurations for the component template (default: false) + * Return all default configurations for the component template *

    * API name: {@code include_defaults} */ @@ -216,7 +222,11 @@ public final Builder includeDefaults(@Nullable Boolean value) { * only. If false, information is retrieved from the master node. *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; @@ -244,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/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index dd3d455519..255d342d23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -56,9 +56,10 @@ // typedef: cluster.pending_tasks.Request /** - * Get the pending cluster tasks. Get information about cluster-level changes - * (such as create index, update mapping, allocate or fail shard) that have not - * yet taken effect. + * Get the pending cluster tasks. + *

    + * Get information about cluster-level changes (such as create index, update + * mapping, allocate or fail shard) that have not yet taken effect. *

    * NOTE: This API returns a list of any pending updates to the cluster state. * These are distinct from the tasks reported by the task management API which diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java index 66b3cd8558..48a5101956 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java @@ -61,16 +61,17 @@ // typedef: cluster.post_voting_config_exclusions.Request /** - * Update voting configuration exclusions. Update the cluster voting config - * exclusions by node IDs or node names. By default, if there are more than - * three master-eligible nodes in the cluster and you remove fewer than half of - * the master-eligible nodes in the cluster at once, the voting configuration - * automatically shrinks. If you want to shrink the voting configuration to - * contain fewer than three nodes or to remove half or more of the - * master-eligible nodes in the cluster at once, use this API to remove - * departing nodes from the voting configuration manually. The API adds an entry - * for each specified node to the cluster’s voting configuration exclusions - * list. It then waits until the cluster has reconfigured its voting + * Update voting configuration exclusions. + *

    + * Update the cluster voting config exclusions by node IDs or node names. By + * default, if there are more than three master-eligible nodes in the cluster + * and you remove fewer than half of the master-eligible nodes in the cluster at + * once, the voting configuration automatically shrinks. If you want to shrink + * the voting configuration to contain fewer than three nodes or to remove half + * or more of the master-eligible nodes in the cluster at once, use this API to + * remove departing nodes from the voting configuration manually. The API adds + * an entry for each specified node to the cluster’s voting configuration + * exclusions list. It then waits until the cluster has reconfigured its voting * configuration to exclude the specified nodes. *

    * Clusters should have no voting configuration exclusions in normal operation. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java index b733b6714b..95d4a49cd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java @@ -126,7 +126,7 @@ public static PutClusterSettingsRequest of(Function * API name: {@code flat_settings} */ @@ -136,7 +136,7 @@ public final Boolean flatSettings() { } /** - * Explicit operation timeout for connection to master node + * The period to wait for a connection to the master node. *

    * API name: {@code master_timeout} */ @@ -155,7 +155,7 @@ public final Map persistent() { } /** - * Explicit operation timeout + * The period to wait for a response. *

    * API name: {@code timeout} */ @@ -234,7 +234,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Map transient_; /** - * Return settings in flat format (default: false) + * Return settings in flat format *

    * API name: {@code flat_settings} */ @@ -244,7 +244,7 @@ public final Builder flatSettings(@Nullable Boolean value) { } /** - * Explicit operation timeout for connection to master node + * The period to wait for a connection to the master node. *

    * API name: {@code master_timeout} */ @@ -254,7 +254,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Explicit operation timeout for connection to master node + * The period to wait for a connection to the master node. *

    * API name: {@code master_timeout} */ @@ -287,7 +287,7 @@ public final Builder persistent(String key, JsonData value) { } /** - * Explicit operation timeout + * The period to wait for a response. *

    * API name: {@code timeout} */ @@ -297,7 +297,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * The period to wait for a response. *

    * API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 049abd41af..90f4743330 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -22,7 +22,7 @@ import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.elasticsearch.indices.IndexState; +import co.elastic.clients.elasticsearch.indices.put_index_template.IndexTemplateMapping; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -62,9 +62,10 @@ // typedef: cluster.put_component_template.Request /** - * Create or update a component template. Component templates are building - * blocks for constructing index templates that specify index mappings, - * settings, and aliases. + * Create or update a component template. + *

    + * Component templates are building blocks for constructing index templates that + * specify index mappings, settings, and aliases. *

    * An index template can be composed of multiple component templates. To use a * component template, specify it in an index template’s @@ -112,7 +113,7 @@ public class PutComponentTemplateRequest extends RequestBase implements JsonpSer private final String name; - private final IndexState template; + private final IndexTemplateMapping template; @Nullable private final Long version; @@ -218,7 +219,7 @@ public final String name() { *

    * API name: {@code template} */ - public final IndexState template() { + public final IndexTemplateMapping template() { return this.template; } @@ -298,7 +299,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; - private IndexState template; + private IndexTemplateMapping template; @Nullable private Long version; @@ -415,7 +416,7 @@ public final Builder name(String value) { *

    * API name: {@code template} */ - public final Builder template(IndexState value) { + public final Builder template(IndexTemplateMapping value) { this.template = value; return this; } @@ -426,8 +427,8 @@ public final Builder template(IndexState value) { *

    * API name: {@code template} */ - public final Builder template(Function> fn) { - return this.template(fn.apply(new IndexState.Builder()).build()); + public final Builder template(Function> fn) { + return this.template(fn.apply(new IndexTemplateMapping.Builder()).build()); } /** @@ -473,7 +474,7 @@ protected static void setupPutComponentTemplateRequestDeserializer( op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); op.add(Builder::deprecated, JsonpDeserializer.booleanDeserializer(), "deprecated"); - op.add(Builder::template, IndexState._DESERIALIZER, "template"); + op.add(Builder::template, IndexTemplateMapping._DESERIALIZER, "template"); op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java index 1f63486bff..b0f7720bc3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java @@ -63,10 +63,12 @@ // typedef: cluster.reroute.Request /** - * Reroute the cluster. Manually change the allocation of individual shards in - * the cluster. For example, a shard can be moved from one node to another - * explicitly, an allocation can be canceled, and an unassigned shard can be - * explicitly allocated to a specific node. + * Reroute the cluster. + *

    + * Manually change the allocation of individual shards in the cluster. For + * example, a shard can be moved from one node to another explicitly, an + * allocation can be canceled, and an unassigned shard can be explicitly + * allocated to a specific node. *

    * It is important to note that after processing any reroute commands * Elasticsearch will perform rebalancing as normal (respecting the values of @@ -181,7 +183,11 @@ public final Time masterTimeout() { * Limits the information returned to the specified metrics. *

    * API name: {@code metric} + * + * @deprecated 8.6.0 This parameter has no effect; its use will be forbidden in + * a future version. */ + @Deprecated public final List metric() { return this.metric; } @@ -346,7 +352,11 @@ public final Builder masterTimeout(Function> f * API name: {@code metric} *

    * Adds all elements of list to metric. + * + * @deprecated 8.6.0 This parameter has no effect; its use will be forbidden in + * a future version. */ + @Deprecated public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; @@ -358,7 +368,11 @@ public final Builder metric(List list) { * API name: {@code metric} *

    * Adds one or more values to metric. + * + * @deprecated 8.6.0 This parameter has no effect; its use will be forbidden in + * a future version. */ + @Deprecated public final Builder metric(String value, String... values) { this.metric = _listAdd(this.metric, value, values); return this; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java index 138858ebd9..209ca5f63d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java @@ -23,6 +23,7 @@ import co.elastic.clients.elasticsearch._types.ExpandWildcard; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.cluster.state.ClusterStateMetric; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -61,8 +62,9 @@ // typedef: cluster.state.Request /** - * Get the cluster state. Get comprehensive information about the state of the - * cluster. + * Get the cluster state. + *

    + * Get comprehensive information about the state of the cluster. *

    * The cluster state is an internal data structure which keeps track of a * variety of information needed by every node, including the identity and @@ -116,7 +118,7 @@ public class StateRequest extends RequestBase { @Nullable private final Time masterTimeout; - private final List metric; + private final List metric; @Nullable private final Long waitForMetadataVersion; @@ -159,7 +161,7 @@ public final Boolean allowNoIndices() { /** * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * closed or both *

    * API name: {@code expand_wildcards} */ @@ -168,7 +170,7 @@ public final List expandWildcards() { } /** - * Return settings in flat format (default: false) + * Return settings in flat format *

    * API name: {@code flat_settings} */ @@ -200,10 +202,13 @@ public final List index() { /** * Return local information, do not retrieve the state from master node - * (default: false) *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -213,21 +218,18 @@ public final Boolean local() { * Timeout for waiting for new cluster state in case it is blocked *

    * API name: {@code master_timeout} - * - * @deprecated 9.2.0 */ - @Deprecated @Nullable public final Time masterTimeout() { return this.masterTimeout; } /** - * Limit the information returned to the specified metrics + * Limit the information returned to the specified metrics. *

    * API name: {@code metric} */ - public final List metric() { + public final List metric() { return this.metric; } @@ -281,7 +283,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Time masterTimeout; @Nullable - private List metric; + private List metric; @Nullable private Long waitForMetadataVersion; @@ -303,7 +305,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { /** * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * closed or both *

    * API name: {@code expand_wildcards} *

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

    * API name: {@code expand_wildcards} *

    @@ -328,7 +330,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Return settings in flat format (default: false) + * Return settings in flat format *

    * API name: {@code flat_settings} */ @@ -376,10 +378,13 @@ public final Builder index(String value, String... values) { /** * Return local information, do not retrieve the state from master node - * (default: false) *

    * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; @@ -389,10 +394,7 @@ public final Builder local(@Nullable Boolean value) { * Timeout for waiting for new cluster state in case it is blocked *

    * API name: {@code master_timeout} - * - * @deprecated 9.2.0 */ - @Deprecated public final Builder masterTimeout(@Nullable Time value) { this.masterTimeout = value; return this; @@ -402,34 +404,31 @@ public final Builder masterTimeout(@Nullable Time value) { * Timeout for waiting for new cluster state in case it is blocked *

    * API name: {@code master_timeout} - * - * @deprecated 9.2.0 */ - @Deprecated public final Builder masterTimeout(Function> fn) { return this.masterTimeout(fn.apply(new Time.Builder()).build()); } /** - * Limit the information returned to the specified metrics + * Limit the information returned to the specified metrics. *

    * API name: {@code metric} *

    * Adds all elements of list to metric. */ - public final Builder metric(List list) { + public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; } /** - * Limit the information returned to the specified metrics + * Limit the information returned to the specified metrics. *

    * API name: {@code metric} *

    * Adds one or more values to metric. */ - public final Builder metric(String value, String... values) { + public final Builder metric(ClusterStateMetric value, ClusterStateMetric... values) { this.metric = _listAdd(this.metric, value, values); return this; } @@ -519,8 +518,8 @@ public StateRequest build() { buf.append("/_cluster"); buf.append("/state"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_metric | _index)) { @@ -528,8 +527,8 @@ public StateRequest build() { buf.append("/_cluster"); buf.append("/state"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); buf.append("/"); SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); return buf.toString(); @@ -554,10 +553,12 @@ public StateRequest build() { if (propsSet == 0) { } if (propsSet == (_metric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_metric | _index)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); } return params; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java index 0d424dc8d4..102fc21611 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java @@ -81,13 +81,14 @@ public class NodeAllocationExplanation implements JsonpSerializable { private final String transportAddress; - private final int weightRanking; + @Nullable + private final Integer weightRanking; // --------------------------------------------------------------------------------------------- private NodeAllocationExplanation(Builder builder) { - this.deciders = ApiTypeHelper.unmodifiableRequired(builder.deciders, this, "deciders"); + this.deciders = ApiTypeHelper.unmodifiable(builder.deciders); this.nodeAttributes = ApiTypeHelper.unmodifiableRequired(builder.nodeAttributes, this, "nodeAttributes"); this.nodeDecision = ApiTypeHelper.requireNonNull(builder.nodeDecision, this, "nodeDecision"); this.nodeId = ApiTypeHelper.requireNonNull(builder.nodeId, this, "nodeId"); @@ -95,7 +96,7 @@ private NodeAllocationExplanation(Builder builder) { this.roles = ApiTypeHelper.unmodifiableRequired(builder.roles, this, "roles"); this.store = builder.store; this.transportAddress = ApiTypeHelper.requireNonNull(builder.transportAddress, this, "transportAddress"); - this.weightRanking = ApiTypeHelper.requireNonNull(builder.weightRanking, this, "weightRanking", 0); + this.weightRanking = builder.weightRanking; } @@ -104,7 +105,7 @@ public static NodeAllocationExplanation of(Function deciders() { return this.deciders; @@ -161,9 +162,10 @@ public final String transportAddress() { } /** - * Required - API name: {@code weight_ranking} + * API name: {@code weight_ranking} */ - public final int weightRanking() { + @Nullable + public final Integer weightRanking() { return this.weightRanking; } @@ -224,8 +226,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("transport_address"); generator.write(this.transportAddress); - generator.writeKey("weight_ranking"); - generator.write(this.weightRanking); + if (this.weightRanking != null) { + generator.writeKey("weight_ranking"); + generator.write(this.weightRanking); + + } } @@ -243,6 +248,7 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable private List deciders; private Map nodeAttributes; @@ -260,10 +266,11 @@ public static class Builder extends WithJsonObjectBuilderBase private String transportAddress; + @Nullable private Integer weightRanking; /** - * Required - API name: {@code deciders} + * API name: {@code deciders} *

    * Adds all elements of list to deciders. */ @@ -273,7 +280,7 @@ public final Builder deciders(List list) { } /** - * Required - API name: {@code deciders} + * API name: {@code deciders} *

    * Adds one or more values to deciders. */ @@ -283,7 +290,7 @@ public final Builder deciders(AllocationDecision value, AllocationDecision... va } /** - * Required - API name: {@code deciders} + * API name: {@code deciders} *

    * Adds a value to deciders using a builder lambda. */ @@ -379,9 +386,9 @@ public final Builder transportAddress(String value) { } /** - * Required - API name: {@code weight_ranking} + * API name: {@code weight_ranking} */ - public final Builder weightRanking(int value) { + public final Builder weightRanking(@Nullable Integer value) { this.weightRanking = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java new file mode 100644 index 0000000000..80c6b5a0ff --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/state/ClusterStateMetric.java @@ -0,0 +1,81 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.cluster.state; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterStateMetric implements JsonEnum { + All("_all"), + + Version("version"), + + MasterNode("master_node"), + + Blocks("blocks"), + + Nodes("nodes"), + + Metadata("metadata"), + + RoutingTable("routing_table"), + + RoutingNodes("routing_nodes"), + + Customs("customs"), + + ; + + private final String jsonValue; + + ClusterStateMetric(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterStateMetric.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java index 3d7e4916fd..06b6a5cf71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java @@ -87,6 +87,16 @@ public class DenseVectorOffHeapStats implements JsonpSerializable { @Nullable private final String totalVexSize; + private final long totalCenifSizeBytes; + + @Nullable + private final String totalCenifSize; + + private final long totalClivfSizeBytes; + + @Nullable + private final String totalClivfSize; + private final Map> fielddata; // --------------------------------------------------------------------------------------------- @@ -103,6 +113,12 @@ private DenseVectorOffHeapStats(Builder builder) { this.totalVeqSize = builder.totalVeqSize; this.totalVexSizeBytes = ApiTypeHelper.requireNonNull(builder.totalVexSizeBytes, this, "totalVexSizeBytes", 0); this.totalVexSize = builder.totalVexSize; + this.totalCenifSizeBytes = ApiTypeHelper.requireNonNull(builder.totalCenifSizeBytes, this, + "totalCenifSizeBytes", 0); + this.totalCenifSize = builder.totalCenifSize; + this.totalClivfSizeBytes = ApiTypeHelper.requireNonNull(builder.totalClivfSizeBytes, this, + "totalClivfSizeBytes", 0); + this.totalClivfSize = builder.totalClivfSize; this.fielddata = ApiTypeHelper.unmodifiable(builder.fielddata); } @@ -186,6 +202,36 @@ public final String totalVexSize() { return this.totalVexSize; } + /** + * Required - API name: {@code total_cenif_size_bytes} + */ + public final long totalCenifSizeBytes() { + return this.totalCenifSizeBytes; + } + + /** + * API name: {@code total_cenif_size} + */ + @Nullable + public final String totalCenifSize() { + return this.totalCenifSize; + } + + /** + * Required - API name: {@code total_clivf_size_bytes} + */ + public final long totalClivfSizeBytes() { + return this.totalClivfSizeBytes; + } + + /** + * API name: {@code total_clivf_size} + */ + @Nullable + public final String totalClivfSize() { + return this.totalClivfSize; + } + /** * API name: {@code fielddata} */ @@ -243,6 +289,22 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("total_vex_size"); generator.write(this.totalVexSize); + } + generator.writeKey("total_cenif_size_bytes"); + generator.write(this.totalCenifSizeBytes); + + if (this.totalCenifSize != null) { + generator.writeKey("total_cenif_size"); + generator.write(this.totalCenifSize); + + } + generator.writeKey("total_clivf_size_bytes"); + generator.write(this.totalClivfSizeBytes); + + if (this.totalClivfSize != null) { + generator.writeKey("total_clivf_size"); + generator.write(this.totalClivfSize); + } if (ApiTypeHelper.isDefined(this.fielddata)) { generator.writeKey("fielddata"); @@ -305,6 +367,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String totalVexSize; + private Long totalCenifSizeBytes; + + @Nullable + private String totalCenifSize; + + private Long totalClivfSizeBytes; + + @Nullable + private String totalClivfSize; + @Nullable private Map> fielddata; @@ -388,6 +460,38 @@ public final Builder totalVexSize(@Nullable String value) { return this; } + /** + * Required - API name: {@code total_cenif_size_bytes} + */ + public final Builder totalCenifSizeBytes(long value) { + this.totalCenifSizeBytes = value; + return this; + } + + /** + * API name: {@code total_cenif_size} + */ + public final Builder totalCenifSize(@Nullable String value) { + this.totalCenifSize = value; + return this; + } + + /** + * Required - API name: {@code total_clivf_size_bytes} + */ + public final Builder totalClivfSizeBytes(long value) { + this.totalClivfSizeBytes = value; + return this; + } + + /** + * API name: {@code total_clivf_size} + */ + public final Builder totalClivfSize(@Nullable String value) { + this.totalClivfSize = value; + return this; + } + /** * API name: {@code fielddata} *

    @@ -447,6 +551,10 @@ protected static void setupDenseVectorOffHeapStatsDeserializer( op.add(Builder::totalVeqSize, JsonpDeserializer.stringDeserializer(), "total_veq_size"); op.add(Builder::totalVexSizeBytes, JsonpDeserializer.longDeserializer(), "total_vex_size_bytes"); op.add(Builder::totalVexSize, JsonpDeserializer.stringDeserializer(), "total_vex_size"); + op.add(Builder::totalCenifSizeBytes, JsonpDeserializer.longDeserializer(), "total_cenif_size_bytes"); + op.add(Builder::totalCenifSize, JsonpDeserializer.stringDeserializer(), "total_cenif_size"); + op.add(Builder::totalClivfSizeBytes, JsonpDeserializer.longDeserializer(), "total_clivf_size_bytes"); + op.add(Builder::totalClivfSize, JsonpDeserializer.stringDeserializer(), "total_clivf_size"); op.add(Builder::fielddata, JsonpDeserializer.stringMapDeserializer( JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.longDeserializer())), "fielddata"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorAsyncClient.java index df00ac3f6b..1a39655ed1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorAsyncClient.java @@ -391,9 +391,10 @@ public final CompletableFuture syncJobCancel( // ----- Endpoint: connector.sync_job_check_in /** - * Check in a connector sync job. Check in a connector sync job and set the - * last_seen field to the current time before updating it in the - * internal index. + * Check in a connector sync job. + *

    + * Check in a connector sync job and set the last_seen field to the + * current time before updating it in the internal index. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -412,9 +413,10 @@ public CompletableFuture syncJobCheckIn(SyncJobCheckInRe } /** - * Check in a connector sync job. Check in a connector sync job and set the - * last_seen field to the current time before updating it in the - * internal index. + * Check in a connector sync job. + *

    + * Check in a connector sync job and set the last_seen field to the + * current time before updating it in the internal index. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -436,10 +438,12 @@ public final CompletableFuture syncJobCheckIn( // ----- Endpoint: connector.sync_job_claim /** - * Claim a connector sync job. This action updates the job status to - * in_progress and sets the last_seen and - * started_at timestamps to the current time. Additionally, it can - * set the sync_cursor property for the sync job. + * Claim a connector sync job. + *

    + * This action updates the job status to in_progress and sets the + * last_seen and started_at timestamps to the current + * time. Additionally, it can set the sync_cursor property for the + * sync job. *

    * This API is not intended for direct connector management by users. It * supports the implementation of services that utilize the connector protocol @@ -462,10 +466,12 @@ public CompletableFuture syncJobClaim(SyncJobClaimRequest } /** - * Claim a connector sync job. This action updates the job status to - * in_progress and sets the last_seen and - * started_at timestamps to the current time. Additionally, it can - * set the sync_cursor property for the sync job. + * Claim a connector sync job. + *

    + * This action updates the job status to in_progress and sets the + * last_seen and started_at timestamps to the current + * time. Additionally, it can set the sync_cursor property for the + * sync job. *

    * This API is not intended for direct connector management by users. It * supports the implementation of services that utilize the connector protocol @@ -530,8 +536,10 @@ public final CompletableFuture syncJobDelete( // ----- Endpoint: connector.sync_job_error /** - * Set a connector sync job error. Set the error field for a - * connector sync job and set its status to error. + * Set a connector sync job error. + *

    + * Set the error field for a connector sync job and set its + * status to error. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -550,8 +558,10 @@ public CompletableFuture syncJobError(SyncJobErrorRequest } /** - * Set a connector sync job error. Set the error field for a - * connector sync job and set its status to error. + * Set a connector sync job error. + *

    + * Set the error field for a connector sync job and set its + * status to error. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -700,11 +710,13 @@ public final CompletableFuture syncJobPost( // ----- Endpoint: connector.sync_job_update_stats /** - * Set the connector sync job stats. Stats include: - * deleted_document_count, indexed_document_count, - * indexed_document_volume, and total_document_count. - * You can also update last_seen. This API is mainly used by the - * connector service for updating sync job information. + * Set the connector sync job stats. + *

    + * Stats include: deleted_document_count, + * indexed_document_count, indexed_document_volume, + * and total_document_count. You can also update + * last_seen. This API is mainly used by the connector service for + * updating sync job information. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -723,11 +735,13 @@ public CompletableFuture syncJobUpdateStats(SyncJobU } /** - * Set the connector sync job stats. Stats include: - * deleted_document_count, indexed_document_count, - * indexed_document_volume, and total_document_count. - * You can also update last_seen. This API is mainly used by the - * connector service for updating sync job information. + * Set the connector sync job stats. + *

    + * Stats include: deleted_document_count, + * indexed_document_count, indexed_document_volume, + * and total_document_count. You can also update + * last_seen. This API is mainly used by the connector service for + * updating sync job information. *

    * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -910,9 +924,10 @@ public final CompletableFuture updateError( // ----- Endpoint: connector.update_features /** - * Update the connector features. Update the connector features in the connector - * document. This API can be used to control the following aspects of a - * connector: + * Update the connector features. + *

    + * Update the connector features in the connector document. This API can be used + * to control the following aspects of a connector: *

      *
    • document-level security
    • *
    • incremental syncs
    • @@ -940,9 +955,10 @@ public CompletableFuture updateFeatures(UpdateFeaturesRe } /** - * Update the connector features. Update the connector features in the connector - * document. This API can be used to control the following aspects of a - * connector: + * Update the connector features. + *

      + * Update the connector features in the connector document. This API can be used + * to control the following aspects of a connector: *

        *
      • document-level security
      • *
      • incremental syncs
      • diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorClient.java index dc10658595..0b8a2b8cf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ElasticsearchConnectorClient.java @@ -395,9 +395,10 @@ public final SyncJobCancelResponse syncJobCancel( // ----- Endpoint: connector.sync_job_check_in /** - * Check in a connector sync job. Check in a connector sync job and set the - * last_seen field to the current time before updating it in the - * internal index. + * Check in a connector sync job. + *

        + * Check in a connector sync job and set the last_seen field to the + * current time before updating it in the internal index. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -417,9 +418,10 @@ public SyncJobCheckInResponse syncJobCheckIn(SyncJobCheckInRequest request) } /** - * Check in a connector sync job. Check in a connector sync job and set the - * last_seen field to the current time before updating it in the - * internal index. + * Check in a connector sync job. + *

        + * Check in a connector sync job and set the last_seen field to the + * current time before updating it in the internal index. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -442,10 +444,12 @@ public final SyncJobCheckInResponse syncJobCheckIn( // ----- Endpoint: connector.sync_job_claim /** - * Claim a connector sync job. This action updates the job status to - * in_progress and sets the last_seen and - * started_at timestamps to the current time. Additionally, it can - * set the sync_cursor property for the sync job. + * Claim a connector sync job. + *

        + * This action updates the job status to in_progress and sets the + * last_seen and started_at timestamps to the current + * time. Additionally, it can set the sync_cursor property for the + * sync job. *

        * This API is not intended for direct connector management by users. It * supports the implementation of services that utilize the connector protocol @@ -468,10 +472,12 @@ public SyncJobClaimResponse syncJobClaim(SyncJobClaimRequest request) throws IOE } /** - * Claim a connector sync job. This action updates the job status to - * in_progress and sets the last_seen and - * started_at timestamps to the current time. Additionally, it can - * set the sync_cursor property for the sync job. + * Claim a connector sync job. + *

        + * This action updates the job status to in_progress and sets the + * last_seen and started_at timestamps to the current + * time. Additionally, it can set the sync_cursor property for the + * sync job. *

        * This API is not intended for direct connector management by users. It * supports the implementation of services that utilize the connector protocol @@ -539,8 +545,10 @@ public final SyncJobDeleteResponse syncJobDelete( // ----- Endpoint: connector.sync_job_error /** - * Set a connector sync job error. Set the error field for a - * connector sync job and set its status to error. + * Set a connector sync job error. + *

        + * Set the error field for a connector sync job and set its + * status to error. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -559,8 +567,10 @@ public SyncJobErrorResponse syncJobError(SyncJobErrorRequest request) throws IOE } /** - * Set a connector sync job error. Set the error field for a - * connector sync job and set its status to error. + * Set a connector sync job error. + *

        + * Set the error field for a connector sync job and set its + * status to error. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -712,11 +722,13 @@ public final SyncJobPostResponse syncJobPost( // ----- Endpoint: connector.sync_job_update_stats /** - * Set the connector sync job stats. Stats include: - * deleted_document_count, indexed_document_count, - * indexed_document_volume, and total_document_count. - * You can also update last_seen. This API is mainly used by the - * connector service for updating sync job information. + * Set the connector sync job stats. + *

        + * Stats include: deleted_document_count, + * indexed_document_count, indexed_document_volume, + * and total_document_count. You can also update + * last_seen. This API is mainly used by the connector service for + * updating sync job information. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -736,11 +748,13 @@ public SyncJobUpdateStatsResponse syncJobUpdateStats(SyncJobUpdateStatsRequest r } /** - * Set the connector sync job stats. Stats include: - * deleted_document_count, indexed_document_count, - * indexed_document_volume, and total_document_count. - * You can also update last_seen. This API is mainly used by the - * connector service for updating sync job information. + * Set the connector sync job stats. + *

        + * Stats include: deleted_document_count, + * indexed_document_count, indexed_document_volume, + * and total_document_count. You can also update + * last_seen. This API is mainly used by the connector service for + * updating sync job information. *

        * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically @@ -930,9 +944,10 @@ public final UpdateErrorResponse updateError( // ----- Endpoint: connector.update_features /** - * Update the connector features. Update the connector features in the connector - * document. This API can be used to control the following aspects of a - * connector: + * Update the connector features. + *

        + * Update the connector features in the connector document. This API can be used + * to control the following aspects of a connector: *

          *
        • document-level security
        • *
        • incremental syncs
        • @@ -961,9 +976,10 @@ public UpdateFeaturesResponse updateFeatures(UpdateFeaturesRequest request) } /** - * Update the connector features. Update the connector features in the connector - * document. This API can be used to control the following aspects of a - * connector: + * Update the connector features. + *

          + * Update the connector features in the connector document. This API can be used + * to control the following aspects of a connector: *

            *
          • document-level security
          • *
          • incremental syncs
          • diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java index 6bb11248fe..240e60468e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java @@ -56,9 +56,10 @@ // typedef: connector.sync_job_check_in.Request /** - * Check in a connector sync job. Check in a connector sync job and set the - * last_seen field to the current time before updating it in the - * internal index. + * Check in a connector sync job. + *

            + * Check in a connector sync job and set the last_seen field to the + * current time before updating it in the internal index. *

            * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java index 4a11908d79..5600e39f20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java @@ -59,10 +59,12 @@ // typedef: connector.sync_job_claim.Request /** - * Claim a connector sync job. This action updates the job status to - * in_progress and sets the last_seen and - * started_at timestamps to the current time. Additionally, it can - * set the sync_cursor property for the sync job. + * Claim a connector sync job. + *

            + * This action updates the job status to in_progress and sets the + * last_seen and started_at timestamps to the current + * time. Additionally, it can set the sync_cursor property for the + * sync job. *

            * This API is not intended for direct connector management by users. It * supports the implementation of services that utilize the connector protocol diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java index a35f87a446..fdbfbed34c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java @@ -58,8 +58,10 @@ // typedef: connector.sync_job_error.Request /** - * Set a connector sync job error. Set the error field for a - * connector sync job and set its status to error. + * Set a connector sync job error. + *

            + * Set the error field for a connector sync job and set its + * status to error. *

            * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java index 342e8dbfa9..e2b29c5085 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java @@ -62,11 +62,13 @@ // typedef: connector.sync_job_update_stats.Request /** - * Set the connector sync job stats. Stats include: - * deleted_document_count, indexed_document_count, - * indexed_document_volume, and total_document_count. - * You can also update last_seen. This API is mainly used by the - * connector service for updating sync job information. + * Set the connector sync job stats. + *

            + * Stats include: deleted_document_count, + * indexed_document_count, indexed_document_volume, + * and total_document_count. You can also update + * last_seen. This API is mainly used by the connector service for + * updating sync job information. *

            * To sync data using self-managed connectors, you need to deploy the Elastic * connector service on your own infrastructure. This service runs automatically diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java index f8cb4e806e..c854659285 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java @@ -58,9 +58,10 @@ // typedef: connector.update_features.Request /** - * Update the connector features. Update the connector features in the connector - * document. This API can be used to control the following aspects of a - * connector: + * Update the connector features. + *

            + * Update the connector features in the connector document. This API can be used + * to control the following aspects of a connector: *

            *

            - * If reindexing from a remote cluster, you must explicitly allow the remote - * host in the reindex.remote.whitelist setting. Automatic data - * stream creation requires a matching index template with data stream enabled. + * If reindexing from a remote cluster into a cluster using Elastic Stack, you + * must explicitly allow the remote host using the + * reindex.remote.whitelist node setting on the destination + * cluster. If reindexing from a remote cluster into an Elastic Cloud Serverless + * project, only remote hosts from Elastic Cloud Hosted are allowed. Automatic + * data stream creation requires a matching index template with data stream + * enabled. *

            * The dest element can be configured like the index API to control * optimistic concurrency control. Omitting version_type or setting diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java index 5276670c3b..e3d978c088 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexResponse.java @@ -20,6 +20,7 @@ package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.BulkIndexByScrollFailure; +import co.elastic.clients.elasticsearch._types.ReindexStatus; import co.elastic.clients.elasticsearch._types.Retries; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -89,6 +90,8 @@ public class ReindexResponse implements JsonpSerializable { @Nullable private final Integer sliceId; + private final List slices; + @Nullable private final String task; @@ -125,6 +128,7 @@ private ReindexResponse(Builder builder) { this.retries = builder.retries; this.requestsPerSecond = builder.requestsPerSecond; this.sliceId = builder.sliceId; + this.slices = ApiTypeHelper.unmodifiable(builder.slices); this.task = builder.task; this.throttledMillis = builder.throttledMillis; this.throttledUntilMillis = builder.throttledUntilMillis; @@ -223,6 +227,15 @@ public final Integer sliceId() { return this.sliceId; } + /** + * Status of each slice if the reindex was sliced + *

            + * API name: {@code slices} + */ + public final List slices() { + return this.slices; + } + /** * API name: {@code task} */ @@ -362,6 +375,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("slice_id"); generator.write(this.sliceId); + } + if (ApiTypeHelper.isDefined(this.slices)) { + generator.writeKey("slices"); + generator.writeStartArray(); + for (ReindexStatus item0 : this.slices) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + } if (this.task != null) { generator.writeKey("task"); @@ -442,6 +465,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer sliceId; + @Nullable + private List slices; + @Nullable private String task; @@ -595,6 +621,41 @@ public final Builder sliceId(@Nullable Integer value) { return this; } + /** + * Status of each slice if the reindex was sliced + *

            + * API name: {@code slices} + *

            + * Adds all elements of list to slices. + */ + public final Builder slices(List list) { + this.slices = _listAddAll(this.slices, list); + return this; + } + + /** + * Status of each slice if the reindex was sliced + *

            + * API name: {@code slices} + *

            + * Adds one or more values to slices. + */ + public final Builder slices(ReindexStatus value, ReindexStatus... values) { + this.slices = _listAdd(this.slices, value, values); + return this; + } + + /** + * Status of each slice if the reindex was sliced + *

            + * API name: {@code slices} + *

            + * Adds a value to slices using a builder lambda. + */ + public final Builder slices(Function> fn) { + return slices(fn.apply(new ReindexStatus.Builder()).build()); + } + /** * API name: {@code task} */ @@ -716,6 +777,7 @@ protected static void setupReindexResponseDeserializer(ObjectDeserializer-1 to turn off throttling or any decimal number like + * Required - The throttle for this request in sub-requests per second. It can + * be either -1 to turn off throttling or any decimal number like * 1.7 or 12 to throttle to that level. *

            * API name: {@code requests_per_second} */ - @Nullable - public final Float requestsPerSecond() { + public final float requestsPerSecond() { return this.requestsPerSecond; } @@ -124,19 +122,18 @@ public final String taskId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - @Nullable private Float requestsPerSecond; private String taskId; /** - * The throttle for this request in sub-requests per second. It can be either - * -1 to turn off throttling or any decimal number like + * Required - The throttle for this request in sub-requests per second. It can + * be either -1 to turn off throttling or any decimal number like * 1.7 or 12 to throttle to that level. *

            * API name: {@code requests_per_second} */ - public final Builder requestsPerSecond(@Nullable Float value) { + public final Builder requestsPerSecond(float value) { this.requestsPerSecond = value; return this; } @@ -221,9 +218,7 @@ public ReindexRethrottleRequest build() { // Request parameters request -> { Map params = new HashMap<>(); - if (request.requestsPerSecond != null) { - params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); - } + params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); return params; }, SimpleEndpoint.emptyMap(), false, ReindexRethrottleResponse._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java index 60ac8f77e1..2bce114caa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java @@ -538,7 +538,14 @@ public final Integer extent() { } /** - * Required - Field containing geospatial data to return + * Required - A field that contains the geospatial data to return. It must be a + * geo_point or geo_shape field. The field must have + * doc values enabled. It cannot be a nested field. + *

            + * NOTE: Vector tiles do not natively support geometry collections. For + * geometrycollection values in a geo_shape field, the + * API returns a hits layer feature for each element of the collection. This + * behavior may change in a future release. *

            * API name: {@code field} */ @@ -594,8 +601,10 @@ public final GridType gridType() { } /** - * Required - Comma-separated list of data streams, indices, or aliases to - * search + * Required - A list of indices, data streams, or aliases to search. It supports + * wildcards (*). To search all data streams and indices, omit this + * parameter or use * or _all. To search a remote + * cluster, use the <cluster>:<target> syntax. *

            * API name: {@code index} */ @@ -699,7 +708,7 @@ public final Boolean withLabels() { } /** - * Required - X coordinate for the vector tile to search + * Required - The X coordinate for the vector tile to search. *

            * API name: {@code x} */ @@ -708,7 +717,7 @@ public final int x() { } /** - * Required - Y coordinate for the vector tile to search + * Required - The Y coordinate for the vector tile to search. *

            * API name: {@code y} */ @@ -717,7 +726,8 @@ public final int y() { } /** - * Required - Zoom level for the vector tile to search + * Required - The zoom level of the vector tile to search. It accepts + * 0 to 29. *

            * API name: {@code zoom} */ @@ -1056,7 +1066,14 @@ public final Builder extent(@Nullable Integer value) { } /** - * Required - Field containing geospatial data to return + * Required - A field that contains the geospatial data to return. It must be a + * geo_point or geo_shape field. The field must have + * doc values enabled. It cannot be a nested field. + *

            + * NOTE: Vector tiles do not natively support geometry collections. For + * geometrycollection values in a geo_shape field, the + * API returns a hits layer feature for each element of the collection. This + * behavior may change in a future release. *

            * API name: {@code field} */ @@ -1130,8 +1147,10 @@ public final Builder gridType(@Nullable GridType value) { } /** - * Required - Comma-separated list of data streams, indices, or aliases to - * search + * Required - A list of indices, data streams, or aliases to search. It supports + * wildcards (*). To search all data streams and indices, omit this + * parameter or use * or _all. To search a remote + * cluster, use the <cluster>:<target> syntax. *

            * API name: {@code index} *

            @@ -1143,8 +1162,10 @@ public final Builder index(List list) { } /** - * Required - Comma-separated list of data streams, indices, or aliases to - * search + * Required - A list of indices, data streams, or aliases to search. It supports + * wildcards (*). To search all data streams and indices, omit this + * parameter or use * or _all. To search a remote + * cluster, use the <cluster>:<target> syntax. *

            * API name: {@code index} *

            @@ -1341,7 +1362,7 @@ public final Builder withLabels(@Nullable Boolean value) { } /** - * Required - X coordinate for the vector tile to search + * Required - The X coordinate for the vector tile to search. *

            * API name: {@code x} */ @@ -1351,7 +1372,7 @@ public final Builder x(int value) { } /** - * Required - Y coordinate for the vector tile to search + * Required - The Y coordinate for the vector tile to search. *

            * API name: {@code y} */ @@ -1361,7 +1382,8 @@ public final Builder y(int value) { } /** - * Required - Zoom level for the vector tile to search + * Required - The zoom level of the vector tile to search. It accepts + * 0 to 29. *

            * API name: {@code zoom} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 30a588c4ce..2afd588ae9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -237,8 +237,7 @@ public class SearchRequest extends RequestBase implements JsonpSerializable { @Nullable private final Retriever retriever; - @Nullable - private final String routing; + private final List routing; private final Map runtimeMappings; @@ -329,7 +328,7 @@ private SearchRequest(Builder builder) { this.requestCache = builder.requestCache; this.rescore = ApiTypeHelper.unmodifiable(builder.rescore); this.retriever = builder.retriever; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); this.scriptFields = ApiTypeHelper.unmodifiable(builder.scriptFields); this.scroll = builder.scroll; @@ -868,8 +867,7 @@ public final Retriever retriever() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -1191,6 +1189,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("profile"); generator.write(this.profile); + } + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + } if (this.query != null) { generator.writeKey("query"); @@ -1461,7 +1464,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Retriever retriever; @Nullable - private String routing; + private List routing; @Nullable private Map runtimeMappings; @@ -2393,9 +2396,23 @@ public final Builder retriever(RetrieverVariant value) { * A custom value that is used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value that is used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. + */ + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -2894,6 +2911,7 @@ protected static void setupSearchRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } if (request.ignoreUnavailable != null) { params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java index d0dad28e85..b999f8503e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java @@ -95,8 +95,7 @@ public class SearchShardsRequest extends RequestBase { @Nullable private final String preference; - @Nullable - private final String routing; + private final List routing; // --------------------------------------------------------------------------------------------- @@ -109,7 +108,7 @@ private SearchShardsRequest(Builder builder) { this.local = builder.local; this.masterTimeout = builder.masterTimeout; this.preference = builder.preference; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); } @@ -206,8 +205,7 @@ public final String preference() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -242,7 +240,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String preference; @Nullable - private String routing; + private List routing; /** * If false, the request returns an error if any wildcard @@ -379,9 +377,23 @@ public final Builder preference(@Nullable String value) { * A custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -466,8 +478,8 @@ public SearchShardsRequest build() { if (request.masterTimeout != null) { params.put("master_timeout", request.masterTimeout._toJsonString()); } - if (request.routing != null) { - params.put("routing", request.routing); + if (ApiTypeHelper.isDefined(request.routing)) { + params.put("routing", request.routing.stream().map(v -> v).collect(Collectors.joining(","))); } if (ApiTypeHelper.isDefined(request.expandWildcards)) { params.put("expand_wildcards", diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java index cea35b9a97..b6c66c5e06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java @@ -105,8 +105,7 @@ public class SearchTemplateRequest extends RequestBase implements JsonpSerializa @Nullable private final String projectRouting; - @Nullable - private final String routing; + private final List routing; @Nullable private final Time scroll; @@ -133,7 +132,7 @@ private SearchTemplateRequest(Builder builder) { this.preference = builder.preference; this.profile = builder.profile; this.projectRouting = builder.projectRouting; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.scroll = builder.scroll; this.searchType = builder.searchType; this.source = builder.source; @@ -290,8 +289,7 @@ public final String projectRouting() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -419,7 +417,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String projectRouting; @Nullable - private String routing; + private List routing; @Nullable private Time scroll; @@ -625,9 +623,23 @@ public final Builder projectRouting(@Nullable String value) { * A custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -802,8 +814,8 @@ protected static void setupSearchTemplateRequestDeserializer(ObjectDeserializer< if (request.ccsMinimizeRoundtrips != null) { params.put("ccs_minimize_roundtrips", String.valueOf(request.ccsMinimizeRoundtrips)); } - if (request.routing != null) { - params.put("routing", request.routing); + if (ApiTypeHelper.isDefined(request.routing)) { + params.put("routing", request.routing.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.ignoreUnavailable != null) { params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java index 3c22c2d08a..22a7276b80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java @@ -40,9 +40,11 @@ import java.lang.String; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -85,7 +87,7 @@ public class TermsEnumRequest extends RequestBase implements JsonpSerializable { private final String field; - private final String index; + private final List index; @Nullable private final Query indexFilter; @@ -108,7 +110,7 @@ private TermsEnumRequest(Builder builder) { this.caseInsensitive = builder.caseInsensitive; this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); this.indexFilter = builder.indexFilter; this.searchAfter = builder.searchAfter; this.size = builder.size; @@ -150,7 +152,7 @@ public final String field() { *

            * API name: {@code index} */ - public final String index() { + public final List index() { return this.index; } @@ -276,7 +278,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String field; - private String index; + private List index; @Nullable private Query indexFilter; @@ -322,9 +324,26 @@ public final Builder field(String value) { * _all. *

            * API name: {@code index} + *

            + * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Required - A comma-separated list of data streams, indices, and index aliases + * to search. Wildcard (*) expressions are supported. To search all + * data streams or indices, omit this parameter or use * or + * _all. + *

            + * API name: {@code index} + *

            + * Adds one or more values to index. */ - public final Builder index(String value) { - this.index = value; + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); return this; } @@ -484,7 +503,7 @@ protected static void setupTermsEnumRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(",")), buf); buf.append("/_terms_enum"); return buf.toString(); } @@ -502,7 +521,7 @@ protected static void setupTermsEnumRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 8eedd01b80..10eb59b0b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java @@ -160,8 +160,7 @@ public class TermvectorsRequest extends RequestBase implements JsonpS @Nullable private final Boolean realtime; - @Nullable - private final String routing; + private final List routing; @Nullable private final Boolean termStatistics; @@ -191,7 +190,7 @@ private TermvectorsRequest(Builder builder) { this.positions = builder.positions; this.preference = builder.preference; this.realtime = builder.realtime; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.termStatistics = builder.termStatistics; this.version = builder.version; this.versionType = builder.versionType; @@ -342,8 +341,7 @@ public final Boolean realtime() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -447,9 +445,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.positions); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.termStatistics != null) { @@ -514,7 +517,7 @@ public static class Builder extends RequestBase.AbstractBuilder routing; @Nullable private Boolean termStatistics; @@ -712,9 +715,23 @@ public final Builder realtime(@Nullable Boolean value) { * A custom value that is used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value that is used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -815,7 +832,8 @@ protected static void setupTermvectorsRequestDeserializer( op.add(Builder::perFieldAnalyzer, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.stringDeserializer()), "per_field_analyzer"); op.add(Builder::positions, JsonpDeserializer.booleanDeserializer(), "positions"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "routing"); op.add(Builder::termStatistics, JsonpDeserializer.booleanDeserializer(), "term_statistics"); op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); op.add(Builder::versionType, VersionType._DESERIALIZER, "version_type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index 5f65553d6c..6b0950b316 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java @@ -73,10 +73,11 @@ // typedef: _global.update_by_query.Request /** - * Update documents. Updates documents that match the specified query. If no - * query is specified, performs an update on every document in the data stream - * or index without modifying the source, which is useful for picking up mapping - * changes. + * Update documents. + *

            + * Updates documents that match the specified query. If no query is specified, + * performs an update on every document in the data stream or index without + * modifying the source, which is useful for picking up mapping changes. *

            * If the Elasticsearch security features are enabled, you must have the * following index privileges for the target data stream, index, or alias: @@ -281,8 +282,7 @@ public class UpdateByQueryRequest extends RequestBase implements JsonpSerializab @Nullable private final Float requestsPerSecond; - @Nullable - private final String routing; + private final List routing; @Nullable private final Script script; @@ -350,7 +350,7 @@ private UpdateByQueryRequest(Builder builder) { this.refresh = builder.refresh; this.requestCache = builder.requestCache; this.requestsPerSecond = builder.requestsPerSecond; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.script = builder.script; this.scroll = builder.scroll; this.scrollSize = builder.scrollSize; @@ -596,8 +596,7 @@ public final Float requestsPerSecond() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -876,7 +875,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Float requestsPerSecond; @Nullable - private String routing; + private List routing; @Nullable private Script script; @@ -1199,9 +1198,23 @@ public final Builder requestsPerSecond(@Nullable Float value) { * A custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -1585,8 +1598,8 @@ protected static void setupUpdateByQueryRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } if (request.requestsPerSecond != null) { params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java index c2fd641b3b..84d866ed36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryResponse.java @@ -20,6 +20,7 @@ package co.elastic.clients.elasticsearch.core; import co.elastic.clients.elasticsearch._types.BulkIndexByScrollFailure; +import co.elastic.clients.elasticsearch._types.ReindexStatus; import co.elastic.clients.elasticsearch._types.Retries; import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonpDeserializable; @@ -84,6 +85,8 @@ public class UpdateByQueryResponse implements JsonpSerializable { @Nullable private final Retries retries; + private final List slices; + @Nullable private final String task; @@ -124,6 +127,7 @@ private UpdateByQueryResponse(Builder builder) { this.deleted = builder.deleted; this.requestsPerSecond = builder.requestsPerSecond; this.retries = builder.retries; + this.slices = ApiTypeHelper.unmodifiable(builder.slices); this.task = builder.task; this.timedOut = builder.timedOut; this.took = builder.took; @@ -208,6 +212,15 @@ public final Retries retries() { return this.retries; } + /** + * Status of each slice if the update by query was sliced + *

            + * API name: {@code slices} + */ + public final List slices() { + return this.slices; + } + /** * API name: {@code task} */ @@ -351,6 +364,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("retries"); this.retries.serialize(generator, mapper); + } + if (ApiTypeHelper.isDefined(this.slices)) { + generator.writeKey("slices"); + generator.writeStartArray(); + for (ReindexStatus item0 : this.slices) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + } if (this.task != null) { generator.writeKey("task"); @@ -437,6 +460,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Retries retries; + @Nullable + private List slices; + @Nullable private String task; @@ -582,6 +608,41 @@ public final Builder retries(Function> f return this.retries(fn.apply(new Retries.Builder()).build()); } + /** + * Status of each slice if the update by query was sliced + *

            + * API name: {@code slices} + *

            + * Adds all elements of list to slices. + */ + public final Builder slices(List list) { + this.slices = _listAddAll(this.slices, list); + return this; + } + + /** + * Status of each slice if the update by query was sliced + *

            + * API name: {@code slices} + *

            + * Adds one or more values to slices. + */ + public final Builder slices(ReindexStatus value, ReindexStatus... values) { + this.slices = _listAdd(this.slices, value, values); + return this; + } + + /** + * Status of each slice if the update by query was sliced + *

            + * API name: {@code slices} + *

            + * Adds a value to slices using a builder lambda. + */ + public final Builder slices(Function> fn) { + return slices(fn.apply(new ReindexStatus.Builder()).build()); + } + /** * API name: {@code task} */ @@ -729,6 +790,7 @@ protected static void setupUpdateByQueryResponseDeserializer(ObjectDeserializer< op.add(Builder::deleted, JsonpDeserializer.longDeserializer(), "deleted"); op.add(Builder::requestsPerSecond, JsonpDeserializer.floatDeserializer(), "requests_per_second"); op.add(Builder::retries, Retries._DESERIALIZER, "retries"); + op.add(Builder::slices, JsonpDeserializer.arrayDeserializer(ReindexStatus._DESERIALIZER), "slices"); op.add(Builder::task, JsonpDeserializer.stringDeserializer(), "task"); op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); op.add(Builder::took, JsonpDeserializer.longDeserializer(), "took"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java index d2db64b213..6121e90743 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java @@ -69,8 +69,7 @@ */ public class UpdateByQueryRethrottleRequest extends RequestBase { - @Nullable - private final Float requestsPerSecond; + private final float requestsPerSecond; private final String taskId; @@ -78,7 +77,7 @@ public class UpdateByQueryRethrottleRequest extends RequestBase { private UpdateByQueryRethrottleRequest(Builder builder) { - this.requestsPerSecond = builder.requestsPerSecond; + this.requestsPerSecond = ApiTypeHelper.requireNonNull(builder.requestsPerSecond, this, "requestsPerSecond", 0); this.taskId = ApiTypeHelper.requireNonNull(builder.taskId, this, "taskId"); } @@ -89,13 +88,12 @@ public static UpdateByQueryRethrottleRequest of( } /** - * The throttle for this request in sub-requests per second. To turn off - * throttling, set it to -1. + * Required - The throttle for this request in sub-requests per second. To turn + * off throttling, set it to -1. *

            * API name: {@code requests_per_second} */ - @Nullable - public final Float requestsPerSecond() { + public final float requestsPerSecond() { return this.requestsPerSecond; } @@ -117,18 +115,17 @@ public final String taskId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - @Nullable private Float requestsPerSecond; private String taskId; /** - * The throttle for this request in sub-requests per second. To turn off - * throttling, set it to -1. + * Required - The throttle for this request in sub-requests per second. To turn + * off throttling, set it to -1. *

            * API name: {@code requests_per_second} */ - public final Builder requestsPerSecond(@Nullable Float value) { + public final Builder requestsPerSecond(float value) { this.requestsPerSecond = value; return this; } @@ -213,9 +210,7 @@ public UpdateByQueryRethrottleRequest build() { // Request parameters request -> { Map params = new HashMap<>(); - if (request.requestsPerSecond != null) { - params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); - } + params.put("requests_per_second", String.valueOf(request.requestsPerSecond)); return params; }, SimpleEndpoint.emptyMap(), false, UpdateByQueryRethrottleResponse._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java index 1fa0efb16c..2de2c9d54f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java @@ -45,10 +45,12 @@ import java.lang.Long; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; import java.util.function.Supplier; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -140,8 +142,7 @@ public class UpdateRequest extends RequestBase impl @Nullable private final Integer retryOnConflict; - @Nullable - private final String routing; + private final List routing; @Nullable private final Script script; @@ -181,7 +182,7 @@ private UpdateRequest(Builder builder) { this.refresh = builder.refresh; this.requireAlias = builder.requireAlias; this.retryOnConflict = builder.retryOnConflict; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.script = builder.script; this.scriptedUpsert = builder.scriptedUpsert; this.timeout = builder.timeout; @@ -339,8 +340,7 @@ public final Integer retryOnConflict() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -499,7 +499,7 @@ public static class Builder private Integer retryOnConflict; @Nullable - private String routing; + private List routing; @Nullable private Script script; @@ -676,9 +676,23 @@ public final Builder retryOnConflict(@Nullable Inte * A custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * A custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -915,8 +929,8 @@ protected static void setupUpdateRequestDeserializ if (request.timeout != null) { params.put("timeout", request.timeout._toJsonString()); } - if (request.routing != null) { - params.put("routing", request.routing); + if (ApiTypeHelper.isDefined(request.routing)) { + params.put("routing", request.routing.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.requireAlias != null) { params.put("require_alias", String.valueOf(request.requireAlias)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java index 3dc24bfd4c..fd31e56c72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkOperationBase.java @@ -27,11 +27,13 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Long; import java.lang.String; +import java.util.List; import java.util.Objects; import javax.annotation.Nullable; @@ -65,8 +67,7 @@ public abstract class BulkOperationBase implements JsonpSerializable { @Nullable private final String index; - @Nullable - private final String routing; + private final List routing; @Nullable private final Long ifPrimaryTerm; @@ -86,7 +87,7 @@ protected BulkOperationBase(AbstractBuilder builder) { this.id = builder.id; this.index = builder.index; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.ifPrimaryTerm = builder.ifPrimaryTerm; this.ifSeqNo = builder.ifSeqNo; this.version = builder.version; @@ -119,8 +120,7 @@ public final String index() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -177,9 +177,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.index); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.ifPrimaryTerm != null) { @@ -219,7 +224,7 @@ public abstract static class AbstractBuilder routing; @Nullable private Long ifPrimaryTerm; @@ -257,9 +262,23 @@ public final BuilderT index(@Nullable String value) { * A custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final BuilderT routing(List list) { + this.routing = _listAddAll(this.routing, list); + return self(); + } + + /** + * A custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final BuilderT routing(@Nullable String value) { - this.routing = value; + public final BuilderT routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return self(); } @@ -305,7 +324,8 @@ protected static > void setupBulkOper op.add(AbstractBuilder::id, JsonpDeserializer.stringDeserializer(), "_id"); op.add(AbstractBuilder::index, JsonpDeserializer.stringDeserializer(), "_index"); - op.add(AbstractBuilder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(AbstractBuilder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "routing"); op.add(AbstractBuilder::ifPrimaryTerm, JsonpDeserializer.longDeserializer(), "if_primary_term"); op.add(AbstractBuilder::ifSeqNo, JsonpDeserializer.longDeserializer(), "if_seq_no"); op.add(AbstractBuilder::version, JsonpDeserializer.longDeserializer(), "version"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java index 3523bf23bd..1c618abb24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java @@ -68,8 +68,7 @@ public class MultiGetOperation implements JsonpSerializable { @Nullable private final String index; - @Nullable - private final String routing; + private final List routing; @Nullable private final SourceConfig source; @@ -88,7 +87,7 @@ private MultiGetOperation(Builder builder) { this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); this.index = builder.index; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.source = builder.source; this.storedFields = ApiTypeHelper.unmodifiable(builder.storedFields); this.version = builder.version; @@ -125,8 +124,7 @@ public final String index() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -184,9 +182,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.index); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.source != null) { @@ -234,7 +237,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String index; @Nullable - private String routing; + private List routing; @Nullable private SourceConfig source; @@ -273,9 +276,24 @@ public final Builder index(@Nullable String value) { * used during indexing. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * The key for the primary shard the document resides on. Required if routing is + * used during indexing. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -368,7 +386,8 @@ protected static void setupMultiGetOperationDeserializer(ObjectDeserializer routing; @Nullable private final SearchType searchType; @@ -111,7 +110,7 @@ private MultisearchHeader(Builder builder) { this.preference = builder.preference; this.projectRouting = builder.projectRouting; this.requestCache = builder.requestCache; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.searchType = builder.searchType; this.ccsMinimizeRoundtrips = builder.ccsMinimizeRoundtrips; this.allowPartialSearchResults = builder.allowPartialSearchResults; @@ -180,8 +179,7 @@ public final Boolean requestCache() { /** * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -272,9 +270,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.requestCache); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.searchType != null) { @@ -333,7 +336,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean requestCache; @Nullable - private String routing; + private List routing; @Nullable private SearchType searchType; @@ -429,9 +432,21 @@ public final Builder requestCache(@Nullable Boolean value) { /** * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -503,7 +518,8 @@ protected static void setupMultisearchHeaderDeserializer(ObjectDeserializer routing; @Nullable private final Boolean termStatistics; @@ -117,7 +116,7 @@ private MultiTermVectorsOperation(Builder builder) { this.offsets = builder.offsets; this.payloads = builder.payloads; this.positions = builder.positions; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.termStatistics = builder.termStatistics; this.version = builder.version; this.versionType = builder.versionType; @@ -227,8 +226,7 @@ public final Boolean positions() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -323,9 +321,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.positions); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.termStatistics != null) { @@ -387,7 +390,7 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean positions; @Nullable - private String routing; + private List routing; @Nullable private Boolean termStatistics; @@ -523,9 +526,23 @@ public final Builder positions(@Nullable Boolean value) { * Custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -597,7 +614,8 @@ protected static void setupMultiTermVectorsOperationDeserializer( op.add(Builder::offsets, JsonpDeserializer.booleanDeserializer(), "offsets"); op.add(Builder::payloads, JsonpDeserializer.booleanDeserializer(), "payloads"); op.add(Builder::positions, JsonpDeserializer.booleanDeserializer(), "positions"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "routing"); op.add(Builder::termStatistics, JsonpDeserializer.booleanDeserializer(), "term_statistics"); op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); op.add(Builder::versionType, VersionType._DESERIALIZER, "version_type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java index 528095e1ae..049663642b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -69,8 +70,7 @@ public class Destination implements JsonpSerializable { @Nullable private final String pipeline; - @Nullable - private final String routing; + private final List routing; @Nullable private final VersionType versionType; @@ -82,7 +82,7 @@ private Destination(Builder builder) { this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); this.opType = builder.opType; this.pipeline = builder.pipeline; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.versionType = builder.versionType; } @@ -136,8 +136,7 @@ public final String pipeline() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -174,9 +173,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.pipeline); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.versionType != null) { @@ -207,7 +211,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String pipeline; @Nullable - private String routing; + private List routing; @Nullable private VersionType versionType; @@ -257,9 +261,29 @@ public final Builder pipeline(@Nullable String value) { * sign (=). *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * By default, a document's routing is preserved unless it's changed by the + * script. If it is keep, the routing on the bulk request sent for + * each match is set to the routing on the match. If it is discard, + * the routing on the bulk request sent for each match is set to + * null. If it is =value, the routing on the bulk + * request sent for each match is set to all value specified after the equals + * sign (=). + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -304,7 +328,8 @@ protected static void setupDestinationDeserializer(ObjectDeserializer implement private Boolean cancellable; + private Boolean cancelled; + private String description; private Long id; @@ -283,6 +299,14 @@ public final Builder cancellable(boolean value) { return this; } + /** + * Required - API name: {@code cancelled} + */ + public final Builder cancelled(boolean value) { + this.cancelled = value; + return this; + } + /** * Required - API name: {@code description} */ @@ -396,6 +420,7 @@ protected static void setupReindexTaskDeserializer(ObjectDeserializer implements JsonpSerializable { @Nullable private final String index; - @Nullable - private final String routing; + private final List routing; @Nullable private final Double score; @@ -104,7 +103,7 @@ private CompletionSuggestOption(Builder builder) { this.fields = ApiTypeHelper.unmodifiable(builder.fields); this.id = builder.id; this.index = builder.index; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.score = builder.score; this.source = builder.source; this.text = ApiTypeHelper.requireNonNull(builder.text, this, "text"); @@ -158,8 +157,7 @@ public final String index() { /** * API name: {@code _routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -241,9 +239,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.index); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("_routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.score != null) { @@ -291,7 +294,7 @@ public static class Builder extends WithJsonObjectBuilderBase routing; @Nullable private Double score; @@ -370,9 +373,21 @@ public final Builder index(@Nullable String value) { /** * API name: {@code _routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code _routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -457,7 +472,8 @@ protected static void setupCompletionSuggestOptionDeserializer( op.add(Builder::fields, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "fields"); op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "_id"); op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "_index"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "_routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "_routing"); op.add(Builder::score, JsonpDeserializer.doubleDeserializer(), "_score", "score"); op.add(Builder::source, tDocumentDeserializer, "_source"); op.add(Builder::text, JsonpDeserializer.stringDeserializer(), "text"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java index 83de850904..adbac2a99e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java @@ -57,9 +57,11 @@ // typedef: dangling_indices.delete_dangling_index.Request /** - * Delete a dangling index. If Elasticsearch encounters index data that is - * absent from the current cluster state, those indices are considered to be - * dangling. For example, this can happen if you delete more than + * Delete a dangling index. + *

            + * If Elasticsearch encounters index data that is absent from the current + * cluster state, those indices are considered to be dangling. For example, this + * can happen if you delete more than * cluster.indices.tombstones.size indices while an Elasticsearch * node is offline. * @@ -69,7 +71,8 @@ */ public class DeleteDanglingIndexRequest extends RequestBase { - private final boolean acceptDataLoss; + @Nullable + private final Boolean acceptDataLoss; private final String indexUuid; @@ -83,7 +86,7 @@ public class DeleteDanglingIndexRequest extends RequestBase { private DeleteDanglingIndexRequest(Builder builder) { - this.acceptDataLoss = ApiTypeHelper.requireNonNull(builder.acceptDataLoss, this, "acceptDataLoss", false); + this.acceptDataLoss = builder.acceptDataLoss; this.indexUuid = ApiTypeHelper.requireNonNull(builder.indexUuid, this, "indexUuid"); this.masterTimeout = builder.masterTimeout; this.timeout = builder.timeout; @@ -95,12 +98,13 @@ public static DeleteDanglingIndexRequest of(Function * API name: {@code accept_data_loss} */ - public final boolean acceptDataLoss() { + @Nullable + public final Boolean acceptDataLoss() { return this.acceptDataLoss; } @@ -115,7 +119,7 @@ public final String indexUuid() { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -125,7 +129,7 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -143,6 +147,7 @@ public final Time timeout() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable private Boolean acceptDataLoss; private String indexUuid; @@ -154,12 +159,12 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Required - This parameter must be set to true to acknowledge that it will no - * longer be possible to recove data from the dangling index. + * This parameter must be set to true to acknowledge that it will no longer be + * possible to recove data from the dangling index. *

            * API name: {@code accept_data_loss} */ - public final Builder acceptDataLoss(boolean value) { + public final Builder acceptDataLoss(@Nullable Boolean value) { this.acceptDataLoss = value; return this; } @@ -176,7 +181,7 @@ public final Builder indexUuid(String value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -186,7 +191,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -195,7 +200,7 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -205,7 +210,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -285,7 +290,9 @@ public DeleteDanglingIndexRequest build() { if (request.masterTimeout != null) { params.put("master_timeout", request.masterTimeout._toJsonString()); } - params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + if (request.acceptDataLoss != null) { + params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + } if (request.timeout != null) { params.put("timeout", request.timeout._toJsonString()); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java index 709fae3d4e..9fdaf2676a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesAsyncClient.java @@ -70,9 +70,11 @@ public ElasticsearchDanglingIndicesAsyncClient withTransportOptions(@Nullable Tr // ----- Endpoint: dangling_indices.delete_dangling_index /** - * Delete a dangling index. If Elasticsearch encounters index data that is - * absent from the current cluster state, those indices are considered to be - * dangling. For example, this can happen if you delete more than + * Delete a dangling index. + *

            + * If Elasticsearch encounters index data that is absent from the current + * cluster state, those indices are considered to be dangling. For example, this + * can happen if you delete more than * cluster.indices.tombstones.size indices while an Elasticsearch * node is offline. * @@ -89,9 +91,11 @@ public CompletableFuture deleteDanglingIndex(Delete } /** - * Delete a dangling index. If Elasticsearch encounters index data that is - * absent from the current cluster state, those indices are considered to be - * dangling. For example, this can happen if you delete more than + * Delete a dangling index. + *

            + * If Elasticsearch encounters index data that is absent from the current + * cluster state, those indices are considered to be dangling. For example, this + * can happen if you delete more than * cluster.indices.tombstones.size indices while an Elasticsearch * node is offline. * diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java index c3a1613719..1b1ef21d9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ElasticsearchDanglingIndicesClient.java @@ -71,9 +71,11 @@ public ElasticsearchDanglingIndicesClient withTransportOptions(@Nullable Transpo // ----- Endpoint: dangling_indices.delete_dangling_index /** - * Delete a dangling index. If Elasticsearch encounters index data that is - * absent from the current cluster state, those indices are considered to be - * dangling. For example, this can happen if you delete more than + * Delete a dangling index. + *

            + * If Elasticsearch encounters index data that is absent from the current + * cluster state, those indices are considered to be dangling. For example, this + * can happen if you delete more than * cluster.indices.tombstones.size indices while an Elasticsearch * node is offline. * @@ -91,9 +93,11 @@ public DeleteDanglingIndexResponse deleteDanglingIndex(DeleteDanglingIndexReques } /** - * Delete a dangling index. If Elasticsearch encounters index data that is - * absent from the current cluster state, those indices are considered to be - * dangling. For example, this can happen if you delete more than + * Delete a dangling index. + *

            + * If Elasticsearch encounters index data that is absent from the current + * cluster state, those indices are considered to be dangling. For example, this + * can happen if you delete more than * cluster.indices.tombstones.size indices while an Elasticsearch * node is offline. * diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java index 9545d02898..9e0bdb3dea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java @@ -71,7 +71,8 @@ */ public class ImportDanglingIndexRequest extends RequestBase { - private final boolean acceptDataLoss; + @Nullable + private final Boolean acceptDataLoss; private final String indexUuid; @@ -85,7 +86,7 @@ public class ImportDanglingIndexRequest extends RequestBase { private ImportDanglingIndexRequest(Builder builder) { - this.acceptDataLoss = ApiTypeHelper.requireNonNull(builder.acceptDataLoss, this, "acceptDataLoss", false); + this.acceptDataLoss = builder.acceptDataLoss; this.indexUuid = ApiTypeHelper.requireNonNull(builder.indexUuid, this, "indexUuid"); this.masterTimeout = builder.masterTimeout; this.timeout = builder.timeout; @@ -97,15 +98,16 @@ public static ImportDanglingIndexRequest of(Function * API name: {@code accept_data_loss} */ - public final boolean acceptDataLoss() { + @Nullable + public final Boolean acceptDataLoss() { return this.acceptDataLoss; } @@ -120,7 +122,7 @@ public final String indexUuid() { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -130,7 +132,7 @@ public final Time masterTimeout() { } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -148,6 +150,7 @@ public final Time timeout() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable private Boolean acceptDataLoss; private String indexUuid; @@ -159,15 +162,15 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * Required - This parameter must be set to true to import a dangling index. - * Because Elasticsearch cannot know where the dangling index data came from or + * This parameter must be set to true to import a dangling index. Because + * Elasticsearch cannot know where the dangling index data came from or * determine which shard copies are fresh and which are stale, it cannot * guarantee that the imported data represents the latest state of the index * when it was last in the cluster. *

            * API name: {@code accept_data_loss} */ - public final Builder acceptDataLoss(boolean value) { + public final Builder acceptDataLoss(@Nullable Boolean value) { this.acceptDataLoss = value; return this; } @@ -184,7 +187,7 @@ public final Builder indexUuid(String value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -194,7 +197,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

            * API name: {@code master_timeout} */ @@ -203,7 +206,7 @@ public final Builder masterTimeout(Function> f } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -213,7 +216,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit operation timeout + * The period to wait for a response. *

            * API name: {@code timeout} */ @@ -293,7 +296,9 @@ public ImportDanglingIndexRequest build() { if (request.masterTimeout != null) { params.put("master_timeout", request.masterTimeout._toJsonString()); } - params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + if (request.acceptDataLoss != null) { + params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + } if (request.timeout != null) { params.put("timeout", request.timeout._toJsonString()); } 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 a00e4b8e5c..80bfe6feca 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 @@ -11,51 +11,51 @@ '_global.bulk.OperationBase': '_global/bulk/types.ts#L100-L117', '_global.bulk.OperationContainer': '_global/bulk/types.ts#L158-L180', '_global.bulk.OperationType': '_global/bulk/types.ts#L93-L98', -'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L32-L252', +'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L33-L256', '_global.bulk.Response': '_global/bulk/BulkResponse.ts#L24-L45', '_global.bulk.ResponseItem': '_global/bulk/types.ts#L37-L84', '_global.bulk.UpdateAction': '_global/bulk/types.ts#L182-L217', '_global.bulk.UpdateOperation': '_global/bulk/types.ts#L146-L156', '_global.bulk.WriteOperation': '_global/bulk/types.ts#L119-L138', -'_global.clear_scroll.Request': '_global/clear_scroll/ClearScrollRequest.ts#L23-L61', +'_global.clear_scroll.Request': '_global/clear_scroll/ClearScrollRequest.ts#L23-L64', '_global.clear_scroll.Response': '_global/clear_scroll/ClearScrollResponse.ts#L22-L43', -'_global.close_point_in_time.Request': '_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48', +'_global.close_point_in_time.Request': '_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L51', '_global.close_point_in_time.Response': '_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42', -'_global.count.Request': '_global/count/CountRequest.ts#L31-L171', +'_global.count.Request': '_global/count/CountRequest.ts#L32-L175', '_global.count.Response': '_global/count/CountResponse.ts#L23-L25', -'_global.create.Request': '_global/create/CreateRequest.ts#L32-L199', +'_global.create.Request': '_global/create/CreateRequest.ts#L33-L202', '_global.create.Response': '_global/create/CreateResponse.ts#L22-L25', -'_global.delete.Request': '_global/delete/DeleteRequest.ts#L34-L146', -'_global.delete.Response': '_global/delete/DeleteResponse.ts#L22-L35', -'_global.delete_by_query.Request': '_global/delete_by_query/DeleteByQueryRequest.ts#L37-L320', -'_global.delete_by_query.Response': '_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88', -'_global.delete_by_query_rethrottle.Request': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L55', +'_global.delete.Request': '_global/delete/DeleteRequest.ts#L35-L148', +'_global.delete.Response': '_global/delete/DeleteResponse.ts#L22-L36', +'_global.delete_by_query.Request': '_global/delete_by_query/DeleteByQueryRequest.ts#L38-L323', +'_global.delete_by_query.Response': '_global/delete_by_query/DeleteByQueryResponse.ts#L27-L93', +'_global.delete_by_query_rethrottle.Request': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L56', '_global.delete_by_query_rethrottle.Response': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L25', -'_global.delete_script.Request': '_global/delete_script/DeleteScriptRequest.ts#L24-L63', +'_global.delete_script.Request': '_global/delete_script/DeleteScriptRequest.ts#L24-L65', '_global.delete_script.Response': '_global/delete_script/DeleteScriptResponse.ts#L22-L25', -'_global.exists.Request': '_global/exists/DocumentExistsRequest.ts#L31-L136', -'_global.exists_source.Request': '_global/exists_source/SourceExistsRequest.ts#L31-L113', +'_global.exists.Request': '_global/exists/DocumentExistsRequest.ts#L32-L138', +'_global.exists_source.Request': '_global/exists_source/SourceExistsRequest.ts#L32-L115', '_global.explain.Explanation': '_global/explain/types.ts#L22-L26', '_global.explain.ExplanationDetail': '_global/explain/types.ts#L28-L32', -'_global.explain.Request': '_global/explain/ExplainRequest.ts#L26-L125', +'_global.explain.Request': '_global/explain/ExplainRequest.ts#L26-L128', '_global.explain.Response': '_global/explain/ExplainResponse.ts#L23-L31', '_global.field_caps.FieldCapability': '_global/field_caps/types.ts#L23-L81', -'_global.field_caps.Request': '_global/field_caps/FieldCapabilitiesRequest.ts#L30-L147', +'_global.field_caps.Request': '_global/field_caps/FieldCapabilitiesRequest.ts#L31-L150', '_global.field_caps.Response': '_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38', '_global.get.GetResult': '_global/get/types.ts#L25-L67', -'_global.get.Request': '_global/get/GetRequest.ts#L31-L188', -'_global.get.Response': '_global/get/GetResponse.ts#L23-L35', -'_global.get_script.Request': '_global/get_script/GetScriptRequest.ts#L24-L56', +'_global.get.Request': '_global/get/GetRequest.ts#L32-L190', +'_global.get.Response': '_global/get/GetResponse.ts#L23-L36', +'_global.get_script.Request': '_global/get_script/GetScriptRequest.ts#L24-L58', '_global.get_script.Response': '_global/get_script/GetScriptResponse.ts#L23-L29', '_global.get_script_context.Context': '_global/get_script_context/types.ts#L22-L25', '_global.get_script_context.ContextMethod': '_global/get_script_context/types.ts#L27-L31', '_global.get_script_context.ContextMethodParam': '_global/get_script_context/types.ts#L33-L36', -'_global.get_script_context.Request': '_global/get_script_context/GetScriptContextRequest.ts#L22-L39', +'_global.get_script_context.Request': '_global/get_script_context/GetScriptContextRequest.ts#L23-L41', '_global.get_script_context.Response': '_global/get_script_context/GetScriptContextResponse.ts#L22-L26', '_global.get_script_languages.LanguageContext': '_global/get_script_languages/types.ts#L22-L25', -'_global.get_script_languages.Request': '_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L39', +'_global.get_script_languages.Request': '_global/get_script_languages/GetScriptLanguagesRequest.ts#L23-L41', '_global.get_script_languages.Response': '_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27', -'_global.get_source.Request': '_global/get_source/SourceRequest.ts#L31-L112', +'_global.get_source.Request': '_global/get_source/SourceRequest.ts#L32-L114', '_global.get_source.Response': '_global/get_source/SourceResponse.ts#L20-L23', '_global.health_report.BaseIndicator': '_global/health_report/types.ts#L45-L50', '_global.health_report.DataStreamLifecycleDetails': '_global/health_report/types.ts#L154-L158', @@ -79,7 +79,7 @@ '_global.health_report.MasterIsStableIndicatorExceptionFetchingHistory': '_global/health_report/types.ts#L97-L100', '_global.health_report.RepositoryIntegrityIndicator': '_global/health_report/types.ts#L138-L142', '_global.health_report.RepositoryIntegrityIndicatorDetails': '_global/health_report/types.ts#L143-L147', -'_global.health_report.Request': '_global/health_report/Request.ts#L24-L81', +'_global.health_report.Request': '_global/health_report/Request.ts#L25-L84', '_global.health_report.Response': '_global/health_report/Response.ts#L22-L28', '_global.health_report.ShardsAvailabilityIndicator': '_global/health_report/types.ts#L107-L111', '_global.health_report.ShardsAvailabilityIndicatorDetails': '_global/health_report/types.ts#L112-L123', @@ -90,32 +90,32 @@ '_global.health_report.SlmIndicatorDetails': '_global/health_report/types.ts#L181-L185', '_global.health_report.SlmIndicatorUnhealthyPolicies': '_global/health_report/types.ts#L187-L190', '_global.health_report.StagnatingBackingIndices': '_global/health_report/types.ts#L159-L163', -'_global.index.Request': '_global/index/IndexRequest.ts#L35-L273', +'_global.index.Request': '_global/index/IndexRequest.ts#L36-L278', '_global.index.Response': '_global/index/IndexResponse.ts#L22-L25', -'_global.info.Request': '_global/info/RootNodeInfoRequest.ts#L22-L40', +'_global.info.Request': '_global/info/RootNodeInfoRequest.ts#L23-L43', '_global.info.Response': '_global/info/RootNodeInfoResponse.ts#L23-L40', '_global.mget.MultiGetError': '_global/mget/types.ts#L62-L66', '_global.mget.Operation': '_global/mget/types.ts#L32-L55', -'_global.mget.Request': '_global/mget/MultiGetRequest.ts#L25-L127', +'_global.mget.Request': '_global/mget/MultiGetRequest.ts#L25-L129', '_global.mget.Response': '_global/mget/MultiGetResponse.ts#L22-L31', '_global.mget.ResponseItem': '_global/mget/types.ts#L57-L60', '_global.msearch.MultiSearchItem': '_global/msearch/types.ts#L65-L68', '_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L55-L58', '_global.msearch.MultisearchHeader': '_global/msearch/types.ts#L37-L53', -'_global.msearch.Request': '_global/msearch/MultiSearchRequest.ts#L31-L157', +'_global.msearch.Request': '_global/msearch/MultiSearchRequest.ts#L32-L162', '_global.msearch.Response': '_global/msearch/MultiSearchResponse.ts#L25-L28', '_global.msearch.ResponseItem': '_global/msearch/types.ts#L60-L63', -'_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L128', +'_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L130', '_global.msearch_template.Response': '_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L33', '_global.msearch_template.TemplateConfig': '_global/msearch_template/types.ts#L29-L55', '_global.mtermvectors.Operation': '_global/mtermvectors/types.ts#L35-L94', -'_global.mtermvectors.Request': '_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134', +'_global.mtermvectors.Request': '_global/mtermvectors/MultiTermVectorsRequest.ts#L32-L140', '_global.mtermvectors.Response': '_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24', '_global.mtermvectors.TermVectorsResult': '_global/mtermvectors/types.ts#L96-L104', -'_global.open_point_in_time.Request': '_global/open_point_in_time/OpenPointInTimeRequest.ts#L31-L144', +'_global.open_point_in_time.Request': '_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L150', '_global.open_point_in_time.Response': '_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29', -'_global.ping.Request': '_global/ping/PingRequest.ts#L22-L38', -'_global.put_script.Request': '_global/put_script/PutScriptRequest.ts#L25-L87', +'_global.ping.Request': '_global/ping/PingRequest.ts#L23-L41', +'_global.put_script.Request': '_global/put_script/PutScriptRequest.ts#L25-L90', '_global.put_script.Response': '_global/put_script/PutScriptResponse.ts#L22-L25', '_global.rank_eval.DocumentRating': '_global/rank_eval/types.ts#L119-L126', '_global.rank_eval.RankEvalHit': '_global/rank_eval/types.ts#L144-L148', @@ -131,28 +131,27 @@ '_global.rank_eval.RankEvalMetricRecall': '_global/rank_eval/types.ts#L54-L58', '_global.rank_eval.RankEvalQuery': '_global/rank_eval/types.ts#L111-L117', '_global.rank_eval.RankEvalRequestItem': '_global/rank_eval/types.ts#L98-L109', -'_global.rank_eval.Request': '_global/rank_eval/RankEvalRequest.ts#L24-L76', +'_global.rank_eval.Request': '_global/rank_eval/RankEvalRequest.ts#L24-L85', '_global.rank_eval.Response': '_global/rank_eval/RankEvalResponse.ts#L26-L34', '_global.rank_eval.UnratedDocument': '_global/rank_eval/types.ts#L150-L153', '_global.reindex.Destination': '_global/reindex/types.ts#L39-L67', -'_global.reindex.RemoteSource': '_global/reindex/types.ts#L112-L148', -'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L27-L184', -'_global.reindex.Response': '_global/reindex/ReindexResponse.ts#L26-L92', -'_global.reindex.Source': '_global/reindex/types.ts#L69-L110', -'_global.reindex_rethrottle.ReindexNode': '_global/reindex_rethrottle/types.ts#L33-L35', -'_global.reindex_rethrottle.ReindexStatus': '_global/reindex_rethrottle/types.ts#L37-L85', -'_global.reindex_rethrottle.ReindexTask': '_global/reindex_rethrottle/types.ts#L87-L98', -'_global.reindex_rethrottle.Request': '_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L63', +'_global.reindex.RemoteSource': '_global/reindex/types.ts#L115-L151', +'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L32-L192', +'_global.reindex.Response': '_global/reindex/ReindexResponse.ts#L27-L97', +'_global.reindex.Source': '_global/reindex/types.ts#L69-L113', +'_global.reindex_rethrottle.ReindexNode': '_global/reindex_rethrottle/types.ts#L27-L29', +'_global.reindex_rethrottle.ReindexTask': '_global/reindex_rethrottle/types.ts#L31-L43', +'_global.reindex_rethrottle.Request': '_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L64', '_global.reindex_rethrottle.Response': '_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25', -'_global.render_search_template.Request': '_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L77', +'_global.render_search_template.Request': '_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L79', '_global.render_search_template.Response': '_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25', '_global.scripts_painless_execute.PainlessContext': '_global/scripts_painless_execute/types.ts#L57-L80', '_global.scripts_painless_execute.PainlessContextSetup': '_global/scripts_painless_execute/types.ts#L27-L46', -'_global.scripts_painless_execute.Request': '_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64', +'_global.scripts_painless_execute.Request': '_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L25-L67', '_global.scripts_painless_execute.Response': '_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24', -'_global.scroll.Request': '_global/scroll/ScrollRequest.ts#L24-L88', +'_global.scroll.Request': '_global/scroll/ScrollRequest.ts#L24-L96', '_global.scroll.Response': '_global/scroll/ScrollResponse.ts#L22-L25', -'_global.search.Request': '_global/search/SearchRequest.ts#L54-L608', +'_global.search.Request': '_global/search/SearchRequest.ts#L55-L611', '_global.search.Response': '_global/search/SearchResponse.ts#L34-L37', '_global.search.ResponseBody': '_global/search/SearchResponse.ts#L39-L85', '_global.search._types.AggregationBreakdown': '_global/search/_types/profile.ts#L26-L39', @@ -161,16 +160,16 @@ '_global.search._types.AggregationProfileDelegateDebugFilter': '_global/search/_types/profile.ts#L78-L83', '_global.search._types.BoundaryScanner': '_global/search/_types/highlighting.ts#L26-L45', '_global.search._types.Collector': '_global/search/_types/profile.ts#L94-L99', -'_global.search._types.CompletionContext': '_global/search/_types/suggester.ts#L236-L265', +'_global.search._types.CompletionContext': '_global/search/_types/suggester.ts#L237-L266', '_global.search._types.CompletionSuggest': '_global/search/_types/suggester.ts#L49-L56', '_global.search._types.CompletionSuggestOption': '_global/search/_types/suggester.ts#L74-L85', '_global.search._types.CompletionSuggester': '_global/search/_types/suggester.ts#L164-L182', -'_global.search._types.Context': '_global/search/_types/suggester.ts#L229-L234', +'_global.search._types.Context': '_global/search/_types/suggester.ts#L230-L235', '_global.search._types.DfsKnnProfile': '_global/search/_types/profile.ts#L181-L186', '_global.search._types.DfsProfile': '_global/search/_types/profile.ts#L154-L157', '_global.search._types.DfsStatisticsBreakdown': '_global/search/_types/profile.ts#L170-L179', '_global.search._types.DfsStatisticsProfile': '_global/search/_types/profile.ts#L159-L167', -'_global.search._types.DirectGenerator': '_global/search/_types/suggester.ts#L269-L332', +'_global.search._types.DirectGenerator': '_global/search/_types/suggester.ts#L270-L333', '_global.search._types.FetchProfile': '_global/search/_types/profile.ts#L230-L237', '_global.search._types.FetchProfileBreakdown': '_global/search/_types/profile.ts#L239-L248', '_global.search._types.FetchProfileDebug': '_global/search/_types/profile.ts#L250-L253', @@ -184,28 +183,28 @@ '_global.search._types.HighlighterOrder': '_global/search/_types/highlighting.ts#L169-L171', '_global.search._types.HighlighterTagsSchema': '_global/search/_types/highlighting.ts#L173-L175', '_global.search._types.HighlighterType': '_global/search/_types/highlighting.ts#L177-L192', -'_global.search._types.Hit': '_global/search/_types/hits.ts#L40-L68', -'_global.search._types.HitsMetadata': '_global/search/_types/hits.ts#L70-L79', -'_global.search._types.InnerHits': '_global/search/_types/hits.ts#L113-L147', -'_global.search._types.InnerHitsResult': '_global/search/_types/hits.ts#L91-L93', +'_global.search._types.Hit': '_global/search/_types/hits.ts#L40-L69', +'_global.search._types.HitsMetadata': '_global/search/_types/hits.ts#L71-L81', +'_global.search._types.InnerHits': '_global/search/_types/hits.ts#L115-L149', +'_global.search._types.InnerHitsResult': '_global/search/_types/hits.ts#L93-L95', '_global.search._types.KnnCollectorResult': '_global/search/_types/profile.ts#L222-L228', '_global.search._types.KnnQueryProfileBreakdown': '_global/search/_types/profile.ts#L199-L220', '_global.search._types.KnnQueryProfileResult': '_global/search/_types/profile.ts#L188-L196', -'_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L431-L436', +'_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L432-L437', '_global.search._types.LearningToRank': '_global/search/_types/rescoring.ts#L91-L100', -'_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L438-L442', -'_global.search._types.NestedIdentity': '_global/search/_types/hits.ts#L95-L99', +'_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L439-L443', +'_global.search._types.NestedIdentity': '_global/search/_types/hits.ts#L97-L101', '_global.search._types.PhraseSuggest': '_global/search/_types/suggester.ts#L58-L63', -'_global.search._types.PhraseSuggestCollate': '_global/search/_types/suggester.ts#L334-L347', -'_global.search._types.PhraseSuggestCollateQuery': '_global/search/_types/suggester.ts#L349-L358', -'_global.search._types.PhraseSuggestHighlight': '_global/search/_types/suggester.ts#L420-L429', +'_global.search._types.PhraseSuggestCollate': '_global/search/_types/suggester.ts#L335-L348', +'_global.search._types.PhraseSuggestCollateQuery': '_global/search/_types/suggester.ts#L350-L359', +'_global.search._types.PhraseSuggestHighlight': '_global/search/_types/suggester.ts#L421-L430', '_global.search._types.PhraseSuggestOption': '_global/search/_types/suggester.ts#L87-L92', -'_global.search._types.PhraseSuggester': '_global/search/_types/suggester.ts#L360-L418', +'_global.search._types.PhraseSuggester': '_global/search/_types/suggester.ts#L361-L419', '_global.search._types.PointInTimeReference': '_global/search/_types/PointInTimeReference.ts#L23-L26', '_global.search._types.Profile': '_global/search/_types/profile.ts#L101-L103', '_global.search._types.QueryBreakdown': '_global/search/_types/profile.ts#L105-L126', '_global.search._types.QueryProfile': '_global/search/_types/profile.ts#L128-L134', -'_global.search._types.RegexOptions': '_global/search/_types/suggester.ts#L184-L195', +'_global.search._types.RegexOptions': '_global/search/_types/suggester.ts#L184-L196', '_global.search._types.Rescore': '_global/search/_types/rescoring.ts#L26-L41', '_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L43-L65', '_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L67-L89', @@ -213,48 +212,48 @@ '_global.search._types.SearchProfile': '_global/search/_types/profile.ts#L136-L140', '_global.search._types.SearchRequestBody': '_global/search/_types/SearchRequestBody.ts#L42-L242', '_global.search._types.ShardProfile': '_global/search/_types/profile.ts#L142-L152', -'_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L446-L462', +'_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L447-L463', '_global.search._types.SourceConfig': '_global/search/_types/SourceFilter.ts#L50-L54', '_global.search._types.SourceConfigParam': '_global/search/_types/SourceFilter.ts#L56-L62', '_global.search._types.SourceFilter': '_global/search/_types/SourceFilter.ts#L23-L48', -'_global.search._types.StringDistance': '_global/search/_types/suggester.ts#L473-L494', -'_global.search._types.StupidBackoffSmoothingModel': '_global/search/_types/suggester.ts#L464-L469', +'_global.search._types.StringDistance': '_global/search/_types/suggester.ts#L474-L495', +'_global.search._types.StupidBackoffSmoothingModel': '_global/search/_types/suggester.ts#L465-L470', '_global.search._types.Suggest': '_global/search/_types/suggester.ts#L35-L41', '_global.search._types.SuggestBase': '_global/search/_types/suggester.ts#L43-L47', -'_global.search._types.SuggestFuzziness': '_global/search/_types/suggester.ts#L197-L225', -'_global.search._types.SuggestSort': '_global/search/_types/suggester.ts#L496-L505', +'_global.search._types.SuggestFuzziness': '_global/search/_types/suggester.ts#L198-L226', +'_global.search._types.SuggestSort': '_global/search/_types/suggester.ts#L497-L506', '_global.search._types.Suggester': '_global/search/_types/suggester.ts#L102-L108', '_global.search._types.SuggesterBase': '_global/search/_types/suggester.ts#L145-L160', '_global.search._types.TermSuggest': '_global/search/_types/suggester.ts#L65-L70', '_global.search._types.TermSuggestOption': '_global/search/_types/suggester.ts#L94-L100', -'_global.search._types.TermSuggester': '_global/search/_types/suggester.ts#L507-L569', -'_global.search._types.TotalHits': '_global/search/_types/hits.ts#L101-L104', -'_global.search._types.TotalHitsRelation': '_global/search/_types/hits.ts#L106-L111', -'_global.search._types.TrackHits': '_global/search/_types/hits.ts#L149-L157', -'_global.search_mvt.Request': '_global/search_mvt/SearchMvtRequest.ts#L33-L348', +'_global.search._types.TermSuggester': '_global/search/_types/suggester.ts#L508-L570', +'_global.search._types.TotalHits': '_global/search/_types/hits.ts#L103-L106', +'_global.search._types.TotalHitsRelation': '_global/search/_types/hits.ts#L108-L113', +'_global.search._types.TrackHits': '_global/search/_types/hits.ts#L151-L159', +'_global.search_mvt.Request': '_global/search_mvt/SearchMvtRequest.ts#L39-L356', '_global.search_mvt.Response': '_global/search_mvt/SearchMvtResponse.ts#L22-L25', '_global.search_mvt._types.GridAggregationType': '_global/search_mvt/_types/GridType.ts#L30-L33', '_global.search_mvt._types.GridType': '_global/search_mvt/_types/GridType.ts#L20-L28', -'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L24-L99', +'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L24-L100', '_global.search_shards.Response': '_global/search_shards/SearchShardsResponse.ts#L34-L40', '_global.search_shards.SearchShardsNodeAttributes': '_global/search_shards/SearchShardsResponse.ts#L42-L60', '_global.search_shards.ShardStoreIndex': '_global/search_shards/SearchShardsResponse.ts#L62-L65', -'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L34-L166', +'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L35-L172', '_global.search_template.Response': '_global/search_template/SearchTemplateResponse.ts#L30-L48', -'_global.terms_enum.Request': '_global/terms_enum/TermsEnumRequest.ts#L26-L93', +'_global.terms_enum.Request': '_global/terms_enum/TermsEnumRequest.ts#L26-L95', '_global.terms_enum.Response': '_global/terms_enum/TermsEnumResponse.ts#L22-L32', '_global.termvectors.FieldStatistics': '_global/termvectors/types.ts#L28-L32', '_global.termvectors.Filter': '_global/termvectors/types.ts#L49-L86', -'_global.termvectors.Request': '_global/termvectors/TermVectorsRequest.ts#L33-L241', +'_global.termvectors.Request': '_global/termvectors/TermVectorsRequest.ts#L34-L244', '_global.termvectors.Response': '_global/termvectors/TermVectorsResponse.ts#L25-L34', '_global.termvectors.Term': '_global/termvectors/types.ts#L34-L40', '_global.termvectors.TermVector': '_global/termvectors/types.ts#L23-L26', '_global.termvectors.Token': '_global/termvectors/types.ts#L42-L47', -'_global.update.Request': '_global/update/UpdateRequest.ts#L38-L196', +'_global.update.Request': '_global/update/UpdateRequest.ts#L39-L199', '_global.update.Response': '_global/update/UpdateResponse.ts#L27-L30', '_global.update.UpdateWriteResponseBase': '_global/update/UpdateResponse.ts#L23-L25', -'_global.update_by_query.Request': '_global/update_by_query/UpdateByQueryRequest.ts#L37-L349', -'_global.update_by_query.Response': '_global/update_by_query/UpdateByQueryResponse.ts#L26-L67', +'_global.update_by_query.Request': '_global/update_by_query/UpdateByQueryRequest.ts#L38-L357', +'_global.update_by_query.Response': '_global/update_by_query/UpdateByQueryResponse.ts#L27-L76', '_global.update_by_query_rethrottle.Request': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L56', '_global.update_by_query_rethrottle.Response': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25', '_global.update_by_query_rethrottle.UpdateByQueryRethrottleNode': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27', @@ -262,27 +261,30 @@ '_types.AcknowledgedResponseBase': '_types/Base.ts#L74-L77', '_types.BulkIndexByScrollFailure': '_types/Errors.ts#L64-L69', '_types.BulkStats': '_types/Stats.ts#L71-L81', -'_types.Bytes': '_types/common.ts#L164-L176', +'_types.Bytes': '_types/common.ts#L161-L173', '_types.CartesianPoint': '_types/Geo.ts#L125-L128', -'_types.ChunkRescorer': '_types/Retriever.ts#L176-L181', +'_types.ChunkRescorer': '_types/Retriever.ts#L205-L210', '_types.ClusterDetails': '_types/Stats.ts#L45-L52', -'_types.ClusterInfoTarget': '_types/common.ts#L385-L391', +'_types.ClusterInfoTarget': '_types/common.ts#L395-L401', '_types.ClusterSearchStatus': '_types/Stats.ts#L37-L43', '_types.ClusterStatistics': '_types/Stats.ts#L27-L35', +'_types.CommonStatsFlag': '_types/common.ts#L405-L428', '_types.CompletionStats': '_types/Stats.ts#L83-L93', -'_types.Conflicts': '_types/common.ts#L178-L187', +'_types.Conflicts': '_types/common.ts#L175-L184', '_types.CoordsGeoBounds': '_types/Geo.ts#L153-L158', '_types.DFIIndependenceMeasure': '_types/Similarity.ts#L20-L24', '_types.DFRAfterEffect': '_types/Similarity.ts#L26-L30', '_types.DFRBasicModel': '_types/Similarity.ts#L32-L40', '_types.DistanceUnit': '_types/Geo.ts#L30-L40', +'_types.DiversifyRetriever': '_types/Retriever.ts#L216-L233', +'_types.DiversifyRetrieverTypes': '_types/Retriever.ts#L212-L214', '_types.DocStats': '_types/Stats.ts#L100-L121', '_types.ElasticsearchVersionInfo': '_types/Base.ts#L81-L123', '_types.ElasticsearchVersionMinInfo': '_types/Base.ts#L125-L133', -'_types.EmptyObject': '_types/common.ts#L155-L156', +'_types.EmptyObject': '_types/common.ts#L152-L153', '_types.ErrorCause': '_types/Errors.ts#L25-L50', '_types.ErrorResponseBase': '_types/Base.ts#L135-L144', -'_types.ExpandWildcard': '_types/common.ts#L196-L210', +'_types.ExpandWildcard': '_types/common.ts#L193-L207', '_types.FieldMemoryUsage': '_types/Stats.ts#L143-L146', '_types.FieldSizeUsage': '_types/Stats.ts#L95-L98', '_types.FieldSort': '_types/sort.ts#L43-L52', @@ -300,52 +302,55 @@ '_types.GetStats': '_types/Stats.ts#L155-L166', '_types.GlobalOrdinalFieldStats': '_types/Stats.ts#L137-L141', '_types.GlobalOrdinalsStats': '_types/Stats.ts#L131-L135', -'_types.HealthStatus': '_types/common.ts#L214-L236', +'_types.HealthStatus': '_types/common.ts#L211-L233', '_types.IBDistribution': '_types/Similarity.ts#L42-L45', '_types.IBLambda': '_types/Similarity.ts#L47-L50', '_types.IndexingStats': '_types/Stats.ts#L168-L186', -'_types.IndicesOptions': '_types/common.ts#L339-L366', +'_types.IndicesOptions': '_types/common.ts#L349-L376', '_types.IndicesResponseBase': '_types/Base.ts#L146-L148', -'_types.InlineGet': '_types/common.ts#L324-L337', -'_types.InnerRetriever': '_types/Retriever.ts#L86-L90', -'_types.KnnQuery': '_types/Knn.ts#L64-L87', -'_types.KnnRetriever': '_types/Retriever.ts#L116-L134', -'_types.KnnSearch': '_types/Knn.ts#L35-L62', +'_types.InlineGet': '_types/common.ts#L334-L347', +'_types.InnerRetriever': '_types/Retriever.ts#L88-L92', +'_types.KnnQuery': '_types/Knn.ts#L71-L101', +'_types.KnnRetriever': '_types/Retriever.ts#L118-L143', +'_types.KnnSearch': '_types/Knn.ts#L35-L69', '_types.LatLonGeoLocation': '_types/Geo.ts#L114-L123', -'_types.Level': '_types/common.ts#L247-L251', +'_types.Level': '_types/common.ts#L257-L261', '_types.LifecycleOperationMode': '_types/Lifecycle.ts#L20-L24', -'_types.LinearRetriever': '_types/Retriever.ts#L69-L76', +'_types.LinearRetriever': '_types/Retriever.ts#L71-L78', '_types.MergesStats': '_types/Stats.ts#L188-L205', '_types.NestedSortValue': '_types/sort.ts#L29-L34', '_types.NodeAttributes': '_types/Node.ts#L41-L52', '_types.NodeRole': '_types/Node.ts#L71-L89', '_types.NodeShard': '_types/Node.ts#L54-L65', '_types.NodeStatistics': '_types/Node.ts#L28-L39', -'_types.NodeStatsLevel': '_types/common.ts#L253-L257', +'_types.NodeStatsLevel': '_types/common.ts#L263-L267', '_types.Normalization': '_types/Similarity.ts#L52-L58', -'_types.OpType': '_types/common.ts#L259-L268', -'_types.PinnedRetriever': '_types/Retriever.ts#L78-L84', +'_types.OpType': '_types/common.ts#L269-L278', +'_types.PinnedRetriever': '_types/Retriever.ts#L80-L86', '_types.PluginStats': '_types/Stats.ts#L207-L217', '_types.QueryCacheStats': '_types/Stats.ts#L219-L253', -'_types.QueryVectorBuilder': '_types/Knn.ts#L89-L92', -'_types.RRFRetriever': '_types/Retriever.ts#L136-L145', +'_types.QueryVectorBuilder': '_types/Knn.ts#L103-L106', +'_types.RRFRetriever': '_types/Retriever.ts#L164-L173', +'_types.RRFRetrieverComponent': '_types/Retriever.ts#L145-L156', +'_types.RRFRetrieverEntry': '_types/Retriever.ts#L158-L162', '_types.RankBase': '_types/Rank.ts#L30-L30', '_types.RankContainer': '_types/Rank.ts#L22-L28', '_types.RecoveryStats': '_types/Stats.ts#L255-L260', -'_types.Refresh': '_types/common.ts#L270-L277', +'_types.Refresh': '_types/common.ts#L280-L287', '_types.RefreshStats': '_types/Stats.ts#L262-L269', +'_types.ReindexStatus': '_types/Reindex.ts#L24-L80', '_types.RelocationFailureInfo': '_types/Node.ts#L67-L69', '_types.RequestBase': '_types/Base.ts#L35-L35', '_types.RequestCacheStats': '_types/Stats.ts#L271-L277', '_types.RescoreVector': '_types/Knn.ts#L30-L33', -'_types.RescorerRetriever': '_types/Retriever.ts#L63-L67', +'_types.RescorerRetriever': '_types/Retriever.ts#L65-L69', '_types.Result': '_types/Result.ts#L20-L26', '_types.Retries': '_types/Retries.ts#L22-L31', -'_types.RetrieverBase': '_types/Retriever.ts#L54-L61', -'_types.RetrieverContainer': '_types/Retriever.ts#L29-L52', +'_types.RetrieverBase': '_types/Retriever.ts#L56-L63', +'_types.RetrieverContainer': '_types/Retriever.ts#L29-L54', '_types.RrfRank': '_types/Rank.ts#L32-L37', -'_types.RuleRetriever': '_types/Retriever.ts#L165-L174', -'_types.ScoreNormalizer': '_types/Retriever.ts#L92-L96', +'_types.RuleRetriever': '_types/Retriever.ts#L194-L203', +'_types.ScoreNormalizer': '_types/Retriever.ts#L94-L98', '_types.ScoreSort': '_types/sort.ts#L54-L56', '_types.Script': '_types/Scripting.ts#L65-L89', '_types.ScriptField': '_types/Scripting.ts#L91-L94', @@ -356,55 +361,55 @@ '_types.ScriptTransform': '_types/Transform.ts#L37-L45', '_types.SearchStats': '_types/Stats.ts#L279-L299', '_types.SearchTransform': '_types/Transform.ts#L47-L50', -'_types.SearchType': '_types/common.ts#L279-L284', +'_types.SearchType': '_types/common.ts#L289-L294', '_types.SegmentsStats': '_types/Stats.ts#L301-L396', '_types.ShardFailure': '_types/Errors.ts#L52-L62', '_types.ShardStatistics': '_types/Stats.ts#L54-L69', '_types.ShardsOperationResponseBase': '_types/Base.ts#L150-L153', '_types.SlicedScroll': '_types/SlicedScroll.ts#L23-L27', -'_types.Slices': '_types/common.ts#L368-L373', -'_types.SlicesCalculation': '_types/common.ts#L375-L383', +'_types.Slices': '_types/common.ts#L378-L383', +'_types.SlicesCalculation': '_types/common.ts#L385-L393', '_types.SortMode': '_types/sort.ts#L108-L117', '_types.SortOptions': '_types/sort.ts#L86-L96', '_types.SortOrder': '_types/sort.ts#L119-L128', -'_types.SpecifiedDocument': '_types/Retriever.ts#L98-L101', -'_types.StandardRetriever': '_types/Retriever.ts#L103-L114', +'_types.SpecifiedDocument': '_types/Retriever.ts#L100-L103', +'_types.StandardRetriever': '_types/Retriever.ts#L105-L116', '_types.StoreStats': '_types/Stats.ts#L398-L425', '_types.StoredScript': '_types/Scripting.ts#L51-L63', -'_types.SuggestMode': '_types/common.ts#L286-L299', +'_types.SuggestMode': '_types/common.ts#L296-L309', '_types.TaskFailure': '_types/Errors.ts#L71-L76', -'_types.TextEmbedding': '_types/Knn.ts#L94-L103', -'_types.TextSimilarityReranker': '_types/Retriever.ts#L147-L163', -'_types.ThreadType': '_types/common.ts#L301-L307', +'_types.TextEmbedding': '_types/Knn.ts#L108-L117', +'_types.TextSimilarityReranker': '_types/Retriever.ts#L175-L192', +'_types.ThreadType': '_types/common.ts#L311-L317', '_types.TimeUnit': '_types/Time.ts#L70-L78', -'_types.TokenPruningConfig': '_types/TokenPruningConfig.ts#L22-L35', +'_types.TokenPruningConfig': '_types/TokenPruningConfig.ts#L22-L38', '_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L160-L163', '_types.TopRightBottomLeftGeoBounds': '_types/Geo.ts#L165-L168', '_types.TransformContainer': '_types/Transform.ts#L28-L35', '_types.TranslogStats': '_types/Stats.ts#L427-L435', -'_types.VersionType': '_types/common.ts#L102-L117', -'_types.WaitForActiveShardOptions': '_types/common.ts#L309-L313', -'_types.WaitForActiveShards': '_types/common.ts#L137-L138', -'_types.WaitForEvents': '_types/common.ts#L315-L322', +'_types.VersionType': '_types/common.ts#L99-L114', +'_types.WaitForActiveShardOptions': '_types/common.ts#L319-L323', +'_types.WaitForActiveShards': '_types/common.ts#L134-L135', +'_types.WaitForEvents': '_types/common.ts#L325-L332', '_types.WarmerStats': '_types/Stats.ts#L437-L442', '_types.WktGeoBounds': '_types/Geo.ts#L149-L151', '_types.WriteResponseBase': '_types/Base.ts#L37-L72', '_types.aggregations.AbstractChangePoint': '_types/aggregations/Aggregate.ts#L412-L415', -'_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L720-L725', +'_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L721-L726', '_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L60-L70', -'_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L727-L729', +'_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L728-L730', '_types.aggregations.Aggregate': '_types/aggregations/Aggregate.ts#L40-L130', '_types.aggregations.AggregateBase': '_types/aggregations/Aggregate.ts#L141-L143', '_types.aggregations.Aggregation': '_types/aggregations/Aggregation.ts#L20-L20', -'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L110-L556', +'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L110-L555', '_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L694-L707', '_types.aggregations.ArrayPercentilesItem': '_types/aggregations/Aggregate.ts#L167-L171', -'_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L464-L471', +'_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L465-L472', '_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L72-L110', '_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L55-L55', '_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L78-L81', '_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L223-L227', -'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L879-L898', +'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L880-L899', '_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L57-L68', '_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L53-L58', '_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L139-L146', @@ -434,25 +439,25 @@ '_types.aggregations.ChangePointBucket': '_types/aggregations/Aggregate.ts#L394-L396', '_types.aggregations.ChangeType': '_types/aggregations/Aggregate.ts#L398-L410', '_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L785-L794', -'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L961-L965', +'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L962-L966', '_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L121-L126', -'_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L771-L776', +'_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L772-L777', '_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L130-L149', '_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L173-L182', '_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L151-L171', -'_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L778-L780', +'_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L779-L781', '_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L190-L198', '_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L200-L203', '_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L186-L188', '_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L184-L184', -'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L929-L937', +'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L930-L938', '_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L208-L211', '_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L213-L216', '_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1219-L1223', -'_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L454-L457', +'_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L454-L458', '_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L205-L263', -'_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L459-L462', -'_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L680-L686', +'_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L460-L463', +'_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L681-L687', '_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L284-L310', '_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L321-L334', '_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L246-L253', @@ -460,8 +465,8 @@ '_types.aggregations.Dip': '_types/aggregations/Aggregate.ts#L417-L417', '_types.aggregations.DistributionChange': '_types/aggregations/Aggregate.ts#L419-L419', '_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L336-L360', -'_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L522-L527', -'_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L529-L532', +'_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L523-L528', +'_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L530-L533', '_types.aggregations.EwmaModelSettings': '_types/aggregations/pipeline.ts#L295-L297', '_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L280-L283', '_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L511-L520', @@ -470,37 +475,37 @@ '_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L327-L328', '_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L220-L225', '_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L312-L319', -'_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L623-L627', -'_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L710-L714', +'_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L624-L628', +'_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L711-L715', '_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L377-L397', -'_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L716-L718', +'_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L717-L719', '_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L47-L49', '_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L51-L53', -'_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L795-L796', +'_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L796-L797', '_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L1270-L1297', -'_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L798-L801', +'_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L799-L802', '_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L1256-L1268', '_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L61-L76', '_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L343-L349', '_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L118-L127', '_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L351-L358', '_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L129-L132', -'_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L688-L693', +'_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L689-L694', '_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L399-L422', -'_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L637-L639', +'_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L638-L640', '_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L424-L452', -'_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L641-L643', -'_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L656-L657', -'_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L659-L661', -'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L975-L985', +'_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L642-L644', +'_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L657-L658', +'_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L660-L662', +'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L976-L986', '_types.aggregations.GeoLineAggregation': '_types/aggregations/metric.ts#L134-L159', '_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L168-L173', '_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L161-L166', -'_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L645-L650', +'_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L646-L651', '_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L454-L480', -'_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L652-L654', +'_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L653-L655', '_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L482-L507', -'_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L617-L621', +'_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L618-L622', '_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L509-L509', '_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L796-L801', '_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L241-L246', @@ -515,28 +520,28 @@ '_types.aggregations.HoltWintersMovingAverageAggregation': '_types/aggregations/pipeline.ts#L290-L293', '_types.aggregations.HoltWintersType': '_types/aggregations/pipeline.ts#L311-L314', '_types.aggregations.Indeterminable': '_types/aggregations/Aggregate.ts#L425-L427', -'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L828-L843', +'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L829-L844', '_types.aggregations.InferenceAggregation': '_types/aggregations/pipeline.ts#L227-L236', -'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L857-L860', +'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L858-L861', '_types.aggregations.InferenceConfigContainer': '_types/aggregations/pipeline.ts#L238-L244', -'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L851-L855', -'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L845-L849', -'_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L782-L786', +'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L852-L856', +'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L846-L850', +'_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L783-L787', '_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L1225-L1254', -'_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L788-L793', -'_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L695-L700', +'_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L789-L794', +'_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L696-L701', '_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L570-L579', '_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L581-L594', -'_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L702-L706', +'_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L703-L707', '_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L270-L273', -'_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L542-L547', -'_types.aggregations.LongRareTermsBucket': '_types/aggregations/Aggregate.ts#L549-L552', -'_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L510-L515', -'_types.aggregations.LongTermsBucket': '_types/aggregations/Aggregate.ts#L517-L520', +'_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L543-L548', +'_types.aggregations.LongRareTermsBucket': '_types/aggregations/Aggregate.ts#L550-L553', +'_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L511-L516', +'_types.aggregations.LongTermsBucket': '_types/aggregations/Aggregate.ts#L518-L521', '_types.aggregations.MatrixAggregation': '_types/aggregations/matrix.ts#L26-L36', -'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L939-L946', +'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L940-L947', '_types.aggregations.MatrixStatsAggregation': '_types/aggregations/matrix.ts#L38-L44', -'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L948-L957', +'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L949-L958', '_types.aggregations.MaxAggregate': '_types/aggregations/Aggregate.ts#L210-L214', '_types.aggregations.MaxAggregation': '_types/aggregations/metric.ts#L175-L175', '_types.aggregations.MaxBucketAggregation': '_types/aggregations/pipeline.ts#L246-L249', @@ -547,9 +552,9 @@ '_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L194-L194', '_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L251-L254', '_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L112-L119', -'_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L599-L603', +'_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L600-L604', '_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L596-L602', -'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L559-L563', +'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L558-L562', '_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L256-L262', '_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L264-L268', '_types.aggregations.MovingFunctionAggregation': '_types/aggregations/pipeline.ts#L316-L334', @@ -557,17 +562,17 @@ '_types.aggregations.MultiBucketAggregateBase': '_types/aggregations/Aggregate.ts#L373-L375', '_types.aggregations.MultiBucketBase': '_types/aggregations/Aggregate.ts#L377-L386', '_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L646-L656', -'_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L572-L577', +'_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L573-L578', '_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L604-L644', -'_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L579-L583', +'_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L580-L584', '_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L803-L812', -'_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L605-L609', +'_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L606-L610', '_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L658-L663', '_types.aggregations.NonStationary': '_types/aggregations/Aggregate.ts#L429-L433', '_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L353-L361', '_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L363-L389', '_types.aggregations.PValueHeuristic': '_types/aggregations/bucket.ts#L820-L834', -'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L967-L971', +'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L968-L972', '_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L665-L670', '_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L814-L814', '_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L196-L218', @@ -578,33 +583,33 @@ '_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L391-L399', '_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L51', '_types.aggregations.RandomSamplerAggregation': '_types/aggregations/bucket.ts#L752-L772', -'_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L665-L669', +'_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L666-L670', '_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L672-L692', -'_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L671-L678', +'_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L672-L679', '_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L709-L742', -'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L920-L927', +'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L921-L928', '_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L266-L277', '_types.aggregations.RateMode': '_types/aggregations/metric.ts#L279-L288', -'_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L611-L615', +'_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L612-L616', '_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L744-L750', -'_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L629-L630', +'_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L630-L631', '_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L774-L783', '_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L362-L375', '_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L816-L818', -'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L812-L818', +'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L813-L819', '_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L290-L316', '_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L401-L410', -'_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L741-L743', -'_types.aggregations.SignificantLongTermsBucket': '_types/aggregations/Aggregate.ts#L750-L753', -'_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L755-L757', -'_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L759-L761', -'_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L731-L739', +'_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L742-L744', +'_types.aggregations.SignificantLongTermsBucket': '_types/aggregations/Aggregate.ts#L751-L754', +'_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L756-L758', +'_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L760-L762', +'_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L732-L740', '_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L836-L913', -'_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L745-L748', +'_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L746-L749', '_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L915-L990', '_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L275-L278', '_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L243-L244', -'_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L587-L597', +'_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L588-L598', '_types.aggregations.SingleMetricAggregateBase': '_types/aggregations/Aggregate.ts#L190-L199', '_types.aggregations.Spike': '_types/aggregations/Aggregate.ts#L421-L421', '_types.aggregations.StandardDeviationBounds': '_types/aggregations/Aggregate.ts#L286-L293', @@ -615,12 +620,12 @@ '_types.aggregations.StatsBucketAggregate': '_types/aggregations/Aggregate.ts#L280-L284', '_types.aggregations.StatsBucketAggregation': '_types/aggregations/pipeline.ts#L412-L412', '_types.aggregations.StepChange': '_types/aggregations/Aggregate.ts#L423-L423', -'_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L554-L558', -'_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L560-L562', -'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L866-L877', +'_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L555-L559', +'_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L561-L563', +'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L867-L878', '_types.aggregations.StringStatsAggregation': '_types/aggregations/metric.ts#L320-L326', -'_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L495-L500', -'_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L506-L508', +'_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L496-L501', +'_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L507-L509', '_types.aggregations.SumAggregate': '_types/aggregations/Aggregate.ts#L216-L221', '_types.aggregations.SumAggregation': '_types/aggregations/metric.ts#L328-L328', '_types.aggregations.SumBucketAggregation': '_types/aggregations/pipeline.ts#L414-L417', @@ -628,53 +633,53 @@ '_types.aggregations.TDigestExecutionHint': '_types/aggregations/metric.ts#L261-L264', '_types.aggregations.TDigestPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L182-L183', '_types.aggregations.TDigestPercentilesAggregate': '_types/aggregations/Aggregate.ts#L179-L180', -'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L911-L918', +'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L912-L919', '_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L330-L344', '_types.aggregations.TTestType': '_types/aggregations/metric.ts#L358-L371', -'_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L488-L493', +'_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L489-L494', '_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L992-L1060', '_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L1085-L1094', '_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L1096-L1101', -'_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L502-L504', +'_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L503-L505', '_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L1106-L1107', '_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L1103-L1104', '_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L1109-L1118', '_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L346-L356', -'_types.aggregations.TimeSeriesAggregate': '_types/aggregations/Aggregate.ts#L803-L804', +'_types.aggregations.TimeSeriesAggregate': '_types/aggregations/Aggregate.ts#L804-L805', '_types.aggregations.TimeSeriesAggregation': '_types/aggregations/bucket.ts#L1062-L1075', -'_types.aggregations.TimeSeriesBucket': '_types/aggregations/Aggregate.ts#L806-L808', -'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L820-L826', +'_types.aggregations.TimeSeriesBucket': '_types/aggregations/Aggregate.ts#L807-L809', +'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L821-L827', '_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L373-L433', -'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L905-L909', -'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L900-L903', +'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L906-L910', +'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L901-L904', '_types.aggregations.TopMetricsAggregation': '_types/aggregations/metric.ts#L435-L452', '_types.aggregations.TopMetricsValue': '_types/aggregations/metric.ts#L454-L459', '_types.aggregations.TrendChange': '_types/aggregations/Aggregate.ts#L437-L441', -'_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L564-L570', -'_types.aggregations.UnmappedSamplerAggregate': '_types/aggregations/Aggregate.ts#L632-L633', -'_types.aggregations.UnmappedSignificantTermsAggregate': '_types/aggregations/Aggregate.ts#L763-L769', -'_types.aggregations.UnmappedTermsAggregate': '_types/aggregations/Aggregate.ts#L534-L540', +'_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L565-L571', +'_types.aggregations.UnmappedSamplerAggregate': '_types/aggregations/Aggregate.ts#L633-L634', +'_types.aggregations.UnmappedSignificantTermsAggregate': '_types/aggregations/Aggregate.ts#L764-L770', +'_types.aggregations.UnmappedTermsAggregate': '_types/aggregations/Aggregate.ts#L535-L541', '_types.aggregations.ValueCountAggregate': '_types/aggregations/Aggregate.ts#L236-L241', '_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L461-L461', '_types.aggregations.ValueType': '_types/aggregations/metric.ts#L463-L474', -'_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L473-L475', +'_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L474-L476', '_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L1120-L1144', -'_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L477-L484', +'_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L478-L485', '_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L476-L490', '_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L492-L502', '_types.aggregations.WeightedAvgAggregate': '_types/aggregations/Aggregate.ts#L229-L234', '_types.analysis.Analyzer': '_types/analysis/analyzers.ts#L427-L480', -'_types.analysis.ApostropheTokenFilter': '_types/analysis/token_filters.ts#L451-L453', +'_types.analysis.ApostropheTokenFilter': '_types/analysis/token_filters.ts#L486-L488', '_types.analysis.ArabicAnalyzer': '_types/analysis/analyzers.ts#L72-L77', -'_types.analysis.ArabicNormalizationTokenFilter': '_types/analysis/token_filters.ts#L455-L457', -'_types.analysis.ArabicStemTokenFilter': '_types/analysis/token_filters.ts#L547-L549', +'_types.analysis.ArabicNormalizationTokenFilter': '_types/analysis/token_filters.ts#L490-L492', +'_types.analysis.ArabicStemTokenFilter': '_types/analysis/token_filters.ts#L584-L586', '_types.analysis.ArmenianAnalyzer': '_types/analysis/analyzers.ts#L79-L84', -'_types.analysis.AsciiFoldingTokenFilter': '_types/analysis/token_filters.ts#L213-L217', +'_types.analysis.AsciiFoldingTokenFilter': '_types/analysis/token_filters.ts#L224-L228', '_types.analysis.BasqueAnalyzer': '_types/analysis/analyzers.ts#L86-L91', '_types.analysis.BengaliAnalyzer': '_types/analysis/analyzers.ts#L93-L98', -'_types.analysis.BengaliNormalizationTokenFilter': '_types/analysis/token_filters.ts#L490-L492', +'_types.analysis.BengaliNormalizationTokenFilter': '_types/analysis/token_filters.ts#L525-L527', '_types.analysis.BrazilianAnalyzer': '_types/analysis/analyzers.ts#L100-L104', -'_types.analysis.BrazilianStemTokenFilter': '_types/analysis/token_filters.ts#L494-L496', +'_types.analysis.BrazilianStemTokenFilter': '_types/analysis/token_filters.ts#L529-L531', '_types.analysis.BulgarianAnalyzer': '_types/analysis/analyzers.ts#L106-L111', '_types.analysis.CatalanAnalyzer': '_types/analysis/analyzers.ts#L113-L118', '_types.analysis.CharFilter': '_types/analysis/char_filters.ts#L28-L33', @@ -683,48 +688,48 @@ '_types.analysis.CharGroupTokenizer': '_types/analysis/tokenizers.ts#L31-L38', '_types.analysis.ChineseAnalyzer': '_types/analysis/analyzers.ts#L120-L124', '_types.analysis.CjkAnalyzer': '_types/analysis/analyzers.ts#L126-L130', -'_types.analysis.CjkBigramIgnoredScript': '_types/analysis/token_filters.ts#L459-L464', -'_types.analysis.CjkBigramTokenFilter': '_types/analysis/token_filters.ts#L466-L472', -'_types.analysis.CjkWidthTokenFilter': '_types/analysis/token_filters.ts#L474-L476', -'_types.analysis.ClassicTokenFilter': '_types/analysis/token_filters.ts#L478-L480', +'_types.analysis.CjkBigramIgnoredScript': '_types/analysis/token_filters.ts#L494-L499', +'_types.analysis.CjkBigramTokenFilter': '_types/analysis/token_filters.ts#L501-L507', +'_types.analysis.CjkWidthTokenFilter': '_types/analysis/token_filters.ts#L509-L511', +'_types.analysis.ClassicTokenFilter': '_types/analysis/token_filters.ts#L513-L515', '_types.analysis.ClassicTokenizer': '_types/analysis/tokenizers.ts#L40-L46', -'_types.analysis.CommonGramsTokenFilter': '_types/analysis/token_filters.ts#L219-L235', -'_types.analysis.CompoundWordTokenFilterBase': '_types/analysis/token_filters.ts#L45-L61', -'_types.analysis.ConditionTokenFilter': '_types/analysis/token_filters.ts#L237-L243', +'_types.analysis.CommonGramsTokenFilter': '_types/analysis/token_filters.ts#L230-L252', +'_types.analysis.CompoundWordTokenFilterBase': '_types/analysis/token_filters.ts#L45-L65', +'_types.analysis.ConditionTokenFilter': '_types/analysis/token_filters.ts#L254-L260', '_types.analysis.CustomAnalyzer': '_types/analysis/analyzers.ts#L28-L35', '_types.analysis.CustomNormalizer': '_types/analysis/normalizers.ts#L30-L34', '_types.analysis.CzechAnalyzer': '_types/analysis/analyzers.ts#L132-L137', -'_types.analysis.CzechStemTokenFilter': '_types/analysis/token_filters.ts#L551-L553', +'_types.analysis.CzechStemTokenFilter': '_types/analysis/token_filters.ts#L588-L590', '_types.analysis.DanishAnalyzer': '_types/analysis/analyzers.ts#L139-L143', -'_types.analysis.DecimalDigitTokenFilter': '_types/analysis/token_filters.ts#L482-L484', -'_types.analysis.DelimitedPayloadEncoding': '_types/analysis/token_filters.ts#L78-L82', -'_types.analysis.DelimitedPayloadTokenFilter': '_types/analysis/token_filters.ts#L84-L90', -'_types.analysis.DictionaryDecompounderTokenFilter': '_types/analysis/token_filters.ts#L63-L65', +'_types.analysis.DecimalDigitTokenFilter': '_types/analysis/token_filters.ts#L517-L519', +'_types.analysis.DelimitedPayloadEncoding': '_types/analysis/token_filters.ts#L84-L88', +'_types.analysis.DelimitedPayloadTokenFilter': '_types/analysis/token_filters.ts#L90-L96', +'_types.analysis.DictionaryDecompounderTokenFilter': '_types/analysis/token_filters.ts#L67-L69', '_types.analysis.DutchAnalyzer': '_types/analysis/analyzers.ts#L145-L150', -'_types.analysis.DutchStemTokenFilter': '_types/analysis/token_filters.ts#L559-L561', -'_types.analysis.EdgeNGramSide': '_types/analysis/token_filters.ts#L92-L95', -'_types.analysis.EdgeNGramTokenFilter': '_types/analysis/token_filters.ts#L97-L107', +'_types.analysis.DutchStemTokenFilter': '_types/analysis/token_filters.ts#L596-L598', +'_types.analysis.EdgeNGramSide': '_types/analysis/token_filters.ts#L98-L101', +'_types.analysis.EdgeNGramTokenFilter': '_types/analysis/token_filters.ts#L103-L113', '_types.analysis.EdgeNGramTokenizer': '_types/analysis/tokenizers.ts#L48-L58', -'_types.analysis.ElisionTokenFilter': '_types/analysis/token_filters.ts#L245-L258', +'_types.analysis.ElisionTokenFilter': '_types/analysis/token_filters.ts#L262-L279', '_types.analysis.EnglishAnalyzer': '_types/analysis/analyzers.ts#L152-L157', '_types.analysis.EstonianAnalyzer': '_types/analysis/analyzers.ts#L159-L163', '_types.analysis.FingerprintAnalyzer': '_types/analysis/analyzers.ts#L37-L64', -'_types.analysis.FingerprintTokenFilter': '_types/analysis/token_filters.ts#L260-L266', +'_types.analysis.FingerprintTokenFilter': '_types/analysis/token_filters.ts#L281-L287', '_types.analysis.FinnishAnalyzer': '_types/analysis/analyzers.ts#L165-L170', -'_types.analysis.FlattenGraphTokenFilter': '_types/analysis/token_filters.ts#L486-L488', +'_types.analysis.FlattenGraphTokenFilter': '_types/analysis/token_filters.ts#L521-L523', '_types.analysis.FrenchAnalyzer': '_types/analysis/analyzers.ts#L172-L177', -'_types.analysis.FrenchStemTokenFilter': '_types/analysis/token_filters.ts#L555-L557', +'_types.analysis.FrenchStemTokenFilter': '_types/analysis/token_filters.ts#L592-L594', '_types.analysis.GalicianAnalyzer': '_types/analysis/analyzers.ts#L179-L184', '_types.analysis.GermanAnalyzer': '_types/analysis/analyzers.ts#L186-L191', -'_types.analysis.GermanNormalizationTokenFilter': '_types/analysis/token_filters.ts#L498-L500', -'_types.analysis.GermanStemTokenFilter': '_types/analysis/token_filters.ts#L563-L565', +'_types.analysis.GermanNormalizationTokenFilter': '_types/analysis/token_filters.ts#L533-L535', +'_types.analysis.GermanStemTokenFilter': '_types/analysis/token_filters.ts#L600-L602', '_types.analysis.GreekAnalyzer': '_types/analysis/analyzers.ts#L193-L197', '_types.analysis.HindiAnalyzer': '_types/analysis/analyzers.ts#L199-L204', -'_types.analysis.HindiNormalizationTokenFilter': '_types/analysis/token_filters.ts#L502-L504', +'_types.analysis.HindiNormalizationTokenFilter': '_types/analysis/token_filters.ts#L537-L539', '_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L46-L49', '_types.analysis.HungarianAnalyzer': '_types/analysis/analyzers.ts#L206-L211', -'_types.analysis.HunspellTokenFilter': '_types/analysis/token_filters.ts#L268-L280', -'_types.analysis.HyphenationDecompounderTokenFilter': '_types/analysis/token_filters.ts#L67-L76', +'_types.analysis.HunspellTokenFilter': '_types/analysis/token_filters.ts#L289-L305', +'_types.analysis.HyphenationDecompounderTokenFilter': '_types/analysis/token_filters.ts#L71-L82', '_types.analysis.IcuAnalyzer': '_types/analysis/icu-plugin.ts#L68-L72', '_types.analysis.IcuCollationAlternate': '_types/analysis/icu-plugin.ts#L90-L93', '_types.analysis.IcuCollationCaseFirst': '_types/analysis/icu-plugin.ts#L95-L98', @@ -739,18 +744,18 @@ '_types.analysis.IcuTokenizer': '_types/analysis/icu-plugin.ts#L30-L33', '_types.analysis.IcuTransformDirection': '_types/analysis/icu-plugin.ts#L74-L77', '_types.analysis.IcuTransformTokenFilter': '_types/analysis/icu-plugin.ts#L24-L28', -'_types.analysis.IndicNormalizationTokenFilter': '_types/analysis/token_filters.ts#L506-L508', +'_types.analysis.IndicNormalizationTokenFilter': '_types/analysis/token_filters.ts#L541-L543', '_types.analysis.IndonesianAnalyzer': '_types/analysis/analyzers.ts#L213-L218', '_types.analysis.IrishAnalyzer': '_types/analysis/analyzers.ts#L220-L225', '_types.analysis.ItalianAnalyzer': '_types/analysis/analyzers.ts#L227-L232', '_types.analysis.JaStopTokenFilter': '_types/analysis/kuromoji-plugin.ts#L32-L35', -'_types.analysis.KStemTokenFilter': '_types/analysis/token_filters.ts#L324-L326', -'_types.analysis.KeepTypesMode': '_types/analysis/token_filters.ts#L282-L285', -'_types.analysis.KeepTypesTokenFilter': '_types/analysis/token_filters.ts#L287-L293', -'_types.analysis.KeepWordsTokenFilter': '_types/analysis/token_filters.ts#L295-L306', +'_types.analysis.KStemTokenFilter': '_types/analysis/token_filters.ts#L359-L361', +'_types.analysis.KeepTypesMode': '_types/analysis/token_filters.ts#L307-L310', +'_types.analysis.KeepTypesTokenFilter': '_types/analysis/token_filters.ts#L312-L318', +'_types.analysis.KeepWordsTokenFilter': '_types/analysis/token_filters.ts#L320-L335', '_types.analysis.KeywordAnalyzer': '_types/analysis/analyzers.ts#L66-L70', -'_types.analysis.KeywordMarkerTokenFilter': '_types/analysis/token_filters.ts#L308-L322', -'_types.analysis.KeywordRepeatTokenFilter': '_types/analysis/token_filters.ts#L510-L512', +'_types.analysis.KeywordMarkerTokenFilter': '_types/analysis/token_filters.ts#L337-L357', +'_types.analysis.KeywordRepeatTokenFilter': '_types/analysis/token_filters.ts#L545-L547', '_types.analysis.KeywordTokenizer': '_types/analysis/tokenizers.ts#L69-L75', '_types.analysis.KuromojiAnalyzer': '_types/analysis/kuromoji-plugin.ts#L26-L30', '_types.analysis.KuromojiIterationMarkCharFilter': '_types/analysis/kuromoji-plugin.ts#L37-L41', @@ -760,18 +765,18 @@ '_types.analysis.KuromojiTokenizationMode': '_types/analysis/kuromoji-plugin.ts#L58-L62', '_types.analysis.KuromojiTokenizer': '_types/analysis/kuromoji-plugin.ts#L64-L73', '_types.analysis.LatvianAnalyzer': '_types/analysis/analyzers.ts#L234-L239', -'_types.analysis.LengthTokenFilter': '_types/analysis/token_filters.ts#L328-L334', +'_types.analysis.LengthTokenFilter': '_types/analysis/token_filters.ts#L363-L369', '_types.analysis.LetterTokenizer': '_types/analysis/tokenizers.ts#L77-L79', -'_types.analysis.LimitTokenCountTokenFilter': '_types/analysis/token_filters.ts#L336-L342', +'_types.analysis.LimitTokenCountTokenFilter': '_types/analysis/token_filters.ts#L371-L377', '_types.analysis.LithuanianAnalyzer': '_types/analysis/analyzers.ts#L241-L246', '_types.analysis.LowercaseNormalizer': '_types/analysis/normalizers.ts#L26-L28', -'_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L350-L354', -'_types.analysis.LowercaseTokenFilterLanguages': '_types/analysis/token_filters.ts#L344-L348', +'_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L385-L389', +'_types.analysis.LowercaseTokenFilterLanguages': '_types/analysis/token_filters.ts#L379-L383', '_types.analysis.LowercaseTokenizer': '_types/analysis/tokenizers.ts#L81-L83', '_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L51-L55', -'_types.analysis.MinHashTokenFilter': '_types/analysis/token_filters.ts#L514-L525', -'_types.analysis.MultiplexerTokenFilter': '_types/analysis/token_filters.ts#L356-L362', -'_types.analysis.NGramTokenFilter': '_types/analysis/token_filters.ts#L364-L372', +'_types.analysis.MinHashTokenFilter': '_types/analysis/token_filters.ts#L549-L562', +'_types.analysis.MultiplexerTokenFilter': '_types/analysis/token_filters.ts#L391-L397', +'_types.analysis.NGramTokenFilter': '_types/analysis/token_filters.ts#L399-L407', '_types.analysis.NGramTokenizer': '_types/analysis/tokenizers.ts#L85-L95', '_types.analysis.NoriAnalyzer': '_types/analysis/analyzers.ts#L323-L330', '_types.analysis.NoriDecompoundMode': '_types/analysis/nori-plugin.ts#L23-L27', @@ -781,71 +786,71 @@ '_types.analysis.NorwegianAnalyzer': '_types/analysis/analyzers.ts#L248-L253', '_types.analysis.PathHierarchyTokenizer': '_types/analysis/tokenizers.ts#L97-L104', '_types.analysis.PatternAnalyzer': '_types/analysis/analyzers.ts#L332-L365', -'_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L374-L380', +'_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L409-L415', '_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L57-L62', -'_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L382-L391', +'_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L417-L426', '_types.analysis.PatternTokenizer': '_types/analysis/tokenizers.ts#L106-L111', '_types.analysis.PersianAnalyzer': '_types/analysis/analyzers.ts#L255-L259', -'_types.analysis.PersianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L527-L529', -'_types.analysis.PersianStemTokenFilter': '_types/analysis/token_filters.ts#L571-L573', +'_types.analysis.PersianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L564-L566', +'_types.analysis.PersianStemTokenFilter': '_types/analysis/token_filters.ts#L608-L610', '_types.analysis.PhoneticEncoder': '_types/analysis/phonetic-plugin.ts#L23-L36', '_types.analysis.PhoneticLanguage': '_types/analysis/phonetic-plugin.ts#L38-L51', '_types.analysis.PhoneticNameType': '_types/analysis/phonetic-plugin.ts#L53-L57', '_types.analysis.PhoneticRuleType': '_types/analysis/phonetic-plugin.ts#L59-L62', '_types.analysis.PhoneticTokenFilter': '_types/analysis/phonetic-plugin.ts#L64-L72', -'_types.analysis.PorterStemTokenFilter': '_types/analysis/token_filters.ts#L393-L395', +'_types.analysis.PorterStemTokenFilter': '_types/analysis/token_filters.ts#L428-L430', '_types.analysis.PortugueseAnalyzer': '_types/analysis/analyzers.ts#L261-L266', -'_types.analysis.PredicateTokenFilter': '_types/analysis/token_filters.ts#L397-L401', -'_types.analysis.RemoveDuplicatesTokenFilter': '_types/analysis/token_filters.ts#L403-L405', -'_types.analysis.ReverseTokenFilter': '_types/analysis/token_filters.ts#L407-L409', +'_types.analysis.PredicateTokenFilter': '_types/analysis/token_filters.ts#L432-L436', +'_types.analysis.RemoveDuplicatesTokenFilter': '_types/analysis/token_filters.ts#L438-L440', +'_types.analysis.ReverseTokenFilter': '_types/analysis/token_filters.ts#L442-L444', '_types.analysis.RomanianAnalyzer': '_types/analysis/analyzers.ts#L268-L273', '_types.analysis.RussianAnalyzer': '_types/analysis/analyzers.ts#L275-L280', -'_types.analysis.RussianStemTokenFilter': '_types/analysis/token_filters.ts#L567-L569', -'_types.analysis.ScandinavianFoldingTokenFilter': '_types/analysis/token_filters.ts#L531-L533', -'_types.analysis.ScandinavianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L535-L537', +'_types.analysis.RussianStemTokenFilter': '_types/analysis/token_filters.ts#L604-L606', +'_types.analysis.ScandinavianFoldingTokenFilter': '_types/analysis/token_filters.ts#L568-L570', +'_types.analysis.ScandinavianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L572-L574', '_types.analysis.SerbianAnalyzer': '_types/analysis/analyzers.ts#L282-L287', -'_types.analysis.SerbianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L539-L541', -'_types.analysis.ShingleTokenFilter': '_types/analysis/token_filters.ts#L109-L123', +'_types.analysis.SerbianNormalizationTokenFilter': '_types/analysis/token_filters.ts#L576-L578', +'_types.analysis.ShingleTokenFilter': '_types/analysis/token_filters.ts#L115-L129', '_types.analysis.SimpleAnalyzer': '_types/analysis/analyzers.ts#L367-L371', '_types.analysis.SimplePatternSplitTokenizer': '_types/analysis/tokenizers.ts#L118-L121', '_types.analysis.SimplePatternTokenizer': '_types/analysis/tokenizers.ts#L113-L116', '_types.analysis.SnowballAnalyzer': '_types/analysis/analyzers.ts#L374-L380', '_types.analysis.SnowballLanguage': '_types/analysis/languages.ts#L20-L48', -'_types.analysis.SnowballTokenFilter': '_types/analysis/token_filters.ts#L411-L415', +'_types.analysis.SnowballTokenFilter': '_types/analysis/token_filters.ts#L446-L450', '_types.analysis.SoraniAnalyzer': '_types/analysis/analyzers.ts#L289-L294', -'_types.analysis.SoraniNormalizationTokenFilter': '_types/analysis/token_filters.ts#L543-L545', +'_types.analysis.SoraniNormalizationTokenFilter': '_types/analysis/token_filters.ts#L580-L582', '_types.analysis.SpanishAnalyzer': '_types/analysis/analyzers.ts#L296-L301', '_types.analysis.StandardAnalyzer': '_types/analysis/analyzers.ts#L382-L402', '_types.analysis.StandardTokenizer': '_types/analysis/tokenizers.ts#L123-L126', -'_types.analysis.StemmerOverrideTokenFilter': '_types/analysis/token_filters.ts#L417-L423', -'_types.analysis.StemmerTokenFilter': '_types/analysis/token_filters.ts#L425-L429', +'_types.analysis.StemmerOverrideTokenFilter': '_types/analysis/token_filters.ts#L452-L458', +'_types.analysis.StemmerTokenFilter': '_types/analysis/token_filters.ts#L460-L464', '_types.analysis.StopAnalyzer': '_types/analysis/analyzers.ts#L404-L419', -'_types.analysis.StopTokenFilter': '_types/analysis/token_filters.ts#L125-L136', +'_types.analysis.StopTokenFilter': '_types/analysis/token_filters.ts#L131-L144', '_types.analysis.SwedishAnalyzer': '_types/analysis/analyzers.ts#L303-L308', -'_types.analysis.SynonymFormat': '_types/analysis/token_filters.ts#L138-L141', -'_types.analysis.SynonymGraphTokenFilter': '_types/analysis/token_filters.ts#L163-L165', -'_types.analysis.SynonymTokenFilter': '_types/analysis/token_filters.ts#L167-L169', -'_types.analysis.SynonymTokenFilterBase': '_types/analysis/token_filters.ts#L143-L161', +'_types.analysis.SynonymFormat': '_types/analysis/token_filters.ts#L146-L149', +'_types.analysis.SynonymGraphTokenFilter': '_types/analysis/token_filters.ts#L172-L174', +'_types.analysis.SynonymTokenFilter': '_types/analysis/token_filters.ts#L176-L178', +'_types.analysis.SynonymTokenFilterBase': '_types/analysis/token_filters.ts#L151-L170', '_types.analysis.ThaiAnalyzer': '_types/analysis/analyzers.ts#L317-L321', '_types.analysis.ThaiTokenizer': '_types/analysis/tokenizers.ts#L128-L130', '_types.analysis.TokenChar': '_types/analysis/tokenizers.ts#L60-L67', -'_types.analysis.TokenFilter': '_types/analysis/token_filters.ts#L575-L580', +'_types.analysis.TokenFilter': '_types/analysis/token_filters.ts#L612-L617', '_types.analysis.TokenFilterBase': '_types/analysis/token_filters.ts#L41-L43', -'_types.analysis.TokenFilterDefinition': '_types/analysis/token_filters.ts#L582-L660', +'_types.analysis.TokenFilterDefinition': '_types/analysis/token_filters.ts#L619-L697', '_types.analysis.Tokenizer': '_types/analysis/tokenizers.ts#L142-L147', '_types.analysis.TokenizerBase': '_types/analysis/tokenizers.ts#L27-L29', '_types.analysis.TokenizerDefinition': '_types/analysis/tokenizers.ts#L149-L172', -'_types.analysis.TrimTokenFilter': '_types/analysis/token_filters.ts#L431-L433', -'_types.analysis.TruncateTokenFilter': '_types/analysis/token_filters.ts#L435-L439', +'_types.analysis.TrimTokenFilter': '_types/analysis/token_filters.ts#L466-L468', +'_types.analysis.TruncateTokenFilter': '_types/analysis/token_filters.ts#L470-L474', '_types.analysis.TurkishAnalyzer': '_types/analysis/analyzers.ts#L310-L315', '_types.analysis.UaxEmailUrlTokenizer': '_types/analysis/tokenizers.ts#L132-L135', -'_types.analysis.UniqueTokenFilter': '_types/analysis/token_filters.ts#L441-L445', -'_types.analysis.UppercaseTokenFilter': '_types/analysis/token_filters.ts#L447-L449', +'_types.analysis.UniqueTokenFilter': '_types/analysis/token_filters.ts#L476-L480', +'_types.analysis.UppercaseTokenFilter': '_types/analysis/token_filters.ts#L482-L484', '_types.analysis.WhitespaceAnalyzer': '_types/analysis/analyzers.ts#L421-L425', '_types.analysis.WhitespaceTokenizer': '_types/analysis/tokenizers.ts#L137-L140', -'_types.analysis.WordDelimiterGraphTokenFilter': '_types/analysis/token_filters.ts#L205-L211', -'_types.analysis.WordDelimiterTokenFilter': '_types/analysis/token_filters.ts#L201-L203', -'_types.analysis.WordDelimiterTokenFilterBase': '_types/analysis/token_filters.ts#L171-L199', +'_types.analysis.WordDelimiterGraphTokenFilter': '_types/analysis/token_filters.ts#L216-L222', +'_types.analysis.WordDelimiterTokenFilter': '_types/analysis/token_filters.ts#L212-L214', +'_types.analysis.WordDelimiterTokenFilterBase': '_types/analysis/token_filters.ts#L180-L210', '_types.mapping.AggregateMetricDoubleProperty': '_types/mapping/complex.ts#L60-L66', '_types.mapping.AllField': '_types/mapping/meta-fields.ts#L29-L40', '_types.mapping.BinaryProperty': '_types/mapping/core.ts#L57-L59', @@ -853,31 +858,32 @@ '_types.mapping.ByteNumberProperty': '_types/mapping/core.ts#L188-L191', '_types.mapping.ChunkRescorerChunkingSettings': '_types/mapping/ChunkingSettings.ts#L38-L52', '_types.mapping.ChunkingSettings': '_types/mapping/ChunkingSettings.ts#L24-L36', -'_types.mapping.CompletionProperty': '_types/mapping/specialized.ts#L33-L41', +'_types.mapping.CompletionProperty': '_types/mapping/specialized.ts#L34-L42', '_types.mapping.CompositeSubField': '_types/mapping/RuntimeFields.ts#L52-L54', -'_types.mapping.ConstantKeywordProperty': '_types/mapping/specialized.ts#L50-L53', +'_types.mapping.ConstantKeywordProperty': '_types/mapping/specialized.ts#L52-L55', '_types.mapping.CorePropertyBase': '_types/mapping/core.ts#L48-L51', -'_types.mapping.CountedKeywordProperty': '_types/mapping/specialized.ts#L55-L62', +'_types.mapping.CountedKeywordProperty': '_types/mapping/specialized.ts#L57-L64', '_types.mapping.DataStreamTimestamp': '_types/mapping/TypeMapping.ts#L59-L61', '_types.mapping.DateNanosProperty': '_types/mapping/core.ts#L92-L102', '_types.mapping.DateProperty': '_types/mapping/core.ts#L78-L90', '_types.mapping.DateRangeProperty': '_types/mapping/range.ts#L29-L32', -'_types.mapping.DenseVectorElementType': '_types/mapping/DenseVectorProperty.ts#L64-L80', -'_types.mapping.DenseVectorIndexOptions': '_types/mapping/DenseVectorProperty.ts#L129-L173', -'_types.mapping.DenseVectorIndexOptionsRescoreVector': '_types/mapping/DenseVectorProperty.ts#L231-L239', -'_types.mapping.DenseVectorIndexOptionsType': '_types/mapping/DenseVectorProperty.ts#L175-L229', +'_types.mapping.DenseVectorElementType': '_types/mapping/DenseVectorProperty.ts#L64-L85', +'_types.mapping.DenseVectorIndexOptions': '_types/mapping/DenseVectorProperty.ts#L134-L179', +'_types.mapping.DenseVectorIndexOptionsRescoreVector': '_types/mapping/DenseVectorProperty.ts#L237-L245', +'_types.mapping.DenseVectorIndexOptionsType': '_types/mapping/DenseVectorProperty.ts#L181-L235', '_types.mapping.DenseVectorProperty': '_types/mapping/DenseVectorProperty.ts#L23-L62', -'_types.mapping.DenseVectorSimilarity': '_types/mapping/DenseVectorProperty.ts#L82-L127', +'_types.mapping.DenseVectorSimilarity': '_types/mapping/DenseVectorProperty.ts#L87-L132', '_types.mapping.DocValuesPropertyBase': '_types/mapping/core.ts#L53-L55', '_types.mapping.DoubleNumberProperty': '_types/mapping/core.ts#L168-L171', '_types.mapping.DoubleRangeProperty': '_types/mapping/range.ts#L34-L36', '_types.mapping.DynamicMapping': '_types/mapping/dynamic-template.ts#L50-L59', '_types.mapping.DynamicProperty': '_types/mapping/core.ts#L366-L397', '_types.mapping.DynamicTemplate': '_types/mapping/dynamic-template.ts#L23-L43', -'_types.mapping.FieldAliasProperty': '_types/mapping/specialized.ts#L64-L67', +'_types.mapping.ExponentialHistogramProperty': '_types/mapping/specialized.ts#L77-L80', +'_types.mapping.FieldAliasProperty': '_types/mapping/specialized.ts#L66-L69', '_types.mapping.FieldMapping': '_types/mapping/meta-fields.ts#L24-L27', '_types.mapping.FieldNamesField': '_types/mapping/meta-fields.ts#L42-L44', -'_types.mapping.FieldType': '_types/mapping/Property.ts#L193-L242', +'_types.mapping.FieldType': '_types/mapping/Property.ts#L195-L244', '_types.mapping.FlattenedProperty': '_types/mapping/complex.ts#L26-L38', '_types.mapping.FloatNumberProperty': '_types/mapping/core.ts#L158-L161', '_types.mapping.FloatRangeProperty': '_types/mapping/range.ts#L38-L40', @@ -887,13 +893,13 @@ '_types.mapping.GeoShapeProperty': '_types/mapping/geo.ts#L48-L62', '_types.mapping.GeoStrategy': '_types/mapping/geo.ts#L64-L67', '_types.mapping.HalfFloatNumberProperty': '_types/mapping/core.ts#L163-L166', -'_types.mapping.HistogramProperty': '_types/mapping/specialized.ts#L69-L72', -'_types.mapping.IcuCollationProperty': '_types/mapping/specialized.ts#L103-L127', +'_types.mapping.HistogramProperty': '_types/mapping/specialized.ts#L71-L75', +'_types.mapping.IcuCollationProperty': '_types/mapping/specialized.ts#L111-L135', '_types.mapping.IndexField': '_types/mapping/meta-fields.ts#L46-L48', '_types.mapping.IndexOptions': '_types/mapping/core.ts#L322-L327', '_types.mapping.IntegerNumberProperty': '_types/mapping/core.ts#L173-L176', '_types.mapping.IntegerRangeProperty': '_types/mapping/range.ts#L42-L44', -'_types.mapping.IpProperty': '_types/mapping/specialized.ts#L74-L88', +'_types.mapping.IpProperty': '_types/mapping/specialized.ts#L82-L96', '_types.mapping.IpRangeProperty': '_types/mapping/range.ts#L46-L48', '_types.mapping.JoinProperty': '_types/mapping/core.ts#L104-L108', '_types.mapping.KeywordProperty': '_types/mapping/core.ts#L110-L129', @@ -901,7 +907,7 @@ '_types.mapping.LongRangeProperty': '_types/mapping/range.ts#L50-L52', '_types.mapping.MatchOnlyTextProperty': '_types/mapping/core.ts#L295-L320', '_types.mapping.MatchType': '_types/mapping/dynamic-template.ts#L45-L48', -'_types.mapping.Murmur3HashProperty': '_types/mapping/specialized.ts#L90-L92', +'_types.mapping.Murmur3HashProperty': '_types/mapping/specialized.ts#L98-L100', '_types.mapping.NestedProperty': '_types/mapping/complex.ts#L40-L45', '_types.mapping.NumberPropertyBase': '_types/mapping/core.ts#L131-L151', '_types.mapping.ObjectProperty': '_types/mapping/complex.ts#L47-L51', @@ -909,8 +915,8 @@ '_types.mapping.PassthroughObjectProperty': '_types/mapping/complex.ts#L53-L58', '_types.mapping.PercolatorProperty': '_types/mapping/core.ts#L204-L206', '_types.mapping.PointProperty': '_types/mapping/geo.ts#L74-L79', -'_types.mapping.Property': '_types/mapping/Property.ts#L120-L191', -'_types.mapping.PropertyBase': '_types/mapping/Property.ts#L87-L98', +'_types.mapping.Property': '_types/mapping/Property.ts#L121-L193', +'_types.mapping.PropertyBase': '_types/mapping/Property.ts#L88-L99', '_types.mapping.RangePropertyBase': '_types/mapping/range.ts#L23-L27', '_types.mapping.RankFeatureProperty': '_types/mapping/core.ts#L208-L211', '_types.mapping.RankFeaturesProperty': '_types/mapping/core.ts#L213-L216', @@ -932,13 +938,13 @@ '_types.mapping.SparseVectorIndexOptions': '_types/mapping/SparseVectorIndexOptions.ts#L22-L42', '_types.mapping.SparseVectorProperty': '_types/mapping/core.ts#L227-L237', '_types.mapping.Subobjects': '_types/mapping/TypeMapping.ts#L63-L74', -'_types.mapping.SuggestContext': '_types/mapping/specialized.ts#L43-L48', -'_types.mapping.SyntheticSourceKeepEnum': '_types/mapping/Property.ts#L100-L118', +'_types.mapping.SuggestContext': '_types/mapping/specialized.ts#L44-L50', +'_types.mapping.SyntheticSourceKeepEnum': '_types/mapping/Property.ts#L101-L119', '_types.mapping.TermVectorOption': '_types/mapping/TermVectorOption.ts#L20-L28', '_types.mapping.TextIndexPrefixes': '_types/mapping/core.ts#L329-L332', '_types.mapping.TextProperty': '_types/mapping/core.ts#L334-L351', '_types.mapping.TimeSeriesMetricType': '_types/mapping/TimeSeriesMetricType.ts#L20-L26', -'_types.mapping.TokenCountProperty': '_types/mapping/specialized.ts#L94-L101', +'_types.mapping.TokenCountProperty': '_types/mapping/specialized.ts#L102-L109', '_types.mapping.TypeMapping': '_types/mapping/TypeMapping.ts#L34-L57', '_types.mapping.UnsignedLongNumberProperty': '_types/mapping/core.ts#L193-L196', '_types.mapping.VersionProperty': '_types/mapping/core.ts#L353-L355', @@ -951,27 +957,27 @@ '_types.query_dsl.CombinedFieldsZeroTerms': '_types/query_dsl/abstractions.ts#L524-L533', '_types.query_dsl.CommonTermsQuery': '_types/query_dsl/fulltext.ts#L34-L44', '_types.query_dsl.ConstantScoreQuery': '_types/query_dsl/compound.ts#L76-L86', -'_types.query_dsl.DateDecayFunction': '_types/query_dsl/compound.ts#L209-L209', +'_types.query_dsl.DateDecayFunction': '_types/query_dsl/compound.ts#L211-L211', '_types.query_dsl.DateDistanceFeatureQuery': '_types/query_dsl/specialized.ts#L71-L74', -'_types.query_dsl.DateRangeQuery': '_types/query_dsl/term.ts#L157-L166', -'_types.query_dsl.DecayFunction': '_types/query_dsl/compound.ts#L215-L224', -'_types.query_dsl.DecayFunctionBase': '_types/query_dsl/compound.ts#L191-L202', -'_types.query_dsl.DecayPlacement': '_types/query_dsl/compound.ts#L170-L189', +'_types.query_dsl.DateRangeQuery': '_types/query_dsl/term.ts#L158-L167', +'_types.query_dsl.DecayFunction': '_types/query_dsl/compound.ts#L217-L226', +'_types.query_dsl.DecayFunctionBase': '_types/query_dsl/compound.ts#L193-L204', +'_types.query_dsl.DecayPlacement': '_types/query_dsl/compound.ts#L172-L191', '_types.query_dsl.DisMaxQuery': '_types/query_dsl/compound.ts#L88-L103', '_types.query_dsl.DistanceFeatureQuery': '_types/query_dsl/specialized.ts#L76-L85', '_types.query_dsl.DistanceFeatureQueryBase': '_types/query_dsl/specialized.ts#L39-L59', '_types.query_dsl.ExistsQuery': '_types/query_dsl/term.ts#L38-L46', '_types.query_dsl.FieldAndFormat': '_types/query_dsl/abstractions.ts#L535-L549', '_types.query_dsl.FieldLookup': '_types/query_dsl/abstractions.ts#L436-L453', -'_types.query_dsl.FieldValueFactorModifier': '_types/query_dsl/compound.ts#L323-L366', -'_types.query_dsl.FieldValueFactorScoreFunction': '_types/query_dsl/compound.ts#L149-L168', -'_types.query_dsl.FunctionBoostMode': '_types/query_dsl/compound.ts#L295-L321', -'_types.query_dsl.FunctionScoreContainer': '_types/query_dsl/compound.ts#L226-L266', -'_types.query_dsl.FunctionScoreMode': '_types/query_dsl/compound.ts#L268-L293', -'_types.query_dsl.FunctionScoreQuery': '_types/query_dsl/compound.ts#L105-L135', -'_types.query_dsl.FuzzyQuery': '_types/query_dsl/term.ts#L48-L86', +'_types.query_dsl.FieldValueFactorModifier': '_types/query_dsl/compound.ts#L325-L368', +'_types.query_dsl.FieldValueFactorScoreFunction': '_types/query_dsl/compound.ts#L151-L170', +'_types.query_dsl.FunctionBoostMode': '_types/query_dsl/compound.ts#L297-L323', +'_types.query_dsl.FunctionScoreContainer': '_types/query_dsl/compound.ts#L228-L268', +'_types.query_dsl.FunctionScoreMode': '_types/query_dsl/compound.ts#L270-L295', +'_types.query_dsl.FunctionScoreQuery': '_types/query_dsl/compound.ts#L105-L136', +'_types.query_dsl.FuzzyQuery': '_types/query_dsl/term.ts#L48-L87', '_types.query_dsl.GeoBoundingBoxQuery': '_types/query_dsl/geo.ts#L35-L57', -'_types.query_dsl.GeoDecayFunction': '_types/query_dsl/compound.ts#L210-L213', +'_types.query_dsl.GeoDecayFunction': '_types/query_dsl/compound.ts#L212-L215', '_types.query_dsl.GeoDistanceFeatureQuery': '_types/query_dsl/specialized.ts#L66-L69', '_types.query_dsl.GeoDistanceQuery': '_types/query_dsl/geo.ts#L64-L96', '_types.query_dsl.GeoExecution': '_types/query_dsl/geo.ts#L59-L62', @@ -983,7 +989,7 @@ '_types.query_dsl.GeoValidationMethod': '_types/query_dsl/geo.ts#L173-L183', '_types.query_dsl.HasChildQuery': '_types/query_dsl/joining.ts#L41-L79', '_types.query_dsl.HasParentQuery': '_types/query_dsl/joining.ts#L81-L110', -'_types.query_dsl.IdsQuery': '_types/query_dsl/term.ts#L88-L96', +'_types.query_dsl.IdsQuery': '_types/query_dsl/term.ts#L89-L97', '_types.query_dsl.IntervalsAllOf': '_types/query_dsl/fulltext.ts#L50-L70', '_types.query_dsl.IntervalsAnyOf': '_types/query_dsl/fulltext.ts#L72-L81', '_types.query_dsl.IntervalsContainer': '_types/query_dsl/fulltext.ts#L83-L112', @@ -998,46 +1004,46 @@ '_types.query_dsl.Like': '_types/query_dsl/specialized.ts#L198-L203', '_types.query_dsl.LikeDocument': '_types/query_dsl/specialized.ts#L174-L196', '_types.query_dsl.MatchAllQuery': '_types/query_dsl/MatchAllQuery.ts#L22-L25', -'_types.query_dsl.MatchBoolPrefixQuery': '_types/query_dsl/fulltext.ts#L406-L463', +'_types.query_dsl.MatchBoolPrefixQuery': '_types/query_dsl/fulltext.ts#L407-L464', '_types.query_dsl.MatchNoneQuery': '_types/query_dsl/MatchNoneQuery.ts#L22-L25', -'_types.query_dsl.MatchPhrasePrefixQuery': '_types/query_dsl/fulltext.ts#L491-L520', -'_types.query_dsl.MatchPhraseQuery': '_types/query_dsl/fulltext.ts#L465-L489', -'_types.query_dsl.MatchQuery': '_types/query_dsl/fulltext.ts#L336-L404', +'_types.query_dsl.MatchPhrasePrefixQuery': '_types/query_dsl/fulltext.ts#L492-L521', +'_types.query_dsl.MatchPhraseQuery': '_types/query_dsl/fulltext.ts#L466-L490', +'_types.query_dsl.MatchQuery': '_types/query_dsl/fulltext.ts#L336-L405', '_types.query_dsl.MoreLikeThisQuery': '_types/query_dsl/specialized.ts#L87-L172', -'_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L522-L608', -'_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L368-L385', +'_types.query_dsl.MultiMatchQuery': '_types/query_dsl/fulltext.ts#L523-L609', +'_types.query_dsl.MultiValueMode': '_types/query_dsl/compound.ts#L370-L387', '_types.query_dsl.NestedQuery': '_types/query_dsl/joining.ts#L112-L139', -'_types.query_dsl.NumberRangeQuery': '_types/query_dsl/term.ts#L168-L168', -'_types.query_dsl.NumericDecayFunction': '_types/query_dsl/compound.ts#L208-L208', +'_types.query_dsl.NumberRangeQuery': '_types/query_dsl/term.ts#L169-L169', +'_types.query_dsl.NumericDecayFunction': '_types/query_dsl/compound.ts#L210-L210', '_types.query_dsl.Operator': '_types/query_dsl/Operator.ts#L22-L27', '_types.query_dsl.ParentIdQuery': '_types/query_dsl/joining.ts#L141-L158', '_types.query_dsl.PercolateQuery': '_types/query_dsl/specialized.ts#L205-L245', '_types.query_dsl.PinnedDoc': '_types/query_dsl/specialized.ts#L269-L278', '_types.query_dsl.PinnedQuery': '_types/query_dsl/specialized.ts#L247-L267', -'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L98-L120', +'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L99-L121', '_types.query_dsl.QueryBase': '_types/query_dsl/abstractions.ts#L459-L470', '_types.query_dsl.QueryContainer': '_types/query_dsl/abstractions.ts#L103-L434', -'_types.query_dsl.QueryStringQuery': '_types/query_dsl/fulltext.ts#L649-L772', -'_types.query_dsl.RandomScoreFunction': '_types/query_dsl/compound.ts#L144-L147', -'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L172-L182', -'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L122-L144', -'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L184-L197', +'_types.query_dsl.QueryStringQuery': '_types/query_dsl/fulltext.ts#L650-L773', +'_types.query_dsl.RandomScoreFunction': '_types/query_dsl/compound.ts#L145-L149', +'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L173-L183', +'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L123-L145', +'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L185-L198', '_types.query_dsl.RankFeatureFunction': '_types/query_dsl/specialized.ts#L280-L280', '_types.query_dsl.RankFeatureFunctionLinear': '_types/query_dsl/specialized.ts#L282-L282', '_types.query_dsl.RankFeatureFunctionLogarithm': '_types/query_dsl/specialized.ts#L284-L289', '_types.query_dsl.RankFeatureFunctionSaturation': '_types/query_dsl/specialized.ts#L291-L296', '_types.query_dsl.RankFeatureFunctionSigmoid': '_types/query_dsl/specialized.ts#L298-L307', '_types.query_dsl.RankFeatureQuery': '_types/query_dsl/specialized.ts#L309-L335', -'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L199-L232', +'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L200-L233', '_types.query_dsl.RuleQuery': '_types/query_dsl/specialized.ts#L398-L406', '_types.query_dsl.ScriptQuery': '_types/query_dsl/specialized.ts#L337-L346', -'_types.query_dsl.ScriptScoreFunction': '_types/query_dsl/compound.ts#L137-L142', +'_types.query_dsl.ScriptScoreFunction': '_types/query_dsl/compound.ts#L138-L143', '_types.query_dsl.ScriptScoreQuery': '_types/query_dsl/specialized.ts#L348-L365', '_types.query_dsl.SemanticQuery': '_types/query_dsl/SemanticQuery.ts#L22-L30', '_types.query_dsl.ShapeFieldQuery': '_types/query_dsl/specialized.ts#L383-L396', '_types.query_dsl.ShapeQuery': '_types/query_dsl/specialized.ts#L367-L381', -'_types.query_dsl.SimpleQueryStringFlag': '_types/query_dsl/fulltext.ts#L780-L835', -'_types.query_dsl.SimpleQueryStringQuery': '_types/query_dsl/fulltext.ts#L837-L905', +'_types.query_dsl.SimpleQueryStringFlag': '_types/query_dsl/fulltext.ts#L781-L836', +'_types.query_dsl.SimpleQueryStringQuery': '_types/query_dsl/fulltext.ts#L838-L906', '_types.query_dsl.SpanContainingQuery': '_types/query_dsl/span.ts#L25-L39', '_types.query_dsl.SpanFieldMaskingQuery': '_types/query_dsl/span.ts#L41-L47', '_types.query_dsl.SpanFirstQuery': '_types/query_dsl/span.ts#L49-L61', @@ -1049,185 +1055,189 @@ '_types.query_dsl.SpanTermQuery': '_types/query_dsl/span.ts#L134-L141', '_types.query_dsl.SpanWithinQuery': '_types/query_dsl/span.ts#L143-L157', '_types.query_dsl.SparseVectorQuery': '_types/query_dsl/SparseVectorQuery.ts#L26-L80', -'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L234-L251', -'_types.query_dsl.TermRangeQuery': '_types/query_dsl/term.ts#L170-L170', -'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L266-L271', -'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L253-L259', -'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L261-L264', -'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L273-L295', -'_types.query_dsl.TextExpansionQuery': '_types/query_dsl/TextExpansionQuery.ts#L23-L36', -'_types.query_dsl.TextQueryType': '_types/query_dsl/fulltext.ts#L610-L636', -'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L297-L299', -'_types.query_dsl.UntypedDecayFunction': '_types/query_dsl/compound.ts#L204-L207', +'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L235-L252', +'_types.query_dsl.TermRangeQuery': '_types/query_dsl/term.ts#L171-L171', +'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L267-L272', +'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L254-L260', +'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L262-L265', +'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L274-L296', +'_types.query_dsl.TextExpansionQuery': '_types/query_dsl/TextExpansionQuery.ts#L23-L37', +'_types.query_dsl.TextQueryType': '_types/query_dsl/fulltext.ts#L611-L637', +'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L298-L300', +'_types.query_dsl.UntypedDecayFunction': '_types/query_dsl/compound.ts#L206-L209', '_types.query_dsl.UntypedDistanceFeatureQuery': '_types/query_dsl/specialized.ts#L61-L64', -'_types.query_dsl.UntypedRangeQuery': '_types/query_dsl/term.ts#L146-L155', +'_types.query_dsl.UntypedRangeQuery': '_types/query_dsl/term.ts#L147-L156', '_types.query_dsl.WeightedTokensQuery': '_types/query_dsl/WeightedTokensQuery.ts#L25-L33', -'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L301-L321', +'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L302-L322', '_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L508-L517', -'_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L638-L647', +'_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L639-L648', 'async_search._types.AsyncSearch': 'async_search/_types/AsyncSearch.ts#L30-L56', -'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L52-L56', -'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L51', -'async_search.delete.Request': 'async_search/delete/AsyncSearchDeleteRequest.ts#L23-L46', +'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L54-L58', +'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L25-L53', +'async_search.delete.Request': 'async_search/delete/AsyncSearchDeleteRequest.ts#L23-L47', 'async_search.delete.Response': 'async_search/delete/AsyncSearchDeleteResponse.ts#L22-L25', -'async_search.get.Request': 'async_search/get/AsyncSearchGetRequest.ts#L24-L63', -'async_search.get.Response': 'async_search/get/AsyncSearchGetResponse.ts#L22-L25', -'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L24-L58', +'async_search.get.Request': 'async_search/get/AsyncSearchGetRequest.ts#L24-L67', +'async_search.get.Response': 'async_search/get/AsyncSearchGetResponse.ts#L25-L34', +'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L24-L59', 'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L39-L42', 'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L38', -'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L55-L322', -'async_search.submit.Response': 'async_search/submit/AsyncSearchSubmitResponse.ts#L22-L25', +'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L56-L432', +'async_search.submit.Response': 'async_search/submit/AsyncSearchSubmitResponse.ts#L25-L34', 'autoscaling._types.AutoscalingPolicy': 'autoscaling/_types/AutoscalingPolicy.ts#L23-L30', -'autoscaling.delete_autoscaling_policy.Request': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L54', +'autoscaling.delete_autoscaling_policy.Request': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L56', 'autoscaling.delete_autoscaling_policy.Response': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L25', 'autoscaling.get_autoscaling_capacity.AutoscalingCapacity': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41', 'autoscaling.get_autoscaling_capacity.AutoscalingDecider': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56', 'autoscaling.get_autoscaling_capacity.AutoscalingDeciders': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36', 'autoscaling.get_autoscaling_capacity.AutoscalingNode': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50', 'autoscaling.get_autoscaling_capacity.AutoscalingResources': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46', -'autoscaling.get_autoscaling_capacity.Request': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L23-L57', +'autoscaling.get_autoscaling_capacity.Request': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L24-L59', 'autoscaling.get_autoscaling_capacity.Response': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29', -'autoscaling.get_autoscaling_policy.Request': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L50', +'autoscaling.get_autoscaling_policy.Request': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L52', 'autoscaling.get_autoscaling_policy.Response': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L25', -'autoscaling.put_autoscaling_policy.Request': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57', +'autoscaling.put_autoscaling_policy.Request': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L60', 'autoscaling.put_autoscaling_policy.Response': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L25', -'cat._types.CatAliasesColumn': 'cat/_types/CatBase.ts#L1155-L1187', -'cat._types.CatAllocationColumn': 'cat/_types/CatBase.ts#L1189-L1254', -'cat._types.CatAnomalyDetectorColumn': 'cat/_types/CatBase.ts#L32-L401', -'cat._types.CatComponentColumn': 'cat/_types/CatBase.ts#L1256-L1293', -'cat._types.CatCountColumn': 'cat/_types/CatBase.ts#L1295-L1312', -'cat._types.CatDatafeedColumn': 'cat/_types/CatBase.ts#L405-L471', -'cat._types.CatDfaColumn': 'cat/_types/CatBase.ts#L473-L558', -'cat._types.CatFieldDataColumn': 'cat/_types/CatBase.ts#L1314-L1344', -'cat._types.CatHealthColumn': 'cat/_types/CatBase.ts#L1346-L1423', -'cat._types.CatIndicesColumn': 'cat/_types/CatBase.ts#L1425-L2093', -'cat._types.CatMasterColumn': 'cat/_types/CatBase.ts#L2095-L2115', -'cat._types.CatNodeColumn': 'cat/_types/CatBase.ts#L560-L1017', -'cat._types.CatNodeattrsColumn': 'cat/_types/CatBase.ts#L2117-L2158', -'cat._types.CatPendingTasksColumn': 'cat/_types/CatBase.ts#L2443-L2465', -'cat._types.CatPluginsColumn': 'cat/_types/CatBase.ts#L2238-L2264', -'cat._types.CatRecoveryColumn': 'cat/_types/CatBase.ts#L2266-L2398', +'cat._types.CatAliasesColumn': 'cat/_types/CatBase.ts#L1162-L1194', +'cat._types.CatAllocationColumn': 'cat/_types/CatBase.ts#L1196-L1261', +'cat._types.CatAnomalyDetectorColumn': 'cat/_types/CatBase.ts#L32-L406', +'cat._types.CatComponentColumn': 'cat/_types/CatBase.ts#L1312-L1349', +'cat._types.CatCountColumn': 'cat/_types/CatBase.ts#L1351-L1368', +'cat._types.CatDatafeedColumn': 'cat/_types/CatBase.ts#L410-L478', +'cat._types.CatDfaColumn': 'cat/_types/CatBase.ts#L480-L565', +'cat._types.CatFieldDataColumn': 'cat/_types/CatBase.ts#L1370-L1400', +'cat._types.CatHealthColumn': 'cat/_types/CatBase.ts#L1402-L1479', +'cat._types.CatIndicesColumn': 'cat/_types/CatBase.ts#L1481-L2149', +'cat._types.CatMasterColumn': 'cat/_types/CatBase.ts#L2151-L2171', +'cat._types.CatNodeColumn': 'cat/_types/CatBase.ts#L567-L1024', +'cat._types.CatNodeattrsColumn': 'cat/_types/CatBase.ts#L2173-L2214', +'cat._types.CatPendingTasksColumn': 'cat/_types/CatBase.ts#L2499-L2521', +'cat._types.CatPluginsColumn': 'cat/_types/CatBase.ts#L2294-L2320', +'cat._types.CatRecoveryColumn': 'cat/_types/CatBase.ts#L2322-L2454', 'cat._types.CatRequestBase': 'cat/_types/CatBase.ts#L28-L30', -'cat._types.CatSegmentsColumn': 'cat/_types/CatBase.ts#L1019-L1084', -'cat._types.CatShardColumn': 'cat/_types/CatBase.ts#L2775-L3148', -'cat._types.CatSnapshotsColumn': 'cat/_types/CatBase.ts#L1086-L1153', -'cat._types.CatTasksColumn': 'cat/_types/CatBase.ts#L2160-L2236', -'cat._types.CatTemplatesColumn': 'cat/_types/CatBase.ts#L2414-L2441', -'cat._types.CatThreadPoolColumn': 'cat/_types/CatBase.ts#L3151-L3251', -'cat._types.CatTrainedModelsColumn': 'cat/_types/CatBase.ts#L2489-L2563', -'cat._types.CatTransformColumn': 'cat/_types/CatBase.ts#L2568-L2772', +'cat._types.CatSegmentsColumn': 'cat/_types/CatBase.ts#L1026-L1091', +'cat._types.CatShardColumn': 'cat/_types/CatBase.ts#L2834-L3207', +'cat._types.CatSnapshotsColumn': 'cat/_types/CatBase.ts#L1093-L1160', +'cat._types.CatTasksColumn': 'cat/_types/CatBase.ts#L2216-L2292', +'cat._types.CatTemplatesColumn': 'cat/_types/CatBase.ts#L2470-L2497', +'cat._types.CatThreadPoolColumn': 'cat/_types/CatBase.ts#L3210-L3310', +'cat._types.CatTrainedModelsColumn': 'cat/_types/CatBase.ts#L2548-L2622', +'cat._types.CatTransformColumn': 'cat/_types/CatBase.ts#L2627-L2831', 'cat.aliases.AliasesRecord': 'cat/aliases/types.ts#L22-L53', -'cat.aliases.Request': 'cat/aliases/CatAliasesRequest.ts#L24-L77', +'cat.aliases.Request': 'cat/aliases/CatAliasesRequest.ts#L24-L79', 'cat.aliases.Response': 'cat/aliases/CatAliasesResponse.ts#L22-L25', 'cat.allocation.AllocationRecord': 'cat/allocation/types.ts#L25-L99', -'cat.allocation.Request': 'cat/allocation/CatAllocationRequest.ts#L24-L76', +'cat.allocation.Request': 'cat/allocation/CatAllocationRequest.ts#L24-L77', 'cat.allocation.Response': 'cat/allocation/CatAllocationResponse.ts#L22-L25', 'cat.component_templates.ComponentTemplate': 'cat/component_templates/types.ts#L20-L28', -'cat.component_templates.Request': 'cat/component_templates/CatComponentTemplatesRequest.ts#L24-L81', +'cat.component_templates.Request': 'cat/component_templates/CatComponentTemplatesRequest.ts#L24-L83', 'cat.component_templates.Response': 'cat/component_templates/CatComponentTemplatesResponse.ts#L22-L25', 'cat.count.CountRecord': 'cat/count/types.ts#L23-L39', -'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L80', +'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L83', 'cat.count.Response': 'cat/count/CatCountResponse.ts#L22-L25', 'cat.fielddata.FielddataRecord': 'cat/fielddata/types.ts#L20-L48', -'cat.fielddata.Request': 'cat/fielddata/CatFielddataRequest.ts#L23-L68', +'cat.fielddata.Request': 'cat/fielddata/CatFielddataRequest.ts#L23-L69', 'cat.fielddata.Response': 'cat/fielddata/CatFielddataResponse.ts#L22-L25', 'cat.health.HealthRecord': 'cat/health/types.ts#L23-L99', -'cat.health.Request': 'cat/health/CatHealthRequest.ts#L23-L65', +'cat.health.Request': 'cat/health/CatHealthRequest.ts#L23-L66', 'cat.health.Response': 'cat/health/CatHealthResponse.ts#L22-L25', 'cat.help.Request': 'cat/help/CatHelpRequest.ts#L22-L39', +<<<<<<< HEAD +======= +'cat.help.Response': 'cat/help/CatHelpResponse.ts#L20-L25', +>>>>>>> 860bcb875 ([codegen] update to latest spec) 'cat.indices.IndicesRecord': 'cat/indices/types.ts#L20-L812', 'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L30-L107', 'cat.indices.Response': 'cat/indices/CatIndicesResponse.ts#L22-L25', 'cat.master.MasterRecord': 'cat/master/types.ts#L20-L39', -'cat.master.Request': 'cat/master/CatMasterRequest.ts#L24-L68', +'cat.master.Request': 'cat/master/CatMasterRequest.ts#L24-L69', 'cat.master.Response': 'cat/master/CatMasterResponse.ts#L22-L25', 'cat.ml_data_frame_analytics.DataFrameAnalyticsRecord': 'cat/ml_data_frame_analytics/types.ts#L22-L102', -'cat.ml_data_frame_analytics.Request': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L69', +'cat.ml_data_frame_analytics.Request': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L72', 'cat.ml_data_frame_analytics.Response': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L25', 'cat.ml_datafeeds.DatafeedsRecord': 'cat/ml_datafeeds/types.ts#L22-L87', -'cat.ml_datafeeds.Request': 'cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L80', +'cat.ml_datafeeds.Request': 'cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L81', 'cat.ml_datafeeds.Response': 'cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L25', 'cat.ml_jobs.JobsRecord': 'cat/ml_jobs/types.ts#L24-L347', -'cat.ml_jobs.Request': 'cat/ml_jobs/CatJobsRequest.ts#L23-L80', +'cat.ml_jobs.Request': 'cat/ml_jobs/CatJobsRequest.ts#L23-L81', 'cat.ml_jobs.Response': 'cat/ml_jobs/CatJobsResponse.ts#L22-L25', -'cat.ml_trained_models.Request': 'cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L79', +'cat.ml_trained_models.Request': 'cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L80', 'cat.ml_trained_models.Response': 'cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L25', 'cat.ml_trained_models.TrainedModelsRecord': 'cat/ml_trained_models/types.ts#L23-L115', 'cat.nodeattrs.NodeAttributesRecord': 'cat/nodeattrs/types.ts#L20-L55', -'cat.nodeattrs.Request': 'cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L67', +'cat.nodeattrs.Request': 'cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L68', 'cat.nodeattrs.Response': 'cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L25', 'cat.nodes.NodesRecord': 'cat/nodes/types.ts#L23-L547', -'cat.nodes.Request': 'cat/nodes/CatNodesRequest.ts#L24-L71', +'cat.nodes.Request': 'cat/nodes/CatNodesRequest.ts#L24-L72', 'cat.nodes.Response': 'cat/nodes/CatNodesResponse.ts#L22-L25', 'cat.pending_tasks.PendingTasksRecord': 'cat/pending_tasks/types.ts#L20-L41', -'cat.pending_tasks.Request': 'cat/pending_tasks/CatPendingTasksRequest.ts#L24-L67', +'cat.pending_tasks.Request': 'cat/pending_tasks/CatPendingTasksRequest.ts#L24-L68', 'cat.pending_tasks.Response': 'cat/pending_tasks/CatPendingTasksResponse.ts#L22-L25', 'cat.plugins.PluginsRecord': 'cat/plugins/types.ts#L22-L52', -'cat.plugins.Request': 'cat/plugins/CatPluginsRequest.ts#L24-L72', +'cat.plugins.Request': 'cat/plugins/CatPluginsRequest.ts#L24-L73', 'cat.plugins.Response': 'cat/plugins/CatPluginsResponse.ts#L22-L25', 'cat.recovery.RecoveryRecord': 'cat/recovery/types.ts#L24-L155', -'cat.recovery.Request': 'cat/recovery/CatRecoveryRequest.ts#L23-L83', +'cat.recovery.Request': 'cat/recovery/CatRecoveryRequest.ts#L23-L84', 'cat.recovery.Response': 'cat/recovery/CatRecoveryResponse.ts#L22-L25', 'cat.repositories.RepositoriesRecord': 'cat/repositories/types.ts#L20-L31', -'cat.repositories.Request': 'cat/repositories/CatRepositoriesRequest.ts#L24-L67', +'cat.repositories.Request': 'cat/repositories/CatRepositoriesRequest.ts#L24-L68', 'cat.repositories.Response': 'cat/repositories/CatRepositoriesResponse.ts#L22-L25', -'cat.segments.Request': 'cat/segments/CatSegmentsRequest.ts#L24-L83', +'cat.segments.Request': 'cat/segments/CatSegmentsRequest.ts#L24-L114', 'cat.segments.Response': 'cat/segments/CatSegmentsResponse.ts#L22-L25', 'cat.segments.SegmentsRecord': 'cat/segments/types.ts#L22-L107', -'cat.shards.Request': 'cat/shards/CatShardsRequest.ts#L24-L73', +'cat.shards.Request': 'cat/shards/CatShardsRequest.ts#L24-L74', 'cat.shards.Response': 'cat/shards/CatShardsResponse.ts#L22-L25', 'cat.shards.ShardsRecord': 'cat/shards/types.ts#L20-L427', -'cat.snapshots.Request': 'cat/snapshots/CatSnapshotsRequest.ts#L24-L80', +'cat.snapshots.Request': 'cat/snapshots/CatSnapshotsRequest.ts#L24-L81', 'cat.snapshots.Response': 'cat/snapshots/CatSnapshotsResponse.ts#L22-L25', 'cat.snapshots.SnapshotsRecord': 'cat/snapshots/types.ts#L24-L96', -'cat.tasks.Request': 'cat/tasks/CatTasksRequest.ts#L24-L78', +'cat.tasks.Request': 'cat/tasks/CatTasksRequest.ts#L24-L79', 'cat.tasks.Response': 'cat/tasks/CatTasksResponse.ts#L22-L25', 'cat.tasks.TasksRecord': 'cat/tasks/types.ts#L22-L101', -'cat.templates.Request': 'cat/templates/CatTemplatesRequest.ts#L24-L79', +'cat.templates.Request': 'cat/templates/CatTemplatesRequest.ts#L24-L80', 'cat.templates.Response': 'cat/templates/CatTemplatesResponse.ts#L22-L25', 'cat.templates.TemplatesRecord': 'cat/templates/types.ts#L22-L48', -'cat.thread_pool.Request': 'cat/thread_pool/CatThreadPoolRequest.ts#L24-L79', +'cat.thread_pool.Request': 'cat/thread_pool/CatThreadPoolRequest.ts#L24-L80', 'cat.thread_pool.Response': 'cat/thread_pool/CatThreadPoolResponse.ts#L22-L25', 'cat.thread_pool.ThreadPoolRecord': 'cat/thread_pool/types.ts#L22-L124', -'cat.transforms.Request': 'cat/transforms/CatTransformsRequest.ts#L24-L84', +'cat.transforms.Request': 'cat/transforms/CatTransformsRequest.ts#L24-L86', 'cat.transforms.Response': 'cat/transforms/CatTransformsResponse.ts#L22-L25', 'cat.transforms.TransformsRecord': 'cat/transforms/types.ts#L22-L197', 'ccr._types.FollowIndexStats': 'ccr/_types/FollowIndexStats.ts#L30-L35', -'ccr._types.ReadException': 'ccr/_types/FollowIndexStats.ts#L111-L118', -'ccr._types.ShardStats': 'ccr/_types/FollowIndexStats.ts#L37-L109', -'ccr.delete_auto_follow_pattern.Request': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L54', +'ccr._types.ReadException': 'ccr/_types/FollowIndexStats.ts#L112-L119', +'ccr._types.ShardStats': 'ccr/_types/FollowIndexStats.ts#L37-L110', +'ccr.delete_auto_follow_pattern.Request': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L55', 'ccr.delete_auto_follow_pattern.Response': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L25', -'ccr.follow.Request': 'ccr/follow/CreateFollowIndexRequest.ts#L26-L125', +'ccr.follow.Request': 'ccr/follow/CreateFollowIndexRequest.ts#L31-L133', 'ccr.follow.Response': 'ccr/follow/CreateFollowIndexResponse.ts#L20-L26', 'ccr.follow_info.FollowerIndex': 'ccr/follow_info/types.ts#L24-L35', 'ccr.follow_info.FollowerIndexParameters': 'ccr/follow_info/types.ts#L42-L88', 'ccr.follow_info.FollowerIndexStatus': 'ccr/follow_info/types.ts#L37-L40', -'ccr.follow_info.Request': 'ccr/follow_info/FollowInfoRequest.ts#L24-L55', +'ccr.follow_info.Request': 'ccr/follow_info/FollowInfoRequest.ts#L24-L56', 'ccr.follow_info.Response': 'ccr/follow_info/FollowInfoResponse.ts#L22-L24', -'ccr.follow_stats.Request': 'ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L54', +'ccr.follow_stats.Request': 'ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L55', 'ccr.follow_stats.Response': 'ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27', -'ccr.forget_follower.Request': 'ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65', +'ccr.forget_follower.Request': 'ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L69', 'ccr.forget_follower.Response': 'ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24', 'ccr.get_auto_follow_pattern.AutoFollowPattern': 'ccr/get_auto_follow_pattern/types.ts#L23-L26', 'ccr.get_auto_follow_pattern.AutoFollowPatternSummary': 'ccr/get_auto_follow_pattern/types.ts#L28-L52', -'ccr.get_auto_follow_pattern.Request': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L60', +'ccr.get_auto_follow_pattern.Request': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L62', 'ccr.get_auto_follow_pattern.Response': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24', -'ccr.pause_auto_follow_pattern.Request': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L60', +'ccr.pause_auto_follow_pattern.Request': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L61', 'ccr.pause_auto_follow_pattern.Response': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L25', -'ccr.pause_follow.Request': 'ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L56', +'ccr.pause_follow.Request': 'ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L57', 'ccr.pause_follow.Response': 'ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L25', -'ccr.put_auto_follow_pattern.Request': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133', +'ccr.put_auto_follow_pattern.Request': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L33-L142', 'ccr.put_auto_follow_pattern.Response': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L25', -'ccr.resume_auto_follow_pattern.Request': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L56', +'ccr.resume_auto_follow_pattern.Request': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L57', 'ccr.resume_auto_follow_pattern.Response': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L25', -'ccr.resume_follow.Request': 'ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65', +'ccr.resume_follow.Request': 'ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L69', 'ccr.resume_follow.Response': 'ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L25', 'ccr.stats.AutoFollowStats': 'ccr/stats/types.ts.ts#L32-L47', 'ccr.stats.AutoFollowedCluster': 'ccr/stats/types.ts.ts#L26-L30', 'ccr.stats.FollowStats': 'ccr/stats/types.ts.ts#L49-L51', -'ccr.stats.Request': 'ccr/stats/CcrStatsRequest.ts#L23-L53', +'ccr.stats.Request': 'ccr/stats/CcrStatsRequest.ts#L24-L55', 'ccr.stats.Response': 'ccr/stats/CcrStatsResponse.ts#L22-L29', -'ccr.unfollow.Request': 'ccr/unfollow/UnfollowIndexRequest.ts#L24-L59', +'ccr.unfollow.Request': 'ccr/unfollow/UnfollowIndexRequest.ts#L24-L60', 'ccr.unfollow.Response': 'ccr/unfollow/UnfollowIndexResponse.ts#L22-L25', 'cluster._types.ComponentTemplate': 'cluster/_types/ComponentTemplate.ts#L29-L32', 'cluster._types.ComponentTemplateNode': 'cluster/_types/ComponentTemplate.ts#L34-L67', @@ -1241,100 +1251,101 @@ 'cluster.allocation_explain.DiskUsage': 'cluster/allocation_explain/types.ts#L63-L70', 'cluster.allocation_explain.NodeAllocationExplanation': 'cluster/allocation_explain/types.ts#L103-L117', 'cluster.allocation_explain.NodeDiskUsage': 'cluster/allocation_explain/types.ts#L57-L61', -'cluster.allocation_explain.Request': 'cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L98', +'cluster.allocation_explain.Request': 'cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L101', 'cluster.allocation_explain.ReservedSize': 'cluster/allocation_explain/types.ts#L72-L77', 'cluster.allocation_explain.Response': 'cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64', 'cluster.allocation_explain.UnassignedInformation': 'cluster/allocation_explain/types.ts#L128-L136', 'cluster.allocation_explain.UnassignedInformationReason': 'cluster/allocation_explain/types.ts#L138-L157', -'cluster.delete_component_template.Request': 'cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L61', +'cluster.delete_component_template.Request': 'cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L63', '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#L23-L55', -'cluster.exists_component_template.Request': 'cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L62', -'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L81', +'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-L82', 'cluster.get_component_template.Response': 'cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24', -'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L70', +'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#L32-L118', +'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-L42', +'cluster.info.Request': 'cluster/info/ClusterInfoRequest.ts#L23-L44', 'cluster.info.Response': 'cluster/info/ClusterInfoResponse.ts#L26-L34', 'cluster.pending_tasks.PendingTask': 'cluster/pending_tasks/types.ts#L23-L47', -'cluster.pending_tasks.Request': 'cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L56', +'cluster.pending_tasks.Request': 'cluster/pending_tasks/ClusterPendingTasksRequest.ts#L24-L59', 'cluster.pending_tasks.Response': 'cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24', -'cluster.post_voting_config_exclusions.Request': 'cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L80', -'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L110', +'cluster.post_voting_config_exclusions.Request': 'cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L82', +'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L113', 'cluster.put_component_template.Response': 'cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L25', -'cluster.put_settings.Request': 'cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L71', +'cluster.put_settings.Request': 'cluster/put_settings/ClusterPutSettingsRequest.ts#L26-L84', 'cluster.put_settings.Response': 'cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29', 'cluster.remote_info.ClusterRemoteInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30', 'cluster.remote_info.ClusterRemoteProxyInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83', 'cluster.remote_info.ClusterRemoteSniffInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56', -'cluster.remote_info.Request': 'cluster/remote_info/ClusterRemoteInfoRequest.ts#L22-L46', +'cluster.remote_info.Request': 'cluster/remote_info/ClusterRemoteInfoRequest.ts#L23-L48', 'cluster.remote_info.Response': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27', 'cluster.reroute.Command': 'cluster/reroute/types.ts#L22-L43', 'cluster.reroute.CommandAllocatePrimaryAction': 'cluster/reroute/types.ts#L78-L84', 'cluster.reroute.CommandAllocateReplicaAction': 'cluster/reroute/types.ts#L69-L76', 'cluster.reroute.CommandCancelAction': 'cluster/reroute/types.ts#L45-L50', 'cluster.reroute.CommandMoveAction': 'cluster/reroute/types.ts#L60-L67', -'cluster.reroute.Request': 'cluster/reroute/ClusterRerouteRequest.ts#L25-L91', +'cluster.reroute.Request': 'cluster/reroute/ClusterRerouteRequest.ts#L25-L94', 'cluster.reroute.RerouteDecision': 'cluster/reroute/types.ts#L86-L90', 'cluster.reroute.RerouteExplanation': 'cluster/reroute/types.ts#L92-L96', 'cluster.reroute.RerouteParameters': 'cluster/reroute/types.ts#L98-L105', 'cluster.reroute.Response': 'cluster/reroute/ClusterRerouteResponse.ts#L23-L34', -'cluster.state.Request': 'cluster/state/ClusterStateRequest.ts#L29-L93', +'cluster.state.ClusterStateMetric': 'cluster/state/ClusterStateRequest.ts#L123-L133', +'cluster.state.Request': 'cluster/state/ClusterStateRequest.ts#L29-L121', 'cluster.state.Response': 'cluster/state/ClusterStateResponse.ts#L22-L31', -'cluster.stats.CCSStats': 'cluster/stats/types.ts#L783-L798', -'cluster.stats.CCSUsageClusterStats': 'cluster/stats/types.ts#L869-L876', -'cluster.stats.CCSUsageStats': 'cluster/stats/types.ts#L833-L858', -'cluster.stats.CCSUsageTimeValue': 'cluster/stats/types.ts#L860-L867', -'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L329-L366', +'cluster.stats.CCSStats': 'cluster/stats/types.ts#L787-L802', +'cluster.stats.CCSUsageClusterStats': 'cluster/stats/types.ts#L873-L880', +'cluster.stats.CCSUsageStats': 'cluster/stats/types.ts#L837-L862', +'cluster.stats.CCSUsageTimeValue': 'cluster/stats/types.ts#L864-L871', +'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L333-L370', 'cluster.stats.ClusterFileSystem': 'cluster/stats/types.ts#L35-L75', 'cluster.stats.ClusterIndices': 'cluster/stats/types.ts#L100-L147', 'cluster.stats.ClusterIndicesShards': 'cluster/stats/types.ts#L86-L98', 'cluster.stats.ClusterIndicesShardsIndex': 'cluster/stats/types.ts#L77-L84', -'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L381-L384', -'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L386-L407', -'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L409-L426', -'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L428-L458', -'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L460-L469', -'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L471-L492', -'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L494-L527', -'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L540-L567', -'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L529-L538', -'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L569-L578', -'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L580-L589', -'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L591-L600', -'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L602-L608', -'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L610-L626', -'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L628-L634', -'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L636-L649', -'cluster.stats.ClusterSnapshotStats': 'cluster/stats/types.ts#L651-L654', -'cluster.stats.DenseVectorOffHeapStats': 'cluster/stats/types.ts#L180-L192', +'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L385-L388', +'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L390-L411', +'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L413-L430', +'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L432-L462', +'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L464-L473', +'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L475-L496', +'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L498-L531', +'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L544-L571', +'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L533-L542', +'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L573-L582', +'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L584-L593', +'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L595-L604', +'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L606-L612', +'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L614-L630', +'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L632-L638', +'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L640-L653', +'cluster.stats.ClusterSnapshotStats': 'cluster/stats/types.ts#L655-L658', +'cluster.stats.DenseVectorOffHeapStats': 'cluster/stats/types.ts#L180-L196', 'cluster.stats.DenseVectorStats': 'cluster/stats/types.ts#L171-L174', 'cluster.stats.ExtendedRetrieversSearchUsage': 'cluster/stats/types.ts#L163-L165', 'cluster.stats.ExtendedSearchUsage': 'cluster/stats/types.ts#L159-L161', 'cluster.stats.ExtendedTextSimilarityRetrieverUsage': 'cluster/stats/types.ts#L167-L169', -'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L225-L268', -'cluster.stats.FieldTypesMappings': 'cluster/stats/types.ts#L194-L223', -'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L779-L781', -'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L373-L379', -'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L714-L727', -'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L729-L777', -'cluster.stats.PerRepositoryStats': 'cluster/stats/types.ts#L679-L684', -'cluster.stats.RemoteClusterInfo': 'cluster/stats/types.ts#L800-L831', -'cluster.stats.RepositoryStatsCurrentCounts': 'cluster/stats/types.ts#L686-L694', -'cluster.stats.RepositoryStatsShards': 'cluster/stats/types.ts#L696-L701', -'cluster.stats.Request': 'cluster/stats/ClusterStatsRequest.ts#L24-L60', +'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L229-L272', +'cluster.stats.FieldTypesMappings': 'cluster/stats/types.ts#L198-L227', +'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L783-L785', +'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L377-L383', +'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L718-L731', +'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L733-L781', +'cluster.stats.PerRepositoryStats': 'cluster/stats/types.ts#L683-L688', +'cluster.stats.RemoteClusterInfo': 'cluster/stats/types.ts#L804-L835', +'cluster.stats.RepositoryStatsCurrentCounts': 'cluster/stats/types.ts#L690-L698', +'cluster.stats.RepositoryStatsShards': 'cluster/stats/types.ts#L700-L705', +'cluster.stats.Request': 'cluster/stats/ClusterStatsRequest.ts#L24-L63', 'cluster.stats.Response': 'cluster/stats/ClusterStatsResponse.ts#L71-L74', -'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L270-L327', +'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L274-L331', 'cluster.stats.SearchUsageStats': 'cluster/stats/types.ts#L149-L157', -'cluster.stats.SnapshotCurrentCounts': 'cluster/stats/types.ts#L656-L677', +'cluster.stats.SnapshotCurrentCounts': 'cluster/stats/types.ts#L660-L681', 'cluster.stats.SparseVectorStats': 'cluster/stats/types.ts#L176-L178', 'cluster.stats.StatsResponseBase': 'cluster/stats/ClusterStatsResponse.ts#L31-L69', -'cluster.stats.SynonymsStats': 'cluster/stats/types.ts#L368-L371', +'cluster.stats.SynonymsStats': 'cluster/stats/types.ts#L372-L375', 'connector._types.Connector': 'connector/_types/Connector.ts#L252-L284', 'connector._types.ConnectorConfigProperties': 'connector/_types/Connector.ts#L83-L99', 'connector._types.ConnectorFeatures': 'connector/_types/Connector.ts#L230-L244', @@ -1370,117 +1381,124 @@ 'connector._types.SyncRulesFeature': 'connector/_types/Connector.ts#L219-L228', 'connector._types.SyncStatus': 'connector/_types/Connector.ts#L138-L146', 'connector._types.Validation': 'connector/_types/Connector.ts#L50-L56', -'connector.check_in.Request': 'connector/check_in/ConnectorCheckInRequest.ts#L22-L44', +'connector.check_in.Request': 'connector/check_in/ConnectorCheckInRequest.ts#L22-L45', 'connector.check_in.Response': 'connector/check_in/ConnectorCheckInResponse.ts#L22-L26', -'connector.delete.Request': 'connector/delete/ConnectorDeleteRequest.ts#L22-L59', +'connector.delete.Request': 'connector/delete/ConnectorDeleteRequest.ts#L22-L60', 'connector.delete.Response': 'connector/delete/ConnectorDeleteResponse.ts#L22-L25', -'connector.get.Request': 'connector/get/ConnectorGetRequest.ts#L22-L51', +'connector.get.Request': 'connector/get/ConnectorGetRequest.ts#L22-L52', 'connector.get.Response': 'connector/get/ConnectorGetResponse.ts#L22-L25', -'connector.list.Request': 'connector/list/ConnectorListRequest.ts#L23-L72', +'connector.list.Request': 'connector/list/ConnectorListRequest.ts#L23-L73', 'connector.list.Response': 'connector/list/ConnectorListResponse.ts#L23-L28', -'connector.post.Request': 'connector/post/ConnectorPostRequest.ts#L22-L52', +'connector.post.Request': 'connector/post/ConnectorPostRequest.ts#L22-L55', 'connector.post.Response': 'connector/post/ConnectorPostResponse.ts#L23-L28', -'connector.put.Request': 'connector/put/ConnectorPutRequest.ts#L22-L58', +'connector.put.Request': 'connector/put/ConnectorPutRequest.ts#L22-L61', 'connector.put.Response': 'connector/put/ConnectorPutResponse.ts#L23-L28', -'connector.sync_job_cancel.Request': 'connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L45', +'connector.sync_job_cancel.Request': 'connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L46', 'connector.sync_job_cancel.Response': 'connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26', -'connector.sync_job_check_in.Request': 'connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L45', +'connector.sync_job_check_in.Request': 'connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L47', 'connector.sync_job_check_in.Response': 'connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22', -'connector.sync_job_claim.Request': 'connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61', +'connector.sync_job_claim.Request': 'connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L64', 'connector.sync_job_claim.Response': 'connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22', -'connector.sync_job_delete.Request': 'connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L45', +'connector.sync_job_delete.Request': 'connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L46', 'connector.sync_job_delete.Response': 'connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L25', -'connector.sync_job_error.Request': 'connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52', +'connector.sync_job_error.Request': 'connector/sync_job_error/SyncJobErrorRequest.ts#L23-L55', 'connector.sync_job_error.Response': 'connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22', -'connector.sync_job_get.Request': 'connector/sync_job_get/SyncJobGetRequest.ts#L22-L42', +'connector.sync_job_get.Request': 'connector/sync_job_get/SyncJobGetRequest.ts#L22-L44', 'connector.sync_job_get.Response': 'connector/sync_job_get/SyncJobGetResponse.ts#L22-L25', -'connector.sync_job_list.Request': 'connector/sync_job_list/SyncJobListRequest.ts#L25-L65', +'connector.sync_job_list.Request': 'connector/sync_job_list/SyncJobListRequest.ts#L25-L66', 'connector.sync_job_list.Response': 'connector/sync_job_list/SyncJobListResponse.ts#L23-L28', -'connector.sync_job_post.Request': 'connector/sync_job_post/SyncJobPostRequest.ts#L23-L51', +'connector.sync_job_post.Request': 'connector/sync_job_post/SyncJobPostRequest.ts#L23-L53', 'connector.sync_job_post.Response': 'connector/sync_job_post/SyncJobPostResponse.ts#L22-L26', -'connector.sync_job_update_stats.Request': 'connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78', +'connector.sync_job_update_stats.Request': 'connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L81', 'connector.sync_job_update_stats.Response': 'connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22', -'connector.update_active_filtering.Request': 'connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L44', +'connector.update_active_filtering.Request': 'connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L46', 'connector.update_active_filtering.Response': 'connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26', -'connector.update_api_key_id.Request': 'connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53', +'connector.update_api_key_id.Request': 'connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L55', 'connector.update_api_key_id.Response': 'connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26', -'connector.update_configuration.Request': 'connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55', +'connector.update_configuration.Request': 'connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L57', 'connector.update_configuration.Response': 'connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26', -'connector.update_error.Request': 'connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54', +'connector.update_error.Request': 'connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L56', 'connector.update_error.Response': 'connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26', -'connector.update_features.Request': 'connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61', +'connector.update_features.Request': 'connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L64', 'connector.update_features.Response': 'connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26', -'connector.update_filtering.Request': 'connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60', +'connector.update_filtering.Request': 'connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L62', 'connector.update_filtering.Response': 'connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26', -'connector.update_filtering_validation.Request': 'connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48', +'connector.update_filtering_validation.Request': 'connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L50', 'connector.update_filtering_validation.Response': 'connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26', -'connector.update_index_name.Request': 'connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51', +'connector.update_index_name.Request': 'connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L53', 'connector.update_index_name.Response': 'connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26', -'connector.update_name.Request': 'connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49', +'connector.update_name.Request': 'connector/update_name/ConnectorUpdateNameRequest.ts#L22-L52', 'connector.update_name.Response': 'connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26', -'connector.update_native.Request': 'connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48', +'connector.update_native.Request': 'connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L51', 'connector.update_native.Response': 'connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26', -'connector.update_pipeline.Request': 'connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52', +'connector.update_pipeline.Request': 'connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L54', 'connector.update_pipeline.Response': 'connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26', -'connector.update_scheduling.Request': 'connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50', +'connector.update_scheduling.Request': 'connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L53', 'connector.update_scheduling.Response': 'connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26', -'connector.update_service_type.Request': 'connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48', +'connector.update_service_type.Request': 'connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L51', 'connector.update_service_type.Response': 'connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26', -'connector.update_status.Request': 'connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49', +'connector.update_status.Request': 'connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L52', 'connector.update_status.Response': 'connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26', -'dangling_indices.delete_dangling_index.Request': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L58', +'dangling_indices.delete_dangling_index.Request': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L66', 'dangling_indices.delete_dangling_index.Response': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L25', -'dangling_indices.import_dangling_index.Request': 'dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L60', +'dangling_indices.import_dangling_index.Request': 'dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L67', 'dangling_indices.import_dangling_index.Response': 'dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L25', 'dangling_indices.list_dangling_indices.DanglingIndex': 'dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34', -'dangling_indices.list_dangling_indices.Request': 'dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L42', +'dangling_indices.list_dangling_indices.Request': 'dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L23-L44', 'dangling_indices.list_dangling_indices.Response': 'dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27', 'enrich._types.Policy': 'enrich/_types/Policy.ts#L34-L41', 'enrich._types.PolicyType': 'enrich/_types/Policy.ts#L28-L32', 'enrich._types.Summary': 'enrich/_types/Policy.ts#L24-L26', -'enrich.delete_policy.Request': 'enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L52', +'enrich.delete_policy.Request': 'enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L54', 'enrich.delete_policy.Response': 'enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L25', 'enrich.execute_policy.EnrichPolicyPhase': 'enrich/execute_policy/types.ts#L25-L31', 'enrich.execute_policy.ExecuteEnrichPolicyStatus': 'enrich/execute_policy/types.ts#L20-L23', -'enrich.execute_policy.Request': 'enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L57', +'enrich.execute_policy.Request': 'enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L59', 'enrich.execute_policy.Response': 'enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28', -'enrich.get_policy.Request': 'enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L57', +'enrich.get_policy.Request': 'enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L59', 'enrich.get_policy.Response': 'enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24', -'enrich.put_policy.Request': 'enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67', +'enrich.put_policy.Request': 'enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L70', 'enrich.put_policy.Response': 'enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L25', 'enrich.stats.CacheStats': 'enrich/stats/types.ts#L38-L50', 'enrich.stats.CoordinatorStats': 'enrich/stats/types.ts#L30-L36', 'enrich.stats.ExecutingPolicy': 'enrich/stats/types.ts#L25-L28', -'enrich.stats.Request': 'enrich/stats/EnrichStatsRequest.ts#L23-L45', +'enrich.stats.Request': 'enrich/stats/EnrichStatsRequest.ts#L24-L48', 'enrich.stats.Response': 'enrich/stats/EnrichStatsResponse.ts#L22-L39', 'eql._types.EqlHits': 'eql/_types/EqlHits.ts#L25-L39', 'eql._types.EqlSearchResponseBase': 'eql/_types/EqlSearchResponseBase.ts#L25-L54', 'eql._types.HitsEvent': 'eql/_types/EqlHits.ts#L41-L54', 'eql._types.HitsSequence': 'eql/_types/EqlHits.ts#L56-L64', -'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L47', +'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L49', 'eql.delete.Response': 'eql/delete/EqlDeleteResponse.ts#L22-L25', -'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L58', +'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L60', 'eql.get.Response': 'eql/get/EqlGetResponse.ts#L22-L25', -'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L42', +'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L44', 'eql.get_status.Response': 'eql/get_status/EqlGetStatusResponse.ts#L24-L51', -'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L28-L178', +'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L34-L192', 'eql.search.Response': 'eql/search/EqlSearchResponse.ts#L22-L25', 'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32', +'esql._types.ESQLView': 'esql/_types/types.ts#L24-L34', 'esql._types.EsqlFormat': 'esql/_types/QueryParameters.ts#L20-L29', 'esql._types.TableValuesContainer': 'esql/_types/TableValuesContainer.ts#L22-L28', -'esql.get_query.Request': 'esql/get_query/GetQueryRequest.ts#L23-L43', +'esql.delete_view.Request': 'esql/delete_view/DeleteViewRequest.ts#L23-L47', +'esql.delete_view.Response': 'esql/delete_view/DeleteViewResponse.ts#L22-L25', +'esql.get_query.Request': 'esql/get_query/GetQueryRequest.ts#L23-L47', 'esql.get_query.Response': 'esql/get_query/GetQueryResponse.ts#L23-L33', +'esql.get_view.Request': 'esql/get_view/GetViewRequest.ts#L23-L51', +'esql.get_view.Response': 'esql/get_view/GetViewResponse.ts#L22-L26', 'esql.list_queries.Body': 'esql/list_queries/ListQueriesResponse.ts#L24-L30', -'esql.list_queries.Request': 'esql/list_queries/ListQueriesRequest.ts#L22-L39', +'esql.list_queries.Request': 'esql/list_queries/ListQueriesRequest.ts#L23-L43', 'esql.list_queries.Response': 'esql/list_queries/ListQueriesResponse.ts#L32-L36', -'esql.query.Request': 'esql/query/QueryRequest.ts#L27-L117', +'esql.put_view.Request': 'esql/put_view/PutViewRequest.ts#L23-L49', +'esql.put_view.Response': 'esql/put_view/PutViewResponse.ts#L22-L25', +'esql.query.Request': 'esql/query/QueryRequest.ts#L28-L128', 'esql.query.Response': 'esql/query/QueryResponse.ts#L22-L25', 'features._types.Feature': 'features/_types/Feature.ts#L20-L23', -'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L23-L53', +'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L24-L56', 'features.get_features.Response': 'features/get_features/GetFeaturesResponse.ts#L22-L26', -'features.reset_features.Request': 'features/reset_features/ResetFeaturesRequest.ts#L23-L60', +'features.reset_features.Request': 'features/reset_features/ResetFeaturesRequest.ts#L24-L63', 'features.reset_features.Response': 'features/reset_features/ResetFeaturesResponse.ts#L22-L26', -'fleet.search.Request': 'fleet/search/SearchRequest.ts#L54-L266', +'fleet.search.Request': 'fleet/search/SearchRequest.ts#L55-L271', 'fleet.search.Response': 'fleet/search/SearchResponse.ts#L33-L50', 'graph._types.Connection': 'graph/_types/Connection.ts#L22-L27', 'graph._types.ExploreControls': 'graph/_types/ExploreControls.ts#L24-L49', @@ -1489,7 +1507,7 @@ 'graph._types.Vertex': 'graph/_types/Vertex.ts#L23-L28', 'graph._types.VertexDefinition': 'graph/_types/Vertex.ts#L30-L59', 'graph._types.VertexInclude': 'graph/_types/Vertex.ts#L61-L65', -'graph.explore.Request': 'graph/explore/GraphExploreRequest.ts#L28-L84', +'graph.explore.Request': 'graph/explore/GraphExploreRequest.ts#L28-L87', 'graph.explore.Response': 'graph/explore/GraphExploreResponse.ts#L25-L33', 'ilm._types.Actions': 'ilm/_types/Phase.ts#L39-L93', 'ilm._types.AllocateAction': 'ilm/_types/Phase.ts#L136-L142', @@ -1505,272 +1523,287 @@ 'ilm._types.SetPriorityAction': 'ilm/_types/Phase.ts#L95-L97', 'ilm._types.ShrinkAction': 'ilm/_types/Phase.ts#L120-L124', 'ilm._types.WaitForSnapshotAction': 'ilm/_types/Phase.ts#L148-L150', -'ilm.delete_lifecycle.Request': 'ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L58', +'ilm.delete_lifecycle.Request': 'ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L60', 'ilm.delete_lifecycle.Response': 'ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L25', 'ilm.explain_lifecycle.LifecycleExplain': 'ilm/explain_lifecycle/types.ts#L75-L78', 'ilm.explain_lifecycle.LifecycleExplainManaged': 'ilm/explain_lifecycle/types.ts#L33-L68', 'ilm.explain_lifecycle.LifecycleExplainPhaseExecution': 'ilm/explain_lifecycle/types.ts#L80-L85', 'ilm.explain_lifecycle.LifecycleExplainUnmanaged': 'ilm/explain_lifecycle/types.ts#L70-L73', -'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L64', +'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L66', 'ilm.explain_lifecycle.Response': 'ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28', 'ilm.get_lifecycle.Lifecycle': 'ilm/get_lifecycle/types.ts#L24-L28', -'ilm.get_lifecycle.Request': 'ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L61', +'ilm.get_lifecycle.Request': 'ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L63', 'ilm.get_lifecycle.Response': 'ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26', -'ilm.get_status.Request': 'ilm/get_status/GetIlmStatusRequest.ts#L22-L38', +'ilm.get_status.Request': 'ilm/get_status/GetIlmStatusRequest.ts#L23-L40', 'ilm.get_status.Response': 'ilm/get_status/GetIlmStatusResponse.ts#L22-L24', -'ilm.migrate_to_data_tiers.Request': 'ilm/migrate_to_data_tiers/Request.ts#L23-L69', +'ilm.migrate_to_data_tiers.Request': 'ilm/migrate_to_data_tiers/Request.ts#L24-L73', 'ilm.migrate_to_data_tiers.Response': 'ilm/migrate_to_data_tiers/Response.ts#L22-L51', -'ilm.move_to_step.Request': 'ilm/move_to_step/MoveToStepRequest.ts#L24-L64', +'ilm.move_to_step.Request': 'ilm/move_to_step/MoveToStepRequest.ts#L24-L68', 'ilm.move_to_step.Response': 'ilm/move_to_step/MoveToStepResponse.ts#L22-L25', 'ilm.move_to_step.StepKey': 'ilm/move_to_step/types.ts#L20-L31', -'ilm.put_lifecycle.Request': 'ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66', +'ilm.put_lifecycle.Request': 'ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L69', 'ilm.put_lifecycle.Response': 'ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L25', -'ilm.remove_policy.Request': 'ilm/remove_policy/RemovePolicyRequest.ts#L23-L42', +'ilm.remove_policy.Request': 'ilm/remove_policy/RemovePolicyRequest.ts#L23-L45', 'ilm.remove_policy.Response': 'ilm/remove_policy/RemovePolicyResponse.ts#L22-L27', -'ilm.retry.Request': 'ilm/retry/RetryIlmRequest.ts#L23-L43', +'ilm.retry.Request': 'ilm/retry/RetryIlmRequest.ts#L23-L46', 'ilm.retry.Response': 'ilm/retry/RetryIlmResponse.ts#L22-L25', -'ilm.start.Request': 'ilm/start/StartIlmRequest.ts#L23-L52', +'ilm.start.Request': 'ilm/start/StartIlmRequest.ts#L24-L55', 'ilm.start.Response': 'ilm/start/StartIlmResponse.ts#L22-L25', -'ilm.stop.Request': 'ilm/stop/StopIlmRequest.ts#L23-L54', +'ilm.stop.Request': 'ilm/stop/StopIlmRequest.ts#L24-L57', 'ilm.stop.Response': 'ilm/stop/StopIlmResponse.ts#L22-L25', 'indices._types.Alias': 'indices/_types/Alias.ts#L23-L53', 'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L54', -'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L434-L436', +'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L441-L443', 'indices._types.DataStream': 'indices/_types/DataStream.ts#L55-L151', 'indices._types.DataStreamFailureStore': 'indices/_types/DataStreamFailureStore.ts#L22-L37', 'indices._types.DataStreamFailureStoreTemplate': 'indices/_types/DataStreamFailureStore.ts#L39-L54', 'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L160-L185', -'indices._types.DataStreamLifecycle': 'indices/_types/DataStreamLifecycle.ts#L25-L45', -'indices._types.DataStreamLifecycleDownsampling': 'indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27', -'indices._types.DataStreamLifecycleRolloverConditions': 'indices/_types/DataStreamLifecycle.ts#L60-L72', -'indices._types.DataStreamLifecycleWithRollover': 'indices/_types/DataStreamLifecycle.ts#L47-L58', +'indices._types.DataStreamLifecycle': 'indices/_types/DataStreamLifecycle.ts#L26-L51', +'indices._types.DataStreamLifecycleRolloverConditions': 'indices/_types/DataStreamLifecycle.ts#L66-L78', +'indices._types.DataStreamLifecycleWithRollover': 'indices/_types/DataStreamLifecycle.ts#L53-L64', 'indices._types.DataStreamOptions': 'indices/_types/DataStreamOptions.ts#L25-L34', 'indices._types.DataStreamOptionsTemplate': 'indices/_types/DataStreamOptions.ts#L36-L41', 'indices._types.DataStreamTimestampField': 'indices/_types/DataStream.ts#L153-L158', 'indices._types.DataStreamVisibility': 'indices/_types/DataStream.ts#L187-L190', -'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L27', -'indices._types.DownsamplingRound': 'indices/_types/DownsamplingRound.ts#L23-L32', +'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L31', +'indices._types.DownsamplingRound': 'indices/_types/DownsamplingRound.ts#L22-L31', 'indices._types.FailureStore': 'indices/_types/DataStream.ts#L49-L53', 'indices._types.FailureStoreLifecycle': 'indices/_types/DataStreamFailureStore.ts#L56-L72', 'indices._types.FailureStoreLifecycleTemplate': 'indices/_types/DataStreamFailureStore.ts#L74-L90', 'indices._types.FielddataFrequencyFilter': 'indices/_types/FielddataFrequencyFilter.ts#L22-L26', -'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L283-L290', +'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L289-L296', 'indices._types.IndexMode': 'indices/_types/DataStream.ts#L42-L47', 'indices._types.IndexRouting': 'indices/_types/IndexRouting.ts#L22-L25', 'indices._types.IndexRoutingAllocation': 'indices/_types/IndexRouting.ts#L27-L32', -'indices._types.IndexRoutingAllocationDisk': 'indices/_types/IndexRouting.ts#L62-L64', +'indices._types.IndexRoutingAllocationDisk': 'indices/_types/IndexRouting.ts#L62-L65', 'indices._types.IndexRoutingAllocationInclude': 'indices/_types/IndexRouting.ts#L52-L55', 'indices._types.IndexRoutingAllocationInitialRecovery': 'indices/_types/IndexRouting.ts#L57-L59', 'indices._types.IndexRoutingAllocationOptions': 'indices/_types/IndexRouting.ts#L38-L43', 'indices._types.IndexRoutingRebalance': 'indices/_types/IndexRouting.ts#L34-L36', 'indices._types.IndexRoutingRebalanceOptions': 'indices/_types/IndexRouting.ts#L45-L50', 'indices._types.IndexSegmentSort': 'indices/_types/IndexSegmentSort.ts#L22-L27', -'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L264-L270', -'indices._types.IndexSettings': 'indices/_types/IndexSettings.ts#L70-L178', -'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L346-L352', -'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L297-L336', -'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L338-L344', -'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L354-L357', +'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L270-L276', +'indices._types.IndexSettings': 'indices/_types/IndexSettings.ts#L70-L184', +'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L353-L359', +'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L303-L343', +'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L345-L351', +'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L361-L364', 'indices._types.IndexState': 'indices/_types/IndexState.ts#L27-L40', 'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L30-L107', 'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L109-L120', 'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L122-L149', -'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L292-L295', -'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L590-L592', -'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L594-L601', -'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L603-L608', -'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L610-L617', -'indices._types.IndicesBlockOptions': 'indices/_types/IndexSettings.ts#L272-L281', +'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L298-L301', +'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L600-L602', +'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L604-L611', +'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L613-L618', +'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L620-L627', +'indices._types.IndicesBlockOptions': 'indices/_types/IndexSettings.ts#L278-L287', 'indices._types.ManagedBy': 'indices/_types/DataStream.ts#L34-L39', -'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L438-L452', -'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L473-L480', -'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L510-L516', -'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L501-L508', -'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L482-L490', -'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L492-L499', -'indices._types.MappingLimitSettingsSourceFields': 'indices/_types/IndexSettings.ts#L518-L520', -'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L454-L471', -'indices._types.Merge': 'indices/_types/IndexSettings.ts#L359-L361', -'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L363-L366', +'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L445-L460', +'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L483-L490', +'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L520-L526', +'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L511-L518', +'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L492-L500', +'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L502-L509', +'indices._types.MappingLimitSettingsSourceFields': 'indices/_types/IndexSettings.ts#L528-L530', +'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L462-L481', +'indices._types.Merge': 'indices/_types/IndexSettings.ts#L366-L368', +'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L370-L373', 'indices._types.NumericFielddata': 'indices/_types/NumericFielddata.ts#L22-L24', 'indices._types.NumericFielddataFormat': 'indices/_types/NumericFielddataFormat.ts#L20-L23', -'indices._types.Queries': 'indices/_types/IndexSettings.ts#L430-L432', +'indices._types.Queries': 'indices/_types/IndexSettings.ts#L437-L439', 'indices._types.RetentionLease': 'indices/_types/IndexSettings.ts#L66-L68', -'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L255-L258', +'indices._types.SamplingConfiguration': 'indices/_types/SampleConfiguration.ts#L24-L64', +'indices._types.SamplingMethod': 'indices/_types/Downsample.ts#L33-L36', +'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L261-L264', 'indices._types.SegmentSortMissing': 'indices/_types/IndexSegmentSort.ts#L43-L46', 'indices._types.SegmentSortMode': 'indices/_types/IndexSegmentSort.ts#L36-L41', 'indices._types.SegmentSortOrder': 'indices/_types/IndexSegmentSort.ts#L29-L34', -'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L245-L248', -'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L240-L243', -'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L260-L262', -'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L250-L253', -'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L180-L192', -'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L198-L203', -'indices._types.SettingsSimilarityBoolean': 'indices/_types/IndexSettings.ts#L194-L196', -'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L205-L208', -'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L210-L215', -'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L217-L222', -'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L224-L227', -'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L229-L232', -'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L234-L238', -'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L528-L533', -'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L540-L545', -'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L535-L538', +'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L251-L254', +'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L246-L249', +'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L266-L268', +'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L256-L259', +'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L186-L198', +'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L204-L209', +'indices._types.SettingsSimilarityBoolean': 'indices/_types/IndexSettings.ts#L200-L202', +'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L211-L214', +'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L216-L221', +'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L223-L228', +'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L230-L233', +'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L235-L238', +'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L240-L244', +'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L538-L543', +'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L550-L555', +'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L545-L548', 'indices._types.SoftDeletes': 'indices/_types/IndexSettings.ts#L51-L64', -'indices._types.SourceMode': 'indices/_types/IndexSettings.ts#L522-L526', -'indices._types.Storage': 'indices/_types/IndexSettings.ts#L547-L558', -'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L560-L588', +'indices._types.SourceMode': 'indices/_types/IndexSettings.ts#L532-L536', +'indices._types.Storage': 'indices/_types/IndexSettings.ts#L557-L568', +'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L570-L598', 'indices._types.TemplateMapping': 'indices/_types/TemplateMapping.ts#L27-L34', -'indices._types.Translog': 'indices/_types/IndexSettings.ts#L368-L390', -'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L392-L407', -'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L409-L428', +'indices._types.Translog': 'indices/_types/IndexSettings.ts#L375-L397', +'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L399-L414', +'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L416-L435', 'indices.add_block.AddIndicesBlockStatus': 'indices/add_block/IndicesAddBlockResponse.ts#L30-L33', -'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L25-L90', +'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L25-L91', 'indices.add_block.Response': 'indices/add_block/IndicesAddBlockResponse.ts#L22-L28', 'indices.analyze.AnalyzeDetail': 'indices/analyze/types.ts#L24-L30', 'indices.analyze.AnalyzeToken': 'indices/analyze/types.ts#L37-L44', 'indices.analyze.AnalyzerDetail': 'indices/analyze/types.ts#L32-L35', 'indices.analyze.CharFilterDetail': 'indices/analyze/types.ts#L46-L49', 'indices.analyze.ExplainAnalyzeToken': 'indices/analyze/types.ts#L52-L67', -'indices.analyze.Request': 'indices/analyze/IndicesAnalyzeRequest.ts#L27-L119', +'indices.analyze.Request': 'indices/analyze/IndicesAnalyzeRequest.ts#L27-L122', 'indices.analyze.Response': 'indices/analyze/IndicesAnalyzeResponse.ts#L22-L27', 'indices.analyze.TokenDetail': 'indices/analyze/types.ts#L71-L74', -'indices.cancel_migrate_reindex.Request': 'indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L38', +'indices.cancel_migrate_reindex.Request': 'indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L46', 'indices.cancel_migrate_reindex.Response': 'indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L25', -'indices.clear_cache.Request': 'indices/clear_cache/IndicesClearCacheRequest.ts#L23-L99', +'indices.clear_cache.Request': 'indices/clear_cache/IndicesClearCacheRequest.ts#L23-L101', 'indices.clear_cache.Response': 'indices/clear_cache/IndicesClearCacheResponse.ts#L22-L25', -'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L127', +'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L130', 'indices.clone.Response': 'indices/clone/IndicesCloneResponse.ts#L22-L28', 'indices.close.CloseIndexResult': 'indices/close/CloseIndexResponse.ts#L32-L35', 'indices.close.CloseShardResult': 'indices/close/CloseIndexResponse.ts#L37-L39', -'indices.close.Request': 'indices/close/CloseIndexRequest.ts#L24-L100', +'indices.close.Request': 'indices/close/CloseIndexRequest.ts#L29-L107', 'indices.close.Response': 'indices/close/CloseIndexResponse.ts#L24-L30', -'indices.create.Request': 'indices/create/IndicesCreateRequest.ts#L28-L115', +'indices.create.Request': 'indices/create/IndicesCreateRequest.ts#L28-L118', 'indices.create.Response': 'indices/create/IndicesCreateResponse.ts#L22-L28', -'indices.create_data_stream.Request': 'indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L65', +'indices.create_data_stream.Request': 'indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L66', 'indices.create_data_stream.Response': 'indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L25', -'indices.create_from.CreateFrom': 'indices/create_from/MigrateCreateFromRequest.ts#L46-L60', -'indices.create_from.Request': 'indices/create_from/MigrateCreateFromRequest.ts#L25-L44', +'indices.create_from.CreateFrom': 'indices/create_from/MigrateCreateFromRequest.ts#L54-L68', +'indices.create_from.Request': 'indices/create_from/MigrateCreateFromRequest.ts#L25-L52', 'indices.create_from.Response': 'indices/create_from/MigrateCreateFromResponse.ts#L22-L28', 'indices.data_streams_stats.DataStreamsStatsItem': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65', -'indices.data_streams_stats.Request': 'indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L61', +'indices.data_streams_stats.Request': 'indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L62', 'indices.data_streams_stats.Response': 'indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43', -'indices.delete.Request': 'indices/delete/IndicesDeleteRequest.ts#L24-L86', +'indices.delete.Request': 'indices/delete/IndicesDeleteRequest.ts#L24-L88', 'indices.delete.Response': 'indices/delete/IndicesDeleteResponse.ts#L22-L25', 'indices.delete_alias.IndicesAliasesResponseBody': 'indices/delete_alias/IndicesDeleteAliasResponse.ts#L27-L29', -'indices.delete_alias.Request': 'indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L70', +'indices.delete_alias.Request': 'indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L72', 'indices.delete_alias.Response': 'indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L25', -'indices.delete_data_lifecycle.Request': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L51', +'indices.delete_data_lifecycle.Request': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L66', 'indices.delete_data_lifecycle.Response': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L25', -'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L59', +'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L61', 'indices.delete_data_stream.Response': 'indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L25', -'indices.delete_data_stream_options.Request': 'indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L51', +'indices.delete_data_stream_options.Request': 'indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L66', 'indices.delete_data_stream_options.Response': 'indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsResponse.ts#L22-L25', -'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L60', +'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L62', 'indices.delete_index_template.Response': 'indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L25', -'indices.delete_template.Request': 'indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L61', +'indices.delete_sample_configuration.Request': 'indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts#L24-L63', +'indices.delete_sample_configuration.Response': 'indices/delete_sample_configuration/IndicesDeleteSampleConfigurationResponse.ts#L22-L25', +'indices.delete_template.Request': 'indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L63', 'indices.delete_template.Response': 'indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L25', -'indices.disk_usage.Request': 'indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L87', +'indices.disk_usage.Request': 'indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L89', 'indices.disk_usage.Response': 'indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25', -'indices.downsample.Request': 'indices/downsample/Request.ts#L24-L58', +'indices.downsample.Request': 'indices/downsample/Request.ts#L24-L66', 'indices.downsample.Response': 'indices/downsample/Response.ts#L22-L25', -'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L79', -'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L81', -'indices.exists_index_template.Request': 'indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L62', -'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L69', +'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L81', +'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L82', +'indices.exists_index_template.Request': 'indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L63', +'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L72', 'indices.explain_data_lifecycle.DataStreamLifecycleExplain': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41', -'indices.explain_data_lifecycle.Request': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L51', +'indices.explain_data_lifecycle.Request': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L59', 'indices.explain_data_lifecycle.Response': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29', 'indices.field_usage_stats.FieldSummary': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67', 'indices.field_usage_stats.FieldsUsageBody': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L33-L40', 'indices.field_usage_stats.InvertedIndex': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77', -'indices.field_usage_stats.Request': 'indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L73', +'indices.field_usage_stats.Request': 'indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L76', 'indices.field_usage_stats.Response': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L31', 'indices.field_usage_stats.ShardsStats': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56', 'indices.field_usage_stats.UsageStatsIndex': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44', 'indices.field_usage_stats.UsageStatsShards': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51', -'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L91', +'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L93', 'indices.flush.Response': 'indices/flush/IndicesFlushResponse.ts#L22-L25', -'indices.forcemerge.Request': 'indices/forcemerge/IndicesForceMergeRequest.ts#L24-L111', +'indices.forcemerge.Request': 'indices/forcemerge/IndicesForceMergeRequest.ts#L24-L139', 'indices.forcemerge.Response': 'indices/forcemerge/IndicesForceMergeResponse.ts#L22-L25', 'indices.forcemerge._types.ForceMergeResponseBody': 'indices/forcemerge/_types/response.ts#L22-L28', -'indices.get.Feature': 'indices/get/IndicesGetRequest.ts#L98-L102', -'indices.get.Request': 'indices/get/IndicesGetRequest.ts#L24-L96', +'indices.get.Feature': 'indices/get/IndicesGetRequest.ts#L100-L104', +'indices.get.Request': 'indices/get/IndicesGetRequest.ts#L24-L98', 'indices.get.Response': 'indices/get/IndicesGetResponse.ts#L24-L27', -'indices.get_alias.Request': 'indices/get_alias/IndicesGetAliasRequest.ts#L24-L92', -'indices.get_alias.Response': 'indices/get_alias/IndicesGetAliasResponse.ts#L28-L37', -'indices.get_alias._types.IndexAliases': 'indices/get_alias/_types/response.ts#L24-L26', +'indices.get_alias.Request': 'indices/get_alias/IndicesGetAliasRequest.ts#L24-L94', +'indices.get_alias.Response': 'indices/get_alias/IndicesGetAliasResponse.ts#L28-L38', +'indices.get_alias._types.IndexAliases': 'indices/get_alias/_types/response.ts#L25-L27', +'indices.get_all_sample_configuration.Request': 'indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts#L24-L50', +'indices.get_all_sample_configuration.Response': 'indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationResponse.ts#L22-L26', +'indices.get_all_sample_configuration._types.IndexSamplingConfiguration': 'indices/get_all_sample_configuration/_types/IndexSamplingConfiguration.ts#L23-L26', 'indices.get_data_lifecycle.DataStreamWithLifecycle': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30', -'indices.get_data_lifecycle.Request': 'indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L68', +'indices.get_data_lifecycle.Request': 'indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L69', 'indices.get_data_lifecycle.Response': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25', 'indices.get_data_lifecycle_stats.DataStreamStats': 'indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59', -'indices.get_data_lifecycle_stats.Request': 'indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L22-L39', +'indices.get_data_lifecycle_stats.Request': 'indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L23-L42', 'indices.get_data_lifecycle_stats.Response': 'indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44', -'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L78', +'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L79', 'indices.get_data_stream.Response': 'indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24', 'indices.get_data_stream_mappings.DataStreamMappings': 'indices/get_data_stream_mappings/IndicesGetDataStreamMappingsResponse.ts#L29-L39', -'indices.get_data_stream_mappings.Request': 'indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts#L24-L57', +'indices.get_data_stream_mappings.Request': 'indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts#L24-L58', 'indices.get_data_stream_mappings.Response': 'indices/get_data_stream_mappings/IndicesGetDataStreamMappingsResponse.ts#L22-L27', 'indices.get_data_stream_options.DataStreamWithOptions': 'indices/get_data_stream_options/IndicesGetDataStreamOptionsResponse.ts#L27-L30', -'indices.get_data_stream_options.Request': 'indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L62', +'indices.get_data_stream_options.Request': 'indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L63', 'indices.get_data_stream_options.Response': 'indices/get_data_stream_options/IndicesGetDataStreamOptionsResponse.ts#L23-L25', 'indices.get_data_stream_settings.DataStreamSettings': 'indices/get_data_stream_settings/IndicesGetDataStreamSettingsResponse.ts#L29-L39', -'indices.get_data_stream_settings.Request': 'indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L57', +'indices.get_data_stream_settings.Request': 'indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L58', 'indices.get_data_stream_settings.Response': 'indices/get_data_stream_settings/IndicesGetDataStreamSettingsResponse.ts#L22-L27', -'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L83', +'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L85', 'indices.get_field_mapping.Response': 'indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27', 'indices.get_field_mapping.TypeFieldMappings': 'indices/get_field_mapping/types.ts#L24-L26', 'indices.get_index_template.IndexTemplateItem': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32', -'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L72', +'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L75', 'indices.get_index_template.Response': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27', 'indices.get_mapping.IndexMappingRecord': 'indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32', -'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L84', +'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L86', 'indices.get_mapping.Response': 'indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27', -'indices.get_migrate_reindex_status.Request': 'indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L38', +'indices.get_migrate_reindex_status.Request': 'indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L46', 'indices.get_migrate_reindex_status.Response': 'indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36', 'indices.get_migrate_reindex_status.StatusError': 'indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47', 'indices.get_migrate_reindex_status.StatusInProgress': 'indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42', -'indices.get_settings.Request': 'indices/get_settings/IndicesGetSettingsRequest.ts#L24-L111', +'indices.get_sample.Request': 'indices/get_sample/GetRandomSampleRequest.ts#L23-L45', +'indices.get_sample.Response': 'indices/get_sample/GetRandomSampleResponse.ts#L22-L28', +'indices.get_sample._types.RawDocument': 'indices/get_sample/_types/RawDocument.ts#L24-L33', +'indices.get_sample_configuration.Request': 'indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts#L24-L56', +'indices.get_sample_configuration.Response': 'indices/get_sample_configuration/IndicesGetSampleConfigurationResponse.ts#L23-L28', +'indices.get_sample_stats.Request': 'indices/get_sample_stats/GetRandomSampleStatsRequest.ts#L23-L45', +'indices.get_sample_stats.Response': 'indices/get_sample_stats/GetRandomSampleStatsResponse.ts#L23-L44', +'indices.get_settings.Request': 'indices/get_settings/IndicesGetSettingsRequest.ts#L24-L114', 'indices.get_settings.Response': 'indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27', -'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L73', +'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L76', 'indices.get_template.Response': 'indices/get_template/IndicesGetTemplateResponse.ts#L23-L26', -'indices.migrate_reindex.MigrateReindex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48', -'indices.migrate_reindex.ModeEnum': 'indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56', -'indices.migrate_reindex.Request': 'indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37', +'indices.migrate_reindex.MigrateReindex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L47-L56', +'indices.migrate_reindex.ModeEnum': 'indices/migrate_reindex/MigrateReindexRequest.ts#L62-L64', +'indices.migrate_reindex.Request': 'indices/migrate_reindex/MigrateReindexRequest.ts#L23-L45', 'indices.migrate_reindex.Response': 'indices/migrate_reindex/MigrateReindexResponse.ts#L22-L25', -'indices.migrate_reindex.SourceIndex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52', -'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L66', +'indices.migrate_reindex.SourceIndex': 'indices/migrate_reindex/MigrateReindexRequest.ts#L58-L60', +'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L68', 'indices.migrate_to_data_stream.Response': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L25', 'indices.modify_data_stream.Action': 'indices/modify_data_stream/types.ts#L22-L37', 'indices.modify_data_stream.IndexAndDataStreamAction': 'indices/modify_data_stream/types.ts#L39-L44', -'indices.modify_data_stream.Request': 'indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45', +'indices.modify_data_stream.Request': 'indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L24-L49', 'indices.modify_data_stream.Response': 'indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L25', -'indices.open.Request': 'indices/open/IndicesOpenRequest.ts#L24-L110', +'indices.open.Request': 'indices/open/IndicesOpenRequest.ts#L29-L117', 'indices.open.Response': 'indices/open/IndicesOpenResponse.ts#L20-L25', -'indices.promote_data_stream.Request': 'indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L58', +'indices.promote_data_stream.Request': 'indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L61', 'indices.promote_data_stream.Response': 'indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25', -'indices.put_alias.Request': 'indices/put_alias/IndicesPutAliasRequest.ts#L25-L104', +'indices.put_alias.Request': 'indices/put_alias/IndicesPutAliasRequest.ts#L25-L107', 'indices.put_alias.Response': 'indices/put_alias/IndicesPutAliasResponse.ts#L22-L25', -'indices.put_data_lifecycle.Request': 'indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93', +'indices.put_data_lifecycle.Request': 'indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L26-L102', 'indices.put_data_lifecycle.Response': 'indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L25', -'indices.put_data_stream_mappings.Request': 'indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts#L25-L76', +'indices.put_data_stream_mappings.Request': 'indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts#L25-L78', 'indices.put_data_stream_mappings.Response': 'indices/put_data_stream_mappings/IndicesPutDataStreamMappingsResponse.ts#L23-L28', 'indices.put_data_stream_mappings.UpdatedDataStreamMappings': 'indices/put_data_stream_mappings/IndicesPutDataStreamMappingsResponse.ts#L30-L51', -'indices.put_data_stream_options.Request': 'indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L80', +'indices.put_data_stream_options.Request': 'indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L83', 'indices.put_data_stream_options.Response': 'indices/put_data_stream_options/IndicesPutDataStreamOptionsResponse.ts#L22-L25', 'indices.put_data_stream_settings.DataStreamSettingsError': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L71-L77', 'indices.put_data_stream_settings.IndexSettingResults': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L57-L69', -'indices.put_data_stream_settings.Request': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L77', +'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#L161-L183', -'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L159', +'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#L41-L164', +'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L172', 'indices.put_mapping.Response': 'indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25', -'indices.put_settings.Request': 'indices/put_settings/IndicesPutSettingsRequest.ts#L25-L165', +'indices.put_sample_configuration.Request': 'indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts#L26-L92', +'indices.put_sample_configuration.Response': 'indices/put_sample_configuration/IndicesPutSampleConfigurationResponse.ts#L22-L25', +'indices.put_settings.Request': 'indices/put_settings/IndicesPutSettingsRequest.ts#L25-L169', 'indices.put_settings.Response': 'indices/put_settings/IndicesPutSettingsResponse.ts#L22-L25', -'indices.put_template.Request': 'indices/put_template/IndicesPutTemplateRequest.ts#L29-L126', +'indices.put_template.Request': 'indices/put_template/IndicesPutTemplateRequest.ts#L29-L131', 'indices.put_template.Response': 'indices/put_template/IndicesPutTemplateResponse.ts#L22-L25', 'indices.recovery.FileDetails': 'indices/recovery/types.ts#L50-L54', 'indices.recovery.RecoveryBytes': 'indices/recovery/types.ts#L38-L48', @@ -1779,39 +1812,39 @@ 'indices.recovery.RecoveryOrigin': 'indices/recovery/types.ts#L76-L89', 'indices.recovery.RecoveryStartStatus': 'indices/recovery/types.ts#L91-L96', 'indices.recovery.RecoveryStatus': 'indices/recovery/types.ts#L98-L100', -'indices.recovery.Request': 'indices/recovery/IndicesRecoveryRequest.ts#L23-L102', +'indices.recovery.Request': 'indices/recovery/IndicesRecoveryRequest.ts#L23-L104', 'indices.recovery.Response': 'indices/recovery/IndicesRecoveryResponse.ts#L24-L27', 'indices.recovery.ShardRecovery': 'indices/recovery/types.ts#L118-L135', 'indices.recovery.TranslogStatus': 'indices/recovery/types.ts#L102-L109', 'indices.recovery.VerifyIndex': 'indices/recovery/types.ts#L111-L116', -'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L85', +'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L87', 'indices.refresh.Response': 'indices/refresh/IndicesRefreshResponse.ts#L22-L25', 'indices.reload_search_analyzers.ReloadDetails': 'indices/reload_search_analyzers/types.ts#L27-L31', 'indices.reload_search_analyzers.ReloadResult': 'indices/reload_search_analyzers/types.ts#L22-L25', -'indices.reload_search_analyzers.Request': 'indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L63', +'indices.reload_search_analyzers.Request': 'indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L77', 'indices.reload_search_analyzers.Response': 'indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L25', 'indices.remove_block.RemoveIndicesBlockStatus': 'indices/remove_block/IndicesRemoveBlockResponse.ts#L30-L34', -'indices.remove_block.Request': 'indices/remove_block/IndicesRemoveBlockRequest.ts#L25-L91', +'indices.remove_block.Request': 'indices/remove_block/IndicesRemoveBlockRequest.ts#L25-L92', 'indices.remove_block.Response': 'indices/remove_block/IndicesRemoveBlockResponse.ts#L23-L28', -'indices.resolve_cluster.Request': 'indices/resolve_cluster/ResolveClusterRequest.ts#L24-L143', +'indices.resolve_cluster.Request': 'indices/resolve_cluster/ResolveClusterRequest.ts#L24-L144', 'indices.resolve_cluster.ResolveClusterInfo': 'indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55', 'indices.resolve_cluster.Response': 'indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27', -'indices.resolve_index.Request': 'indices/resolve_index/ResolveIndexRequest.ts#L24-L87', +'indices.resolve_index.Request': 'indices/resolve_index/ResolveIndexRequest.ts#L29-L96', 'indices.resolve_index.ResolveIndexAliasItem': 'indices/resolve_index/ResolveIndexResponse.ts#L39-L42', 'indices.resolve_index.ResolveIndexDataStreamsItem': 'indices/resolve_index/ResolveIndexResponse.ts#L44-L48', 'indices.resolve_index.ResolveIndexItem': 'indices/resolve_index/ResolveIndexResponse.ts#L31-L37', 'indices.resolve_index.Response': 'indices/resolve_index/ResolveIndexResponse.ts#L23-L29', -'indices.rollover.Request': 'indices/rollover/IndicesRolloverRequest.ts#L29-L153', +'indices.rollover.Request': 'indices/rollover/IndicesRolloverRequest.ts#L34-L161', 'indices.rollover.Response': 'indices/rollover/IndicesRolloverResponse.ts#L22-L32', 'indices.rollover.RolloverConditions': 'indices/rollover/types.ts#L24-L43', 'indices.segments.IndexSegment': 'indices/segments/types.ts#L24-L26', -'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L72', +'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L74', 'indices.segments.Response': 'indices/segments/IndicesSegmentsResponse.ts#L24-L29', 'indices.segments.Segment': 'indices/segments/types.ts#L28-L38', 'indices.segments.ShardSegmentRouting': 'indices/segments/types.ts#L40-L44', 'indices.segments.ShardsSegment': 'indices/segments/types.ts#L46-L51', 'indices.shard_stores.IndicesShardStores': 'indices/shard_stores/types.ts#L25-L27', -'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L82', +'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L84', 'indices.shard_stores.Response': 'indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26', 'indices.shard_stores.ShardStore': 'indices/shard_stores/types.ts#L29-L36', 'indices.shard_stores.ShardStoreAllocation': 'indices/shard_stores/types.ts#L47-L51', @@ -1819,21 +1852,21 @@ 'indices.shard_stores.ShardStoreNode': 'indices/shard_stores/types.ts#L38-L45', 'indices.shard_stores.ShardStoreStatus': 'indices/shard_stores/types.ts#L62-L71', 'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L58-L60', -'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L113', +'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L116', 'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28', -'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L70', +'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L74', 'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30', 'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42', -'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L136', +'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L33-L145', 'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31', 'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37', -'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L113', +'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L116', 'indices.split.Response': 'indices/split/IndicesSplitResponse.ts#L22-L28', 'indices.stats.IndexMetadataState': 'indices/stats/types.ts#L225-L232', 'indices.stats.IndexStats': 'indices/stats/types.ts#L52-L93', 'indices.stats.IndicesStats': 'indices/stats/types.ts#L95-L110', 'indices.stats.MappingStats': 'indices/stats/types.ts#L186-L190', -'indices.stats.Request': 'indices/stats/IndicesStatsRequest.ts#L29-L114', +'indices.stats.Request': 'indices/stats/IndicesStatsRequest.ts#L30-L120', 'indices.stats.Response': 'indices/stats/IndicesStatsResponse.ts#L24-L30', 'indices.stats.ShardCommit': 'indices/stats/types.ts#L112-L117', 'indices.stats.ShardFileSizeInfo': 'indices/stats/types.ts#L124-L131', @@ -1850,10 +1883,10 @@ 'indices.update_aliases.AddAction': 'indices/update_aliases/types.ts#L41-L95', 'indices.update_aliases.RemoveAction': 'indices/update_aliases/types.ts#L97-L122', 'indices.update_aliases.RemoveIndexAction': 'indices/update_aliases/types.ts#L124-L139', -'indices.update_aliases.Request': 'indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59', +'indices.update_aliases.Request': 'indices/update_aliases/IndicesUpdateAliasesRequest.ts#L25-L63', 'indices.update_aliases.Response': 'indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L25', 'indices.validate_query.IndicesValidationExplanation': 'indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37', -'indices.validate_query.Request': 'indices/validate_query/IndicesValidateQueryRequest.ts#L25-L122', +'indices.validate_query.Request': 'indices/validate_query/IndicesValidateQueryRequest.ts#L25-L125', 'indices.validate_query.Response': 'indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30', 'inference._types.AdaptiveAllocations': 'inference/_types/CommonTypes.ts#L99-L116', 'inference._types.Ai21ServiceSettings': 'inference/_types/CommonTypes.ts#L292-L317', @@ -1880,17 +1913,17 @@ 'inference._types.AzureAiStudioTaskSettings': 'inference/_types/CommonTypes.ts#L721-L758', 'inference._types.AzureAiStudioTaskType': 'inference/_types/CommonTypes.ts#L760-L764', 'inference._types.AzureOpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L770-L815', -'inference._types.AzureOpenAIServiceType': 'inference/_types/CommonTypes.ts#L830-L832', +'inference._types.AzureOpenAIServiceType': 'inference/_types/CommonTypes.ts#L831-L833', 'inference._types.AzureOpenAITaskSettings': 'inference/_types/CommonTypes.ts#L817-L823', -'inference._types.AzureOpenAITaskType': 'inference/_types/CommonTypes.ts#L825-L828', -'inference._types.CohereEmbeddingType': 'inference/_types/CommonTypes.ts#L887-L893', -'inference._types.CohereInputType': 'inference/_types/CommonTypes.ts#L895-L900', -'inference._types.CohereServiceSettings': 'inference/_types/CommonTypes.ts#L834-L875', -'inference._types.CohereServiceType': 'inference/_types/CommonTypes.ts#L883-L885', -'inference._types.CohereSimilarityType': 'inference/_types/CommonTypes.ts#L902-L906', -'inference._types.CohereTaskSettings': 'inference/_types/CommonTypes.ts#L914-L946', -'inference._types.CohereTaskType': 'inference/_types/CommonTypes.ts#L877-L881', -'inference._types.CohereTruncateType': 'inference/_types/CommonTypes.ts#L908-L912', +'inference._types.AzureOpenAITaskType': 'inference/_types/CommonTypes.ts#L825-L829', +'inference._types.CohereEmbeddingType': 'inference/_types/CommonTypes.ts#L888-L894', +'inference._types.CohereInputType': 'inference/_types/CommonTypes.ts#L896-L901', +'inference._types.CohereServiceSettings': 'inference/_types/CommonTypes.ts#L835-L876', +'inference._types.CohereServiceType': 'inference/_types/CommonTypes.ts#L884-L886', +'inference._types.CohereSimilarityType': 'inference/_types/CommonTypes.ts#L903-L907', +'inference._types.CohereTaskSettings': 'inference/_types/CommonTypes.ts#L915-L947', +'inference._types.CohereTaskType': 'inference/_types/CommonTypes.ts#L878-L882', +'inference._types.CohereTruncateType': 'inference/_types/CommonTypes.ts#L909-L913', 'inference._types.CompletionInferenceResult': 'inference/_types/Results.ts#L84-L89', 'inference._types.CompletionResult': 'inference/_types/Results.ts#L77-L82', 'inference._types.CompletionTool': 'inference/_types/CommonTypes.ts#L278-L290', @@ -1899,83 +1932,101 @@ 'inference._types.CompletionToolFunction': 'inference/_types/CommonTypes.ts#L255-L276', 'inference._types.CompletionToolType': 'inference/_types/CommonTypes.ts#L118-L121', 'inference._types.ContentObject': 'inference/_types/CommonTypes.ts#L123-L135', -'inference._types.ContextualAIServiceSettings': 'inference/_types/CommonTypes.ts#L1202-L1225', -'inference._types.ContextualAIServiceType': 'inference/_types/CommonTypes.ts#L1198-L1200', -'inference._types.ContextualAITaskSettings': 'inference/_types/CommonTypes.ts#L1227-L1245', -'inference._types.CustomRequestParams': 'inference/_types/CommonTypes.ts#L1018-L1029', -'inference._types.CustomResponseParams': 'inference/_types/CommonTypes.ts#L1031-L1169', -'inference._types.CustomServiceSettings': 'inference/_types/CommonTypes.ts#L948-L1016', -'inference._types.CustomServiceType': 'inference/_types/CommonTypes.ts#L1178-L1180', -'inference._types.CustomTaskSettings': 'inference/_types/CommonTypes.ts#L1182-L1196', -'inference._types.CustomTaskType': 'inference/_types/CommonTypes.ts#L1171-L1176', -'inference._types.DeepSeekServiceSettings': 'inference/_types/CommonTypes.ts#L1247-L1269', -'inference._types.DeepSeekServiceType': 'inference/_types/CommonTypes.ts#L1271-L1273', +'inference._types.ContextualAIServiceSettings': 'inference/_types/CommonTypes.ts#L1226-L1249', +'inference._types.ContextualAIServiceType': 'inference/_types/CommonTypes.ts#L1222-L1224', +'inference._types.ContextualAITaskSettings': 'inference/_types/CommonTypes.ts#L1251-L1269', +'inference._types.CustomRequestParams': 'inference/_types/CommonTypes.ts#L1026-L1037', +'inference._types.CustomResponseParams': 'inference/_types/CommonTypes.ts#L1039-L1193', +'inference._types.CustomServiceSettings': 'inference/_types/CommonTypes.ts#L949-L1024', +'inference._types.CustomServiceType': 'inference/_types/CommonTypes.ts#L1202-L1204', +'inference._types.CustomTaskSettings': 'inference/_types/CommonTypes.ts#L1206-L1220', +'inference._types.CustomTaskType': 'inference/_types/CommonTypes.ts#L1195-L1200', +'inference._types.DeepSeekServiceSettings': 'inference/_types/CommonTypes.ts#L1271-L1293', +'inference._types.DeepSeekServiceType': 'inference/_types/CommonTypes.ts#L1295-L1297', 'inference._types.DeleteInferenceEndpointResult': 'inference/_types/Results.ts#L110-L115', -'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L1275-L1327', -'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L1343-L1345', -'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L1329-L1335', -'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L1337-L1341', -'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L1347-L1373', -'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L1379-L1381', -'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L1375-L1377', -'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L1406-L1408', -'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L1383-L1399', -'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L1401-L1404', -'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L1410-L1443', -'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L1476-L1478', -'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L1445-L1460', -'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L1469-L1474', -'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L1480-L1512', -'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L1533-L1535', -'inference._types.HuggingFaceTaskSettings': 'inference/_types/CommonTypes.ts#L1514-L1524', -'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L1526-L1531', -'inference._types.InferenceChunkingSettings': 'inference/_types/Services.ts#L327-L386', -'inference._types.InferenceEndpoint': 'inference/_types/Services.ts#L48-L70', -'inference._types.InferenceEndpointInfo': 'inference/_types/Services.ts#L72-L84', -'inference._types.InferenceEndpointInfoAi21': 'inference/_types/Services.ts#L86-L95', -'inference._types.InferenceEndpointInfoAlibabaCloudAI': 'inference/_types/Services.ts#L97-L106', -'inference._types.InferenceEndpointInfoAmazonBedrock': 'inference/_types/Services.ts#L108-L117', -'inference._types.InferenceEndpointInfoAmazonSageMaker': 'inference/_types/Services.ts#L119-L128', -'inference._types.InferenceEndpointInfoAnthropic': 'inference/_types/Services.ts#L130-L139', -'inference._types.InferenceEndpointInfoAzureAIStudio': 'inference/_types/Services.ts#L141-L150', -'inference._types.InferenceEndpointInfoAzureOpenAI': 'inference/_types/Services.ts#L152-L161', -'inference._types.InferenceEndpointInfoCohere': 'inference/_types/Services.ts#L163-L172', -'inference._types.InferenceEndpointInfoContextualAi': 'inference/_types/Services.ts#L174-L183', -'inference._types.InferenceEndpointInfoCustom': 'inference/_types/Services.ts#L185-L194', -'inference._types.InferenceEndpointInfoDeepSeek': 'inference/_types/Services.ts#L195-L204', -'inference._types.InferenceEndpointInfoELSER': 'inference/_types/Services.ts#L217-L226', -'inference._types.InferenceEndpointInfoElasticsearch': 'inference/_types/Services.ts#L206-L215', -'inference._types.InferenceEndpointInfoGoogleAIStudio': 'inference/_types/Services.ts#L228-L237', -'inference._types.InferenceEndpointInfoGoogleVertexAI': 'inference/_types/Services.ts#L239-L248', -'inference._types.InferenceEndpointInfoHuggingFace': 'inference/_types/Services.ts#L250-L259', -'inference._types.InferenceEndpointInfoJinaAi': 'inference/_types/Services.ts#L261-L270', -'inference._types.InferenceEndpointInfoLlama': 'inference/_types/Services.ts#L272-L281', -'inference._types.InferenceEndpointInfoMistral': 'inference/_types/Services.ts#L283-L292', -'inference._types.InferenceEndpointInfoOpenAI': 'inference/_types/Services.ts#L294-L303', -'inference._types.InferenceEndpointInfoVoyageAI': 'inference/_types/Services.ts#L305-L314', -'inference._types.InferenceEndpointInfoWatsonx': 'inference/_types/Services.ts#L316-L325', +'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L1299-L1355', +'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L1371-L1373', +'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L1357-L1363', +'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L1365-L1369', +'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L1375-L1401', +'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L1407-L1409', +'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L1403-L1405', +'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L1434-L1436', +'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L1411-L1427', +'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L1429-L1432', +'inference._types.GoogleModelGardenProvider': 'inference/_types/CommonTypes.ts#L1507-L1514', +'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L1438-L1505', +'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L1555-L1557', +'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L1516-L1539', +'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L1548-L1553', +'inference._types.GroqServiceSettings': 'inference/_types/CommonTypes.ts#L1559-L1583', +'inference._types.GroqServiceType': 'inference/_types/CommonTypes.ts#L1589-L1591', +'inference._types.GroqTaskType': 'inference/_types/CommonTypes.ts#L1585-L1587', +'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L1593-L1625', +'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L1646-L1648', +'inference._types.HuggingFaceTaskSettings': 'inference/_types/CommonTypes.ts#L1627-L1637', +'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L1639-L1644', +'inference._types.InferenceChunkingSettings': 'inference/_types/Services.ts#L363-L422', +'inference._types.InferenceEndpoint': 'inference/_types/Services.ts#L51-L73', +'inference._types.InferenceEndpointInfo': 'inference/_types/Services.ts#L75-L87', +'inference._types.InferenceEndpointInfoAi21': 'inference/_types/Services.ts#L89-L98', +'inference._types.InferenceEndpointInfoAlibabaCloudAI': 'inference/_types/Services.ts#L100-L109', +'inference._types.InferenceEndpointInfoAmazonBedrock': 'inference/_types/Services.ts#L111-L120', +'inference._types.InferenceEndpointInfoAmazonSageMaker': 'inference/_types/Services.ts#L122-L131', +'inference._types.InferenceEndpointInfoAnthropic': 'inference/_types/Services.ts#L133-L142', +'inference._types.InferenceEndpointInfoAzureAIStudio': 'inference/_types/Services.ts#L144-L153', +'inference._types.InferenceEndpointInfoAzureOpenAI': 'inference/_types/Services.ts#L155-L164', +'inference._types.InferenceEndpointInfoCohere': 'inference/_types/Services.ts#L166-L175', +'inference._types.InferenceEndpointInfoContextualAi': 'inference/_types/Services.ts#L177-L186', +'inference._types.InferenceEndpointInfoCustom': 'inference/_types/Services.ts#L188-L197', +'inference._types.InferenceEndpointInfoDeepSeek': 'inference/_types/Services.ts#L198-L207', +'inference._types.InferenceEndpointInfoELSER': 'inference/_types/Services.ts#L220-L229', +'inference._types.InferenceEndpointInfoElasticsearch': 'inference/_types/Services.ts#L209-L218', +'inference._types.InferenceEndpointInfoGoogleAIStudio': 'inference/_types/Services.ts#L231-L240', +'inference._types.InferenceEndpointInfoGoogleVertexAI': 'inference/_types/Services.ts#L242-L251', +'inference._types.InferenceEndpointInfoGroq': 'inference/_types/Services.ts#L253-L262', +'inference._types.InferenceEndpointInfoHuggingFace': 'inference/_types/Services.ts#L264-L273', +'inference._types.InferenceEndpointInfoJinaAi': 'inference/_types/Services.ts#L275-L284', +'inference._types.InferenceEndpointInfoLlama': 'inference/_types/Services.ts#L286-L295', +'inference._types.InferenceEndpointInfoMistral': 'inference/_types/Services.ts#L297-L306', +'inference._types.InferenceEndpointInfoNvidia': 'inference/_types/Services.ts#L308-L317', +'inference._types.InferenceEndpointInfoOpenAI': 'inference/_types/Services.ts#L319-L328', +'inference._types.InferenceEndpointInfoOpenShiftAi': 'inference/_types/Services.ts#L330-L339', +'inference._types.InferenceEndpointInfoVoyageAI': 'inference/_types/Services.ts#L341-L350', +'inference._types.InferenceEndpointInfoWatsonx': 'inference/_types/Services.ts#L352-L361', 'inference._types.InferenceResult': 'inference/_types/Results.ts#L117-L128', -'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L1537-L1566', -'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1596-L1598', -'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1600-L1604', -'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L1568-L1589', -'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1591-L1594', -'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1606-L1611', -'inference._types.LlamaServiceSettings': 'inference/_types/CommonTypes.ts#L1613-L1643', -'inference._types.LlamaServiceType': 'inference/_types/CommonTypes.ts#L1651-L1653', -'inference._types.LlamaSimilarityType': 'inference/_types/CommonTypes.ts#L1655-L1659', -'inference._types.LlamaTaskType': 'inference/_types/CommonTypes.ts#L1645-L1649', +'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L1650-L1679', +'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1709-L1711', +'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1713-L1717', +'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L1681-L1702', +'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1704-L1707', +'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1719-L1724', +'inference._types.LlamaServiceSettings': 'inference/_types/CommonTypes.ts#L1726-L1756', +'inference._types.LlamaServiceType': 'inference/_types/CommonTypes.ts#L1764-L1766', +'inference._types.LlamaSimilarityType': 'inference/_types/CommonTypes.ts#L1768-L1772', +'inference._types.LlamaTaskType': 'inference/_types/CommonTypes.ts#L1758-L1762', 'inference._types.Message': 'inference/_types/CommonTypes.ts#L174-L228', 'inference._types.MessageContent': 'inference/_types/CommonTypes.ts#L169-L172', -'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1661-L1688', -'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1696-L1698', -'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1690-L1694', -'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1700-L1742', -'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1758-L1760', -'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1744-L1750', -'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1752-L1756', +'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1774-L1801', +'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1809-L1811', +'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1803-L1807', +'inference._types.NvidiaInputType': 'inference/_types/CommonTypes.ts#L1892-L1895', +'inference._types.NvidiaServiceSettings': 'inference/_types/CommonTypes.ts#L1813-L1851', +'inference._types.NvidiaServiceType': 'inference/_types/CommonTypes.ts#L1860-L1862', +'inference._types.NvidiaSimilarityType': 'inference/_types/CommonTypes.ts#L1864-L1868', +'inference._types.NvidiaTaskSettings': 'inference/_types/CommonTypes.ts#L1870-L1890', +'inference._types.NvidiaTaskType': 'inference/_types/CommonTypes.ts#L1853-L1858', +'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1897-L1939', +'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1966-L1968', +'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1941-L1958', +'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1960-L1964', +'inference._types.OpenShiftAiServiceSettings': 'inference/_types/CommonTypes.ts#L1970-L2003', +'inference._types.OpenShiftAiServiceType': 'inference/_types/CommonTypes.ts#L2012-L2014', +'inference._types.OpenShiftAiSimilarityType': 'inference/_types/CommonTypes.ts#L2016-L2020', +'inference._types.OpenShiftAiTaskSettings': 'inference/_types/CommonTypes.ts#L2022-L2031', +'inference._types.OpenShiftAiTaskType': 'inference/_types/CommonTypes.ts#L2005-L2010', 'inference._types.RankedDocument': 'inference/_types/Results.ts#L91-L101', -'inference._types.RateLimitSetting': 'inference/_types/Services.ts#L392-L420', +'inference._types.RateLimitSetting': 'inference/_types/Services.ts#L428-L457', 'inference._types.RequestChatCompletion': 'inference/_types/CommonTypes.ts#L25-L97', 'inference._types.RerankedInferenceResult': 'inference/_types/Results.ts#L103-L108', 'inference._types.SparseEmbeddingInferenceResult': 'inference/_types/Results.ts#L40-L45', @@ -1987,243 +2038,253 @@ 'inference._types.TaskTypeAmazonSageMaker': 'inference/_types/TaskType.ts#L53-L59', 'inference._types.TaskTypeAnthropic': 'inference/_types/TaskType.ts#L61-L63', 'inference._types.TaskTypeAzureAIStudio': 'inference/_types/TaskType.ts#L65-L69', -'inference._types.TaskTypeAzureOpenAI': 'inference/_types/TaskType.ts#L71-L74', -'inference._types.TaskTypeCohere': 'inference/_types/TaskType.ts#L76-L80', -'inference._types.TaskTypeContextualAI': 'inference/_types/TaskType.ts#L82-L84', -'inference._types.TaskTypeCustom': 'inference/_types/TaskType.ts#L86-L91', -'inference._types.TaskTypeDeepSeek': 'inference/_types/TaskType.ts#L93-L96', -'inference._types.TaskTypeELSER': 'inference/_types/TaskType.ts#L104-L106', -'inference._types.TaskTypeElasticsearch': 'inference/_types/TaskType.ts#L98-L102', -'inference._types.TaskTypeGoogleAIStudio': 'inference/_types/TaskType.ts#L108-L111', -'inference._types.TaskTypeGoogleVertexAI': 'inference/_types/TaskType.ts#L113-L116', -'inference._types.TaskTypeHuggingFace': 'inference/_types/TaskType.ts#L118-L123', +'inference._types.TaskTypeAzureOpenAI': 'inference/_types/TaskType.ts#L71-L75', +'inference._types.TaskTypeCohere': 'inference/_types/TaskType.ts#L77-L81', +'inference._types.TaskTypeContextualAI': 'inference/_types/TaskType.ts#L83-L85', +'inference._types.TaskTypeCustom': 'inference/_types/TaskType.ts#L87-L92', +'inference._types.TaskTypeDeepSeek': 'inference/_types/TaskType.ts#L94-L97', +'inference._types.TaskTypeELSER': 'inference/_types/TaskType.ts#L105-L107', +'inference._types.TaskTypeElasticsearch': 'inference/_types/TaskType.ts#L99-L103', +'inference._types.TaskTypeGoogleAIStudio': 'inference/_types/TaskType.ts#L109-L112', +'inference._types.TaskTypeGoogleVertexAI': 'inference/_types/TaskType.ts#L114-L119', +'inference._types.TaskTypeGroq': 'inference/_types/TaskType.ts#L121-L123', +'inference._types.TaskTypeHuggingFace': 'inference/_types/TaskType.ts#L125-L130', 'inference._types.TaskTypeJinaAi': 'inference/_types/TaskType.ts#L31-L34', -'inference._types.TaskTypeLlama': 'inference/_types/TaskType.ts#L125-L129', -'inference._types.TaskTypeMistral': 'inference/_types/TaskType.ts#L131-L135', -'inference._types.TaskTypeOpenAI': 'inference/_types/TaskType.ts#L137-L141', -'inference._types.TaskTypeVoyageAI': 'inference/_types/TaskType.ts#L143-L146', -'inference._types.TaskTypeWatsonx': 'inference/_types/TaskType.ts#L148-L152', +'inference._types.TaskTypeLlama': 'inference/_types/TaskType.ts#L132-L136', +'inference._types.TaskTypeMistral': 'inference/_types/TaskType.ts#L138-L142', +'inference._types.TaskTypeNvidia': 'inference/_types/TaskType.ts#L144-L149', +'inference._types.TaskTypeOpenAI': 'inference/_types/TaskType.ts#L151-L155', +'inference._types.TaskTypeOpenShiftAi': 'inference/_types/TaskType.ts#L157-L162', +'inference._types.TaskTypeVoyageAI': 'inference/_types/TaskType.ts#L164-L167', +'inference._types.TaskTypeWatsonx': 'inference/_types/TaskType.ts#L169-L173', 'inference._types.TextEmbeddingByteResult': 'inference/_types/Results.ts#L53-L58', 'inference._types.TextEmbeddingInferenceResult': 'inference/_types/Results.ts#L67-L75', 'inference._types.TextEmbeddingResult': 'inference/_types/Results.ts#L60-L65', -'inference._types.ThinkingConfig': 'inference/_types/CommonTypes.ts#L1462-L1467', +'inference._types.ThinkingConfig': 'inference/_types/CommonTypes.ts#L1541-L1546', 'inference._types.ToolCall': 'inference/_types/CommonTypes.ts#L151-L167', 'inference._types.ToolCallFunction': 'inference/_types/CommonTypes.ts#L137-L149', -'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L1762-L1793', -'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L1826-L1828', -'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L1795-L1819', -'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L1821-L1824', -'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L1830-L1868', -'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L1876-L1878', -'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1870-L1874', -'inference.chat_completion_unified.Request': 'inference/chat_completion_unified/UnifiedRequest.ts#L24-L61', +'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L2033-L2064', +'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L2097-L2099', +'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L2066-L2090', +'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L2092-L2095', +'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L2101-L2139', +'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L2147-L2149', +'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L2141-L2145', +'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-L69', +'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-L66', +'inference.delete.Request': 'inference/delete/DeleteRequest.ts#L24-L69', 'inference.delete.Response': 'inference/delete/DeleteResponse.ts#L22-L25', -'inference.get.Request': 'inference/get/GetRequest.ts#L24-L56', +'inference.get.Request': 'inference/get/GetRequest.ts#L24-L59', 'inference.get.Response': 'inference/get/GetResponse.ts#L22-L26', -'inference.inference.Request': 'inference/inference/InferenceRequest.ts#L26-L104', +'inference.inference.Request': 'inference/inference/InferenceRequest.ts#L26-L106', 'inference.inference.Response': 'inference/inference/InferenceResponse.ts#L22-L25', -'inference.put.Request': 'inference/put/PutRequest.ts#L26-L90', +'inference.put.Request': 'inference/put/PutRequest.ts#L26-L95', 'inference.put.Response': 'inference/put/PutResponse.ts#L22-L25', -'inference.put_ai21.Request': 'inference/put_ai21/PutAi21Request.ts#L29-L73', +'inference.put_ai21.Request': 'inference/put_ai21/PutAi21Request.ts#L29-L75', 'inference.put_ai21.Response': 'inference/put_ai21/PutAi21Response.ts#L22-L25', -'inference.put_alibabacloud.Request': 'inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L85', +'inference.put_alibabacloud.Request': 'inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L89', 'inference.put_alibabacloud.Response': 'inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L25', -'inference.put_amazonbedrock.Request': 'inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L88', +'inference.put_amazonbedrock.Request': 'inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L92', 'inference.put_amazonbedrock.Response': 'inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L25', -'inference.put_amazonsagemaker.Request': 'inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L86', +'inference.put_amazonsagemaker.Request': 'inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L90', 'inference.put_amazonsagemaker.Response': 'inference/put_amazonsagemaker/PutAmazonSageMakerResponse.ts#L22-L25', -'inference.put_anthropic.Request': 'inference/put_anthropic/PutAnthropicRequest.ts#L31-L86', +'inference.put_anthropic.Request': 'inference/put_anthropic/PutAnthropicRequest.ts#L30-L82', 'inference.put_anthropic.Response': 'inference/put_anthropic/PutAnthropicResponse.ts#L22-L25', -'inference.put_azureaistudio.Request': 'inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L85', +'inference.put_azureaistudio.Request': 'inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L89', 'inference.put_azureaistudio.Response': 'inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L25', -'inference.put_azureopenai.Request': 'inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L93', +'inference.put_azureopenai.Request': 'inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L97', 'inference.put_azureopenai.Response': 'inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L25', -'inference.put_cohere.Request': 'inference/put_cohere/PutCohereRequest.ts#L31-L86', +'inference.put_cohere.Request': 'inference/put_cohere/PutCohereRequest.ts#L31-L90', 'inference.put_cohere.Response': 'inference/put_cohere/PutCohereResponse.ts#L22-L25', -'inference.put_contextualai.Request': 'inference/put_contextualai/PutContextualAiRequest.ts#L31-L87', +'inference.put_contextualai.Request': 'inference/put_contextualai/PutContextualAiRequest.ts#L30-L83', 'inference.put_contextualai.Response': 'inference/put_contextualai/PutContextualAiResponse.ts#L22-L25', -'inference.put_custom.Request': 'inference/put_custom/PutCustomRequest.ts#L30-L117', +'inference.put_custom.Request': 'inference/put_custom/PutCustomRequest.ts#L30-L121', 'inference.put_custom.Response': 'inference/put_custom/PutCustomResponse.ts#L22-L25', -'inference.put_deepseek.Request': 'inference/put_deepseek/PutDeepSeekRequest.ts#L30-L80', +'inference.put_deepseek.Request': 'inference/put_deepseek/PutDeepSeekRequest.ts#L29-L76', 'inference.put_deepseek.Response': 'inference/put_deepseek/PutDeepSeekResponse.ts#L22-L25', -'inference.put_elasticsearch.Request': 'inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L101', +'inference.put_elasticsearch.Request': 'inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L103', 'inference.put_elasticsearch.Response': 'inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L25', -'inference.put_elser.Request': 'inference/put_elser/PutElserRequest.ts#L30-L95', +'inference.put_elser.Request': 'inference/put_elser/PutElserRequest.ts#L30-L97', 'inference.put_elser.Response': 'inference/put_elser/PutElserResponse.ts#L22-L25', -'inference.put_googleaistudio.Request': 'inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L79', +'inference.put_googleaistudio.Request': 'inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L83', 'inference.put_googleaistudio.Response': 'inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L25', -'inference.put_googlevertexai.Request': 'inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L85', +'inference.put_googlevertexai.Request': 'inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L89', 'inference.put_googlevertexai.Response': 'inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L25', -'inference.put_hugging_face.Request': 'inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L121', +'inference.put_groq.Request': 'inference/put_groq/PutGroqRequest.ts#L29-L73', +'inference.put_groq.Response': 'inference/put_groq/PutGroqResponse.ts#L22-L25', +'inference.put_hugging_face.Request': 'inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L125', 'inference.put_hugging_face.Response': 'inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L25', -'inference.put_jinaai.Request': 'inference/put_jinaai/PutJinaAiRequest.ts#L31-L88', +'inference.put_jinaai.Request': 'inference/put_jinaai/PutJinaAiRequest.ts#L31-L92', 'inference.put_jinaai.Response': 'inference/put_jinaai/PutJinaAiResponse.ts#L22-L25', -'inference.put_llama.Request': 'inference/put_llama/PutLlamaRequest.ts#L30-L79', +'inference.put_llama.Request': 'inference/put_llama/PutLlamaRequest.ts#L30-L83', 'inference.put_llama.Response': 'inference/put_llama/PutLlamaResponse.ts#L22-L25', -'inference.put_mistral.Request': 'inference/put_mistral/PutMistralRequest.ts#L30-L79', +'inference.put_mistral.Request': 'inference/put_mistral/PutMistralRequest.ts#L30-L83', 'inference.put_mistral.Response': 'inference/put_mistral/PutMistralResponse.ts#L22-L25', -'inference.put_openai.Request': 'inference/put_openai/PutOpenAiRequest.ts#L31-L86', +'inference.put_nvidia.Request': 'inference/put_nvidia/PutNvidiaRequest.ts#L31-L90', +'inference.put_nvidia.Response': 'inference/put_nvidia/PutNvidiaResponse.ts#L22-L25', +'inference.put_openai.Request': 'inference/put_openai/PutOpenAiRequest.ts#L31-L90', 'inference.put_openai.Response': 'inference/put_openai/PutOpenAiResponse.ts#L22-L25', -'inference.put_voyageai.Request': 'inference/put_voyageai/PutVoyageAIRequest.ts#L31-L87', +'inference.put_openshift_ai.Request': 'inference/put_openshift_ai/PutOpenShiftAiRequest.ts#L31-L92', +'inference.put_openshift_ai.Response': 'inference/put_openshift_ai/PutOpenShiftAiResponse.ts#L22-L25', +'inference.put_voyageai.Request': 'inference/put_voyageai/PutVoyageAIRequest.ts#L31-L91', 'inference.put_voyageai.Response': 'inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25', -'inference.put_watsonx.Request': 'inference/put_watsonx/PutWatsonxRequest.ts#L29-L75', +'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#L26-L77', +'inference.rerank.Request': 'inference/rerank/RerankRequest.ts#L26-L80', 'inference.rerank.Response': 'inference/rerank/RerankResponse.ts#L22-L25', -'inference.sparse_embedding.Request': 'inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63', +'inference.sparse_embedding.Request': 'inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L66', 'inference.sparse_embedding.Response': 'inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L25', -'inference.stream_completion.Request': 'inference/stream_completion/StreamInferenceRequest.ts#L25-L71', +'inference.stream_completion.Request': 'inference/stream_completion/StreamInferenceRequest.ts#L25-L74', 'inference.stream_completion.Response': 'inference/stream_completion/StreamInferenceResponse.ts#L22-L25', -'inference.text_embedding.Request': 'inference/text_embedding/TextEmbeddingRequest.ts#L25-L76', +'inference.text_embedding.Request': 'inference/text_embedding/TextEmbeddingRequest.ts#L25-L79', 'inference.text_embedding.Response': 'inference/text_embedding/TextEmbeddingResponse.ts#L22-L25', -'inference.update.Request': 'inference/update/UpdateInferenceRequest.ts#L25-L61', +'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#L334-L366', +'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L368-L409', +'ingest._types.BytesProcessor': 'ingest/_types/Processors.ts#L578-L594', +'ingest._types.CefProcessor': 'ingest/_types/Processors.ts#L596-L622', +'ingest._types.CircleProcessor': 'ingest/_types/Processors.ts#L624-L647', +'ingest._types.CommunityIDProcessor': 'ingest/_types/Processors.ts#L649-L710', +'ingest._types.ConvertProcessor': 'ingest/_types/Processors.ts#L723-L743', +'ingest._types.ConvertType': 'ingest/_types/Processors.ts#L712-L721', +'ingest._types.CsvProcessor': 'ingest/_types/Processors.ts#L745-L778', '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#L780-L818', +'ingest._types.DateProcessor': 'ingest/_types/Processors.ts#L820-L853', +'ingest._types.DissectProcessor': 'ingest/_types/Processors.ts#L855-L874', '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#L876-L894', +'ingest._types.DropProcessor': 'ingest/_types/Processors.ts#L896-L896', +'ingest._types.EnrichProcessor': 'ingest/_types/Processors.ts#L898-L937', +'ingest._types.FailProcessor': 'ingest/_types/Processors.ts#L939-L945', '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#L947-L953', +'ingest._types.FingerprintProcessor': 'ingest/_types/Processors.ts#L955-L983', +'ingest._types.ForeachProcessor': 'ingest/_types/Processors.ts#L985-L999', +'ingest._types.GeoGridProcessor': 'ingest/_types/Processors.ts#L411-L452', +'ingest._types.GeoGridTargetFormat': 'ingest/_types/Processors.ts#L460-L463', +'ingest._types.GeoGridTileType': 'ingest/_types/Processors.ts#L454-L458', +'ingest._types.GeoIpProcessor': 'ingest/_types/Processors.ts#L465-L499', +'ingest._types.GrokProcessor': 'ingest/_types/Processors.ts#L1001-L1032', +'ingest._types.GsubProcessor': 'ingest/_types/Processors.ts#L1034-L1058', +'ingest._types.HtmlStripProcessor': 'ingest/_types/Processors.ts#L1060-L1076', +'ingest._types.InferenceConfig': 'ingest/_types/Processors.ts#L1117-L1129', +'ingest._types.InferenceConfigClassification': 'ingest/_types/Processors.ts#L1144-L1170', +'ingest._types.InferenceConfigRegression': 'ingest/_types/Processors.ts#L1131-L1142', +'ingest._types.InferenceProcessor': 'ingest/_types/Processors.ts#L1078-L1110', '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#L1112-L1115', +'ingest._types.IpLocationProcessor': 'ingest/_types/Processors.ts#L501-L535', '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#L1172-L1187', +'ingest._types.JsonProcessor': 'ingest/_types/Processors.ts#L1189-L1218', +'ingest._types.JsonProcessorConflictStrategy': 'ingest/_types/Processors.ts#L1220-L1225', +'ingest._types.KeyValueProcessor': 'ingest/_types/Processors.ts#L1227-L1279', '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#L1281-L1297', '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#L1299-L1333', '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#L1335-L1346', '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.ProcessorBase': 'ingest/_types/Processors.ts#L309-L332', +'ingest._types.ProcessorContainer': 'ingest/_types/Processors.ts#L28-L307', '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#L1348-L1389', +'ingest._types.RegisteredDomainProcessor': 'ingest/_types/Processors.ts#L1391-L1407', +'ingest._types.RemoveProcessor': 'ingest/_types/Processors.ts#L1409-L1423', +'ingest._types.RenameProcessor': 'ingest/_types/Processors.ts#L1425-L1441', +'ingest._types.RerouteProcessor': 'ingest/_types/Processors.ts#L1443-L1471', +'ingest._types.ScriptProcessor': 'ingest/_types/Processors.ts#L1473-L1493', +'ingest._types.SetProcessor': 'ingest/_types/Processors.ts#L1495-L1530', +'ingest._types.SetSecurityUserProcessor': 'ingest/_types/Processors.ts#L1532-L1541', +'ingest._types.ShapeType': 'ingest/_types/Processors.ts#L1543-L1546', '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#L1548-L1564', +'ingest._types.SplitProcessor': 'ingest/_types/Processors.ts#L1566-L1591', +'ingest._types.TerminateProcessor': 'ingest/_types/Processors.ts#L1593-L1593', +'ingest._types.TrimProcessor': 'ingest/_types/Processors.ts#L1595-L1611', +'ingest._types.UppercaseProcessor': 'ingest/_types/Processors.ts#L1613-L1629', +'ingest._types.UriPartsProcessor': 'ingest/_types/Processors.ts#L1649-L1675', +'ingest._types.UrlDecodeProcessor': 'ingest/_types/Processors.ts#L1631-L1647', +'ingest._types.UserAgentProcessor': 'ingest/_types/Processors.ts#L537-L568', +'ingest._types.UserAgentProperty': 'ingest/_types/Processors.ts#L570-L576', 'ingest._types.Web': 'ingest/_types/Database.ts#L61-L61', -'ingest.delete_geoip_database.Request': 'ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L57', +'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', -'ingest.delete_ip_location_database.Request': 'ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L60', +'ingest.delete_ip_location_database.Request': 'ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L62', 'ingest.delete_ip_location_database.Response': 'ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L25', -'ingest.delete_pipeline.Request': 'ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L61', +'ingest.delete_pipeline.Request': 'ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L63', 'ingest.delete_pipeline.Response': 'ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L25', 'ingest.geo_ip_stats.GeoIpDownloadStatistics': 'ingest/geo_ip_stats/types.ts#L24-L37', 'ingest.geo_ip_stats.GeoIpNodeDatabaseName': 'ingest/geo_ip_stats/types.ts#L47-L50', 'ingest.geo_ip_stats.GeoIpNodeDatabases': 'ingest/geo_ip_stats/types.ts#L39-L45', -'ingest.geo_ip_stats.Request': 'ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L22-L38', +'ingest.geo_ip_stats.Request': 'ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L23-L41', 'ingest.geo_ip_stats.Response': 'ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31', 'ingest.get_geoip_database.DatabaseConfigurationMetadata': 'ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34', -'ingest.get_geoip_database.Request': 'ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L51', +'ingest.get_geoip_database.Request': 'ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L52', 'ingest.get_geoip_database.Response': 'ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27', 'ingest.get_ip_location_database.DatabaseConfigurationMetadata': 'ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34', -'ingest.get_ip_location_database.Request': 'ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L50', +'ingest.get_ip_location_database.Request': 'ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L52', 'ingest.get_ip_location_database.Response': 'ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26', -'ingest.get_pipeline.Request': 'ingest/get_pipeline/GetPipelineRequest.ts#L24-L64', +'ingest.get_pipeline.Request': 'ingest/get_pipeline/GetPipelineRequest.ts#L24-L66', 'ingest.get_pipeline.Response': 'ingest/get_pipeline/GetPipelineResponse.ts#L23-L26', -'ingest.processor_grok.Request': 'ingest/processor_grok/GrokProcessorPatternsRequest.ts#L22-L40', +'ingest.processor_grok.Request': 'ingest/processor_grok/GrokProcessorPatternsRequest.ts#L23-L43', 'ingest.processor_grok.Response': 'ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24', -'ingest.put_geoip_database.Request': 'ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66', +'ingest.put_geoip_database.Request': 'ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L69', 'ingest.put_geoip_database.Response': 'ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L25', -'ingest.put_ip_location_database.Request': 'ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62', +'ingest.put_ip_location_database.Request': 'ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L65', 'ingest.put_ip_location_database.Response': 'ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L25', -'ingest.put_pipeline.Request': 'ingest/put_pipeline/PutPipelineRequest.ts#L26-L98', +'ingest.put_pipeline.Request': 'ingest/put_pipeline/PutPipelineRequest.ts#L27-L102', 'ingest.put_pipeline.Response': 'ingest/put_pipeline/PutPipelineResponse.ts#L22-L25', -'ingest.simulate.Request': 'ingest/simulate/SimulatePipelineRequest.ts#L25-L73', +'ingest.simulate.Request': 'ingest/simulate/SimulatePipelineRequest.ts#L25-L75', 'ingest.simulate.Response': 'ingest/simulate/SimulatePipelineResponse.ts#L22-L24', 'license._types.License': 'license/_types/License.ts#L42-L53', 'license._types.LicenseStatus': 'license/_types/License.ts#L35-L40', 'license._types.LicenseType': 'license/_types/License.ts#L23-L33', -'license.delete.Request': 'license/delete/DeleteLicenseRequest.ts#L23-L54', +'license.delete.Request': 'license/delete/DeleteLicenseRequest.ts#L24-L56', 'license.delete.Response': 'license/delete/DeleteLicenseResponse.ts#L22-L25', 'license.get.LicenseInformation': 'license/get/types.ts#L25-L38', -'license.get.Request': 'license/get/GetLicenseRequest.ts#L22-L58', +'license.get.Request': 'license/get/GetLicenseRequest.ts#L23-L60', 'license.get.Response': 'license/get/GetLicenseResponse.ts#L22-L24', -'license.get_basic_status.Request': 'license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L36', +'license.get_basic_status.Request': 'license/get_basic_status/GetBasicLicenseStatusRequest.ts#L23-L39', 'license.get_basic_status.Response': 'license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22', -'license.get_trial_status.Request': 'license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L36', +'license.get_trial_status.Request': 'license/get_trial_status/GetTrialLicenseStatusRequest.ts#L23-L39', 'license.get_trial_status.Response': 'license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22', 'license.post.Acknowledgement': 'license/post/types.ts#L20-L23', -'license.post.Request': 'license/post/PostLicenseRequest.ts#L24-L70', +'license.post.Request': 'license/post/PostLicenseRequest.ts#L25-L73', 'license.post.Response': 'license/post/PostLicenseResponse.ts#L23-L29', -'license.post_start_basic.Request': 'license/post_start_basic/StartBasicLicenseRequest.ts#L23-L59', +'license.post_start_basic.Request': 'license/post_start_basic/StartBasicLicenseRequest.ts#L24-L65', 'license.post_start_basic.Response': 'license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31', -'license.post_start_trial.Request': 'license/post_start_trial/StartTrialLicenseRequest.ts#L23-L52', +'license.post_start_trial.Request': 'license/post_start_trial/StartTrialLicenseRequest.ts#L24-L63', 'license.post_start_trial.Response': 'license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29', -'logstash._types.Pipeline': 'logstash/_types/Pipeline.ts#L56-L87', +'logstash._types.Pipeline': 'logstash/_types/Pipeline.ts#L57-L88', 'logstash._types.PipelineMetadata': 'logstash/_types/Pipeline.ts#L23-L26', 'logstash._types.PipelineSettings': 'logstash/_types/Pipeline.ts#L28-L55', -'logstash.delete_pipeline.Request': 'logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L47', -'logstash.get_pipeline.Request': 'logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L50', +'logstash.delete_pipeline.Request': 'logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L49', +'logstash.get_pipeline.Request': 'logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L52', 'logstash.get_pipeline.Response': 'logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27', -'logstash.put_pipeline.Request': 'logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L52', +'logstash.put_pipeline.Request': 'logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L54', 'migration.deprecations.Deprecation': 'migration/deprecations/types.ts#L32-L47', 'migration.deprecations.DeprecationLevel': 'migration/deprecations/types.ts#L23-L30', -'migration.deprecations.Request': 'migration/deprecations/DeprecationInfoRequest.ts#L23-L49', +'migration.deprecations.Request': 'migration/deprecations/DeprecationInfoRequest.ts#L23-L51', 'migration.deprecations.Response': 'migration/deprecations/DeprecationInfoResponse.ts#L23-L54', 'migration.get_feature_upgrade_status.MigrationFeature': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42', 'migration.get_feature_upgrade_status.MigrationFeatureIndexInfo': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48', 'migration.get_feature_upgrade_status.MigrationStatus': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35', -'migration.get_feature_upgrade_status.Request': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L42', +'migration.get_feature_upgrade_status.Request': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L23-L45', 'migration.get_feature_upgrade_status.Response': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28', 'migration.post_feature_upgrade.MigrationFeature': 'migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L28-L30', -'migration.post_feature_upgrade.Request': 'migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L43', +'migration.post_feature_upgrade.Request': 'migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L23-L46', 'migration.post_feature_upgrade.Response': 'migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L26', -'ml._types.AdaptiveAllocationsSettings': 'ml/_types/TrainedModel.ts#L109-L125', +'ml._types.AdaptiveAllocationsSettings': 'ml/_types/TrainedModel.ts#L110-L126', 'ml._types.AnalysisConfig': 'ml/_types/Analysis.ts#L29-L77', 'ml._types.AnalysisConfigRead': 'ml/_types/Analysis.ts#L79-L148', 'ml._types.AnalysisLimits': 'ml/_types/Analysis.ts#L161-L172', @@ -2233,27 +2294,27 @@ 'ml._types.AnomalyExplanation': 'ml/_types/Anomaly.ts#L157-L198', 'ml._types.ApiKeyAuthorization': 'ml/_types/Authorization.ts#L20-L29', 'ml._types.AppliesTo': 'ml/_types/Rule.ts#L67-L72', -'ml._types.BucketInfluencer': 'ml/_types/Bucket.ts#L79-L127', +'ml._types.BucketInfluencer': 'ml/_types/Bucket.ts#L79-L128', 'ml._types.BucketSummary': 'ml/_types/Bucket.ts#L30-L77', -'ml._types.CalendarEvent': 'ml/_types/CalendarEvent.ts#L24-L44', +'ml._types.CalendarEvent': 'ml/_types/CalendarEvent.ts#L24-L46', 'ml._types.CategorizationAnalyzer': 'ml/_types/Analysis.ts#L181-L182', 'ml._types.CategorizationAnalyzerDefinition': 'ml/_types/Analysis.ts#L184-L198', 'ml._types.CategorizationStatus': 'ml/_types/Model.ts#L84-L87', 'ml._types.Category': 'ml/_types/Category.ts#L23-L49', -'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L254-L267', -'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L248-L252', +'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L255-L268', +'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L249-L253', 'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L118-L133', 'ml._types.CommonTokenizationConfig': 'ml/_types/inference.ts#L160-L186', 'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79', 'ml._types.DataCounts': 'ml/_types/Job.ts#L354-L374', 'ml._types.DataDescription': 'ml/_types/Job.ts#L376-L392', 'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L37-L64', -'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L43', -'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L66-L123', -'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L213-L227', -'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L139-L144', -'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L146-L175', -'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L177-L205', +'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L44', +'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L66-L124', +'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L214-L228', +'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L140-L145', +'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L147-L176', +'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L178-L206', 'ml._types.DataframeAnalysis': 'ml/_types/DataframeAnalytics.ts#L134-L213', 'ml._types.DataframeAnalysisAnalyzedFields': 'ml/_types/DataframeAnalytics.ts#L238-L244', 'ml._types.DataframeAnalysisClassification': 'ml/_types/DataframeAnalytics.ts#L227-L236', @@ -2267,7 +2328,7 @@ 'ml._types.DataframeAnalysisOutlierDetection': 'ml/_types/DataframeAnalytics.ts#L103-L132', 'ml._types.DataframeAnalysisRegression': 'ml/_types/DataframeAnalytics.ts#L215-L225', 'ml._types.DataframeAnalytics': 'ml/_types/DataframeAnalytics.ts#L325-L345', -'ml._types.DataframeAnalyticsAuthorization': 'ml/_types/Authorization.ts#L45-L57', +'ml._types.DataframeAnalyticsAuthorization': 'ml/_types/Authorization.ts#L46-L59', 'ml._types.DataframeAnalyticsDestination': 'ml/_types/DataframeAnalytics.ts#L77-L82', 'ml._types.DataframeAnalyticsFieldSelection': 'ml/_types/DataframeAnalytics.ts#L55-L68', 'ml._types.DataframeAnalyticsMemoryEstimation': 'ml/_types/DataframeAnalytics.ts#L70-L75', @@ -2291,9 +2352,9 @@ 'ml._types.DataframeEvaluationRegressionMetricsHuber': 'ml/_types/DataframeEvaluation.ts#L117-L120', 'ml._types.DataframeEvaluationRegressionMetricsMsle': 'ml/_types/DataframeEvaluation.ts#L112-L115', 'ml._types.DataframeState': 'ml/_types/Dataframe.ts#L20-L26', -'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L125-L136', -'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L331-L344', -'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L346-L363', +'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L126-L137', +'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L332-L345', +'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L347-L364', 'ml._types.DetectionRule': 'ml/_types/Rule.ts#L25-L39', 'ml._types.Detector': 'ml/_types/Detector.ts#L25-L67', 'ml._types.DetectorRead': 'ml/_types/Detector.ts#L69-L125', @@ -2301,19 +2362,19 @@ 'ml._types.DiscoveryNodeCompact': 'ml/_types/DiscoveryNode.ts#L39-L48', 'ml._types.DiscoveryNodeContent': 'ml/_types/DiscoveryNode.ts#L27-L37', 'ml._types.ExcludeFrequent': 'ml/_types/Detector.ts#L145-L150', -'ml._types.ExponentialAverageCalculationContext': 'ml/_types/Datafeed.ts#L207-L211', -'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L284-L299', -'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L430-L437', +'ml._types.ExponentialAverageCalculationContext': 'ml/_types/Datafeed.ts#L208-L212', +'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L286-L303', +'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L434-L441', 'ml._types.Filter': 'ml/_types/Filter.ts#L22-L29', 'ml._types.FilterRef': 'ml/_types/Filter.ts#L31-L41', 'ml._types.FilterType': 'ml/_types/Filter.ts#L43-L46', 'ml._types.GeoResults': 'ml/_types/Anomaly.ts#L146-L155', -'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L274-L288', +'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L275-L289', 'ml._types.Hyperparameters': 'ml/_types/DataframeAnalytics.ts#L420-L526', 'ml._types.Include': 'ml/_types/Include.ts#L20-L47', 'ml._types.InferenceConfigCreateContainer': 'ml/_types/inference.ts#L26-L85', -'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L315-L337', -'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L478-L526', +'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L319-L341', +'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L482-L530', 'ml._types.Influence': 'ml/_types/Anomaly.ts#L141-L144', 'ml._types.Influencer': 'ml/_types/Influencer.ts#L24-L76', 'ml._types.Job': 'ml/_types/Job.ts#L61-L180', @@ -2327,101 +2388,101 @@ 'ml._types.JobTimingStats': 'ml/_types/Job.ts#L334-L343', 'ml._types.LearningToRankConfig': 'ml/_types/inference.ts#L87-L91', 'ml._types.MemoryStatus': 'ml/_types/Model.ts#L89-L93', -'ml._types.ModelPackageConfig': 'ml/_types/TrainedModel.ts#L257-L272', +'ml._types.ModelPackageConfig': 'ml/_types/TrainedModel.ts#L258-L273', 'ml._types.ModelPlotConfig': 'ml/_types/ModelPlot.ts#L23-L42', 'ml._types.ModelSizeStats': 'ml/_types/Model.ts#L59-L82', 'ml._types.ModelSnapshot': 'ml/_types/Model.ts#L25-L46', 'ml._types.ModelSnapshotUpgrade': 'ml/_types/Model.ts#L48-L57', -'ml._types.NerInferenceOptions': 'ml/_types/inference.ts#L273-L282', -'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L423-L428', +'ml._types.NerInferenceOptions': 'ml/_types/inference.ts#L275-L284', +'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L427-L432', 'ml._types.NlpBertTokenizationConfig': 'ml/_types/inference.ts#L188-L189', 'ml._types.NlpRobertaTokenizationConfig': 'ml/_types/inference.ts#L191-L198', -'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L375-L380', +'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L379-L384', 'ml._types.OutlierDetectionParameters': 'ml/_types/DataframeAnalytics.ts#L528-L562', -'ml._types.OverallBucket': 'ml/_types/Bucket.ts#L129-L144', -'ml._types.OverallBucketJob': 'ml/_types/Bucket.ts#L145-L148', +'ml._types.OverallBucket': 'ml/_types/Bucket.ts#L130-L145', +'ml._types.OverallBucketJob': 'ml/_types/Bucket.ts#L146-L149', 'ml._types.Page': 'ml/_types/Page.ts#L22-L33', -'ml._types.PassThroughInferenceOptions': 'ml/_types/inference.ts#L239-L246', -'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L404-L409', +'ml._types.PassThroughInferenceOptions': 'ml/_types/inference.ts#L241-L248', +'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L408-L413', 'ml._types.PerPartitionCategorization': 'ml/_types/Analysis.ts#L150-L159', 'ml._types.QueryFeatureExtractor': 'ml/_types/inference.ts#L98-L105', -'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L301-L311', -'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L439-L450', +'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L305-L315', +'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L443-L454', 'ml._types.RegressionInferenceOptions': 'ml/_types/inference.ts#L107-L116', -'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L408-L429', +'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L409-L430', 'ml._types.RuleAction': 'ml/_types/Rule.ts#L41-L50', 'ml._types.RuleCondition': 'ml/_types/Rule.ts#L52-L65', -'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L229-L246', +'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L230-L247', 'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L95-L100', 'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L202-L214', -'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L382-L391', -'ml._types.TextEmbeddingInferenceOptions': 'ml/_types/inference.ts#L252-L262', -'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L411-L415', -'ml._types.TextExpansionInferenceOptions': 'ml/_types/inference.ts#L264-L271', -'ml._types.TextExpansionInferenceUpdateOptions': 'ml/_types/inference.ts#L417-L421', +'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L386-L395', +'ml._types.TextEmbeddingInferenceOptions': 'ml/_types/inference.ts#L254-L264', +'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L415-L419', +'ml._types.TextExpansionInferenceOptions': 'ml/_types/inference.ts#L266-L273', +'ml._types.TextExpansionInferenceUpdateOptions': 'ml/_types/inference.ts#L421-L425', 'ml._types.TimingStats': 'ml/_types/DataframeAnalytics.ts#L564-L569', 'ml._types.TokenizationConfigContainer': 'ml/_types/inference.ts#L135-L158', -'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L369-L373', -'ml._types.TopClassEntry': 'ml/_types/inference.ts#L459-L463', -'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L290-L297', -'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L299-L304', -'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L306-L313', -'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L472-L489', -'ml._types.TrainedModelAssignmentRoutingStateAndReason': 'ml/_types/TrainedModel.ts#L431-L441', -'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L443-L461', -'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L370-L406', -'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L203-L240', -'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L242-L245', -'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L247-L255', -'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L463-L470', -'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L156-L201', -'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L107', -'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L452-L458', -'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L465-L468', -'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L470-L474', -'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L127-L147', -'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L491-L493', -'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L495-L497', -'ml._types.TrainedModelPrefixStrings': 'ml/_types/TrainedModel.ts#L499-L508', -'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L149-L154', +'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L373-L377', +'ml._types.TopClassEntry': 'ml/_types/inference.ts#L463-L467', +'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L291-L298', +'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L300-L305', +'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L307-L314', +'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L473-L490', +'ml._types.TrainedModelAssignmentRoutingStateAndReason': 'ml/_types/TrainedModel.ts#L432-L442', +'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L444-L462', +'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L371-L407', +'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L204-L241', +'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L243-L246', +'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L248-L256', +'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L464-L471', +'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L157-L202', +'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L108', +'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L456-L462', +'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L469-L472', +'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L474-L478', +'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L128-L148', +'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L492-L494', +'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L496-L498', +'ml._types.TrainedModelPrefixStrings': 'ml/_types/TrainedModel.ts#L500-L509', +'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L150-L155', 'ml._types.TrainedModelStats': 'ml/_types/TrainedModel.ts#L42-L60', -'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L315-L329', -'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L365-L368', -'ml._types.TransformAuthorization': 'ml/_types/Authorization.ts#L59-L71', +'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L316-L330', +'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L366-L369', +'ml._types.TransformAuthorization': 'ml/_types/Authorization.ts#L61-L74', 'ml._types.ValidationLoss': 'ml/_types/DataframeAnalytics.ts#L571-L576', -'ml._types.Vocabulary': 'ml/_types/inference.ts#L248-L250', +'ml._types.Vocabulary': 'ml/_types/inference.ts#L250-L252', 'ml._types.XlmRobertaTokenizationConfig': 'ml/_types/inference.ts#L200-L200', -'ml._types.ZeroShotClassificationInferenceOptions': 'ml/_types/inference.ts#L216-L237', -'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L393-L402', -'ml.clear_trained_model_deployment_cache.Request': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L50', +'ml._types.ZeroShotClassificationInferenceOptions': 'ml/_types/inference.ts#L216-L239', +'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L397-L406', +'ml.clear_trained_model_deployment_cache.Request': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L52', 'ml.clear_trained_model_deployment_cache.Response': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24', -'ml.close_job.Request': 'ml/close_job/MlCloseJobRequest.ts#L24-L85', +'ml.close_job.Request': 'ml/close_job/MlCloseJobRequest.ts#L24-L87', 'ml.close_job.Response': 'ml/close_job/MlCloseJobResponse.ts#L20-L22', -'ml.delete_calendar.Request': 'ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L45', +'ml.delete_calendar.Request': 'ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L46', 'ml.delete_calendar.Response': 'ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L25', -'ml.delete_calendar_event.Request': 'ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L49', +'ml.delete_calendar_event.Request': 'ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L51', 'ml.delete_calendar_event.Response': 'ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L25', -'ml.delete_calendar_job.Request': 'ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L50', +'ml.delete_calendar_job.Request': 'ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L52', 'ml.delete_calendar_job.Response': 'ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31', -'ml.delete_data_frame_analytics.Request': 'ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L58', +'ml.delete_data_frame_analytics.Request': 'ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L60', 'ml.delete_data_frame_analytics.Response': 'ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L25', -'ml.delete_datafeed.Request': 'ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L55', +'ml.delete_datafeed.Request': 'ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L57', 'ml.delete_datafeed.Response': 'ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L25', -'ml.delete_expired_data.Request': 'ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85', +'ml.delete_expired_data.Request': 'ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L87', 'ml.delete_expired_data.Response': 'ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22', -'ml.delete_filter.Request': 'ml/delete_filter/MlDeleteFilterRequest.ts#L23-L48', +'ml.delete_filter.Request': 'ml/delete_filter/MlDeleteFilterRequest.ts#L23-L49', 'ml.delete_filter.Response': 'ml/delete_filter/MlDeleteFilterResponse.ts#L22-L25', -'ml.delete_forecast.Request': 'ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L78', +'ml.delete_forecast.Request': 'ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L79', 'ml.delete_forecast.Response': 'ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L25', -'ml.delete_job.Request': 'ml/delete_job/MlDeleteJobRequest.ts#L23-L73', +'ml.delete_job.Request': 'ml/delete_job/MlDeleteJobRequest.ts#L23-L74', 'ml.delete_job.Response': 'ml/delete_job/MlDeleteJobResponse.ts#L22-L25', -'ml.delete_model_snapshot.Request': 'ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L53', +'ml.delete_model_snapshot.Request': 'ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L54', 'ml.delete_model_snapshot.Response': 'ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L25', -'ml.delete_trained_model.Request': 'ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L57', +'ml.delete_trained_model.Request': 'ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L58', 'ml.delete_trained_model.Response': 'ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L25', -'ml.delete_trained_model_alias.Request': 'ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L53', +'ml.delete_trained_model_alias.Request': 'ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L55', 'ml.delete_trained_model_alias.Response': 'ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L25', -'ml.estimate_model_memory.Request': 'ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71', +'ml.estimate_model_memory.Request': 'ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L73', 'ml.estimate_model_memory.Response': 'ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24', 'ml.evaluate_data_frame.ConfusionMatrixItem': 'ml/evaluate_data_frame/types.ts#L125-L130', 'ml.evaluate_data_frame.ConfusionMatrixPrediction': 'ml/evaluate_data_frame/types.ts#L132-L135', @@ -2437,88 +2498,88 @@ 'ml.evaluate_data_frame.DataframeEvaluationValue': 'ml/evaluate_data_frame/types.ts#L87-L89', 'ml.evaluate_data_frame.DataframeOutlierDetectionSummary': 'ml/evaluate_data_frame/types.ts#L24-L42', 'ml.evaluate_data_frame.DataframeRegressionSummary': 'ml/evaluate_data_frame/types.ts#L68-L85', -'ml.evaluate_data_frame.Request': 'ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61', -'ml.evaluate_data_frame.Response': 'ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44', -'ml.explain_data_frame_analytics.Request': 'ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120', +'ml.evaluate_data_frame.Request': 'ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L63', +'ml.evaluate_data_frame.Response': 'ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L43', +'ml.explain_data_frame_analytics.Request': 'ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L122', 'ml.explain_data_frame_analytics.Response': 'ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32', -'ml.flush_job.Request': 'ml/flush_job/MlFlushJobRequest.ts#L24-L108', +'ml.flush_job.Request': 'ml/flush_job/MlFlushJobRequest.ts#L24-L111', 'ml.flush_job.Response': 'ml/flush_job/MlFlushJobResponse.ts#L22-L31', -'ml.forecast.Request': 'ml/forecast/MlForecastJobRequest.ts#L24-L95', +'ml.forecast.Request': 'ml/forecast/MlForecastJobRequest.ts#L24-L97', 'ml.forecast.Response': 'ml/forecast/MlForecastJobResponse.ts#L22-L27', -'ml.get_buckets.Request': 'ml/get_buckets/MlGetBucketsRequest.ts#L26-L145', +'ml.get_buckets.Request': 'ml/get_buckets/MlGetBucketsRequest.ts#L26-L148', 'ml.get_buckets.Response': 'ml/get_buckets/MlGetBucketsResponse.ts#L23-L28', -'ml.get_calendar_events.Request': 'ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L61', +'ml.get_calendar_events.Request': 'ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L65', 'ml.get_calendar_events.Response': 'ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28', 'ml.get_calendars.Calendar': 'ml/get_calendars/types.ts#L22-L29', -'ml.get_calendars.Request': 'ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63', +'ml.get_calendars.Request': 'ml/get_calendars/MlGetCalendarsRequest.ts#L25-L68', 'ml.get_calendars.Response': 'ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25', -'ml.get_categories.Request': 'ml/get_categories/MlGetCategoriesRequest.ts#L25-L82', +'ml.get_categories.Request': 'ml/get_categories/MlGetCategoriesRequest.ts#L25-L85', 'ml.get_categories.Response': 'ml/get_categories/MlGetCategoriesResponse.ts#L23-L28', -'ml.get_data_frame_analytics.Request': 'ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L89', +'ml.get_data_frame_analytics.Request': 'ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L91', 'ml.get_data_frame_analytics.Response': 'ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29', -'ml.get_data_frame_analytics_stats.Request': 'ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L84', +'ml.get_data_frame_analytics_stats.Request': 'ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L86', 'ml.get_data_frame_analytics_stats.Response': 'ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29', -'ml.get_datafeed_stats.Request': 'ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L72', +'ml.get_datafeed_stats.Request': 'ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L74', 'ml.get_datafeed_stats.Response': 'ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28', -'ml.get_datafeeds.Request': 'ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L78', +'ml.get_datafeeds.Request': 'ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L80', 'ml.get_datafeeds.Response': 'ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28', -'ml.get_filters.Request': 'ml/get_filters/MlGetFiltersRequest.ts#L24-L63', +'ml.get_filters.Request': 'ml/get_filters/MlGetFiltersRequest.ts#L24-L65', 'ml.get_filters.Response': 'ml/get_filters/MlGetFiltersResponse.ts#L23-L28', -'ml.get_influencers.Request': 'ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105', +'ml.get_influencers.Request': 'ml/get_influencers/MlGetInfluencersRequest.ts#L26-L108', 'ml.get_influencers.Response': 'ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29', -'ml.get_job_stats.Request': 'ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L68', +'ml.get_job_stats.Request': 'ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L70', 'ml.get_job_stats.Response': 'ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28', -'ml.get_jobs.Request': 'ml/get_jobs/MlGetJobsRequest.ts#L23-L78', +'ml.get_jobs.Request': 'ml/get_jobs/MlGetJobsRequest.ts#L23-L80', 'ml.get_jobs.Response': 'ml/get_jobs/MlGetJobsResponse.ts#L23-L28', 'ml.get_memory_stats.JvmStats': 'ml/get_memory_stats/types.ts#L50-L63', 'ml.get_memory_stats.MemMlStats': 'ml/get_memory_stats/types.ts#L90-L111', 'ml.get_memory_stats.MemStats': 'ml/get_memory_stats/types.ts#L65-L88', 'ml.get_memory_stats.Memory': 'ml/get_memory_stats/types.ts#L25-L48', -'ml.get_memory_stats.Request': 'ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L66', +'ml.get_memory_stats.Request': 'ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L68', 'ml.get_memory_stats.Response': 'ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31', -'ml.get_model_snapshot_upgrade_stats.Request': 'ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L65', +'ml.get_model_snapshot_upgrade_stats.Request': 'ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L67', 'ml.get_model_snapshot_upgrade_stats.Response': 'ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28', -'ml.get_model_snapshots.Request': 'ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108', +'ml.get_model_snapshots.Request': 'ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L111', 'ml.get_model_snapshots.Response': 'ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28', -'ml.get_overall_buckets.Request': 'ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153', +'ml.get_overall_buckets.Request': 'ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L155', 'ml.get_overall_buckets.Response': 'ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29', -'ml.get_records.Request': 'ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135', +'ml.get_records.Request': 'ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L138', 'ml.get_records.Response': 'ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28', -'ml.get_trained_models.Request': 'ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L104', +'ml.get_trained_models.Request': 'ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L106', 'ml.get_trained_models.Response': 'ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34', -'ml.get_trained_models_stats.Request': 'ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L77', +'ml.get_trained_models_stats.Request': 'ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L79', 'ml.get_trained_models_stats.Response': 'ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33', -'ml.infer_trained_model.Request': 'ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67', +'ml.infer_trained_model.Request': 'ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L70', 'ml.infer_trained_model.Response': 'ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26', 'ml.info.AnomalyDetectors': 'ml/info/types.ts#L46-L52', 'ml.info.Datafeeds': 'ml/info/types.ts#L42-L44', 'ml.info.Defaults': 'ml/info/types.ts#L24-L27', 'ml.info.Limits': 'ml/info/types.ts#L34-L40', 'ml.info.NativeCode': 'ml/info/types.ts#L29-L32', -'ml.info.Request': 'ml/info/MlInfoRequest.ts#L22-L44', +'ml.info.Request': 'ml/info/MlInfoRequest.ts#L23-L47', 'ml.info.Response': 'ml/info/MlInfoResponse.ts#L22-L29', -'ml.open_job.Request': 'ml/open_job/MlOpenJobRequest.ts#L24-L67', +'ml.open_job.Request': 'ml/open_job/MlOpenJobRequest.ts#L24-L69', 'ml.open_job.Response': 'ml/open_job/MlOpenJobResponse.ts#L22-L31', -'ml.post_calendar_events.Request': 'ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48', +'ml.post_calendar_events.Request': 'ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L51', 'ml.post_calendar_events.Response': 'ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24', -'ml.post_data.Request': 'ml/post_data/MlPostJobDataRequest.ts#L24-L77', +'ml.post_data.Request': 'ml/post_data/MlPostJobDataRequest.ts#L24-L79', 'ml.post_data.Response': 'ml/post_data/MlPostJobDataResponse.ts#L24-L45', 'ml.preview_data_frame_analytics.DataframePreviewConfig': 'ml/preview_data_frame_analytics/types.ts#L27-L33', -'ml.preview_data_frame_analytics.Request': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60', +'ml.preview_data_frame_analytics.Request': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L63', 'ml.preview_data_frame_analytics.Response': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28', -'ml.preview_datafeed.Request': 'ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81', +'ml.preview_datafeed.Request': 'ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L86', 'ml.preview_datafeed.Response': 'ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23', -'ml.put_calendar.Request': 'ml/put_calendar/MlPutCalendarRequest.ts#L23-L51', +'ml.put_calendar.Request': 'ml/put_calendar/MlPutCalendarRequest.ts#L23-L54', 'ml.put_calendar.Response': 'ml/put_calendar/MlPutCalendarResponse.ts#L22-L31', -'ml.put_calendar_job.Request': 'ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L45', +'ml.put_calendar_job.Request': 'ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L47', 'ml.put_calendar_job.Response': 'ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31', -'ml.put_data_frame_analytics.Request': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155', +'ml.put_data_frame_analytics.Request': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L36-L164', 'ml.put_data_frame_analytics.Response': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47', -'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184', +'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L38-L188', 'ml.put_datafeed.Response': 'ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49', -'ml.put_filter.Request': 'ml/put_filter/MlPutFilterRequest.ts#L23-L58', +'ml.put_filter.Request': 'ml/put_filter/MlPutFilterRequest.ts#L23-L61', 'ml.put_filter.Response': 'ml/put_filter/MlPutFilterResponse.ts#L22-L28', -'ml.put_job.Request': 'ml/put_job/MlPutJobRequest.ts#L30-L151', +'ml.put_job.Request': 'ml/put_job/MlPutJobRequest.ts#L30-L153', 'ml.put_job.Response': 'ml/put_job/MlPutJobResponse.ts#L29-L52', 'ml.put_trained_model.AggregateOutput': 'ml/put_trained_model/types.ts#L101-L106', 'ml.put_trained_model.Definition': 'ml/put_trained_model/types.ts#L24-L29', @@ -2527,56 +2588,56 @@ 'ml.put_trained_model.Input': 'ml/put_trained_model/types.ts#L56-L58', 'ml.put_trained_model.OneHotEncodingPreprocessor': 'ml/put_trained_model/types.ts#L44-L47', 'ml.put_trained_model.Preprocessor': 'ml/put_trained_model/types.ts#L31-L36', -'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L137', +'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L140', 'ml.put_trained_model.Response': 'ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L25', 'ml.put_trained_model.TargetMeanEncodingPreprocessor': 'ml/put_trained_model/types.ts#L49-L54', 'ml.put_trained_model.TrainedModel': 'ml/put_trained_model/types.ts#L60-L72', 'ml.put_trained_model.TrainedModelTree': 'ml/put_trained_model/types.ts#L74-L79', 'ml.put_trained_model.TrainedModelTreeNode': 'ml/put_trained_model/types.ts#L81-L91', -'ml.put_trained_model.Weights': 'ml/put_trained_model/types.ts#L108-L110', -'ml.put_trained_model_alias.Request': 'ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L74', +'ml.put_trained_model.Weights': 'ml/put_trained_model/types.ts#L109-L111', +'ml.put_trained_model_alias.Request': 'ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L77', 'ml.put_trained_model_alias.Response': 'ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L25', -'ml.put_trained_model_definition_part.Request': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65', +'ml.put_trained_model_definition_part.Request': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L68', 'ml.put_trained_model_definition_part.Response': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L25', -'ml.put_trained_model_vocabulary.Request': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68', +'ml.put_trained_model_vocabulary.Request': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L71', 'ml.put_trained_model_vocabulary.Response': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L25', -'ml.reset_job.Request': 'ml/reset_job/MlResetJobRequest.ts#L23-L65', +'ml.reset_job.Request': 'ml/reset_job/MlResetJobRequest.ts#L23-L67', 'ml.reset_job.Response': 'ml/reset_job/MlResetJobResponse.ts#L22-L25', -'ml.revert_model_snapshot.Request': 'ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77', +'ml.revert_model_snapshot.Request': 'ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L80', 'ml.revert_model_snapshot.Response': 'ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24', -'ml.set_upgrade_mode.Request': 'ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L23-L64', +'ml.set_upgrade_mode.Request': 'ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L24-L67', 'ml.set_upgrade_mode.Response': 'ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L25', -'ml.start_data_frame_analytics.Request': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L68', +'ml.start_data_frame_analytics.Request': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L83', 'ml.start_data_frame_analytics.Response': 'ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34', -'ml.start_datafeed.Request': 'ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99', +'ml.start_datafeed.Request': 'ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L101', 'ml.start_datafeed.Response': 'ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34', -'ml.start_trained_model_deployment.Request': 'ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111', +'ml.start_trained_model_deployment.Request': 'ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L115', 'ml.start_trained_model_deployment.Response': 'ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26', -'ml.stop_data_frame_analytics.Request': 'ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L78', +'ml.stop_data_frame_analytics.Request': 'ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L113', 'ml.stop_data_frame_analytics.Response': 'ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22', -'ml.stop_datafeed.Request': 'ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86', +'ml.stop_datafeed.Request': 'ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L97', 'ml.stop_datafeed.Response': 'ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22', -'ml.stop_trained_model_deployment.Request': 'ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L61', +'ml.stop_trained_model_deployment.Request': 'ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L84', 'ml.stop_trained_model_deployment.Response': 'ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22', -'ml.update_data_frame_analytics.Request': 'ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80', +'ml.update_data_frame_analytics.Request': 'ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L83', 'ml.update_data_frame_analytics.Response': 'ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45', -'ml.update_datafeed.Request': 'ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L164', +'ml.update_datafeed.Request': 'ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L167', 'ml.update_datafeed.Response': 'ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L52', -'ml.update_filter.Request': 'ml/update_filter/MlUpdateFilterRequest.ts#L23-L60', +'ml.update_filter.Request': 'ml/update_filter/MlUpdateFilterRequest.ts#L23-L63', 'ml.update_filter.Response': 'ml/update_filter/MlUpdateFilterResponse.ts#L22-L28', -'ml.update_job.Request': 'ml/update_job/MlUpdateJobRequest.ts#L33-L147', +'ml.update_job.Request': 'ml/update_job/MlUpdateJobRequest.ts#L33-L150', 'ml.update_job.Response': 'ml/update_job/MlUpdateJobResponse.ts#L29-L53', -'ml.update_model_snapshot.Request': 'ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63', +'ml.update_model_snapshot.Request': 'ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L66', 'ml.update_model_snapshot.Response': 'ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27', -'ml.update_trained_model_deployment.Request': 'ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78', +'ml.update_trained_model_deployment.Request': 'ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L81', 'ml.update_trained_model_deployment.Response': 'ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26', -'ml.upgrade_job_snapshot.Request': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L72', +'ml.upgrade_job_snapshot.Request': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L74', 'ml.upgrade_job_snapshot.Response': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31', -'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L52', +'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L56', 'ml.validate.Response': 'ml/validate/MlValidateJobResponse.ts#L22-L25', -'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40', +'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L24-L44', 'ml.validate_detector.Response': 'ml/validate_detector/MlValidateDetectorResponse.ts#L22-L25', -'monitoring.bulk.Request': 'monitoring/bulk/BulkMonitoringRequest.ts#L24-L73', +'monitoring.bulk.Request': 'monitoring/bulk/BulkMonitoringRequest.ts#L25-L63', 'monitoring.bulk.Response': 'monitoring/bulk/BulkMonitoringResponse.ts#L23-L32', 'nodes._types.AdaptiveSelection': 'nodes/_types/Stats.ts#L441-L470', 'nodes._types.Breaker': 'nodes/_types/Stats.ts#L472-L497', @@ -2588,7 +2649,7 @@ 'nodes._types.ClusterAppliedStats': 'nodes/_types/Stats.ts#L223-L225', 'nodes._types.ClusterStateQueue': 'nodes/_types/Stats.ts#L250-L263', 'nodes._types.ClusterStateUpdate': 'nodes/_types/Stats.ts#L280-L345', -'nodes._types.Context': 'nodes/_types/Stats.ts#L1075-L1080', +'nodes._types.Context': 'nodes/_types/Stats.ts#L1076-L1081', 'nodes._types.Cpu': 'nodes/_types/Stats.ts#L577-L586', 'nodes._types.CpuAcct': 'nodes/_types/Stats.ts#L514-L523', 'nodes._types.DataPathStats': 'nodes/_types/Stats.ts#L588-L632', @@ -2616,7 +2677,7 @@ 'nodes._types.KeyedProcessor': 'nodes/_types/Stats.ts#L417-L420', 'nodes._types.MemoryStats': 'nodes/_types/Stats.ts#L634-L658', 'nodes._types.NodeBufferPool': 'nodes/_types/Stats.ts#L861-L882', -'nodes._types.NodeReloadResult': 'nodes/_types/NodeReloadResult.ts#L23-L26', +'nodes._types.NodeReloadResult': 'nodes/_types/NodeReloadResult.ts#L24-L43', 'nodes._types.NodesResponseBase': 'nodes/_types/NodesResponseBase.ts#L22-L29', 'nodes._types.OperatingSystem': 'nodes/_types/Stats.ts#L1023-L1029', 'nodes._types.Pool': 'nodes/_types/Stats.ts#L956-L973', @@ -2628,86 +2689,93 @@ 'nodes._types.RepositoryLocation': 'nodes/_types/RepositoryMeteringInformation.ts#L68-L74', 'nodes._types.RepositoryMeteringInformation': 'nodes/_types/RepositoryMeteringInformation.ts#L24-L66', 'nodes._types.RequestCounts': 'nodes/_types/RepositoryMeteringInformation.ts#L76-L103', -'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1109-L1123', +'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1110-L1124', 'nodes._types.Scripting': 'nodes/_types/Stats.ts#L1055-L1073', 'nodes._types.SerializedClusterState': 'nodes/_types/Stats.ts#L234-L240', 'nodes._types.SerializedClusterStateDetail': 'nodes/_types/Stats.ts#L242-L248', 'nodes._types.SizeHttpHistogram': 'nodes/_types/Stats.ts#L716-L720', 'nodes._types.Stats': 'nodes/_types/Stats.ts#L30-L114', -'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1082-L1107', +'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1083-L1108', 'nodes._types.TimeHttpHistogram': 'nodes/_types/Stats.ts#L710-L714', -'nodes._types.Transport': 'nodes/_types/Stats.ts#L1125-L1168', -'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1170-L1184', -'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L52', +'nodes._types.Transport': 'nodes/_types/Stats.ts#L1126-L1169', +'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1171-L1185', +'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L54', 'nodes.clear_repositories_metering_archive.Response': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L40', 'nodes.clear_repositories_metering_archive.ResponseBase': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L25-L35', -'nodes.get_repositories_metering_info.Request': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L49', +'nodes.get_repositories_metering_info.Request': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L51', 'nodes.get_repositories_metering_info.Response': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39', 'nodes.get_repositories_metering_info.ResponseBase': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L25-L34', 'nodes.hot_threads.Request': 'nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L94', +<<<<<<< HEAD +======= +'nodes.hot_threads.Response': 'nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22', +>>>>>>> 860bcb875 ([codegen] update to latest spec) 'nodes.info.DeprecationIndexing': 'nodes/info/types.ts#L154-L157', 'nodes.info.NodeInfo': 'nodes/info/types.ts#L32-L72', -'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L194-L196', -'nodes.info.NodeInfoAggregation': 'nodes/info/types.ts#L250-L252', -'nodes.info.NodeInfoBootstrap': 'nodes/info/types.ts#L214-L216', -'nodes.info.NodeInfoClient': 'nodes/info/types.ts#L198-L200', -'nodes.info.NodeInfoDiscover': 'nodes/info/types.ts#L183-L192', -'nodes.info.NodeInfoHttp': 'nodes/info/types.ts#L326-L331', -'nodes.info.NodeInfoIngest': 'nodes/info/types.ts#L242-L244', +'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L195-L197', +'nodes.info.NodeInfoAggregation': 'nodes/info/types.ts#L253-L255', +'nodes.info.NodeInfoBootstrap': 'nodes/info/types.ts#L217-L219', +'nodes.info.NodeInfoClient': 'nodes/info/types.ts#L199-L201', +'nodes.info.NodeInfoDiscover': 'nodes/info/types.ts#L184-L193', +'nodes.info.NodeInfoHttp': 'nodes/info/types.ts#L329-L334', +'nodes.info.NodeInfoIngest': 'nodes/info/types.ts#L245-L247', 'nodes.info.NodeInfoIngestDownloader': 'nodes/info/types.ts#L138-L140', 'nodes.info.NodeInfoIngestInfo': 'nodes/info/types.ts#L134-L136', -'nodes.info.NodeInfoIngestProcessor': 'nodes/info/types.ts#L246-L248', -'nodes.info.NodeInfoJvmMemory': 'nodes/info/types.ts#L333-L344', -'nodes.info.NodeInfoMemory': 'nodes/info/types.ts#L346-L349', -'nodes.info.NodeInfoOSCPU': 'nodes/info/types.ts#L351-L360', -'nodes.info.NodeInfoPath': 'nodes/info/types.ts#L168-L173', -'nodes.info.NodeInfoRepositories': 'nodes/info/types.ts#L175-L177', -'nodes.info.NodeInfoRepositoriesUrl': 'nodes/info/types.ts#L179-L181', -'nodes.info.NodeInfoScript': 'nodes/info/types.ts#L304-L307', -'nodes.info.NodeInfoSearch': 'nodes/info/types.ts#L309-L311', -'nodes.info.NodeInfoSearchRemote': 'nodes/info/types.ts#L313-L315', +'nodes.info.NodeInfoIngestProcessor': 'nodes/info/types.ts#L249-L251', +'nodes.info.NodeInfoJvmMemory': 'nodes/info/types.ts#L336-L347', +'nodes.info.NodeInfoMemory': 'nodes/info/types.ts#L349-L352', +'nodes.info.NodeInfoOSCPU': 'nodes/info/types.ts#L354-L363', +'nodes.info.NodeInfoPath': 'nodes/info/types.ts#L169-L174', +'nodes.info.NodeInfoRepositories': 'nodes/info/types.ts#L176-L178', +'nodes.info.NodeInfoRepositoriesUrl': 'nodes/info/types.ts#L180-L182', +'nodes.info.NodeInfoScript': 'nodes/info/types.ts#L307-L310', +'nodes.info.NodeInfoSearch': 'nodes/info/types.ts#L312-L314', +'nodes.info.NodeInfoSearchRemote': 'nodes/info/types.ts#L316-L318', 'nodes.info.NodeInfoSettings': 'nodes/info/types.ts#L79-L95', 'nodes.info.NodeInfoSettingsCluster': 'nodes/info/types.ts#L142-L152', -'nodes.info.NodeInfoSettingsClusterElection': 'nodes/info/types.ts#L158-L160', -'nodes.info.NodeInfoSettingsHttp': 'nodes/info/types.ts#L202-L207', -'nodes.info.NodeInfoSettingsHttpType': 'nodes/info/types.ts#L209-L212', +'nodes.info.NodeInfoSettingsClusterElection': 'nodes/info/types.ts#L159-L161', +'nodes.info.NodeInfoSettingsHttp': 'nodes/info/types.ts#L203-L210', +'nodes.info.NodeInfoSettingsHttpType': 'nodes/info/types.ts#L212-L215', 'nodes.info.NodeInfoSettingsIngest': 'nodes/info/types.ts#L97-L132', -'nodes.info.NodeInfoSettingsNetwork': 'nodes/info/types.ts#L238-L240', -'nodes.info.NodeInfoSettingsNode': 'nodes/info/types.ts#L162-L166', -'nodes.info.NodeInfoSettingsTransport': 'nodes/info/types.ts#L218-L227', -'nodes.info.NodeInfoSettingsTransportFeatures': 'nodes/info/types.ts#L234-L236', -'nodes.info.NodeInfoSettingsTransportType': 'nodes/info/types.ts#L229-L232', -'nodes.info.NodeInfoTransport': 'nodes/info/types.ts#L362-L366', -'nodes.info.NodeInfoXpack': 'nodes/info/types.ts#L254-L259', -'nodes.info.NodeInfoXpackLicense': 'nodes/info/types.ts#L296-L298', -'nodes.info.NodeInfoXpackLicenseType': 'nodes/info/types.ts#L300-L302', -'nodes.info.NodeInfoXpackMl': 'nodes/info/types.ts#L268-L270', -'nodes.info.NodeInfoXpackSecurity': 'nodes/info/types.ts#L261-L266', -'nodes.info.NodeInfoXpackSecurityAuthc': 'nodes/info/types.ts#L276-L279', -'nodes.info.NodeInfoXpackSecurityAuthcRealms': 'nodes/info/types.ts#L281-L285', -'nodes.info.NodeInfoXpackSecurityAuthcRealmsStatus': 'nodes/info/types.ts#L291-L294', -'nodes.info.NodeInfoXpackSecurityAuthcToken': 'nodes/info/types.ts#L287-L289', -'nodes.info.NodeInfoXpackSecuritySsl': 'nodes/info/types.ts#L272-L274', -'nodes.info.NodeJvmInfo': 'nodes/info/types.ts#L368-L381', -'nodes.info.NodeOperatingSystemInfo': 'nodes/info/types.ts#L383-L400', -'nodes.info.NodeProcessInfo': 'nodes/info/types.ts#L402-L409', -'nodes.info.NodeThreadPoolInfo': 'nodes/info/types.ts#L317-L324', +'nodes.info.NodeInfoSettingsNetwork': 'nodes/info/types.ts#L241-L243', +'nodes.info.NodeInfoSettingsNode': 'nodes/info/types.ts#L163-L167', +'nodes.info.NodeInfoSettingsTransport': 'nodes/info/types.ts#L221-L230', +'nodes.info.NodeInfoSettingsTransportFeatures': 'nodes/info/types.ts#L237-L239', +'nodes.info.NodeInfoSettingsTransportType': 'nodes/info/types.ts#L232-L235', +'nodes.info.NodeInfoTransport': 'nodes/info/types.ts#L365-L369', +'nodes.info.NodeInfoXpack': 'nodes/info/types.ts#L257-L262', +'nodes.info.NodeInfoXpackLicense': 'nodes/info/types.ts#L299-L301', +'nodes.info.NodeInfoXpackLicenseType': 'nodes/info/types.ts#L303-L305', +'nodes.info.NodeInfoXpackMl': 'nodes/info/types.ts#L271-L273', +'nodes.info.NodeInfoXpackSecurity': 'nodes/info/types.ts#L264-L269', +'nodes.info.NodeInfoXpackSecurityAuthc': 'nodes/info/types.ts#L279-L282', +'nodes.info.NodeInfoXpackSecurityAuthcRealms': 'nodes/info/types.ts#L284-L288', +'nodes.info.NodeInfoXpackSecurityAuthcRealmsStatus': 'nodes/info/types.ts#L294-L297', +'nodes.info.NodeInfoXpackSecurityAuthcToken': 'nodes/info/types.ts#L290-L292', +'nodes.info.NodeInfoXpackSecuritySsl': 'nodes/info/types.ts#L275-L277', +'nodes.info.NodeJvmInfo': 'nodes/info/types.ts#L371-L385', +'nodes.info.NodeOperatingSystemInfo': 'nodes/info/types.ts#L387-L404', +'nodes.info.NodeProcessInfo': 'nodes/info/types.ts#L406-L413', +'nodes.info.NodeThreadPoolInfo': 'nodes/info/types.ts#L320-L327', +'nodes.info.NodesInfoMetric': 'nodes/info/NodesInfoRequest.ts#L74-L89', 'nodes.info.RemoveClusterServer': 'nodes/info/types.ts#L74-L77', -'nodes.info.Request': 'nodes/info/NodesInfoRequest.ts#L24-L71', +'nodes.info.Request': 'nodes/info/NodesInfoRequest.ts#L24-L72', 'nodes.info.Response': 'nodes/info/NodesInfoResponse.ts#L30-L33', 'nodes.info.ResponseBase': 'nodes/info/NodesInfoResponse.ts#L25-L28', -'nodes.reload_secure_settings.Request': 'nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70', +'nodes.reload_secure_settings.Request': 'nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L72', 'nodes.reload_secure_settings.Response': 'nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L33', 'nodes.reload_secure_settings.ResponseBase': 'nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L25-L28', -'nodes.stats.Request': 'nodes/stats/NodesStatsRequest.ts#L24-L102', +'nodes.stats.NodeStatsMetric': 'nodes/stats/NodesStatsRequest.ts#L112-L133', +'nodes.stats.Request': 'nodes/stats/NodesStatsRequest.ts#L30-L110', 'nodes.stats.Response': 'nodes/stats/NodesStatsResponse.ts#L30-L33', 'nodes.stats.ResponseBase': 'nodes/stats/NodesStatsResponse.ts#L25-L28', 'nodes.usage.NodeUsage': 'nodes/usage/types.ts#L25-L30', -'nodes.usage.Request': 'nodes/usage/NodesUsageRequest.ts#L24-L68', +'nodes.usage.NodesUsageMetric': 'nodes/usage/NodesUsageRequest.ts#L76-L80', +'nodes.usage.Request': 'nodes/usage/NodesUsageRequest.ts#L24-L74', 'nodes.usage.Response': 'nodes/usage/NodesUsageResponse.ts#L30-L33', 'nodes.usage.ResponseBase': 'nodes/usage/NodesUsageResponse.ts#L25-L28', 'project.tags.ProjectTags': 'project/tags/TagsResponse.ts#L33-L36', -'project.tags.Request': 'project/tags/TagsRequest.ts#L22-L38', +'project.tags.Request': 'project/tags/TagsRequest.ts#L23-L48', 'project.tags.Response': 'project/tags/TagsResponse.ts#L38-L43', 'project.tags.Tags': 'project/tags/TagsResponse.ts#L23-L31', 'query_rules._types.QueryRule': 'query_rules/_types/QueryRuleset.ts#L36-L58', @@ -2716,23 +2784,23 @@ 'query_rules._types.QueryRuleCriteriaType': 'query_rules/_types/QueryRuleset.ts#L95-L108', 'query_rules._types.QueryRuleType': 'query_rules/_types/QueryRuleset.ts#L60-L63', 'query_rules._types.QueryRuleset': 'query_rules/_types/QueryRuleset.ts#L25-L34', -'query_rules.delete_rule.Request': 'query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L51', +'query_rules.delete_rule.Request': 'query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L53', 'query_rules.delete_rule.Response': 'query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L25', -'query_rules.delete_ruleset.Request': 'query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L46', +'query_rules.delete_ruleset.Request': 'query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L48', 'query_rules.delete_ruleset.Response': 'query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L25', -'query_rules.get_rule.Request': 'query_rules/get_rule/QueryRuleGetRequest.ts#L22-L50', +'query_rules.get_rule.Request': 'query_rules/get_rule/QueryRuleGetRequest.ts#L22-L52', 'query_rules.get_rule.Response': 'query_rules/get_rule/QueryRuleGetResponse.ts#L22-L25', -'query_rules.get_ruleset.Request': 'query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L45', +'query_rules.get_ruleset.Request': 'query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L47', 'query_rules.get_ruleset.Response': 'query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L25', 'query_rules.list_rulesets.QueryRulesetListItem': 'query_rules/list_rulesets/types.ts#L23-L44', -'query_rules.list_rulesets.Request': 'query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L51', +'query_rules.list_rulesets.Request': 'query_rules/list_rulesets/QueryRulesetListRequest.ts#L23-L54', 'query_rules.list_rulesets.Response': 'query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28', -'query_rules.put_rule.Request': 'query_rules/put_rule/QueryRulePutRequest.ts#L28-L80', +'query_rules.put_rule.Request': 'query_rules/put_rule/QueryRulePutRequest.ts#L28-L83', 'query_rules.put_rule.Response': 'query_rules/put_rule/QueryRulePutResponse.ts#L22-L26', -'query_rules.put_ruleset.Request': 'query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59', +'query_rules.put_ruleset.Request': 'query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L62', 'query_rules.put_ruleset.Response': 'query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26', 'query_rules.test.QueryRulesetMatchedRule': 'query_rules/test/QueryRulesetTestResponse.ts#L30-L39', -'query_rules.test.Request': 'query_rules/test/QueryRulesetTestRequest.ts#L24-L57', +'query_rules.test.Request': 'query_rules/test/QueryRulesetTestRequest.ts#L24-L60', 'query_rules.test.Response': 'query_rules/test/QueryRulesetTestResponse.ts#L23-L28', 'rollup._types.DateHistogramGrouping': 'rollup/_types/Groupings.ts#L42-L73', 'rollup._types.FieldMetric': 'rollup/_types/Metric.ts#L30-L35', @@ -2740,32 +2808,32 @@ 'rollup._types.HistogramGrouping': 'rollup/_types/Groupings.ts#L84-L97', 'rollup._types.Metric': 'rollup/_types/Metric.ts#L22-L28', 'rollup._types.TermsGrouping': 'rollup/_types/Groupings.ts#L75-L82', -'rollup.delete_job.Request': 'rollup/delete_job/DeleteRollupJobRequest.ts#L23-L67', +'rollup.delete_job.Request': 'rollup/delete_job/DeleteRollupJobRequest.ts#L23-L68', 'rollup.delete_job.Response': 'rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27', 'rollup.get_jobs.IndexingJobState': 'rollup/get_jobs/types.ts#L77-L83', -'rollup.get_jobs.Request': 'rollup/get_jobs/GetRollupJobRequest.ts#L23-L54', +'rollup.get_jobs.Request': 'rollup/get_jobs/GetRollupJobRequest.ts#L23-L56', 'rollup.get_jobs.Response': 'rollup/get_jobs/GetRollupJobResponse.ts#L22-L24', 'rollup.get_jobs.RollupJob': 'rollup/get_jobs/types.ts#L28-L43', 'rollup.get_jobs.RollupJobConfiguration': 'rollup/get_jobs/types.ts#L45-L54', 'rollup.get_jobs.RollupJobStats': 'rollup/get_jobs/types.ts#L56-L69', 'rollup.get_jobs.RollupJobStatus': 'rollup/get_jobs/types.ts#L71-L75', -'rollup.get_rollup_caps.Request': 'rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L57', +'rollup.get_rollup_caps.Request': 'rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L59', 'rollup.get_rollup_caps.Response': 'rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27', 'rollup.get_rollup_caps.RollupCapabilities': 'rollup/get_rollup_caps/types.ts#L24-L29', 'rollup.get_rollup_caps.RollupCapabilitySummary': 'rollup/get_rollup_caps/types.ts#L31-L36', 'rollup.get_rollup_caps.RollupFieldSummary': 'rollup/get_rollup_caps/types.ts#L38-L42', 'rollup.get_rollup_index_caps.IndexCapabilities': 'rollup/get_rollup_index_caps/types.ts#L24-L26', -'rollup.get_rollup_index_caps.Request': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L50', +'rollup.get_rollup_index_caps.Request': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L52', 'rollup.get_rollup_index_caps.Response': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27', 'rollup.get_rollup_index_caps.RollupJobSummary': 'rollup/get_rollup_index_caps/types.ts#L28-L33', 'rollup.get_rollup_index_caps.RollupJobSummaryField': 'rollup/get_rollup_index_caps/types.ts#L35-L39', -'rollup.put_job.Request': 'rollup/put_job/CreateRollupJobRequest.ts#L27-L105', +'rollup.put_job.Request': 'rollup/put_job/CreateRollupJobRequest.ts#L27-L107', 'rollup.put_job.Response': 'rollup/put_job/CreateRollupJobResponse.ts#L22-L25', -'rollup.rollup_search.Request': 'rollup/rollup_search/RollupSearchRequest.ts#L27-L89', +'rollup.rollup_search.Request': 'rollup/rollup_search/RollupSearchRequest.ts#L27-L97', 'rollup.rollup_search.Response': 'rollup/rollup_search/RollupSearchResponse.ts#L27-L36', -'rollup.start_job.Request': 'rollup/start_job/StartRollupJobRequest.ts#L23-L46', +'rollup.start_job.Request': 'rollup/start_job/StartRollupJobRequest.ts#L23-L48', 'rollup.start_job.Response': 'rollup/start_job/StartRollupJobResponse.ts#L20-L22', -'rollup.stop_job.Request': 'rollup/stop_job/StopRollupJobRequest.ts#L24-L73', +'rollup.stop_job.Request': 'rollup/stop_job/StopRollupJobRequest.ts#L24-L74', 'rollup.stop_job.Response': 'rollup/stop_job/StopRollupJobResponse.ts#L20-L22', 'search_application._types.AnalyticsCollection': 'search_application/_types/BehavioralAnalytics.ts#L22-L27', 'search_application._types.EventDataStream': 'search_application/_types/BehavioralAnalytics.ts#L29-L31', @@ -2773,38 +2841,38 @@ 'search_application._types.SearchApplication': 'search_application/_types/SearchApplication.ts#L24-L33', 'search_application._types.SearchApplicationParameters': 'search_application/_types/SearchApplicationParameters.ts#L23-L36', 'search_application._types.SearchApplicationTemplate': 'search_application/_types/SearchApplicationTemplate.ts#L22-L27', -'search_application.delete.Request': 'search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L46', +'search_application.delete.Request': 'search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L47', 'search_application.delete.Response': 'search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L25', -'search_application.delete_behavioral_analytics.Request': 'search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L45', +'search_application.delete_behavioral_analytics.Request': 'search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L47', 'search_application.delete_behavioral_analytics.Response': 'search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L25', -'search_application.get.Request': 'search_application/get/SearchApplicationsGetRequest.ts#L22-L43', +'search_application.get.Request': 'search_application/get/SearchApplicationsGetRequest.ts#L22-L45', 'search_application.get.Response': 'search_application/get/SearchApplicationsGetResponse.ts#L22-L25', -'search_application.get_behavioral_analytics.Request': 'search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L48', +'search_application.get_behavioral_analytics.Request': 'search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L50', 'search_application.get_behavioral_analytics.Response': 'search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27', -'search_application.list.Request': 'search_application/list/SearchApplicationsListRequest.ts#L22-L53', +'search_application.list.Request': 'search_application/list/SearchApplicationsListRequest.ts#L23-L56', 'search_application.list.Response': 'search_application/list/SearchApplicationsListResponse.ts#L23-L28', -'search_application.post_behavioral_analytics_event.Request': 'search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L58', +'search_application.post_behavioral_analytics_event.Request': 'search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L61', 'search_application.post_behavioral_analytics_event.Response': 'search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47', -'search_application.put.Request': 'search_application/put/SearchApplicationsPutRequest.ts#L23-L57', +'search_application.put.Request': 'search_application/put/SearchApplicationsPutRequest.ts#L23-L60', 'search_application.put.Response': 'search_application/put/SearchApplicationsPutResponse.ts#L22-L26', 'search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L28-L33', -'search_application.put_behavioral_analytics.Request': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L44', +'search_application.put_behavioral_analytics.Request': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L46', 'search_application.put_behavioral_analytics.Response': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L26', -'search_application.render_query.Request': 'search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54', +'search_application.render_query.Request': 'search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L57', 'search_application.render_query.Response': 'search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22', -'search_application.search.Request': 'search_application/search/SearchApplicationsSearchRequest.ts#L24-L61', +'search_application.search.Request': 'search_application/search/SearchApplicationsSearchRequest.ts#L24-L64', 'search_application.search.Response': 'search_application/search/SearchApplicationsSearchResponse.ts#L22-L25', 'searchable_snapshots._types.StatsLevel': 'searchable_snapshots/_types/stats.ts#L20-L24', 'searchable_snapshots.cache_stats.Node': 'searchable_snapshots/cache_stats/Response.ts#L30-L32', -'searchable_snapshots.cache_stats.Request': 'searchable_snapshots/cache_stats/Request.ts#L24-L53', +'searchable_snapshots.cache_stats.Request': 'searchable_snapshots/cache_stats/Request.ts#L24-L55', 'searchable_snapshots.cache_stats.Response': 'searchable_snapshots/cache_stats/Response.ts#L24-L28', 'searchable_snapshots.cache_stats.Shared': 'searchable_snapshots/cache_stats/Response.ts#L34-L43', -'searchable_snapshots.clear_cache.Request': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L56', +'searchable_snapshots.clear_cache.Request': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L69', 'searchable_snapshots.clear_cache.Response': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25', 'searchable_snapshots.mount.MountedSnapshot': 'searchable_snapshots/mount/types.ts#L23-L27', -'searchable_snapshots.mount.Request': 'searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92', +'searchable_snapshots.mount.Request': 'searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L95', 'searchable_snapshots.mount.Response': 'searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26', -'searchable_snapshots.stats.Request': 'searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L55', +'searchable_snapshots.stats.Request': 'searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L58', 'searchable_snapshots.stats.Response': 'searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27', 'security._types.Access': 'security/_types/Access.ts#L22-L31', 'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L120', @@ -2850,184 +2918,184 @@ 'security._types.UserProfileHitMetadata': 'security/_types/UserProfile.ts#L27-L30', 'security._types.UserProfileUser': 'security/_types/UserProfile.ts#L32-L39', 'security._types.UserProfileWithMetadata': 'security/_types/UserProfile.ts#L49-L52', -'security.activate_user_profile.Request': 'security/activate_user_profile/Request.ts#L23-L76', +'security.activate_user_profile.Request': 'security/activate_user_profile/Request.ts#L24-L79', 'security.activate_user_profile.Response': 'security/activate_user_profile/Response.ts#L22-L25', 'security.authenticate.AuthenticateApiKey': 'security/authenticate/SecurityAuthenticateResponse.ts#L45-L50', -'security.authenticate.Request': 'security/authenticate/SecurityAuthenticateRequest.ts#L22-L41', +'security.authenticate.Request': 'security/authenticate/SecurityAuthenticateRequest.ts#L23-L43', 'security.authenticate.Response': 'security/authenticate/SecurityAuthenticateResponse.ts#L25-L43', 'security.authenticate.Token': 'security/authenticate/types.ts#L22-L29', -'security.bulk_delete_role.Request': 'security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50', +'security.bulk_delete_role.Request': 'security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L55', 'security.bulk_delete_role.Response': 'security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37', -'security.bulk_put_role.Request': 'security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52', +'security.bulk_put_role.Request': 'security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L57', 'security.bulk_put_role.Response': 'security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41', -'security.bulk_update_api_keys.Request': 'security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83', +'security.bulk_update_api_keys.Request': 'security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L86', 'security.bulk_update_api_keys.Response': 'security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28', -'security.change_password.Request': 'security/change_password/SecurityChangePasswordRequest.ts#L23-L65', +'security.change_password.Request': 'security/change_password/SecurityChangePasswordRequest.ts#L23-L70', 'security.change_password.Response': 'security/change_password/SecurityChangePasswordResponse.ts#L20-L22', -'security.clear_api_key_cache.Request': 'security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L49', +'security.clear_api_key_cache.Request': 'security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L50', 'security.clear_api_key_cache.Response': 'security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32', -'security.clear_cached_privileges.Request': 'security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L49', +'security.clear_cached_privileges.Request': 'security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L50', 'security.clear_cached_privileges.Response': 'security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32', -'security.clear_cached_realms.Request': 'security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L60', +'security.clear_cached_realms.Request': 'security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L61', 'security.clear_cached_realms.Response': 'security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32', -'security.clear_cached_roles.Request': 'security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L48', +'security.clear_cached_roles.Request': 'security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L49', 'security.clear_cached_roles.Response': 'security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32', -'security.clear_cached_service_tokens.Request': 'security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L58', +'security.clear_cached_service_tokens.Request': 'security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L59', 'security.clear_cached_service_tokens.Response': 'security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32', -'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86', +'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L91', 'security.create_api_key.Response': 'security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50', -'security.create_cross_cluster_api_key.Request': 'security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L86', +'security.create_cross_cluster_api_key.Request': 'security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L88', 'security.create_cross_cluster_api_key.Response': 'security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48', -'security.create_service_token.Request': 'security/create_service_token/CreateServiceTokenRequest.ts#L23-L72', +'security.create_service_token.Request': 'security/create_service_token/CreateServiceTokenRequest.ts#L23-L76', 'security.create_service_token.Response': 'security/create_service_token/CreateServiceTokenResponse.ts#L22-L30', 'security.create_service_token.Token': 'security/create_service_token/types.ts#L22-L25', 'security.delegate_pki.Authentication': 'security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55', 'security.delegate_pki.AuthenticationRealm': 'security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61', -'security.delegate_pki.Request': 'security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57', +'security.delegate_pki.Request': 'security/delegate_pki/SecurityDelegatePkiRequest.ts#L23-L59', 'security.delegate_pki.Response': 'security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41', 'security.delete_privileges.FoundStatus': 'security/delete_privileges/types.ts#L20-L22', -'security.delete_privileges.Request': 'security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L58', +'security.delete_privileges.Request': 'security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L62', 'security.delete_privileges.Response': 'security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26', -'security.delete_role.Request': 'security/delete_role/SecurityDeleteRoleRequest.ts#L23-L49', +'security.delete_role.Request': 'security/delete_role/SecurityDeleteRoleRequest.ts#L23-L53', 'security.delete_role.Response': 'security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28', -'security.delete_role_mapping.Request': 'security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L53', +'security.delete_role_mapping.Request': 'security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L57', 'security.delete_role_mapping.Response': 'security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28', -'security.delete_service_token.Request': 'security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L58', +'security.delete_service_token.Request': 'security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L62', 'security.delete_service_token.Response': 'security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28', -'security.delete_user.Request': 'security/delete_user/SecurityDeleteUserRequest.ts#L23-L48', +'security.delete_user.Request': 'security/delete_user/SecurityDeleteUserRequest.ts#L23-L52', 'security.delete_user.Response': 'security/delete_user/SecurityDeleteUserResponse.ts#L20-L28', -'security.disable_user.Request': 'security/disable_user/SecurityDisableUserRequest.ts#L23-L50', +'security.disable_user.Request': 'security/disable_user/SecurityDisableUserRequest.ts#L23-L54', 'security.disable_user.Response': 'security/disable_user/SecurityDisableUserResponse.ts#L20-L22', -'security.disable_user_profile.Request': 'security/disable_user_profile/Request.ts#L24-L63', +'security.disable_user_profile.Request': 'security/disable_user_profile/Request.ts#L24-L64', 'security.disable_user_profile.Response': 'security/disable_user_profile/Response.ts#L22-L25', -'security.enable_user.Request': 'security/enable_user/SecurityEnableUserRequest.ts#L23-L49', +'security.enable_user.Request': 'security/enable_user/SecurityEnableUserRequest.ts#L23-L53', 'security.enable_user.Response': 'security/enable_user/SecurityEnableUserResponse.ts#L20-L22', -'security.enable_user_profile.Request': 'security/enable_user_profile/Request.ts#L24-L64', +'security.enable_user_profile.Request': 'security/enable_user_profile/Request.ts#L24-L65', 'security.enable_user_profile.Response': 'security/enable_user_profile/Response.ts#L22-L25', -'security.enroll_kibana.Request': 'security/enroll_kibana/Request.ts#L22-L40', +'security.enroll_kibana.Request': 'security/enroll_kibana/Request.ts#L23-L43', 'security.enroll_kibana.Response': 'security/enroll_kibana/Response.ts#L20-L29', 'security.enroll_kibana.Token': 'security/enroll_kibana/Response.ts#L31-L41', -'security.enroll_node.Request': 'security/enroll_node/Request.ts#L22-L40', +'security.enroll_node.Request': 'security/enroll_node/Request.ts#L23-L43', 'security.enroll_node.Response': 'security/enroll_node/Response.ts#L20-L47', -'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L95', +'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L96', 'security.get_api_key.Response': 'security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24', -'security.get_builtin_privileges.Request': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L40', +'security.get_builtin_privileges.Request': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L23-L42', 'security.get_builtin_privileges.Response': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42', -'security.get_privileges.Request': 'security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L65', +'security.get_privileges.Request': 'security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L66', 'security.get_privileges.Response': 'security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29', -'security.get_role.Request': 'security/get_role/SecurityGetRoleRequest.ts#L23-L54', +'security.get_role.Request': 'security/get_role/SecurityGetRoleRequest.ts#L23-L55', 'security.get_role.Response': 'security/get_role/SecurityGetRoleResponse.ts#L23-L31', 'security.get_role.Role': 'security/get_role/types.ts#L32-L54', -'security.get_role_mapping.Request': 'security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L53', +'security.get_role_mapping.Request': 'security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L54', 'security.get_role_mapping.Response': 'security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29', -'security.get_service_accounts.Request': 'security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L64', +'security.get_service_accounts.Request': 'security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L65', 'security.get_service_accounts.Response': 'security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29', 'security.get_service_accounts.RoleDescriptorWrapper': 'security/get_service_accounts/types.ts#L22-L24', 'security.get_service_credentials.NodesCredentials': 'security/get_service_credentials/types.ts#L23-L28', 'security.get_service_credentials.NodesCredentialsFileToken': 'security/get_service_credentials/types.ts#L30-L32', -'security.get_service_credentials.Request': 'security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L56', -'security.get_service_credentials.Response': 'security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34', -'security.get_settings.Request': 'security/get_settings/SecurityGetSettingsRequest.ts#L23-L52', +'security.get_service_credentials.Request': 'security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L57', +'security.get_service_credentials.Response': 'security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L35', +'security.get_settings.Request': 'security/get_settings/SecurityGetSettingsRequest.ts#L24-L55', 'security.get_settings.Response': 'security/get_settings/SecurityGetSettingsResponse.ts#L21-L36', -'security.get_stats.Request': 'security/get_stats/SecurityStatsRequest.ts#L22-L40', +'security.get_stats.Request': 'security/get_stats/SecurityStatsRequest.ts#L23-L43', 'security.get_stats.Response': 'security/get_stats/SecurityStatsResponse.ts#L24-L31', 'security.get_token.AccessTokenGrantType': 'security/get_token/types.ts#L23-L48', 'security.get_token.AuthenticatedUser': 'security/get_token/types.ts#L60-L65', 'security.get_token.AuthenticationProvider': 'security/get_token/types.ts#L55-L58', -'security.get_token.Request': 'security/get_token/GetUserAccessTokenRequest.ts#L25-L90', +'security.get_token.Request': 'security/get_token/GetUserAccessTokenRequest.ts#L25-L92', 'security.get_token.Response': 'security/get_token/GetUserAccessTokenResponse.ts#L23-L33', 'security.get_token.UserRealm': 'security/get_token/types.ts#L50-L53', -'security.get_user.Request': 'security/get_user/SecurityGetUserRequest.ts#L23-L56', +'security.get_user.Request': 'security/get_user/SecurityGetUserRequest.ts#L23-L57', 'security.get_user.Response': 'security/get_user/SecurityGetUserResponse.ts#L23-L30', -'security.get_user_privileges.Request': 'security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L22-L41', +'security.get_user_privileges.Request': 'security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L23-L43', 'security.get_user_privileges.Response': 'security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38', 'security.get_user_profile.GetUserProfileErrors': 'security/get_user_profile/types.ts#L25-L28', -'security.get_user_profile.Request': 'security/get_user_profile/Request.ts#L23-L59', +'security.get_user_profile.Request': 'security/get_user_profile/Request.ts#L24-L61', 'security.get_user_profile.Response': 'security/get_user_profile/Response.ts#L23-L33', 'security.grant_api_key.ApiKeyGrantType': 'security/grant_api_key/types.ts#L47-L50', 'security.grant_api_key.GrantApiKey': 'security/grant_api_key/types.ts#L25-L45', -'security.grant_api_key.Request': 'security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L102', +'security.grant_api_key.Request': 'security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L104', 'security.grant_api_key.Response': 'security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31', -'security.has_privileges.ApplicationPrivilegesCheck': 'security/has_privileges/types.ts#L24-L32', -'security.has_privileges.IndexPrivilegesCheck': 'security/has_privileges/types.ts#L34-L45', -'security.has_privileges.Request': 'security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59', +'security.has_privileges.ApplicationPrivilegesCheck': 'security/has_privileges/types.ts#L24-L34', +'security.has_privileges.IndexPrivilegesCheck': 'security/has_privileges/types.ts#L36-L47', +'security.has_privileges.Request': 'security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L62', 'security.has_privileges.Response': 'security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35', 'security.has_privileges_user_profile.HasPrivilegesUserProfileErrors': 'security/has_privileges_user_profile/types.ts#L39-L42', 'security.has_privileges_user_profile.PrivilegesCheck': 'security/has_privileges_user_profile/types.ts#L30-L37', -'security.has_privileges_user_profile.Request': 'security/has_privileges_user_profile/Request.ts#L24-L55', +'security.has_privileges_user_profile.Request': 'security/has_privileges_user_profile/Request.ts#L25-L58', 'security.has_privileges_user_profile.Response': 'security/has_privileges_user_profile/Response.ts#L23-L38', -'security.invalidate_api_key.Request': 'security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82', +'security.invalidate_api_key.Request': 'security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L84', 'security.invalidate_api_key.Response': 'security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46', -'security.invalidate_token.Request': 'security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71', +'security.invalidate_token.Request': 'security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L73', 'security.invalidate_token.Response': 'security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46', -'security.oidc_authenticate.Request': 'security/oidc_authenticate/Request.ts#L22-L61', +'security.oidc_authenticate.Request': 'security/oidc_authenticate/Request.ts#L23-L65', 'security.oidc_authenticate.Response': 'security/oidc_authenticate/Response.ts#L22-L41', -'security.oidc_logout.Request': 'security/oidc_logout/Request.ts#L22-L52', +'security.oidc_logout.Request': 'security/oidc_logout/Request.ts#L23-L55', 'security.oidc_logout.Response': 'security/oidc_logout/Response.ts#L20-L27', -'security.oidc_prepare_authentication.Request': 'security/oidc_prepare_authentication/Request.ts#L22-L71', +'security.oidc_prepare_authentication.Request': 'security/oidc_prepare_authentication/Request.ts#L23-L74', 'security.oidc_prepare_authentication.Response': 'security/oidc_prepare_authentication/Response.ts#L20-L30', -'security.put_privileges.Actions': 'security/put_privileges/types.ts#L22-L27', -'security.put_privileges.Request': 'security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67', +'security.put_privileges.Actions': 'security/put_privileges/types.ts#L23-L28', +'security.put_privileges.Request': 'security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L72', 'security.put_privileges.Response': 'security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28', -'security.put_role.Request': 'security/put_role/SecurityPutRoleRequest.ts#L32-L111', +'security.put_role.Request': 'security/put_role/SecurityPutRoleRequest.ts#L32-L116', 'security.put_role.Response': 'security/put_role/SecurityPutRoleResponse.ts#L22-L29', -'security.put_role_mapping.Request': 'security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103', +'security.put_role_mapping.Request': 'security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L108', 'security.put_role_mapping.Response': 'security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24', -'security.put_user.Request': 'security/put_user/SecurityPutUserRequest.ts#L23-L101', +'security.put_user.Request': 'security/put_user/SecurityPutUserRequest.ts#L29-L109', 'security.put_user.Response': 'security/put_user/SecurityPutUserResponse.ts#L20-L28', 'security.query_api_keys.ApiKeyAggregate': 'security/query_api_keys/types.ts#L122-L139', 'security.query_api_keys.ApiKeyAggregationContainer': 'security/query_api_keys/types.ts#L63-L120', 'security.query_api_keys.ApiKeyFiltersAggregation': 'security/query_api_keys/types.ts#L207-L227', 'security.query_api_keys.ApiKeyQueryContainer': 'security/query_api_keys/types.ts#L141-L205', -'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L26-L127', +'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L27-L130', 'security.query_api_keys.Response': 'security/query_api_keys/QueryApiKeysResponse.ts#L26-L45', 'security.query_role.QueryRole': 'security/query_role/types.ts#L103-L109', -'security.query_role.Request': 'security/query_role/QueryRolesRequest.ts#L25-L85', +'security.query_role.Request': 'security/query_role/QueryRolesRequest.ts#L26-L89', 'security.query_role.Response': 'security/query_role/QueryRolesResponse.ts#L23-L43', 'security.query_role.RoleQueryContainer': 'security/query_role/types.ts#L37-L101', 'security.query_user.QueryUser': 'security/query_user/types.ts#L103-L105', -'security.query_user.Request': 'security/query_user/SecurityQueryUserRequest.ts#L25-L91', +'security.query_user.Request': 'security/query_user/SecurityQueryUserRequest.ts#L26-L94', 'security.query_user.Response': 'security/query_user/SecurityQueryUserResponse.ts#L23-L38', 'security.query_user.UserQueryContainer': 'security/query_user/types.ts#L37-L101', -'security.saml_authenticate.Request': 'security/saml_authenticate/Request.ts#L23-L61', -'security.saml_authenticate.Response': 'security/saml_authenticate/Response.ts#L22-L45', -'security.saml_complete_logout.Request': 'security/saml_complete_logout/Request.ts#L23-L61', -'security.saml_invalidate.Request': 'security/saml_invalidate/Request.ts#L22-L61', +'security.saml_authenticate.Request': 'security/saml_authenticate/Request.ts#L23-L63', +'security.saml_authenticate.Response': 'security/saml_authenticate/Response.ts#L22-L49', +'security.saml_complete_logout.Request': 'security/saml_complete_logout/Request.ts#L23-L63', +'security.saml_invalidate.Request': 'security/saml_invalidate/Request.ts#L23-L64', 'security.saml_invalidate.Response': 'security/saml_invalidate/Response.ts#L22-L37', -'security.saml_logout.Request': 'security/saml_logout/Request.ts#L22-L57', +'security.saml_logout.Request': 'security/saml_logout/Request.ts#L23-L60', 'security.saml_logout.Response': 'security/saml_logout/Response.ts#L20-L28', -'security.saml_prepare_authentication.Request': 'security/saml_prepare_authentication/Request.ts#L22-L67', +'security.saml_prepare_authentication.Request': 'security/saml_prepare_authentication/Request.ts#L23-L70', 'security.saml_prepare_authentication.Response': 'security/saml_prepare_authentication/Response.ts#L22-L37', -'security.saml_service_provider_metadata.Request': 'security/saml_service_provider_metadata/Request.ts#L23-L46', +'security.saml_service_provider_metadata.Request': 'security/saml_service_provider_metadata/Request.ts#L23-L48', 'security.saml_service_provider_metadata.Response': 'security/saml_service_provider_metadata/Response.ts#L20-L27', 'security.suggest_user_profiles.Hint': 'security/suggest_user_profiles/types.ts#L23-L34', -'security.suggest_user_profiles.Request': 'security/suggest_user_profiles/Request.ts#L24-L81', +'security.suggest_user_profiles.Request': 'security/suggest_user_profiles/Request.ts#L25-L84', 'security.suggest_user_profiles.Response': 'security/suggest_user_profiles/Response.ts#L29-L44', 'security.suggest_user_profiles.TotalUserProfiles': 'security/suggest_user_profiles/Response.ts#L24-L27', -'security.update_api_key.Request': 'security/update_api_key/Request.ts#L26-L91', +'security.update_api_key.Request': 'security/update_api_key/Request.ts#L26-L93', 'security.update_api_key.Response': 'security/update_api_key/Response.ts#L20-L28', -'security.update_cross_cluster_api_key.Request': 'security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L94', +'security.update_cross_cluster_api_key.Request': 'security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L96', 'security.update_cross_cluster_api_key.Response': 'security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28', -'security.update_settings.Request': 'security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L72', +'security.update_settings.Request': 'security/update_settings/SecurityUpdateSettingsRequest.ts#L25-L75', 'security.update_settings.Response': 'security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24', -'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L98', +'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L100', 'security.update_user_profile_data.Response': 'security/update_user_profile_data/Response.ts#L22-L25', 'shutdown._types.Type': 'shutdown/_types/types.ts#L20-L24', -'shutdown.delete_node.Request': 'shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L61', +'shutdown.delete_node.Request': 'shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L65', 'shutdown.delete_node.Response': 'shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L25', 'shutdown.get_node.NodeShutdownStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38', 'shutdown.get_node.PersistentTaskStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58', 'shutdown.get_node.PluginsStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62', -'shutdown.get_node.Request': 'shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L59', +'shutdown.get_node.Request': 'shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L62', 'shutdown.get_node.Response': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27', 'shutdown.get_node.ShardMigrationStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54', 'shutdown.get_node.ShutdownStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50', 'shutdown.get_node.ShutdownType': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43', -'shutdown.put_node.Request': 'shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108', +'shutdown.put_node.Request': 'shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L110', 'shutdown.put_node.Response': 'shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L25', 'simulate.ingest.IngestDocumentSimulation': 'simulate/ingest/SimulateIngestResponse.ts#L36-L80', -'simulate.ingest.MergeType': 'simulate/ingest/SimulateIngestRequest.ts#L110-L113', -'simulate.ingest.Request': 'simulate/ingest/SimulateIngestRequest.ts#L29-L108', +'simulate.ingest.MergeType': 'simulate/ingest/SimulateIngestRequest.ts#L113-L116', +'simulate.ingest.Request': 'simulate/ingest/SimulateIngestRequest.ts#L29-L111', 'simulate.ingest.Response': 'simulate/ingest/SimulateIngestResponse.ts#L28-L30', 'simulate.ingest.SimulateIngestDocumentResult': 'simulate/ingest/SimulateIngestResponse.ts#L32-L34', 'slm._types.Configuration': 'slm/_types/SnapshotLifecycle.ts#L109-L139', @@ -3038,23 +3106,23 @@ 'slm._types.SnapshotLifecycle': 'slm/_types/SnapshotLifecycle.ts#L38-L59', 'slm._types.SnapshotPolicyStats': 'slm/_types/SnapshotLifecycle.ts#L153-L159', 'slm._types.Statistics': 'slm/_types/SnapshotLifecycle.ts#L61-L84', -'slm.delete_lifecycle.Request': 'slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L58', +'slm.delete_lifecycle.Request': 'slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L61', 'slm.delete_lifecycle.Response': 'slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L25', -'slm.execute_lifecycle.Request': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L58', +'slm.execute_lifecycle.Request': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L61', 'slm.execute_lifecycle.Response': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24', -'slm.execute_retention.Request': 'slm/execute_retention/ExecuteRetentionRequest.ts#L23-L54', +'slm.execute_retention.Request': 'slm/execute_retention/ExecuteRetentionRequest.ts#L24-L57', 'slm.execute_retention.Response': 'slm/execute_retention/ExecuteRetentionResponse.ts#L22-L25', 'slm.get_lifecycle.Request': 'slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L64', 'slm.get_lifecycle.Response': 'slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27', -'slm.get_stats.Request': 'slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L23-L51', +'slm.get_stats.Request': 'slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L24-L54', 'slm.get_stats.Response': 'slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L24-L37', -'slm.get_status.Request': 'slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L23-L54', +'slm.get_status.Request': 'slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L24-L57', 'slm.get_status.Response': 'slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24', -'slm.put_lifecycle.Request': 'slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89', +'slm.put_lifecycle.Request': 'slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L92', 'slm.put_lifecycle.Response': 'slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L25', -'slm.start.Request': 'slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L56', +'slm.start.Request': 'slm/start/StartSnapshotLifecycleManagementRequest.ts#L24-L59', 'slm.start.Response': 'slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L25', -'slm.stop.Request': 'slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L60', +'slm.stop.Request': 'slm/stop/StopSnapshotLifecycleManagementRequest.ts#L24-L63', 'slm.stop.Response': 'slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L25', 'snapshot._types.AzureRepository': 'snapshot/_types/SnapshotRepository.ts#L40-L50', 'snapshot._types.AzureRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L145-L196', @@ -3087,83 +3155,83 @@ 'snapshot._types.SourceOnlyRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L414-L441', 'snapshot._types.Status': 'snapshot/_types/SnapshotStatus.ts#L26-L60', 'snapshot.cleanup_repository.CleanupRepositoryResults': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37', -'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L63', +'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L65', 'snapshot.cleanup_repository.Response': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27', -'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L70', +'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L73', 'snapshot.clone.Response': 'snapshot/clone/SnapshotCloneResponse.ts#L22-L25', -'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L24-L126', +'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L30-L135', 'snapshot.create.Response': 'snapshot/create/SnapshotCreateResponse.ts#L22-L35', -'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79', +'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L82', 'snapshot.create_repository.Response': 'snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L25', -'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L65', +'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L67', 'snapshot.delete.Response': 'snapshot/delete/SnapshotDeleteResponse.ts#L22-L25', -'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L64', +'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L66', 'snapshot.delete_repository.Response': 'snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L25', -'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L28-L166', +'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L28-L167', 'snapshot.get.Response': 'snapshot/get/SnapshotGetResponse.ts#L25-L47', 'snapshot.get.SnapshotResponseItem': 'snapshot/get/SnapshotGetResponse.ts#L49-L53', -'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L68', +'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L70', 'snapshot.get_repository.Response': 'snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L26', 'snapshot.repository_analyze.BlobDetails': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284', 'snapshot.repository_analyze.DetailsInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321', 'snapshot.repository_analyze.ReadBlobDetails': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248', 'snapshot.repository_analyze.ReadSummaryInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160', -'snapshot.repository_analyze.Request': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L220', +'snapshot.repository_analyze.Request': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L227', 'snapshot.repository_analyze.Response': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108', 'snapshot.repository_analyze.SnapshotNodeInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113', 'snapshot.repository_analyze.SummaryInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202', 'snapshot.repository_analyze.WriteSummaryInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191', -'snapshot.repository_verify_integrity.Request': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L126', +'snapshot.repository_verify_integrity.Request': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L128', 'snapshot.repository_verify_integrity.Response': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L25', -'snapshot.restore.Request': 'snapshot/restore/SnapshotRestoreRequest.ts#L25-L175', +'snapshot.restore.Request': 'snapshot/restore/SnapshotRestoreRequest.ts#L25-L178', 'snapshot.restore.Response': 'snapshot/restore/SnapshotRestoreResponse.ts#L23-L28', 'snapshot.restore.SnapshotRestore': 'snapshot/restore/SnapshotRestoreResponse.ts#L30-L34', -'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L96', +'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L98', 'snapshot.status.Response': 'snapshot/status/SnapshotStatusResponse.ts#L22-L24', 'snapshot.verify_repository.CompactNodeInfo': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40', -'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L63', +'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L65', 'snapshot.verify_repository.Response': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31', 'sql._types.Column': 'sql/_types/types.ts#L23-L26', -'sql.clear_cursor.Request': 'sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42', +'sql.clear_cursor.Request': 'sql/clear_cursor/ClearSqlCursorRequest.ts#L23-L46', 'sql.clear_cursor.Response': 'sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22', -'sql.delete_async.Request': 'sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L51', +'sql.delete_async.Request': 'sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L53', 'sql.delete_async.Response': 'sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L25', -'sql.get_async.Request': 'sql/get_async/SqlGetAsyncRequest.ts#L24-L72', +'sql.get_async.Request': 'sql/get_async/SqlGetAsyncRequest.ts#L24-L74', 'sql.get_async.Response': 'sql/get_async/SqlGetAsyncResponse.ts#L23-L60', -'sql.get_async_status.Request': 'sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L45', +'sql.get_async_status.Request': 'sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L47', 'sql.get_async_status.Response': 'sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55', -'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L28-L164', +'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L28-L167', 'sql.query.Response': 'sql/query/QuerySqlResponse.ts#L23-L60', -'sql.query.SqlFormat': 'sql/query/QuerySqlRequest.ts#L166-L174', -'sql.translate.Request': 'sql/translate/TranslateSqlRequest.ts#L25-L65', +'sql.query.SqlFormat': 'sql/query/QuerySqlRequest.ts#L169-L177', +'sql.translate.Request': 'sql/translate/TranslateSqlRequest.ts#L26-L69', 'sql.translate.Response': 'sql/translate/TranslateSqlResponse.ts#L28-L39', 'ssl.certificates.CertificateInformation': 'ssl/certificates/types.ts#L22-L57', -'ssl.certificates.Request': 'ssl/certificates/GetCertificatesRequest.ts#L22-L55', +'ssl.certificates.Request': 'ssl/certificates/GetCertificatesRequest.ts#L23-L57', 'ssl.certificates.Response': 'ssl/certificates/GetCertificatesResponse.ts#L22-L25', -'streams.logs_disable.Request': 'streams/logs_disable/StreamsLogsDisableRequest.ts#L23-L55', +'streams.logs_disable.Request': 'streams/logs_disable/StreamsLogsDisableRequest.ts#L24-L57', 'streams.logs_disable.Response': 'streams/logs_disable/StreamsLogsDisableResponse.ts#L22-L25', -'streams.logs_enable.Request': 'streams/logs_enable/StreamsLogsEnableRequest.ts#L23-L59', +'streams.logs_enable.Request': 'streams/logs_enable/StreamsLogsEnableRequest.ts#L24-L61', 'streams.logs_enable.Response': 'streams/logs_enable/StreamsLogsEnableResponse.ts#L22-L25', 'streams.status.LogsStatus': 'streams/status/StreamsStatusResponse.ts#L26-L31', -'streams.status.Request': 'streams/status/StreamsStatusRequest.ts#L23-L47', +'streams.status.Request': 'streams/status/StreamsStatusRequest.ts#L24-L49', 'streams.status.Response': 'streams/status/StreamsStatusResponse.ts#L20-L24', 'synonyms._types.SynonymRule': 'synonyms/_types/SynonymRule.ts#L26-L37', 'synonyms._types.SynonymRuleRead': 'synonyms/_types/SynonymRule.ts#L40-L50', 'synonyms._types.SynonymsUpdateResult': 'synonyms/_types/SynonymsUpdateResult.ts#L23-L34', -'synonyms.delete_synonym.Request': 'synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L60', +'synonyms.delete_synonym.Request': 'synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L61', 'synonyms.delete_synonym.Response': 'synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L25', -'synonyms.delete_synonym_rule.Request': 'synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L57', +'synonyms.delete_synonym_rule.Request': 'synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L60', 'synonyms.delete_synonym_rule.Response': 'synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L25', -'synonyms.get_synonym.Request': 'synonyms/get_synonym/SynonymsGetRequest.ts#L23-L56', +'synonyms.get_synonym.Request': 'synonyms/get_synonym/SynonymsGetRequest.ts#L23-L58', 'synonyms.get_synonym.Response': 'synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34', -'synonyms.get_synonym_rule.Request': 'synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L48', +'synonyms.get_synonym_rule.Request': 'synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L51', 'synonyms.get_synonym_rule.Response': 'synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L25', -'synonyms.get_synonyms_sets.Request': 'synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L22-L50', +'synonyms.get_synonyms_sets.Request': 'synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L23-L53', 'synonyms.get_synonyms_sets.Response': 'synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34', 'synonyms.get_synonyms_sets.SynonymsSetItem': 'synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45', -'synonyms.put_synonym.Request': 'synonyms/put_synonym/SynonymsPutRequest.ts#L23-L67', +'synonyms.put_synonym.Request': 'synonyms/put_synonym/SynonymsPutRequest.ts#L23-L70', 'synonyms.put_synonym.Response': 'synonyms/put_synonym/SynonymsPutResponse.ts#L23-L36', -'synonyms.put_synonym_rule.Request': 'synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L69', +'synonyms.put_synonym_rule.Request': 'synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L72', 'synonyms.put_synonym_rule.Response': 'synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L25', 'tasks._types.GroupBy': 'tasks/_types/GroupBy.ts#L20-L27', 'tasks._types.NodeTasks': 'tasks/_types/TaskListResponseBase.ts#L49-L57', @@ -3171,23 +3239,23 @@ 'tasks._types.TaskInfo': 'tasks/_types/TaskInfo.ts#L32-L58', 'tasks._types.TaskInfos': 'tasks/_types/TaskListResponseBase.ts#L40-L43', 'tasks._types.TaskListResponseBase': 'tasks/_types/TaskListResponseBase.ts#L26-L38', -'tasks.cancel.Request': 'tasks/cancel/CancelTasksRequest.ts#L23-L78', +'tasks.cancel.Request': 'tasks/cancel/CancelTasksRequest.ts#L23-L79', 'tasks.cancel.Response': 'tasks/cancel/CancelTasksResponse.ts#L22-L25', -'tasks.get.Request': 'tasks/get/GetTaskRequest.ts#L24-L64', +'tasks.get.Request': 'tasks/get/GetTaskRequest.ts#L24-L66', 'tasks.get.Response': 'tasks/get/GetTaskResponse.ts#L24-L31', -'tasks.list.Request': 'tasks/list/ListTasksRequest.ts#L25-L139', +'tasks.list.Request': 'tasks/list/ListTasksRequest.ts#L25-L141', 'tasks.list.Response': 'tasks/list/ListTasksResponse.ts#L22-L25', 'text_structure._types.EcsCompatibilityType': 'text_structure/_types/Structure.ts#L40-L43', 'text_structure._types.FieldStat': 'text_structure/_types/Structure.ts#L23-L33', 'text_structure._types.FormatType': 'text_structure/_types/Structure.ts#L45-L50', 'text_structure._types.TopHit': 'text_structure/_types/Structure.ts#L35-L38', -'text_structure.find_field_structure.Request': 'text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L184', +'text_structure.find_field_structure.Request': 'text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L186', 'text_structure.find_field_structure.Response': 'text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49', -'text_structure.find_message_structure.Request': 'text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174', +'text_structure.find_message_structure.Request': 'text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L178', 'text_structure.find_message_structure.Response': 'text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49', 'text_structure.test_grok_pattern.MatchedField': 'text_structure/test_grok_pattern/types.ts#L23-L27', 'text_structure.test_grok_pattern.MatchedText': 'text_structure/test_grok_pattern/types.ts#L29-L32', -'text_structure.test_grok_pattern.Request': 'text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59', +'text_structure.test_grok_pattern.Request': 'text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L62', 'text_structure.test_grok_pattern.Response': 'text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26', 'transform._types.Destination': 'transform/_types/Transform.ts#L34-L45', 'transform._types.Latest': 'transform/_types/Transform.ts#L47-L52', @@ -3199,37 +3267,42 @@ 'transform._types.Source': 'transform/_types/Transform.ts#L156-L175', 'transform._types.SyncContainer': 'transform/_types/Transform.ts#L179-L185', 'transform._types.TimeSync': 'transform/_types/Transform.ts#L187-L199', -'transform.delete_transform.Request': 'transform/delete_transform/DeleteTransformRequest.ts#L24-L64', +'transform.delete_transform.Request': 'transform/delete_transform/DeleteTransformRequest.ts#L24-L66', 'transform.delete_transform.Response': 'transform/delete_transform/DeleteTransformResponse.ts#L22-L25', -'transform.get_transform.Request': 'transform/get_transform/GetTransformRequest.ts#L24-L84', +'transform.get_node_stats.Request': 'transform/get_node_stats/GetNodeStatsRequest.ts#L23-L40', +'transform.get_node_stats.Response': 'transform/get_node_stats/GetNodeStatsResponse.ts#L22-L25', +'transform.get_node_stats.TransformNodeFullStats': 'transform/get_node_stats/types.ts#L24-L31', +'transform.get_node_stats.TransformNodeStats': 'transform/get_node_stats/types.ts#L33-L35', +'transform.get_node_stats.TransformSchedulerStats': 'transform/get_node_stats/types.ts#L37-L40', +'transform.get_transform.Request': 'transform/get_transform/GetTransformRequest.ts#L24-L86', 'transform.get_transform.Response': 'transform/get_transform/GetTransformResponse.ts#L23-L25', 'transform.get_transform.TransformSummary': 'transform/get_transform/types.ts#L33-L62', 'transform.get_transform_stats.CheckpointStats': 'transform/get_transform_stats/types.ts#L93-L100', 'transform.get_transform_stats.Checkpointing': 'transform/get_transform_stats/types.ts#L102-L110', -'transform.get_transform_stats.Request': 'transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L77', +'transform.get_transform_stats.Request': 'transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L82', 'transform.get_transform_stats.Response': 'transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25', 'transform.get_transform_stats.TransformHealthIssue': 'transform/get_transform_stats/types.ts#L51-L63', 'transform.get_transform_stats.TransformIndexerStats': 'transform/get_transform_stats/types.ts#L73-L91', 'transform.get_transform_stats.TransformProgress': 'transform/get_transform_stats/types.ts#L65-L71', 'transform.get_transform_stats.TransformStats': 'transform/get_transform_stats/types.ts#L31-L42', 'transform.get_transform_stats.TransformStatsHealth': 'transform/get_transform_stats/types.ts#L44-L49', -'transform.preview_transform.Request': 'transform/preview_transform/PreviewTransformRequest.ts#L33-L119', +'transform.preview_transform.Request': 'transform/preview_transform/PreviewTransformRequest.ts#L33-L122', 'transform.preview_transform.Response': 'transform/preview_transform/PreviewTransformResponse.ts#L22-L27', -'transform.put_transform.Request': 'transform/put_transform/PutTransformRequest.ts#L33-L130', +'transform.put_transform.Request': 'transform/put_transform/PutTransformRequest.ts#L33-L134', 'transform.put_transform.Response': 'transform/put_transform/PutTransformResponse.ts#L22-L25', -'transform.reset_transform.Request': 'transform/reset_transform/ResetTransformRequest.ts#L24-L62', +'transform.reset_transform.Request': 'transform/reset_transform/ResetTransformRequest.ts#L24-L63', 'transform.reset_transform.Response': 'transform/reset_transform/ResetTransformResponse.ts#L22-L25', -'transform.schedule_now_transform.Request': 'transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L57', +'transform.schedule_now_transform.Request': 'transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L59', 'transform.schedule_now_transform.Response': 'transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L24', -'transform.set_upgrade_mode.Request': 'transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L23-L64', +'transform.set_upgrade_mode.Request': 'transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L24-L67', 'transform.set_upgrade_mode.Response': 'transform/set_upgrade_mode/TransformSetUpgradeModeResponse.ts#L22-L25', -'transform.start_transform.Request': 'transform/start_transform/StartTransformRequest.ts#L24-L72', +'transform.start_transform.Request': 'transform/start_transform/StartTransformRequest.ts#L24-L73', 'transform.start_transform.Response': 'transform/start_transform/StartTransformResponse.ts#L22-L25', -'transform.stop_transform.Request': 'transform/stop_transform/StopTransformRequest.ts#L24-L84', +'transform.stop_transform.Request': 'transform/stop_transform/StopTransformRequest.ts#L24-L86', 'transform.stop_transform.Response': 'transform/stop_transform/StopTransformResponse.ts#L22-L25', -'transform.update_transform.Request': 'transform/update_transform/UpdateTransformRequest.ts#L31-L113', +'transform.update_transform.Request': 'transform/update_transform/UpdateTransformRequest.ts#L31-L116', 'transform.update_transform.Response': 'transform/update_transform/UpdateTransformResponse.ts#L33-L51', -'transform.upgrade_transforms.Request': 'transform/upgrade_transforms/UpgradeTransformsRequest.ts#L23-L65', +'transform.upgrade_transforms.Request': 'transform/upgrade_transforms/UpgradeTransformsRequest.ts#L24-L68', 'transform.upgrade_transforms.Response': 'transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34', 'watcher._types.AcknowledgeState': 'watcher/_types/Action.ts#L109-L112', 'watcher._types.AcknowledgementOptions': 'watcher/_types/Action.ts#L103-L107', @@ -3323,46 +3396,46 @@ 'watcher._types.WatchStatus': 'watcher/_types/Watch.ts#L49-L56', 'watcher._types.WebhookAction': 'watcher/_types/Actions.ts#L293-L293', 'watcher._types.WebhookResult': 'watcher/_types/Actions.ts#L295-L298', -'watcher.ack_watch.Request': 'watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L63', +'watcher.ack_watch.Request': 'watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L65', 'watcher.ack_watch.Response': 'watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24', -'watcher.activate_watch.Request': 'watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L45', +'watcher.activate_watch.Request': 'watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L47', 'watcher.activate_watch.Response': 'watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24', -'watcher.deactivate_watch.Request': 'watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L45', +'watcher.deactivate_watch.Request': 'watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L47', 'watcher.deactivate_watch.Response': 'watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24', -'watcher.delete_watch.Request': 'watcher/delete_watch/DeleteWatchRequest.ts#L23-L50', +'watcher.delete_watch.Request': 'watcher/delete_watch/DeleteWatchRequest.ts#L23-L52', 'watcher.delete_watch.Response': 'watcher/delete_watch/DeleteWatchResponse.ts#L22-L24', -'watcher.execute_watch.Request': 'watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L107', +'watcher.execute_watch.Request': 'watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L110', 'watcher.execute_watch.Response': 'watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34', 'watcher.execute_watch.WatchRecord': 'watcher/execute_watch/types.ts#L27-L39', -'watcher.get_settings.Request': 'watcher/get_settings/WatcherGetSettingsRequest.ts#L23-L46', +'watcher.get_settings.Request': 'watcher/get_settings/WatcherGetSettingsRequest.ts#L24-L50', 'watcher.get_settings.Response': 'watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26', -'watcher.get_watch.Request': 'watcher/get_watch/GetWatchRequest.ts#L23-L43', +'watcher.get_watch.Request': 'watcher/get_watch/GetWatchRequest.ts#L23-L45', 'watcher.get_watch.Response': 'watcher/get_watch/GetWatchResponse.ts#L24-L34', -'watcher.put_watch.Request': 'watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110', +'watcher.put_watch.Request': 'watcher/put_watch/WatcherPutWatchRequest.ts#L37-L124', 'watcher.put_watch.Response': 'watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31', -'watcher.query_watches.Request': 'watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70', +'watcher.query_watches.Request': 'watcher/query_watches/WatcherQueryWatchesRequest.ts#L26-L74', 'watcher.query_watches.Response': 'watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34', -'watcher.start.Request': 'watcher/start/WatcherStartRequest.ts#L23-L45', +'watcher.start.Request': 'watcher/start/WatcherStartRequest.ts#L24-L48', 'watcher.start.Response': 'watcher/start/WatcherStartResponse.ts#L22-L25', -'watcher.stats.Request': 'watcher/stats/WatcherStatsRequest.ts#L23-L60', +'watcher.stats.Request': 'watcher/stats/WatcherStatsRequest.ts#L24-L63', 'watcher.stats.Response': 'watcher/stats/WatcherStatsResponse.ts#L24-L32', 'watcher.stats.WatchRecordQueuedStats': 'watcher/stats/types.ts#L71-L77', 'watcher.stats.WatchRecordStats': 'watcher/stats/types.ts#L79-L94', 'watcher.stats.WatcherMetric': 'watcher/stats/types.ts#L63-L69', 'watcher.stats.WatcherNodeStats': 'watcher/stats/types.ts#L33-L61', 'watcher.stats.WatcherState': 'watcher/stats/types.ts#L26-L31', -'watcher.stop.Request': 'watcher/stop/WatcherStopRequest.ts#L23-L47', +'watcher.stop.Request': 'watcher/stop/WatcherStopRequest.ts#L24-L50', 'watcher.stop.Response': 'watcher/stop/WatcherStopResponse.ts#L22-L25', -'watcher.update_settings.Request': 'watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L62', +'watcher.update_settings.Request': 'watcher/update_settings/WatcherUpdateSettingsRequest.ts#L25-L66', 'watcher.update_settings.Response': 'watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24', 'xpack.info.BuildInformation': 'xpack/info/types.ts#L24-L27', 'xpack.info.Feature': 'xpack/info/types.ts#L84-L89', 'xpack.info.Features': 'xpack/info/types.ts#L42-L82', 'xpack.info.MinimalLicenseInformation': 'xpack/info/types.ts#L34-L40', 'xpack.info.NativeCodeInformation': 'xpack/info/types.ts#L29-L32', -'xpack.info.Request': 'xpack/info/XPackInfoRequest.ts#L22-L56', +'xpack.info.Request': 'xpack/info/XPackInfoRequest.ts#L23-L63', 'xpack.info.Response': 'xpack/info/XPackInfoResponse.ts#L22-L29', -'xpack.info.XPackCategory': 'xpack/info/XPackInfoRequest.ts#L58-L62', +'xpack.info.XPackCategory': 'xpack/info/XPackInfoRequest.ts#L65-L69', 'xpack.usage.Analytics': 'xpack/usage/types.ts#L373-L375', 'xpack.usage.AnalyticsStatistics': 'xpack/usage/types.ts#L58-L68', 'xpack.usage.Archive': 'xpack/usage/types.ts#L45-L47', @@ -3408,7 +3481,7 @@ 'xpack.usage.Query': 'xpack/usage/types.ts#L269-L274', 'xpack.usage.Realm': 'xpack/usage/types.ts#L456-L465', 'xpack.usage.RealmCache': 'xpack/usage/types.ts#L276-L278', -'xpack.usage.Request': 'xpack/usage/XPackUsageRequest.ts#L23-L49', +'xpack.usage.Request': 'xpack/usage/XPackUsageRequest.ts#L24-L52', 'xpack.usage.Response': 'xpack/usage/XPackUsageResponse.ts#L42-L77', 'xpack.usage.RoleMapping': 'xpack/usage/types.ts#L280-L283', 'xpack.usage.RuntimeFieldTypes': 'xpack/usage/types.ts#L285-L287', @@ -3435,10 +3508,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/27fb6e8e4ed0c6d08137aa446a635dab14c14dfd/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/c2cdbfe0c3812eedea4a98c5d8375f240b779a0f/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/enrich/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index af8988b810..fa3e97366a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -56,8 +56,9 @@ // typedef: enrich.delete_policy.Request /** - * Delete an enrich policy. Deletes an existing enrich policy and its enrich - * index. + * Delete an enrich policy. + *

            + * Deletes an existing enrich policy and its enrich index. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java index 051ff9dff4..2344e04aba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichAsyncClient.java @@ -68,8 +68,9 @@ public ElasticsearchEnrichAsyncClient withTransportOptions(@Nullable TransportOp // ----- Endpoint: enrich.delete_policy /** - * Delete an enrich policy. Deletes an existing enrich policy and its enrich - * index. + * Delete an enrich policy. + *

            + * Deletes an existing enrich policy and its enrich index. * * @see Documentation @@ -84,8 +85,9 @@ public CompletableFuture deletePolicy(DeletePolicyRequest } /** - * Delete an enrich policy. Deletes an existing enrich policy and its enrich - * index. + * Delete an enrich policy. + *

            + * Deletes an existing enrich policy and its enrich index. * * @param fn * a function that initializes a builder to create the @@ -103,7 +105,9 @@ public final CompletableFuture deletePolicy( // ----- Endpoint: enrich.execute_policy /** - * Run an enrich policy. Create the enrich index for an existing enrich policy. + * Run an enrich policy. + *

            + * Create the enrich index for an existing enrich policy. * * @see Documentation @@ -118,7 +122,9 @@ public CompletableFuture executePolicy(ExecutePolicyReque } /** - * Run an enrich policy. Create the enrich index for an existing enrich policy. + * Run an enrich policy. + *

            + * Create the enrich index for an existing enrich policy. * * @param fn * a function that initializes a builder to create the @@ -136,7 +142,9 @@ public final CompletableFuture executePolicy( // ----- Endpoint: enrich.get_policy /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @see Documentation @@ -151,7 +159,9 @@ public CompletableFuture getPolicy(GetPolicyRequest request) } /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @param fn * a function that initializes a builder to create the @@ -167,7 +177,9 @@ public final CompletableFuture getPolicy( } /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @see Documentation @@ -182,7 +194,9 @@ public CompletableFuture getPolicy() { // ----- Endpoint: enrich.put_policy /** - * Create an enrich policy. Creates an enrich policy. + * Create an enrich policy. + *

            + * Creates an enrich policy. * * @see Documentation @@ -197,7 +211,9 @@ public CompletableFuture putPolicy(PutPolicyRequest request) } /** - * Create an enrich policy. Creates an enrich policy. + * Create an enrich policy. + *

            + * Creates an enrich policy. * * @param fn * a function that initializes a builder to create the @@ -215,8 +231,10 @@ public final CompletableFuture putPolicy( // ----- Endpoint: enrich.stats /** - * Get enrich stats. Returns enrich coordinator statistics and information about - * enrich policies that are currently executing. + * Get enrich stats. + *

            + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see Documentation @@ -231,8 +249,10 @@ public CompletableFuture stats(EnrichStatsRequest request) } /** - * Get enrich stats. Returns enrich coordinator statistics and information about - * enrich policies that are currently executing. + * Get enrich stats. + *

            + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @param fn * a function that initializes a builder to create the @@ -248,8 +268,10 @@ public final CompletableFuture stats( } /** - * Get enrich stats. Returns enrich coordinator statistics and information about - * enrich policies that are currently executing. + * Get enrich stats. + *

            + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java index 9de008bad0..d2487cde75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ElasticsearchEnrichClient.java @@ -68,8 +68,9 @@ public ElasticsearchEnrichClient withTransportOptions(@Nullable TransportOptions // ----- Endpoint: enrich.delete_policy /** - * Delete an enrich policy. Deletes an existing enrich policy and its enrich - * index. + * Delete an enrich policy. + *

            + * Deletes an existing enrich policy and its enrich index. * * @see Documentation @@ -84,8 +85,9 @@ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOE } /** - * Delete an enrich policy. Deletes an existing enrich policy and its enrich - * index. + * Delete an enrich policy. + *

            + * Deletes an existing enrich policy and its enrich index. * * @param fn * a function that initializes a builder to create the @@ -104,7 +106,9 @@ public final DeletePolicyResponse deletePolicy( // ----- Endpoint: enrich.execute_policy /** - * Run an enrich policy. Create the enrich index for an existing enrich policy. + * Run an enrich policy. + *

            + * Create the enrich index for an existing enrich policy. * * @see Documentation @@ -120,7 +124,9 @@ public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) } /** - * Run an enrich policy. Create the enrich index for an existing enrich policy. + * Run an enrich policy. + *

            + * Create the enrich index for an existing enrich policy. * * @param fn * a function that initializes a builder to create the @@ -139,7 +145,9 @@ public final ExecutePolicyResponse executePolicy( // ----- Endpoint: enrich.get_policy /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @see Documentation @@ -154,7 +162,9 @@ public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException, } /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @param fn * a function that initializes a builder to create the @@ -170,7 +180,9 @@ public final GetPolicyResponse getPolicy(Function + * Returns information about an enrich policy. * * @see Documentation @@ -185,7 +197,9 @@ public GetPolicyResponse getPolicy() throws IOException, ElasticsearchException // ----- Endpoint: enrich.put_policy /** - * Create an enrich policy. Creates an enrich policy. + * Create an enrich policy. + *

            + * Creates an enrich policy. * * @see Documentation @@ -200,7 +214,9 @@ public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException, } /** - * Create an enrich policy. Creates an enrich policy. + * Create an enrich policy. + *

            + * Creates an enrich policy. * * @param fn * a function that initializes a builder to create the @@ -218,8 +234,10 @@ public final PutPolicyResponse putPolicy(Function + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see Documentation @@ -234,8 +252,10 @@ public EnrichStatsResponse stats(EnrichStatsRequest request) throws IOException, } /** - * Get enrich stats. Returns enrich coordinator statistics and information about - * enrich policies that are currently executing. + * Get enrich stats. + *

            + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @param fn * a function that initializes a builder to create the @@ -251,8 +271,10 @@ public final EnrichStatsResponse stats(Function + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index 1b77def214..fa910b0f68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -55,8 +55,10 @@ // typedef: enrich.stats.Request /** - * Get enrich stats. Returns enrich coordinator statistics and information about - * enrich policies that are currently executing. + * Get enrich stats. + *

            + * Returns enrich coordinator statistics and information about enrich policies + * that are currently executing. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index a11285f66a..dae08d22e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -57,7 +57,9 @@ // typedef: enrich.execute_policy.Request /** - * Run an enrich policy. Create the enrich index for an existing enrich policy. + * Run an enrich policy. + *

            + * Create the enrich index for an existing enrich policy. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 5d0ebe920c..4d2cc2d23b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -58,7 +58,9 @@ // typedef: enrich.get_policy.Request /** - * Get an enrich policy. Returns information about an enrich policy. + * Get an enrich policy. + *

            + * Returns information about an enrich policy. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index 2e91658676..a5f42a9c6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -58,7 +58,9 @@ // typedef: enrich.put_policy.Request /** - * Create an enrich policy. Creates an enrich policy. + * Create an enrich policy. + *

            + * Creates an enrich policy. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java index e8f4971834..5e5c902f79 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlAsyncClient.java @@ -69,8 +69,10 @@ public ElasticsearchEqlAsyncClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: eql.delete /** - * Delete an async EQL search. Delete an async EQL search or a stored - * synchronous EQL search. The API also deletes results for the search. + * Delete an async EQL search. + *

            + * Delete an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @see Documentation @@ -85,8 +87,10 @@ public CompletableFuture delete(EqlDeleteRequest request) { } /** - * Delete an async EQL search. Delete an async EQL search or a stored - * synchronous EQL search. The API also deletes results for the search. + * Delete an async EQL search. + *

            + * Delete an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @param fn * a function that initializes a builder to create the @@ -104,8 +108,10 @@ public final CompletableFuture delete( // ----- Endpoint: eql.get /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see Documentation @@ -122,8 +128,10 @@ public CompletableFuture> get(EqlGetRequest requ } /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @param fn * a function that initializes a builder to create the @@ -160,8 +168,10 @@ public final CompletableFuture> get( } /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see Documentation @@ -178,8 +188,10 @@ public CompletableFuture> get(EqlGetRequest requ } /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @param fn * a function that initializes a builder to create the @@ -197,8 +209,10 @@ public final CompletableFuture> get( // ----- Endpoint: eql.get_status /** - * Get the async EQL status. Get the current status for an async EQL search or a - * stored synchronous EQL search without returning results. + * Get the async EQL status. + *

            + * Get the current status for an async EQL search or a stored synchronous EQL + * search without returning results. * * @see Documentation @@ -213,8 +227,10 @@ public CompletableFuture getStatus(GetEqlStatusRequest req } /** - * Get the async EQL status. Get the current status for an async EQL search or a - * stored synchronous EQL search without returning results. + * Get the async EQL status. + *

            + * Get the current status for an async EQL search or a stored synchronous EQL + * search without returning results. * * @param fn * a function that initializes a builder to create the @@ -232,9 +248,10 @@ public final CompletableFuture getStatus( // ----- Endpoint: eql.search /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @see Documentation @@ -252,9 +269,10 @@ public CompletableFuture> search(EqlSearchReq } /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @param fn * a function that initializes a builder to create the @@ -291,9 +309,10 @@ public final CompletableFuture> search( } /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @see Documentation @@ -310,9 +329,10 @@ public CompletableFuture> search(EqlSearchReq } /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java index 5fdb6036ef..414003e338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/ElasticsearchEqlClient.java @@ -70,8 +70,10 @@ public ElasticsearchEqlClient withTransportOptions(@Nullable TransportOptions tr // ----- Endpoint: eql.delete /** - * Delete an async EQL search. Delete an async EQL search or a stored - * synchronous EQL search. The API also deletes results for the search. + * Delete an async EQL search. + *

            + * Delete an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @see Documentation @@ -86,8 +88,10 @@ public EqlDeleteResponse delete(EqlDeleteRequest request) throws IOException, El } /** - * Delete an async EQL search. Delete an async EQL search or a stored - * synchronous EQL search. The API also deletes results for the search. + * Delete an async EQL search. + *

            + * Delete an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @param fn * a function that initializes a builder to create the @@ -105,8 +109,10 @@ public final EqlDeleteResponse delete(Function + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see Documentation @@ -124,8 +130,10 @@ public EqlGetResponse get(EqlGetRequest request, Class } /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @param fn * a function that initializes a builder to create the @@ -162,8 +170,10 @@ public final EqlGetResponse get(Function + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see Documentation @@ -181,8 +191,10 @@ public EqlGetResponse get(EqlGetRequest request, Type tEventTyp } /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @param fn * a function that initializes a builder to create the @@ -200,8 +212,10 @@ public final EqlGetResponse get(Function + * Get the current status for an async EQL search or a stored synchronous EQL + * search without returning results. * * @see Documentation @@ -216,8 +230,10 @@ public GetEqlStatusResponse getStatus(GetEqlStatusRequest request) throws IOExce } /** - * Get the async EQL status. Get the current status for an async EQL search or a - * stored synchronous EQL search without returning results. + * Get the async EQL status. + *

            + * Get the current status for an async EQL search or a stored synchronous EQL + * search without returning results. * * @param fn * a function that initializes a builder to create the @@ -236,9 +252,10 @@ public final GetEqlStatusResponse getStatus( // ----- Endpoint: eql.search /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @see Documentation @@ -256,9 +273,10 @@ public EqlSearchResponse search(EqlSearchRequest request, Class } /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @param fn * a function that initializes a builder to create the @@ -296,9 +314,10 @@ public final EqlSearchResponse search(Function + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @see Documentation @@ -316,9 +335,10 @@ public EqlSearchResponse search(EqlSearchRequest request, Type } /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java index 3df6b40dff..f9dbf3e0f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -56,8 +56,10 @@ // typedef: eql.delete.Request /** - * Delete an async EQL search. Delete an async EQL search or a stored - * synchronous EQL search. The API also deletes results for the search. + * Delete an async EQL search. + *

            + * Delete an async EQL search or a stored synchronous EQL search. The API also + * deletes results for the search. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java index 7fe2693f89..7895c03541 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -56,8 +56,10 @@ // typedef: eql.get.Request /** - * Get async EQL search results. Get the current status and available results - * for an async EQL search or a stored synchronous EQL search. + * Get async EQL search results. + *

            + * Get the current status and available results for an async EQL search or a + * stored synchronous EQL search. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java index 41eee82ada..9887fe443c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java @@ -69,9 +69,10 @@ // typedef: eql.search.Request /** - * Get EQL search results. Returns search results for an Event Query Language - * (EQL) query. EQL assumes each document in a data stream or index corresponds - * to an event. + * Get EQL search results. + *

            + * Returns search results for an Event Query Language (EQL) query. EQL assumes + * each document in a data stream or index corresponds to an event. * * @see API * specification @@ -293,7 +294,7 @@ public final Boolean ignoreUnavailable() { } /** - * Required - The name of the index to scope the operation + * Required - Comma-separated list of index names to scope the operation *

            * API name: {@code index} */ @@ -333,11 +334,10 @@ public final Integer maxSamplesPerKey() { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

            * API name: {@code project_routing} */ @@ -392,7 +392,7 @@ public final String tiebreakerField() { } /** - * Field containing event timestamp. Default "@timestamp" + * Field containing event timestamp. *

            * API name: {@code timestamp_field} */ @@ -479,6 +479,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("max_samples_per_key"); generator.write(this.maxSamplesPerKey); + } + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + } generator.writeKey("query"); generator.write(this.query); @@ -803,7 +808,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { } /** - * Required - The name of the index to scope the operation + * Required - Comma-separated list of index names to scope the operation *

            * API name: {@code index} *

            @@ -815,7 +820,7 @@ public final Builder index(List list) { } /** - * Required - The name of the index to scope the operation + * Required - Comma-separated list of index names to scope the operation *

            * API name: {@code index} *

            @@ -865,11 +870,10 @@ public final Builder maxSamplesPerKey(@Nullable Integer value) { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

            * API name: {@code project_routing} */ @@ -948,7 +952,7 @@ public final Builder tiebreakerField(@Nullable String value) { } /** - * Field containing event timestamp. Default "@timestamp" + * Field containing event timestamp. *

            * API name: {@code timestamp_field} */ @@ -1012,6 +1016,7 @@ protected static void setupEqlSearchRequestDeserializer(ObjectDeserializer + * Get the current status for an async EQL search or a stored synchronous EQL + * search without returning results. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java new file mode 100644 index 0000000000..785ab40d17 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.delete_view.Request + +/** + * Delete an ES|QL view. + *

            + * Deletes a stored ES|QL view. + * + * @see API + * specification + */ + +public class DeleteViewRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private DeleteViewRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static DeleteViewRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The view name to remove. + *

            + * API name: {@code name} + */ + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteViewRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + /** + * Required - The view name to remove. + *

            + * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteViewRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteViewRequest build() { + _checkSingleUse(); + + return new DeleteViewRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code esql.delete_view}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/esql.delete_view", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query"); + buf.append("/view"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteViewResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewResponse.java new file mode 100644 index 0000000000..2dae9a7b69 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewResponse.java @@ -0,0 +1,107 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.delete_view.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteViewResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteViewResponse(Builder builder) { + super(builder); + + } + + public static DeleteViewResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteViewResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteViewResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteViewResponse build() { + _checkSingleUse(); + + return new DeleteViewResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteViewResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteViewResponse::setupDeleteViewResponseDeserializer); + + protected static void setupDeleteViewResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java new file mode 100644 index 0000000000..9faa1bcaef --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java @@ -0,0 +1,186 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql._types.ESQLView + +/** + * A non-materialized ES|QL view. + * + * @see API + * specification + */ +@JsonpDeserializable +public class ESQLView implements JsonpSerializable { + private final String name; + + private final String query; + + // --------------------------------------------------------------------------------------------- + + private ESQLView(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + + } + + public static ESQLView of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the ES|QL view + *

            + * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - The ES|QL query + *

            + * API name: {@code query} + */ + public final String query() { + return this.query; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("query"); + generator.write(this.query); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ESQLView}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String name; + + private String query; + + /** + * Required - The name of the ES|QL view + *

            + * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - The ES|QL query + *

            + * API name: {@code query} + */ + public final Builder query(String value) { + this.query = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ESQLView}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ESQLView build() { + _checkSingleUse(); + + return new ESQLView(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ESQLView} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ESQLView::setupESQLViewDeserializer); + + protected static void setupESQLViewDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java index 6fa210af2c..bd0dbfc1ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java @@ -67,11 +67,49 @@ public ElasticsearchEsqlAsyncClient withTransportOptions(@Nullable TransportOpti return new ElasticsearchEsqlAsyncClient(this.transport, transportOptions); } + // ----- Endpoint: esql.delete_view + + /** + * Delete an ES|QL view. + *

            + * Deletes a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteView(DeleteViewRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteViewRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Delete an ES|QL view. + *

            + * Deletes a stored ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteViewRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteView( + Function> fn) { + return deleteView(fn.apply(new DeleteViewRequest.Builder()).build()); + } + // ----- Endpoint: esql.get_query /** - * Get a specific running ES|QL query information. Returns an object extended - * information about a running ES|QL query. + * Get a specific running ES|QL query information. + *

            + * Returns an object extended information about a running ES|QL query. * * @see Documentation @@ -86,8 +124,9 @@ public CompletableFuture getQuery(GetQueryRequest request) { } /** - * Get a specific running ES|QL query information. Returns an object extended - * information about a running ES|QL query. + * Get a specific running ES|QL query information. + *

            + * Returns an object extended information about a running ES|QL query. * * @param fn * a function that initializes a builder to create the @@ -102,11 +141,65 @@ public final CompletableFuture getQuery( return getQuery(fn.apply(new GetQueryRequest.Builder()).build()); } + // ----- Endpoint: esql.get_view + + /** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getView(GetViewRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetViewRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetViewRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getView( + Function> fn) { + return getView(fn.apply(new GetViewRequest.Builder()).build()); + } + + /** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getView() { + return this.transport.performRequestAsync(new GetViewRequest.Builder().build(), GetViewRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: esql.list_queries /** - * Get running ES|QL queries information. Returns an object containing IDs and - * other information about the running ES|QL queries. + * Get running ES|QL queries information. + *

            + * Returns an object containing IDs and other information about the running + * ES|QL queries. * * @see Documentation @@ -117,11 +210,45 @@ public CompletableFuture listQueries() { this.transportOptions); } + // ----- Endpoint: esql.put_view + + /** + * Create or update an ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putView(PutViewRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutViewRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Create or update an ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutViewRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putView( + Function> fn) { + return putView(fn.apply(new PutViewRequest.Builder()).build()); + } + // ----- Endpoint: esql.query /** - * Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query - * language) query. + * Run an ES|QL query. + *

            + * Get search results for an ES|QL (Elasticsearch query language) query. * * @see Documentation @@ -136,8 +263,9 @@ public CompletableFuture query(QueryRequest request) { } /** - * Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query - * language) query. + * Run an ES|QL query. + *

            + * Get search results for an ES|QL (Elasticsearch query language) query. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java index 1df50c43f7..f8b871a43d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java @@ -68,11 +68,49 @@ public ElasticsearchEsqlClient withTransportOptions(@Nullable TransportOptions t return new ElasticsearchEsqlClient(this.transport, transportOptions); } + // ----- Endpoint: esql.delete_view + + /** + * Delete an ES|QL view. + *

            + * Deletes a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public DeleteViewResponse deleteView(DeleteViewRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteViewRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Delete an ES|QL view. + *

            + * Deletes a stored ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteViewRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteViewResponse deleteView(Function> fn) + throws IOException, ElasticsearchException { + return deleteView(fn.apply(new DeleteViewRequest.Builder()).build()); + } + // ----- Endpoint: esql.get_query /** - * Get a specific running ES|QL query information. Returns an object extended - * information about a running ES|QL query. + * Get a specific running ES|QL query information. + *

            + * Returns an object extended information about a running ES|QL query. * * @see Documentation @@ -87,8 +125,9 @@ public GetQueryResponse getQuery(GetQueryRequest request) throws IOException, El } /** - * Get a specific running ES|QL query information. Returns an object extended - * information about a running ES|QL query. + * Get a specific running ES|QL query information. + *

            + * Returns an object extended information about a running ES|QL query. * * @param fn * a function that initializes a builder to create the @@ -103,11 +142,65 @@ public final GetQueryResponse getQuery(Function + * Returns a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public GetViewResponse getView(GetViewRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetViewRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetViewRequest} + * @see Documentation + * on elastic.co + */ + + public final GetViewResponse getView(Function> fn) + throws IOException, ElasticsearchException { + return getView(fn.apply(new GetViewRequest.Builder()).build()); + } + + /** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public GetViewResponse getView() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetViewRequest.Builder().build(), GetViewRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: esql.list_queries /** - * Get running ES|QL queries information. Returns an object containing IDs and - * other information about the running ES|QL queries. + * Get running ES|QL queries information. + *

            + * Returns an object containing IDs and other information about the running + * ES|QL queries. * * @see Documentation @@ -118,11 +211,45 @@ public ListQueriesResponse listQueries() throws IOException, ElasticsearchExcept this.transportOptions); } + // ----- Endpoint: esql.put_view + + /** + * Create or update an ES|QL view. + * + * @see Documentation + * on elastic.co + */ + + public PutViewResponse putView(PutViewRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutViewRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Create or update an ES|QL view. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutViewRequest} + * @see Documentation + * on elastic.co + */ + + public final PutViewResponse putView(Function> fn) + throws IOException, ElasticsearchException { + return putView(fn.apply(new PutViewRequest.Builder()).build()); + } + // ----- Endpoint: esql.query /** - * Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query - * language) query. + * Run an ES|QL query. + *

            + * Get search results for an ES|QL (Elasticsearch query language) query. * * @see Documentation @@ -137,8 +264,9 @@ public BinaryResponse query(QueryRequest request) throws IOException, Elasticsea } /** - * Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query - * language) query. + * Run an ES|QL query. + *

            + * Get search results for an ES|QL (Elasticsearch query language) query. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java index 30ab319bdb..104078c0e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java @@ -56,8 +56,9 @@ // typedef: esql.get_query.Request /** - * Get a specific running ES|QL query information. Returns an object extended - * information about a running ES|QL query. + * Get a specific running ES|QL query information. + *

            + * Returns an object extended information about a running ES|QL query. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java new file mode 100644 index 0000000000..9ae8ab5899 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java @@ -0,0 +1,194 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.get_view.Request + +/** + * Get an ES|QL view. + *

            + * Returns a stored ES|QL view. + * + * @see API + * specification + */ + +public class GetViewRequest extends RequestBase { + @Nullable + private final String name; + + // --------------------------------------------------------------------------------------------- + + private GetViewRequest(Builder builder) { + + this.name = builder.name; + + } + + public static GetViewRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The comma-separated view names to retrieve. + *

            + * API name: {@code name} + */ + @Nullable + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetViewRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String name; + + /** + * The comma-separated view names to retrieve. + *

            + * API name: {@code name} + */ + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetViewRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetViewRequest build() { + _checkSingleUse(); + + return new GetViewRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code esql.get_view}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/esql.get_view", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query"); + buf.append("/view"); + return buf.toString(); + } + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query"); + buf.append("/view"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == 0) { + } + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetViewResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewResponse.java new file mode 100644 index 0000000000..8b4e9e9a8f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewResponse.java @@ -0,0 +1,182 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.get_view.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetViewResponse implements JsonpSerializable { + private final List views; + + // --------------------------------------------------------------------------------------------- + + private GetViewResponse(Builder builder) { + + this.views = ApiTypeHelper.unmodifiableRequired(builder.views, this, "views"); + + } + + public static GetViewResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code views} + */ + public final List views() { + return this.views; + } + + /** + * Serialize this object to JSON. + */ + 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.views)) { + generator.writeKey("views"); + generator.writeStartArray(); + for (ESQLView item0 : this.views) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetViewResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private List views; + + /** + * Required - API name: {@code views} + *

            + * Adds all elements of list to views. + */ + public final Builder views(List list) { + this.views = _listAddAll(this.views, list); + return this; + } + + /** + * Required - API name: {@code views} + *

            + * Adds one or more values to views. + */ + public final Builder views(ESQLView value, ESQLView... values) { + this.views = _listAdd(this.views, value, values); + return this; + } + + /** + * Required - API name: {@code views} + *

            + * Adds a value to views using a builder lambda. + */ + public final Builder views(Function> fn) { + return views(fn.apply(new ESQLView.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetViewResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetViewResponse build() { + _checkSingleUse(); + + return new GetViewResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetViewResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + GetViewResponse::setupGetViewResponseDeserializer); + + protected static void setupGetViewResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::views, JsonpDeserializer.arrayDeserializer(ESQLView._DESERIALIZER), "views"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ListQueriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ListQueriesRequest.java index 189851fd91..076bcb898f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ListQueriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ListQueriesRequest.java @@ -50,8 +50,10 @@ // typedef: esql.list_queries.Request /** - * Get running ES|QL queries information. Returns an object containing IDs and - * other information about the running ES|QL queries. + * Get running ES|QL queries information. + *

            + * Returns an object containing IDs and other information about the running + * ES|QL queries. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java new file mode 100644 index 0000000000..a1f2770863 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java @@ -0,0 +1,236 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.put_view.Request + +/** + * Create or update an ES|QL view. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutViewRequest extends RequestBase implements JsonpSerializable { + private final String name; + + private final String query; + + // --------------------------------------------------------------------------------------------- + + private PutViewRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); + + } + + public static PutViewRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The view name to create or update. + *

            + * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - The ES|QL query string from which to create a view. + *

            + * API name: {@code query} + */ + public final String query() { + return this.query; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("query"); + generator.write(this.query); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutViewRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String name; + + private String query; + + /** + * Required - The view name to create or update. + *

            + * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - The ES|QL query string from which to create a view. + *

            + * API name: {@code query} + */ + public final Builder query(String value) { + this.query = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutViewRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutViewRequest build() { + _checkSingleUse(); + + return new PutViewRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutViewRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutViewRequest::setupPutViewRequestDeserializer); + + protected static void setupPutViewRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code esql.put_view}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/esql.put_view", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_query"); + buf.append("/view"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + params.put("name", request.name); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, PutViewResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewResponse.java new file mode 100644 index 0000000000..cdddfb1026 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewResponse.java @@ -0,0 +1,107 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.esql; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: esql.put_view.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutViewResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private PutViewResponse(Builder builder) { + super(builder); + + } + + public static PutViewResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutViewResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutViewResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutViewResponse build() { + _checkSingleUse(); + + return new PutViewResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutViewResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutViewResponse::setupPutViewResponseDeserializer); + + protected static void setupPutViewResponseDeserializer(ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java index 37729935ce..742604cacf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java @@ -65,8 +65,9 @@ // typedef: esql.query.Request /** - * Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query - * language) query. + * Run an ES|QL query. + *

            + * Get search results for an ES|QL (Elasticsearch query language) query. * * @see API * specification @@ -94,6 +95,9 @@ public class QueryRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean includeCcsMetadata; + @Nullable + private final Boolean includeExecutionMetadata; + @Nullable private final String locale; @@ -117,6 +121,7 @@ private QueryRequest(Builder builder) { this.filter = builder.filter; this.format = builder.format; this.includeCcsMetadata = builder.includeCcsMetadata; + this.includeExecutionMetadata = builder.includeExecutionMetadata; this.locale = builder.locale; this.params = ApiTypeHelper.unmodifiable(builder.params); this.profile = builder.profile; @@ -221,6 +226,20 @@ public final Boolean includeCcsMetadata() { return this.includeCcsMetadata; } + /** + * When set to true, the response will include an extra + * _clusters object with information about the clusters that + * participated in the search along with info such as shards count. This is + * similar to include_ccs_metadata, but it also returns metadata + * when the query is not CCS/CPS + *

            + * API name: {@code include_execution_metadata} + */ + @Nullable + public final Boolean includeExecutionMetadata() { + return this.includeExecutionMetadata; + } + /** * API name: {@code locale} */ @@ -298,6 +317,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("include_ccs_metadata"); generator.write(this.includeCcsMetadata); + } + if (this.includeExecutionMetadata != null) { + generator.writeKey("include_execution_metadata"); + generator.write(this.includeExecutionMetadata); + } if (this.locale != null) { generator.writeKey("locale"); @@ -372,6 +396,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean includeCcsMetadata; + @Nullable + private Boolean includeExecutionMetadata; + @Nullable private String locale; @@ -499,6 +526,20 @@ public final Builder includeCcsMetadata(@Nullable Boolean value) { return this; } + /** + * When set to true, the response will include an extra + * _clusters object with information about the clusters that + * participated in the search along with info such as shards count. This is + * similar to include_ccs_metadata, but it also returns metadata + * when the query is not CCS/CPS + *

            + * API name: {@code include_execution_metadata} + */ + public final Builder includeExecutionMetadata(@Nullable Boolean value) { + this.includeExecutionMetadata = value; + return this; + } + /** * API name: {@code locale} */ @@ -696,7 +737,8 @@ protected static void setupQueryRequestDeserializer(ObjectDeserializerfeature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -98,11 +100,13 @@ public CompletableFuture getFeatures(GetFeaturesRequest req } /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -127,11 +131,13 @@ public final CompletableFuture getFeatures( } /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -155,9 +161,10 @@ public CompletableFuture getFeatures() { // ----- Endpoint: features.reset_features /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. @@ -192,9 +199,10 @@ public CompletableFuture resetFeatures(ResetFeaturesReque } /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. @@ -230,9 +238,10 @@ public final CompletableFuture resetFeatures( } /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java index ac7846bd4a..dc2d852cef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ElasticsearchFeaturesClient.java @@ -68,11 +68,13 @@ public ElasticsearchFeaturesClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: features.get_features /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -96,11 +98,13 @@ public GetFeaturesResponse getFeatures(GetFeaturesRequest request) throws IOExce } /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -126,11 +130,13 @@ public final GetFeaturesResponse getFeatures( } /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices @@ -154,9 +160,10 @@ public GetFeaturesResponse getFeatures() throws IOException, ElasticsearchExcept // ----- Endpoint: features.reset_features /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. @@ -192,9 +199,10 @@ public ResetFeaturesResponse resetFeatures(ResetFeaturesRequest request) } /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. @@ -231,9 +239,10 @@ public final ResetFeaturesResponse resetFeatures( } /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java index 712e648ad3..4ba0b3b646 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java @@ -55,11 +55,13 @@ // typedef: features.get_features.Request /** - * Get the features. Get a list of features that can be included in snapshots - * using the feature_states field when creating a snapshot. You can - * use this API to determine which feature states to include when taking a - * snapshot. By default, all feature states are included in a snapshot if that - * snapshot includes the global state, or none if it does not. + * Get the features. + *

            + * Get a list of features that can be included in snapshots using the + * feature_states field when creating a snapshot. You can use this + * API to determine which feature states to include when taking a snapshot. By + * default, all feature states are included in a snapshot if that snapshot + * includes the global state, or none if it does not. *

            * A feature state includes one or more system indices necessary for a given * feature to function. In order to ensure data integrity, all system indices diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java index a4c5a81dfa..b5ef5225dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java @@ -55,9 +55,10 @@ // typedef: features.reset_features.Request /** - * Reset the features. Clear all of the state information stored in system - * indices by Elasticsearch features, including the security and machine - * learning indices. + * Reset the features. + *

            + * Clear all of the state information stored in system indices by Elasticsearch + * features, including the security and machine learning indices. *

            * WARNING: Intended for development and testing use only. Do not reset features * on a production cluster. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java index e681e600b9..70aad9fee3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetAsyncClient.java @@ -70,9 +70,11 @@ public ElasticsearchFleetAsyncClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: fleet.search /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @see Documentation @@ -90,9 +92,11 @@ public CompletableFuture> search(Flee } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @param fn * a function that initializes a builder to create the @@ -130,9 +134,11 @@ public final CompletableFuture> search( } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @see Documentation @@ -150,9 +156,11 @@ public CompletableFuture> search(Flee } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java index 9743719af3..a0f1ef876b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/ElasticsearchFleetClient.java @@ -70,9 +70,11 @@ public ElasticsearchFleetClient withTransportOptions(@Nullable TransportOptions // ----- Endpoint: fleet.search /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @see Documentation @@ -90,9 +92,11 @@ public FleetSearchResponse search(FleetSearchRequest requ } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @param fn * a function that initializes a builder to create the @@ -131,9 +135,11 @@ public final FleetSearchResponse search( } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @see Documentation @@ -151,9 +157,11 @@ public FleetSearchResponse search(FleetSearchRequest requ } /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java index 7f11a2fcc9..cae6e66d23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java @@ -87,9 +87,11 @@ // typedef: fleet.search.Request /** - * Run a Fleet search. The purpose of the Fleet search API is to provide an API - * where the search will be run only after the provided checkpoint has been - * processed and is visible for searches inside of Elasticsearch. + * Run a Fleet search. + *

            + * The purpose of the Fleet search API is to provide an API where the search + * will be run only after the provided checkpoint has been processed and is + * visible for searches inside of Elasticsearch. * * @see API * specification @@ -190,8 +192,7 @@ public class FleetSearchRequest extends RequestBase implements JsonpSerializable private final List rescore; - @Nullable - private final String routing; + private final List routing; private final Map runtimeMappings; @@ -278,7 +279,7 @@ private FleetSearchRequest(Builder builder) { this.query = builder.query; this.requestCache = builder.requestCache; this.rescore = ApiTypeHelper.unmodifiable(builder.rescore); - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); this.scriptFields = ApiTypeHelper.unmodifiable(builder.scriptFields); this.scroll = builder.scroll; @@ -607,8 +608,7 @@ public final List rescore() { /** * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -1148,7 +1148,7 @@ public static class Builder extends RequestBase.AbstractBuilder private List rescore; @Nullable - private String routing; + private List routing; @Nullable private Map runtimeMappings; @@ -1742,9 +1742,21 @@ public final Builder rescore(Function> f /** * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -2296,8 +2308,8 @@ protected static void setupFleetSearchRequestDeserializer(ObjectDeserializer v).collect(Collectors.joining(","))); } if (request.ignoreUnavailable != null) { params.put("ignore_unavailable", String.valueOf(request.ignoreUnavailable)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java index 337e3dca73..cf638ea58f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphAsyncClient.java @@ -68,14 +68,16 @@ public ElasticsearchGraphAsyncClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: graph.explore /** - * Explore graph analytics. Extract and summarize information about the - * documents and terms in an Elasticsearch data stream or index. The easiest way - * to understand the behavior of this API is to use the Graph UI to explore - * connections. An initial request to the _explore API contains a - * seed query that identifies the documents of interest and specifies the fields - * that define the vertices and connections you want to include in the graph. - * Subsequent requests enable you to spider out from one more vertices of - * interest. You can exclude vertices that have already been returned. + * Explore graph analytics. + *

            + * Extract and summarize information about the documents and terms in an + * Elasticsearch data stream or index. The easiest way to understand the + * behavior of this API is to use the Graph UI to explore connections. An + * initial request to the _explore API contains a seed query that + * identifies the documents of interest and specifies the fields that define the + * vertices and connections you want to include in the graph. Subsequent + * requests enable you to spider out from one more vertices of interest. You can + * exclude vertices that have already been returned. * * @see Documentation @@ -90,14 +92,16 @@ public CompletableFuture explore(ExploreRequest request) { } /** - * Explore graph analytics. Extract and summarize information about the - * documents and terms in an Elasticsearch data stream or index. The easiest way - * to understand the behavior of this API is to use the Graph UI to explore - * connections. An initial request to the _explore API contains a - * seed query that identifies the documents of interest and specifies the fields - * that define the vertices and connections you want to include in the graph. - * Subsequent requests enable you to spider out from one more vertices of - * interest. You can exclude vertices that have already been returned. + * Explore graph analytics. + *

            + * Extract and summarize information about the documents and terms in an + * Elasticsearch data stream or index. The easiest way to understand the + * behavior of this API is to use the Graph UI to explore connections. An + * initial request to the _explore API contains a seed query that + * identifies the documents of interest and specifies the fields that define the + * vertices and connections you want to include in the graph. Subsequent + * requests enable you to spider out from one more vertices of interest. You can + * exclude vertices that have already been returned. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java index 558b3272f3..3710ddd06e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ElasticsearchGraphClient.java @@ -68,14 +68,16 @@ public ElasticsearchGraphClient withTransportOptions(@Nullable TransportOptions // ----- Endpoint: graph.explore /** - * Explore graph analytics. Extract and summarize information about the - * documents and terms in an Elasticsearch data stream or index. The easiest way - * to understand the behavior of this API is to use the Graph UI to explore - * connections. An initial request to the _explore API contains a - * seed query that identifies the documents of interest and specifies the fields - * that define the vertices and connections you want to include in the graph. - * Subsequent requests enable you to spider out from one more vertices of - * interest. You can exclude vertices that have already been returned. + * Explore graph analytics. + *

            + * Extract and summarize information about the documents and terms in an + * Elasticsearch data stream or index. The easiest way to understand the + * behavior of this API is to use the Graph UI to explore connections. An + * initial request to the _explore API contains a seed query that + * identifies the documents of interest and specifies the fields that define the + * vertices and connections you want to include in the graph. Subsequent + * requests enable you to spider out from one more vertices of interest. You can + * exclude vertices that have already been returned. * * @see Documentation @@ -90,14 +92,16 @@ public ExploreResponse explore(ExploreRequest request) throws IOException, Elast } /** - * Explore graph analytics. Extract and summarize information about the - * documents and terms in an Elasticsearch data stream or index. The easiest way - * to understand the behavior of this API is to use the Graph UI to explore - * connections. An initial request to the _explore API contains a - * seed query that identifies the documents of interest and specifies the fields - * that define the vertices and connections you want to include in the graph. - * Subsequent requests enable you to spider out from one more vertices of - * interest. You can exclude vertices that have already been returned. + * Explore graph analytics. + *

            + * Extract and summarize information about the documents and terms in an + * Elasticsearch data stream or index. The easiest way to understand the + * behavior of this API is to use the Graph UI to explore connections. An + * initial request to the _explore API contains a seed query that + * identifies the documents of interest and specifies the fields that define the + * vertices and connections you want to include in the graph. Subsequent + * requests enable you to spider out from one more vertices of interest. You can + * exclude vertices that have already been returned. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index 12f57c5d0e..e4a37f0236 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -62,14 +62,16 @@ // typedef: graph.explore.Request /** - * Explore graph analytics. Extract and summarize information about the - * documents and terms in an Elasticsearch data stream or index. The easiest way - * to understand the behavior of this API is to use the Graph UI to explore - * connections. An initial request to the _explore API contains a - * seed query that identifies the documents of interest and specifies the fields - * that define the vertices and connections you want to include in the graph. - * Subsequent requests enable you to spider out from one more vertices of - * interest. You can exclude vertices that have already been returned. + * Explore graph analytics. + *

            + * Extract and summarize information about the documents and terms in an + * Elasticsearch data stream or index. The easiest way to understand the + * behavior of this API is to use the Graph UI to explore connections. An + * initial request to the _explore API contains a seed query that + * identifies the documents of interest and specifies the fields that define the + * vertices and connections you want to include in the graph. Subsequent + * requests enable you to spider out from one more vertices of interest. You can + * exclude vertices that have already been returned. * * @see API * specification @@ -87,8 +89,7 @@ public class ExploreRequest extends RequestBase implements JsonpSerializable { @Nullable private final Query query; - @Nullable - private final String routing; + private final List routing; @Nullable private final Time timeout; @@ -103,7 +104,7 @@ private ExploreRequest(Builder builder) { this.controls = builder.controls; this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); this.query = builder.query; - this.routing = builder.routing; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); this.timeout = builder.timeout; this.vertices = ApiTypeHelper.unmodifiable(builder.vertices); @@ -159,8 +160,7 @@ public final Query query() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -244,7 +244,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Query query; @Nullable - private String routing; + private List routing; @Nullable private Time timeout; @@ -352,9 +352,23 @@ public final Builder query(QueryVariant value) { * Custom value used to route operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Custom value used to route operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); return this; } @@ -506,8 +520,8 @@ protected static void setupExploreRequestDeserializer(ObjectDeserializer { Map params = new HashMap<>(); - if (request.routing != null) { - params.put("routing", request.routing); + if (ApiTypeHelper.isDefined(request.routing)) { + params.put("routing", request.routing.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.timeout != null) { params.put("timeout", request.timeout._toJsonString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java index 006b224a16..9578722a0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java @@ -56,9 +56,10 @@ // typedef: ilm.delete_lifecycle.Request /** - * Delete a lifecycle policy. You cannot delete policies that are currently in - * use. If the policy is being used to manage any indices, the request fails and - * returns an error. + * Delete a lifecycle policy. + *

            + * You cannot delete policies that are currently in use. If the policy is being + * used to manage any indices, the request fails and returns an error. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java index 5da0692301..b59420e140 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java @@ -67,9 +67,10 @@ public ElasticsearchIlmAsyncClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: ilm.delete_lifecycle /** - * Delete a lifecycle policy. You cannot delete policies that are currently in - * use. If the policy is being used to manage any indices, the request fails and - * returns an error. + * Delete a lifecycle policy. + *

            + * You cannot delete policies that are currently in use. If the policy is being + * used to manage any indices, the request fails and returns an error. * * @see Documentation @@ -84,9 +85,10 @@ public CompletableFuture deleteLifecycle(DeleteLifecycl } /** - * Delete a lifecycle policy. You cannot delete policies that are currently in - * use. If the policy is being used to manage any indices, the request fails and - * returns an error. + * Delete a lifecycle policy. + *

            + * You cannot delete policies that are currently in use. If the policy is being + * used to manage any indices, the request fails and returns an error. * * @param fn * a function that initializes a builder to create the @@ -104,9 +106,11 @@ public final CompletableFuture deleteLifecycle( // ----- Endpoint: ilm.explain_lifecycle /** - * Explain the lifecycle state. Get the current lifecycle status for one or more - * indices. For data streams, the API retrieves the current lifecycle status for - * the stream's backing indices. + * Explain the lifecycle state. + *

            + * Get the current lifecycle status for one or more indices. For data streams, + * the API retrieves the current lifecycle status for the stream's backing + * indices. *

            * The response indicates when the index entered each lifecycle state, provides * the definition of the running phase, and information about any failures. @@ -124,9 +128,11 @@ public CompletableFuture explainLifecycle(ExplainLifec } /** - * Explain the lifecycle state. Get the current lifecycle status for one or more - * indices. For data streams, the API retrieves the current lifecycle status for - * the stream's backing indices. + * Explain the lifecycle state. + *

            + * Get the current lifecycle status for one or more indices. For data streams, + * the API retrieves the current lifecycle status for the stream's backing + * indices. *

            * The response indicates when the index entered each lifecycle state, provides * the definition of the running phase, and information about any failures. @@ -209,11 +215,13 @@ public CompletableFuture getStatus() { // ----- Endpoint: ilm.migrate_to_data_tiers /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -242,11 +250,13 @@ public CompletableFuture migrateToDataTiers(MigrateT } /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -276,11 +286,13 @@ public final CompletableFuture migrateToDataTiers( } /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -309,8 +321,10 @@ public CompletableFuture migrateToDataTiers() { // ----- Endpoint: ilm.move_to_step /** - * Move to a lifecycle step. Manually move an index into a specific step in the - * lifecycle policy and run that step. + * Move to a lifecycle step. + *

            + * Manually move an index into a specific step in the lifecycle policy and run + * that step. *

            * WARNING: This operation can result in the loss of data. Manually moving an * index into a specific step runs that step even if it has already been @@ -343,8 +357,10 @@ public CompletableFuture moveToStep(MoveToStepRequest reques } /** - * Move to a lifecycle step. Manually move an index into a specific step in the - * lifecycle policy and run that step. + * Move to a lifecycle step. + *

            + * Manually move an index into a specific step in the lifecycle policy and run + * that step. *

            * WARNING: This operation can result in the loss of data. Manually moving an * index into a specific step runs that step even if it has already been @@ -380,8 +396,10 @@ public final CompletableFuture moveToStep( // ----- Endpoint: ilm.put_lifecycle /** - * Create or update a lifecycle policy. If the specified policy exists, it is - * replaced and the policy version is incremented. + * Create or update a lifecycle policy. + *

            + * If the specified policy exists, it is replaced and the policy version is + * incremented. *

            * NOTE: Only the latest version of the policy is stored, you cannot revert to * previous versions. @@ -399,8 +417,10 @@ public CompletableFuture putLifecycle(PutLifecycleRequest } /** - * Create or update a lifecycle policy. If the specified policy exists, it is - * replaced and the policy version is incremented. + * Create or update a lifecycle policy. + *

            + * If the specified policy exists, it is replaced and the policy version is + * incremented. *

            * NOTE: Only the latest version of the policy is stored, you cannot revert to * previous versions. @@ -421,8 +441,10 @@ public final CompletableFuture putLifecycle( // ----- Endpoint: ilm.remove_policy /** - * Remove policies from an index. Remove the assigned lifecycle policies from an - * index or a data stream's backing indices. It also stops managing the indices. + * Remove policies from an index. + *

            + * Remove the assigned lifecycle policies from an index or a data stream's + * backing indices. It also stops managing the indices. * * @see Documentation @@ -437,8 +459,10 @@ public CompletableFuture removePolicy(RemovePolicyRequest } /** - * Remove policies from an index. Remove the assigned lifecycle policies from an - * index or a data stream's backing indices. It also stops managing the indices. + * Remove policies from an index. + *

            + * Remove the assigned lifecycle policies from an index or a data stream's + * backing indices. It also stops managing the indices. * * @param fn * a function that initializes a builder to create the @@ -456,10 +480,12 @@ public final CompletableFuture removePolicy( // ----- Endpoint: ilm.retry /** - * Retry a policy. Retry running the lifecycle policy for an index that is in - * the ERROR step. The API sets the policy back to the step where the error - * occurred and runs the step. Use the explain lifecycle state API to determine - * whether an index is in the ERROR step. + * Retry a policy. + *

            + * Retry running the lifecycle policy for an index that is in the ERROR step. + * The API sets the policy back to the step where the error occurred and runs + * the step. Use the explain lifecycle state API to determine whether an index + * is in the ERROR step. * * @see Documentation @@ -474,10 +500,12 @@ public CompletableFuture retry(RetryRequest request) { } /** - * Retry a policy. Retry running the lifecycle policy for an index that is in - * the ERROR step. The API sets the policy back to the step where the error - * occurred and runs the step. Use the explain lifecycle state API to determine - * whether an index is in the ERROR step. + * Retry a policy. + *

            + * Retry running the lifecycle policy for an index that is in the ERROR step. + * The API sets the policy back to the step where the error occurred and runs + * the step. Use the explain lifecycle state API to determine whether an index + * is in the ERROR step. * * @param fn * a function that initializes a builder to create the @@ -495,10 +523,11 @@ public final CompletableFuture retry( // ----- Endpoint: ilm.start /** - * Start the ILM plugin. Start the index lifecycle management plugin if it is - * currently stopped. ILM is started automatically when the cluster is formed. - * Restarting ILM is necessary only when it has been stopped using the stop ILM - * API. + * Start the ILM plugin. + *

            + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @see Documentation @@ -513,10 +542,11 @@ public CompletableFuture start(StartIlmRequest request) { } /** - * Start the ILM plugin. Start the index lifecycle management plugin if it is - * currently stopped. ILM is started automatically when the cluster is formed. - * Restarting ILM is necessary only when it has been stopped using the stop ILM - * API. + * Start the ILM plugin. + *

            + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @param fn * a function that initializes a builder to create the @@ -532,10 +562,11 @@ public final CompletableFuture start( } /** - * Start the ILM plugin. Start the index lifecycle management plugin if it is - * currently stopped. ILM is started automatically when the cluster is formed. - * Restarting ILM is necessary only when it has been stopped using the stop ILM - * API. + * Start the ILM plugin. + *

            + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @see Documentation @@ -550,10 +581,11 @@ public CompletableFuture start() { // ----- Endpoint: ilm.stop /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the @@ -573,10 +605,11 @@ public CompletableFuture stop(StopIlmRequest request) { } /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the @@ -597,10 +630,11 @@ public final CompletableFuture stop( } /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java index cb92a3d3a1..590fb2863d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java @@ -68,9 +68,10 @@ public ElasticsearchIlmClient withTransportOptions(@Nullable TransportOptions tr // ----- Endpoint: ilm.delete_lifecycle /** - * Delete a lifecycle policy. You cannot delete policies that are currently in - * use. If the policy is being used to manage any indices, the request fails and - * returns an error. + * Delete a lifecycle policy. + *

            + * You cannot delete policies that are currently in use. If the policy is being + * used to manage any indices, the request fails and returns an error. * * @see Documentation @@ -86,9 +87,10 @@ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) } /** - * Delete a lifecycle policy. You cannot delete policies that are currently in - * use. If the policy is being used to manage any indices, the request fails and - * returns an error. + * Delete a lifecycle policy. + *

            + * You cannot delete policies that are currently in use. If the policy is being + * used to manage any indices, the request fails and returns an error. * * @param fn * a function that initializes a builder to create the @@ -107,9 +109,11 @@ public final DeleteLifecycleResponse deleteLifecycle( // ----- Endpoint: ilm.explain_lifecycle /** - * Explain the lifecycle state. Get the current lifecycle status for one or more - * indices. For data streams, the API retrieves the current lifecycle status for - * the stream's backing indices. + * Explain the lifecycle state. + *

            + * Get the current lifecycle status for one or more indices. For data streams, + * the API retrieves the current lifecycle status for the stream's backing + * indices. *

            * The response indicates when the index entered each lifecycle state, provides * the definition of the running phase, and information about any failures. @@ -128,9 +132,11 @@ public ExplainLifecycleResponse explainLifecycle(ExplainLifecycleRequest request } /** - * Explain the lifecycle state. Get the current lifecycle status for one or more - * indices. For data streams, the API retrieves the current lifecycle status for - * the stream's backing indices. + * Explain the lifecycle state. + *

            + * Get the current lifecycle status for one or more indices. For data streams, + * the API retrieves the current lifecycle status for the stream's backing + * indices. *

            * The response indicates when the index entered each lifecycle state, provides * the definition of the running phase, and information about any failures. @@ -215,11 +221,13 @@ public GetIlmStatusResponse getStatus() throws IOException, ElasticsearchExcepti // ----- Endpoint: ilm.migrate_to_data_tiers /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -249,11 +257,13 @@ public MigrateToDataTiersResponse migrateToDataTiers(MigrateToDataTiersRequest r } /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -284,11 +294,13 @@ public final MigrateToDataTiersResponse migrateToDataTiers( } /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual @@ -317,8 +329,10 @@ public MigrateToDataTiersResponse migrateToDataTiers() throws IOException, Elast // ----- Endpoint: ilm.move_to_step /** - * Move to a lifecycle step. Manually move an index into a specific step in the - * lifecycle policy and run that step. + * Move to a lifecycle step. + *

            + * Manually move an index into a specific step in the lifecycle policy and run + * that step. *

            * WARNING: This operation can result in the loss of data. Manually moving an * index into a specific step runs that step even if it has already been @@ -351,8 +365,10 @@ public MoveToStepResponse moveToStep(MoveToStepRequest request) throws IOExcepti } /** - * Move to a lifecycle step. Manually move an index into a specific step in the - * lifecycle policy and run that step. + * Move to a lifecycle step. + *

            + * Manually move an index into a specific step in the lifecycle policy and run + * that step. *

            * WARNING: This operation can result in the loss of data. Manually moving an * index into a specific step runs that step even if it has already been @@ -388,8 +404,10 @@ public final MoveToStepResponse moveToStep(Function + * If the specified policy exists, it is replaced and the policy version is + * incremented. *

            * NOTE: Only the latest version of the policy is stored, you cannot revert to * previous versions. @@ -407,8 +425,10 @@ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOE } /** - * Create or update a lifecycle policy. If the specified policy exists, it is - * replaced and the policy version is incremented. + * Create or update a lifecycle policy. + *

            + * If the specified policy exists, it is replaced and the policy version is + * incremented. *

            * NOTE: Only the latest version of the policy is stored, you cannot revert to * previous versions. @@ -430,8 +450,10 @@ public final PutLifecycleResponse putLifecycle( // ----- Endpoint: ilm.remove_policy /** - * Remove policies from an index. Remove the assigned lifecycle policies from an - * index or a data stream's backing indices. It also stops managing the indices. + * Remove policies from an index. + *

            + * Remove the assigned lifecycle policies from an index or a data stream's + * backing indices. It also stops managing the indices. * * @see Documentation @@ -446,8 +468,10 @@ public RemovePolicyResponse removePolicy(RemovePolicyRequest request) throws IOE } /** - * Remove policies from an index. Remove the assigned lifecycle policies from an - * index or a data stream's backing indices. It also stops managing the indices. + * Remove policies from an index. + *

            + * Remove the assigned lifecycle policies from an index or a data stream's + * backing indices. It also stops managing the indices. * * @param fn * a function that initializes a builder to create the @@ -466,10 +490,12 @@ public final RemovePolicyResponse removePolicy( // ----- Endpoint: ilm.retry /** - * Retry a policy. Retry running the lifecycle policy for an index that is in - * the ERROR step. The API sets the policy back to the step where the error - * occurred and runs the step. Use the explain lifecycle state API to determine - * whether an index is in the ERROR step. + * Retry a policy. + *

            + * Retry running the lifecycle policy for an index that is in the ERROR step. + * The API sets the policy back to the step where the error occurred and runs + * the step. Use the explain lifecycle state API to determine whether an index + * is in the ERROR step. * * @see Documentation @@ -484,10 +510,12 @@ public RetryResponse retry(RetryRequest request) throws IOException, Elasticsear } /** - * Retry a policy. Retry running the lifecycle policy for an index that is in - * the ERROR step. The API sets the policy back to the step where the error - * occurred and runs the step. Use the explain lifecycle state API to determine - * whether an index is in the ERROR step. + * Retry a policy. + *

            + * Retry running the lifecycle policy for an index that is in the ERROR step. + * The API sets the policy back to the step where the error occurred and runs + * the step. Use the explain lifecycle state API to determine whether an index + * is in the ERROR step. * * @param fn * a function that initializes a builder to create the @@ -505,10 +533,11 @@ public final RetryResponse retry(Function + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @see Documentation @@ -523,10 +552,11 @@ public StartIlmResponse start(StartIlmRequest request) throws IOException, Elast } /** - * Start the ILM plugin. Start the index lifecycle management plugin if it is - * currently stopped. ILM is started automatically when the cluster is formed. - * Restarting ILM is necessary only when it has been stopped using the stop ILM - * API. + * Start the ILM plugin. + *

            + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @param fn * a function that initializes a builder to create the @@ -542,10 +572,11 @@ public final StartIlmResponse start(Function + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @see Documentation @@ -560,10 +591,11 @@ public StartIlmResponse start() throws IOException, ElasticsearchException { // ----- Endpoint: ilm.stop /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the @@ -583,10 +615,11 @@ public StopIlmResponse stop(StopIlmRequest request) throws IOException, Elastics } /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the @@ -607,10 +640,11 @@ public final StopIlmResponse stop(Function + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java index e77ba2f2a2..ab3326444c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java @@ -57,9 +57,11 @@ // typedef: ilm.explain_lifecycle.Request /** - * Explain the lifecycle state. Get the current lifecycle status for one or more - * indices. For data streams, the API retrieves the current lifecycle status for - * the stream's backing indices. + * Explain the lifecycle state. + *

            + * Get the current lifecycle status for one or more indices. For data streams, + * the API retrieves the current lifecycle status for the stream's backing + * indices. *

            * The response indicates when the index entered each lifecycle state, provides * the definition of the running phase, and information about any failures. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java index 02857412a9..13e7eac0ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java @@ -59,11 +59,13 @@ // typedef: ilm.migrate_to_data_tiers.Request /** - * Migrate to data tiers routing. Switch the indices, ILM policies, and legacy, - * composable, and component templates from using custom node attributes and - * attribute-based allocation filters to using data tiers. Optionally, delete - * one legacy index template. Using node roles enables ILM to automatically move - * the indices between data tiers. + * Migrate to data tiers routing. + *

            + * Switch the indices, ILM policies, and legacy, composable, and component + * templates from using custom node attributes and attribute-based allocation + * filters to using data tiers. Optionally, delete one legacy index template. + * Using node roles enables ILM to automatically move the indices between data + * tiers. *

            * Migrating away from custom node attributes routing can be manually performed. * This API provides an automated way of performing three out of the four manual diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java index 61fb418b20..659bdbbfaf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java @@ -59,8 +59,10 @@ // typedef: ilm.move_to_step.Request /** - * Move to a lifecycle step. Manually move an index into a specific step in the - * lifecycle policy and run that step. + * Move to a lifecycle step. + *

            + * Manually move an index into a specific step in the lifecycle policy and run + * that step. *

            * WARNING: This operation can result in the loss of data. Manually moving an * index into a specific step runs that step even if it has already been diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java index b9e4a2837a..9adf3e1a91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java @@ -58,8 +58,10 @@ // typedef: ilm.put_lifecycle.Request /** - * Create or update a lifecycle policy. If the specified policy exists, it is - * replaced and the policy version is incremented. + * Create or update a lifecycle policy. + *

            + * If the specified policy exists, it is replaced and the policy version is + * incremented. *

            * NOTE: Only the latest version of the policy is stored, you cannot revert to * previous versions. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java index 6b102a157a..09889fe1c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java @@ -56,8 +56,10 @@ // typedef: ilm.remove_policy.Request /** - * Remove policies from an index. Remove the assigned lifecycle policies from an - * index or a data stream's backing indices. It also stops managing the indices. + * Remove policies from an index. + *

            + * Remove the assigned lifecycle policies from an index or a data stream's + * backing indices. It also stops managing the indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java index 37213aa6b2..b01fe287c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java @@ -56,10 +56,12 @@ // typedef: ilm.retry.Request /** - * Retry a policy. Retry running the lifecycle policy for an index that is in - * the ERROR step. The API sets the policy back to the step where the error - * occurred and runs the step. Use the explain lifecycle state API to determine - * whether an index is in the ERROR step. + * Retry a policy. + *

            + * Retry running the lifecycle policy for an index that is in the ERROR step. + * The API sets the policy back to the step where the error occurred and runs + * the step. Use the explain lifecycle state API to determine whether an index + * is in the ERROR step. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java index fac45a8e52..bf41285fad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java @@ -55,10 +55,11 @@ // typedef: ilm.start.Request /** - * Start the ILM plugin. Start the index lifecycle management plugin if it is - * currently stopped. ILM is started automatically when the cluster is formed. - * Restarting ILM is necessary only when it has been stopped using the stop ILM - * API. + * Start the ILM plugin. + *

            + * Start the index lifecycle management plugin if it is currently stopped. ILM + * is started automatically when the cluster is formed. Restarting ILM is + * necessary only when it has been stopped using the stop ILM API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java index 8e6a3d06c8..d6a59cc0c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java @@ -55,10 +55,11 @@ // typedef: ilm.stop.Request /** - * Stop the ILM plugin. Halt all lifecycle management operations and stop the - * index lifecycle management plugin. This is useful when you are performing - * maintenance on the cluster and need to prevent ILM from performing any - * actions on your indices. + * Stop the ILM plugin. + *

            + * Halt all lifecycle management operations and stop the index lifecycle + * management plugin. This is useful when you are performing maintenance on the + * cluster and need to prevent ILM from performing any actions on your indices. *

            * The API returns as soon as the stop request has been acknowledged, but the * plugin might continue to run until in-progress operations complete and the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java index d504761053..dc3b1650d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java @@ -80,7 +80,7 @@ public class AddBlockRequest extends RequestBase { @Nullable private final Boolean ignoreUnavailable; - private final String index; + private final List index; @Nullable private final Time masterTimeout; @@ -96,7 +96,7 @@ private AddBlockRequest(Builder builder) { this.block = ApiTypeHelper.requireNonNull(builder.block, this, "block"); this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); this.ignoreUnavailable = builder.ignoreUnavailable; - this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); this.masterTimeout = builder.masterTimeout; this.timeout = builder.timeout; @@ -164,7 +164,7 @@ public final Boolean ignoreUnavailable() { *

            * API name: {@code index} */ - public final String index() { + public final List index() { return this.index; } @@ -213,7 +213,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean ignoreUnavailable; - private String index; + private List index; @Nullable private Time masterTimeout; @@ -297,9 +297,29 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { * using the cluster update settings API. *

            * API name: {@code index} + *

            + * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Required - A comma-separated list or wildcard expression of index names used + * to limit the request. By default, you must explicitly name the indices you + * are adding blocks to. To allow the adding of blocks to indices with + * _all, *, or other wildcard expressions, change the + * action.destructive_requires_name setting to false. + * You can update this setting in the elasticsearch.yml file or by + * using the cluster update settings API. + *

            + * API name: {@code index} + *

            + * Adds one or more values to index. */ - public final Builder index(String value) { - this.index = value; + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); return this; } @@ -400,7 +420,7 @@ public AddBlockRequest build() { if (propsSet == (_index | _block)) { StringBuilder buf = new StringBuilder(); buf.append("/"); - SimpleEndpoint.pathEncode(request.index, buf); + SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); buf.append("/_block"); buf.append("/"); SimpleEndpoint.pathEncode(request.block.jsonValue(), buf); @@ -422,7 +442,7 @@ public AddBlockRequest build() { propsSet |= _block; if (propsSet == (_index | _block)) { - params.put("index", request.index); + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); params.put("block", request.block.jsonValue()); } return params; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java index 0a25700106..3f8c5b910e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java @@ -28,11 +28,13 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -64,8 +66,7 @@ public class Alias implements JsonpSerializable { @Nullable private final Query filter; - @Nullable - private final String indexRouting; + private final List indexRouting; @Nullable private final Boolean isHidden; @@ -73,22 +74,20 @@ public class Alias implements JsonpSerializable { @Nullable private final Boolean isWriteIndex; - @Nullable - private final String routing; + private final List routing; - @Nullable - private final String searchRouting; + private final List searchRouting; // --------------------------------------------------------------------------------------------- private Alias(Builder builder) { this.filter = builder.filter; - this.indexRouting = builder.indexRouting; + this.indexRouting = ApiTypeHelper.unmodifiable(builder.indexRouting); this.isHidden = builder.isHidden; this.isWriteIndex = builder.isWriteIndex; - this.routing = builder.routing; - this.searchRouting = builder.searchRouting; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); + this.searchRouting = ApiTypeHelper.unmodifiable(builder.searchRouting); } @@ -112,8 +111,7 @@ public final Query filter() { *

            * API name: {@code index_routing} */ - @Nullable - public final String indexRouting() { + public final List indexRouting() { return this.indexRouting; } @@ -143,8 +141,7 @@ public final Boolean isWriteIndex() { *

            * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -154,8 +151,7 @@ public final String routing() { *

            * API name: {@code search_routing} */ - @Nullable - public final String searchRouting() { + public final List searchRouting() { return this.searchRouting; } @@ -175,9 +171,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.filter.serialize(generator, mapper); } - if (this.indexRouting != null) { + if (ApiTypeHelper.isDefined(this.indexRouting)) { generator.writeKey("index_routing"); - generator.write(this.indexRouting); + generator.writeStartArray(); + for (String item0 : this.indexRouting) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.isHidden != null) { @@ -190,14 +191,24 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.isWriteIndex); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } - if (this.searchRouting != null) { + if (ApiTypeHelper.isDefined(this.searchRouting)) { generator.writeKey("search_routing"); - generator.write(this.searchRouting); + generator.writeStartArray(); + for (String item0 : this.searchRouting) { + generator.write(item0); + + } + generator.writeEnd(); } @@ -219,7 +230,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Query filter; @Nullable - private String indexRouting; + private List indexRouting; @Nullable private Boolean isHidden; @@ -228,10 +239,10 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean isWriteIndex; @Nullable - private String routing; + private List routing; @Nullable - private String searchRouting; + private List searchRouting; /** * Query used to limit documents the alias can access. @@ -267,9 +278,24 @@ public final Builder filter(QueryVariant value) { * this overwrites the routing value for indexing operations. *

            * API name: {@code index_routing} + *

            + * Adds all elements of list to indexRouting. */ - public final Builder indexRouting(@Nullable String value) { - this.indexRouting = value; + public final Builder indexRouting(List list) { + this.indexRouting = _listAddAll(this.indexRouting, list); + return this; + } + + /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. + *

            + * API name: {@code index_routing} + *

            + * Adds one or more values to indexRouting. + */ + public final Builder indexRouting(String value, String... values) { + this.indexRouting = _listAdd(this.indexRouting, value, values); return this; } @@ -298,9 +324,36 @@ public final Builder isWriteIndex(@Nullable Boolean value) { * Value used to route indexing and search operations to a specific shard. *

            * API name: {@code routing} + *

            + * Adds all elements of list to routing. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Value used to route indexing and search operations to a specific shard. + *

            + * API name: {@code routing} + *

            + * Adds one or more values to routing. + */ + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); + return this; + } + + /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. + *

            + * API name: {@code search_routing} + *

            + * Adds all elements of list to searchRouting. + */ + public final Builder searchRouting(List list) { + this.searchRouting = _listAddAll(this.searchRouting, list); return this; } @@ -309,9 +362,11 @@ public final Builder routing(@Nullable String value) { * overwrites the routing value for search operations. *

            * API name: {@code search_routing} + *

            + * Adds one or more values to searchRouting. */ - public final Builder searchRouting(@Nullable String value) { - this.searchRouting = value; + public final Builder searchRouting(String value, String... values) { + this.searchRouting = _listAdd(this.searchRouting, value, values); return this; } @@ -344,11 +399,14 @@ public Alias build() { protected static void setupAliasDeserializer(ObjectDeserializer op) { op.add(Builder::filter, Query._DESERIALIZER, "filter"); - op.add(Builder::indexRouting, JsonpDeserializer.stringDeserializer(), "index_routing"); + op.add(Builder::indexRouting, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "index_routing"); op.add(Builder::isHidden, JsonpDeserializer.booleanDeserializer(), "is_hidden"); op.add(Builder::isWriteIndex, JsonpDeserializer.booleanDeserializer(), "is_write_index"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); - op.add(Builder::searchRouting, JsonpDeserializer.stringDeserializer(), "search_routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "routing"); + op.add(Builder::searchRouting, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "search_routing"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index a9e251a9cb..8a63793d0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -63,8 +63,10 @@ // typedef: indices.analyze.Request /** - * Get tokens from text analysis. The analyze API performs analysis on a text - * string and returns the resulting tokens. + * Get tokens from text analysis. + *

            + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

            * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java index 684822b89e..f031d54204 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java @@ -59,8 +59,10 @@ // typedef: indices.clear_cache.Request /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

            + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

            * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java index b6a4a2a54d..390ba17cab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java @@ -60,8 +60,10 @@ // typedef: indices.clone.Request /** - * Clone an index. Clone an existing index into a new index. Each original - * primary shard is cloned into a new primary shard in the new index. + * Clone an index. + *

            + * Clone an existing index into a new index. Each original primary shard is + * cloned into a new primary shard in the new index. *

            * IMPORTANT: Elasticsearch does not apply index templates to the resulting * index. The API also does not copy index metadata from the original index. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java index c9805a72b9..652a68d98f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java @@ -61,11 +61,13 @@ // typedef: indices.close.Request /** - * Close an index. A closed index is blocked for read or write operations and - * does not allow all operations that opened indices allow. It is not possible - * to index documents or to search for documents in a closed index. Closed - * indices do not have to maintain internal data structures for indexing or - * searching documents, which results in a smaller overhead on the cluster. + * Close an index. + *

            + * A closed index is blocked for read or write operations and does not allow all + * operations that opened indices allow. It is not possible to index documents + * or to search for documents in a closed index. Closed indices do not have to + * maintain internal data structures for indexing or searching documents, which + * results in a smaller overhead on the cluster. *

            * When opening or closing an index, the master node is responsible for * restarting the index shards to reflect the new state of the index. The shards diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index 30487df5e5..c385725da9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -60,8 +60,10 @@ // typedef: indices.create.Request /** - * Create an index. You can use the create index API to add a new index to an - * Elasticsearch cluster. When creating an index, you can specify the following: + * Create an index. + *

            + * You can use the create index API to add a new index to an Elasticsearch + * cluster. When creating an index, you can specify the following: *

              *
            • Settings for the index.
            • *
            • Mappings for fields in the index.
            • diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java index db24b9183a..efb74137d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycle.java @@ -27,10 +27,12 @@ import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -65,8 +67,10 @@ public class DataStreamLifecycle implements JsonpSerializable { @Nullable private final Time dataRetention; + private final List downsampling; + @Nullable - private final DataStreamLifecycleDownsampling downsampling; + private final SamplingMethod downsamplingMethod; @Nullable private final Boolean enabled; @@ -76,7 +80,8 @@ public class DataStreamLifecycle implements JsonpSerializable { protected DataStreamLifecycle(AbstractBuilder builder) { this.dataRetention = builder.dataRetention; - this.downsampling = builder.downsampling; + this.downsampling = ApiTypeHelper.unmodifiable(builder.downsampling); + this.downsamplingMethod = builder.downsamplingMethod; this.enabled = builder.enabled; } @@ -99,16 +104,27 @@ public final Time dataRetention() { } /** - * The downsampling configuration to execute for the managed backing index after - * rollover. + * The list of downsampling rounds to execute as part of this downsampling + * configuration *

              * API name: {@code downsampling} */ - @Nullable - public final DataStreamLifecycleDownsampling downsampling() { + public final List downsampling() { return this.downsampling; } + /** + * The method used to downsample the data. There are two options + * aggregate and last_value. It requires + * downsampling to be defined. Defaults to aggregate. + *

              + * API name: {@code downsampling_method} + */ + @Nullable + public final SamplingMethod downsamplingMethod() { + return this.downsamplingMethod; + } + /** * If defined, it turns data stream lifecycle on/off * (true/false) for this data stream. A data stream @@ -138,11 +154,20 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.dataRetention.serialize(generator, mapper); } - if (this.downsampling != null) { + if (ApiTypeHelper.isDefined(this.downsampling)) { generator.writeKey("downsampling"); - this.downsampling.serialize(generator, mapper); + generator.writeStartArray(); + for (DownsamplingRound item0 : this.downsampling) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); } + if (this.downsamplingMethod != null) { + generator.writeKey("downsampling_method"); + this.downsamplingMethod.serialize(generator, mapper); + } if (this.enabled != null) { generator.writeKey("enabled"); generator.write(this.enabled); @@ -190,7 +215,10 @@ public abstract static class AbstractBuilder downsampling; + + @Nullable + private SamplingMethod downsamplingMethod; @Nullable private Boolean enabled; @@ -221,25 +249,53 @@ public final BuilderT dataRetention(Function> } /** - * The downsampling configuration to execute for the managed backing index after - * rollover. + * The list of downsampling rounds to execute as part of this downsampling + * configuration + *

              + * API name: {@code downsampling} + *

              + * Adds all elements of list to downsampling. + */ + public final BuilderT downsampling(List list) { + this.downsampling = _listAddAll(this.downsampling, list); + return self(); + } + + /** + * The list of downsampling rounds to execute as part of this downsampling + * configuration *

              * API name: {@code downsampling} + *

              + * Adds one or more values to downsampling. */ - public final BuilderT downsampling(@Nullable DataStreamLifecycleDownsampling value) { - this.downsampling = value; + public final BuilderT downsampling(DownsamplingRound value, DownsamplingRound... values) { + this.downsampling = _listAdd(this.downsampling, value, values); return self(); } /** - * The downsampling configuration to execute for the managed backing index after - * rollover. + * The list of downsampling rounds to execute as part of this downsampling + * configuration *

              * API name: {@code downsampling} + *

              + * Adds a value to downsampling using a builder lambda. */ - public final BuilderT downsampling( - Function> fn) { - return this.downsampling(fn.apply(new DataStreamLifecycleDownsampling.Builder()).build()); + public final BuilderT downsampling(Function> fn) { + return downsampling(fn.apply(new DownsamplingRound.Builder()).build()); + } + + /** + * The method used to downsample the data. There are two options + * aggregate and last_value. It requires + * downsampling to be defined. Defaults to aggregate. + *

              + * API name: {@code downsampling_method} + */ + public final BuilderT downsamplingMethod(@Nullable SamplingMethod value) { + this.downsamplingMethod = value; + return self(); } /** @@ -271,7 +327,9 @@ protected static > void setupDataStre ObjectDeserializer op) { op.add(AbstractBuilder::dataRetention, Time._DESERIALIZER, "data_retention"); - op.add(AbstractBuilder::downsampling, DataStreamLifecycleDownsampling._DESERIALIZER, "downsampling"); + op.add(AbstractBuilder::downsampling, JsonpDeserializer.arrayDeserializer(DownsamplingRound._DESERIALIZER), + "downsampling"); + op.add(AbstractBuilder::downsamplingMethod, SamplingMethod._DESERIALIZER, "downsampling_method"); op.add(AbstractBuilder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index 64b33ea805..8727a8c5e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -70,15 +70,14 @@ public class DataStreamsStatsRequest extends RequestBase { private final List expandWildcards; - @Nullable - private final String name; + private final List name; // --------------------------------------------------------------------------------------------- private DataStreamsStatsRequest(Builder builder) { this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); - this.name = builder.name; + this.name = ApiTypeHelper.unmodifiable(builder.name); } @@ -103,8 +102,7 @@ public final List expandWildcards() { *

              * API name: {@code name} */ - @Nullable - public final String name() { + public final List name() { return this.name; } @@ -121,7 +119,7 @@ public static class Builder extends RequestBase.AbstractBuilder private List expandWildcards; @Nullable - private String name; + private List name; /** * Type of data stream that wildcard patterns can match. Supports @@ -155,9 +153,25 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val * cluster, omit this parameter or use *. *

              * API name: {@code name} + *

              + * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * Comma-separated list of data streams used to limit the request. Wildcard + * expressions (*) are supported. To target all data streams in a + * cluster, omit this parameter or use *. + *

              + * API name: {@code name} + *

              + * Adds one or more values to name. */ - public final Builder name(@Nullable String value) { - this.name = value; + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); return this; } @@ -199,7 +213,7 @@ public DataStreamsStatsRequest build() { int propsSet = 0; - if (request.name() != null) + if (ApiTypeHelper.isDefined(request.name())) propsSet |= _name; if (propsSet == 0) { @@ -212,7 +226,7 @@ public DataStreamsStatsRequest build() { StringBuilder buf = new StringBuilder(); buf.append("/_data_stream"); buf.append("/"); - SimpleEndpoint.pathEncode(request.name, buf); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); buf.append("/_stats"); return buf.toString(); } @@ -227,13 +241,13 @@ public DataStreamsStatsRequest build() { int propsSet = 0; - if (request.name() != null) + if (ApiTypeHelper.isDefined(request.name())) propsSet |= _name; if (propsSet == 0) { } if (propsSet == (_name)) { - params.put("name", request.name); + params.put("name", request.name.stream().map(v -> v).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index 711ef9bb22..ff1f711709 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -58,7 +58,9 @@ // typedef: indices.delete_alias.Request /** - * Delete an alias. Removes a data stream or index from an alias. + * Delete an alias. + *

              + * Removes a data stream or index from an alias. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java index 806db4c28a..61091a4aca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java @@ -59,8 +59,10 @@ // typedef: indices.delete_data_lifecycle.Request /** - * Delete data stream lifecycles. Removes the data stream lifecycle from a data - * stream, rendering it not managed by the data stream lifecycle. + * Delete data stream lifecycles. + *

              + * Removes the data stream lifecycle from a data stream, rendering it not + * managed by the data stream lifecycle. * * @see API @@ -104,7 +106,7 @@ public final List expandWildcards() { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -115,7 +117,7 @@ public final Time masterTimeout() { /** * Required - A comma-separated list of data streams of which the data stream - * lifecycle will be deleted; use * to get all data streams + * lifecycle will be deleted. Use * to get all data streams *

              * API name: {@code name} */ @@ -124,7 +126,7 @@ public final List name() { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ @@ -180,7 +182,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -190,7 +192,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -200,7 +202,7 @@ public final Builder masterTimeout(Function> f /** * Required - A comma-separated list of data streams of which the data stream - * lifecycle will be deleted; use * to get all data streams + * lifecycle will be deleted. Use * to get all data streams *

              * API name: {@code name} *

              @@ -213,7 +215,7 @@ public final Builder name(List list) { /** * Required - A comma-separated list of data streams of which the data stream - * lifecycle will be deleted; use * to get all data streams + * lifecycle will be deleted. Use * to get all data streams *

              * API name: {@code name} *

              @@ -225,7 +227,7 @@ public final Builder name(String value, String... values) { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ @@ -235,7 +237,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java index 82c196c3ef..6413c315a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java @@ -59,8 +59,9 @@ // typedef: indices.delete_data_stream_options.Request /** - * Delete data stream options. Removes the data stream options from a data - * stream. + * Delete data stream options. + *

              + * Removes the data stream options from a data stream. * * @see API @@ -96,7 +97,6 @@ public static DeleteDataStreamOptionsRequest of( /** * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) *

              * API name: {@code expand_wildcards} */ @@ -105,7 +105,7 @@ public final List expandWildcards() { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -116,7 +116,7 @@ public final Time masterTimeout() { /** * Required - A comma-separated list of data streams of which the data stream - * options will be deleted; use * to get all data streams + * options will be deleted. Use * to get all data streams *

              * API name: {@code name} */ @@ -125,7 +125,7 @@ public final List name() { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ @@ -156,7 +156,6 @@ public static class Builder extends RequestBase.AbstractBuilder /** * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) *

              * API name: {@code expand_wildcards} *

              @@ -169,7 +168,6 @@ public final Builder expandWildcards(List list) { /** * Whether wildcard expressions should get expanded to open or closed indices - * (default: open) *

              * API name: {@code expand_wildcards} *

              @@ -181,7 +179,7 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -191,7 +189,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

              * API name: {@code master_timeout} */ @@ -201,7 +199,7 @@ public final Builder masterTimeout(Function> f /** * Required - A comma-separated list of data streams of which the data stream - * options will be deleted; use * to get all data streams + * options will be deleted. Use * to get all data streams *

              * API name: {@code name} *

              @@ -214,7 +212,7 @@ public final Builder name(List list) { /** * Required - A comma-separated list of data streams of which the data stream - * options will be deleted; use * to get all data streams + * options will be deleted. Use * to get all data streams *

              * API name: {@code name} *

              @@ -226,7 +224,7 @@ public final Builder name(String value, String... values) { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ @@ -236,7 +234,7 @@ public final Builder timeout(@Nullable Time value) { } /** - * Explicit timestamp for the document + * The period to wait for a response. *

              * API name: {@code timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index 4b048ef15a..9a1bd32d61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -59,8 +59,9 @@ // typedef: indices.delete_data_stream.Request /** - * Delete data streams. Deletes one or more data streams and their backing - * indices. + * Delete data streams. + *

              + * Deletes one or more data streams and their backing indices. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index 9a339ff774..24d5ec9128 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -60,9 +60,11 @@ // typedef: indices.delete.Request /** - * Delete indices. Deleting an index deletes its documents, shards, and - * metadata. It does not delete related Kibana components, such as data views, - * visualizations, or dashboards. + * Delete indices. + *

              + * Deleting an index deletes its documents, shards, and metadata. It does not + * delete related Kibana components, such as data views, visualizations, or + * dashboards. *

              * You cannot delete the current write index of a data stream. To delete the * index, you must roll over the data stream so a new write index is created. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java index 95e207025f..9233fe6032 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java @@ -58,10 +58,12 @@ // typedef: indices.delete_index_template.Request /** - * Delete an index template. The provided <index-template> may contain - * multiple template names separated by a comma. If multiple template names are - * specified then there is no wildcard support and the provided names should - * match completely with existing templates. + * Delete an index template. + *

              + * The provided <index-template> may contain multiple template names + * separated by a comma. If multiple template names are specified then there is + * no wildcard support and the provided names should match completely with + * existing templates. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java new file mode 100644 index 0000000000..6c350ab926 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java @@ -0,0 +1,271 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.delete_sample_configuration.Request + +/** + * Delete sampling configuration. + *

              + * Delete the sampling configuration for the specified index. + * + * @see API + * specification + */ + +public class DeleteSampleConfigurationRequest extends RequestBase { + private final String index; + + @Nullable + private final Time masterTimeout; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private DeleteSampleConfigurationRequest(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; + + } + + public static DeleteSampleConfigurationRequest of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the index. + *

              + * API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * 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} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + /** + * 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} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSampleConfigurationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String index; + + @Nullable + private Time masterTimeout; + + @Nullable + private Time timeout; + + /** + * Required - The name of the index. + *

              + * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * 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} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * 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} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSampleConfigurationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSampleConfigurationRequest build() { + _checkSingleUse(); + + return new DeleteSampleConfigurationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.delete_sample_configuration}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.delete_sample_configuration", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_sample"); + buf.append("/config"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, DeleteSampleConfigurationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationResponse.java new file mode 100644 index 0000000000..b84a9fb785 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationResponse.java @@ -0,0 +1,110 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.delete_sample_configuration.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteSampleConfigurationResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteSampleConfigurationResponse(Builder builder) { + super(builder); + + } + + public static DeleteSampleConfigurationResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSampleConfigurationResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSampleConfigurationResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSampleConfigurationResponse build() { + _checkSingleUse(); + + return new DeleteSampleConfigurationResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteSampleConfigurationResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteSampleConfigurationResponse::setupDeleteSampleConfigurationResponseDeserializer); + + protected static void setupDeleteSampleConfigurationResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java index aec07653c3..b103eeeb61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java @@ -56,9 +56,11 @@ // typedef: indices.delete_template.Request /** - * Delete a legacy index template. IMPORTANT: This documentation is about legacy - * index templates, which are deprecated and will be replaced by the composable - * templates introduced in Elasticsearch 7.8. + * Delete a legacy index template. + *

              + * IMPORTANT: This documentation is about legacy index templates, which are + * deprecated and will be replaced by the composable templates introduced in + * Elasticsearch 7.8. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java index a0a6cb17dc..9ad1a4261a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java @@ -59,10 +59,12 @@ // typedef: indices.disk_usage.Request /** - * Analyze the index disk usage. Analyze the disk usage of each field of an - * index or data stream. This API might not support indices created in previous - * Elasticsearch versions. The result of a small index can be inaccurate as some - * parts of an index might not be analyzed by the API. + * Analyze the index disk usage. + *

              + * Analyze the disk usage of each field of an index or data stream. This API + * might not support indices created in previous Elasticsearch versions. The + * result of a small index can be inaccurate as some parts of an index might not + * be analyzed by the API. *

              * NOTE: The total size of fields of the analyzed shards of the index in the * response is usually smaller than the index store_size value diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java index 0b9f04da8c..9c444cb038 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java @@ -61,11 +61,15 @@ public class DownsampleConfig implements JsonpSerializable { private final Time fixedInterval; + @Nullable + private final SamplingMethod samplingMethod; + // --------------------------------------------------------------------------------------------- private DownsampleConfig(Builder builder) { this.fixedInterval = ApiTypeHelper.requireNonNull(builder.fixedInterval, this, "fixedInterval"); + this.samplingMethod = builder.samplingMethod; } @@ -82,6 +86,18 @@ public final Time fixedInterval() { return this.fixedInterval; } + /** + * The sampling method used to reduce the documents; it can be either + * aggregate or last_value. Defaults to + * aggregate. + *

              + * API name: {@code sampling_method} + */ + @Nullable + public final SamplingMethod samplingMethod() { + return this.samplingMethod; + } + /** * Serialize this object to JSON. */ @@ -96,6 +112,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("fixed_interval"); this.fixedInterval.serialize(generator, mapper); + if (this.samplingMethod != null) { + generator.writeKey("sampling_method"); + this.samplingMethod.serialize(generator, mapper); + } + } @Override @@ -112,6 +133,9 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Time fixedInterval; + @Nullable + private SamplingMethod samplingMethod; + /** * Required - The interval at which to aggregate the original time series index. *

              @@ -131,6 +155,18 @@ public final Builder fixedInterval(Function> f return this.fixedInterval(fn.apply(new Time.Builder()).build()); } + /** + * The sampling method used to reduce the documents; it can be either + * aggregate or last_value. Defaults to + * aggregate. + *

              + * API name: {@code sampling_method} + */ + public final Builder samplingMethod(@Nullable SamplingMethod value) { + this.samplingMethod = value; + return this; + } + @Override protected Builder self() { return this; @@ -160,6 +196,7 @@ public DownsampleConfig build() { protected static void setupDownsampleConfigDeserializer(ObjectDeserializer op) { op.add(Builder::fixedInterval, Time._DESERIALIZER, "fixed_interval"); + op.add(Builder::samplingMethod, SamplingMethod._DESERIALIZER, "sampling_method"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java index 09d6a128d3..d8e52b3b31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java @@ -59,17 +59,26 @@ // typedef: indices.downsample.Request /** - * Downsample an index. Aggregate a time series (TSDS) index and store - * pre-computed statistical summaries (min, max, - * sum, value_count and avg) for each - * metric field grouped by a configured time interval. For example, a TSDS index - * that contains metrics sampled every 10 seconds can be downsampled to an - * hourly index. All documents within an hour interval are summarized and stored - * as a single document in the downsample index. + * Downsample an index. + *

              + * Downsamples a time series (TSDS) index and reduces its size by keeping the + * last value or by pre-aggregating metrics: + *

                + *
              • When running in aggregate mode, it pre-calculates and stores + * statistical summaries (min, max, sum, + * value_count and avg) for each metric field grouped + * by a configured time interval and their dimensions.
              • + *
              • When running in last_value mode, it keeps the last value for + * each metric in the configured interval and their dimensions.
              • + *
              + *

              + * For example, a TSDS index that contains metrics sampled every 10 seconds can + * be downsampled to an hourly index. All documents within an hour interval are + * summarized and stored as a single document in the downsample index. *

              * NOTE: Only indices in a time series data stream are supported. Neither field * nor document level security can be defined on the source index. The source - * index must be read only (index.blocks.write: true). + * index must be read-only (index.blocks.write: true). * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java index 047b3a94ca..b201cacfe1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java @@ -62,14 +62,14 @@ public class DownsamplingRound implements JsonpSerializable { private final Time after; - private final DownsampleConfig config; + private final Time fixedInterval; // --------------------------------------------------------------------------------------------- private DownsamplingRound(Builder builder) { this.after = ApiTypeHelper.requireNonNull(builder.after, this, "after"); - this.config = ApiTypeHelper.requireNonNull(builder.config, this, "config"); + this.fixedInterval = ApiTypeHelper.requireNonNull(builder.fixedInterval, this, "fixedInterval"); } @@ -88,12 +88,12 @@ public final Time after() { } /** - * Required - The downsample configuration to execute. + * Required - The downsample interval. *

              - * API name: {@code config} + * API name: {@code fixed_interval} */ - public final DownsampleConfig config() { - return this.config; + public final Time fixedInterval() { + return this.fixedInterval; } /** @@ -110,8 +110,8 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("after"); this.after.serialize(generator, mapper); - generator.writeKey("config"); - this.config.serialize(generator, mapper); + generator.writeKey("fixed_interval"); + this.fixedInterval.serialize(generator, mapper); } @@ -129,7 +129,7 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Time after; - private DownsampleConfig config; + private Time fixedInterval; /** * Required - The duration since rollover when this downsampling round should @@ -153,22 +153,22 @@ public final Builder after(Function> fn) { } /** - * Required - The downsample configuration to execute. + * Required - The downsample interval. *

              - * API name: {@code config} + * API name: {@code fixed_interval} */ - public final Builder config(DownsampleConfig value) { - this.config = value; + public final Builder fixedInterval(Time value) { + this.fixedInterval = value; return this; } /** - * Required - The downsample configuration to execute. + * Required - The downsample interval. *

              - * API name: {@code config} + * API name: {@code fixed_interval} */ - public final Builder config(Function> fn) { - return this.config(fn.apply(new DownsampleConfig.Builder()).build()); + public final Builder fixedInterval(Function> fn) { + return this.fixedInterval(fn.apply(new Time.Builder()).build()); } @Override @@ -200,7 +200,7 @@ public DownsamplingRound build() { protected static void setupDownsamplingRoundDeserializer(ObjectDeserializer op) { op.add(Builder::after, Time._DESERIALIZER, "after"); - op.add(Builder::config, DownsampleConfig._DESERIALIZER, "config"); + op.add(Builder::fixedInterval, Time._DESERIALIZER, "fixed_interval"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index b4a1ad9ccf..3beab515f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -110,8 +110,10 @@ public final CompletableFuture addBlock( // ----- Endpoint: indices.analyze /** - * Get tokens from text analysis. The analyze API performs analysis on a text - * string and returns the resulting tokens. + * Get tokens from text analysis. + *

              + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

              * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -132,8 +134,10 @@ public CompletableFuture analyze(AnalyzeRequest request) { } /** - * Get tokens from text analysis. The analyze API performs analysis on a text - * string and returns the resulting tokens. + * Get tokens from text analysis. + *

              + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

              * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -155,8 +159,10 @@ public final CompletableFuture analyze( } /** - * Get tokens from text analysis. The analyze API performs analysis on a text - * string and returns the resulting tokens. + * Get tokens from text analysis. + *

              + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

              * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -214,8 +220,10 @@ public final CompletableFuture cancelMigrateReinde // ----- Endpoint: indices.clear_cache /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

              + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

              * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -235,8 +243,10 @@ public CompletableFuture clearCache(ClearCacheRequest reques } /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

              + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

              * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -257,8 +267,10 @@ public final CompletableFuture clearCache( } /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

              + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

              * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -278,8 +290,10 @@ public CompletableFuture clearCache() { // ----- Endpoint: indices.clone /** - * Clone an index. Clone an existing index into a new index. Each original - * primary shard is cloned into a new primary shard in the new index. + * Clone an index. + *

              + * Clone an existing index into a new index. Each original primary shard is + * cloned into a new primary shard in the new index. *

              * IMPORTANT: Elasticsearch does not apply index templates to the resulting * index. The API also does not copy index metadata from the original index. @@ -359,8 +373,10 @@ public CompletableFuture clone(CloneIndexRequest request) { } /** - * Clone an index. Clone an existing index into a new index. Each original - * primary shard is cloned into a new primary shard in the new index. + * Clone an index. + *

              + * Clone an existing index into a new index. Each original primary shard is + * cloned into a new primary shard in the new index. *

              * IMPORTANT: Elasticsearch does not apply index templates to the resulting * index. The API also does not copy index metadata from the original index. @@ -443,11 +459,13 @@ public final CompletableFuture clone( // ----- Endpoint: indices.close /** - * Close an index. A closed index is blocked for read or write operations and - * does not allow all operations that opened indices allow. It is not possible - * to index documents or to search for documents in a closed index. Closed - * indices do not have to maintain internal data structures for indexing or - * searching documents, which results in a smaller overhead on the cluster. + * Close an index. + *

              + * A closed index is blocked for read or write operations and does not allow all + * operations that opened indices allow. It is not possible to index documents + * or to search for documents in a closed index. Closed indices do not have to + * maintain internal data structures for indexing or searching documents, which + * results in a smaller overhead on the cluster. *

              * When opening or closing an index, the master node is responsible for * restarting the index shards to reflect the new state of the index. The shards @@ -484,11 +502,13 @@ public CompletableFuture close(CloseIndexRequest request) { } /** - * Close an index. A closed index is blocked for read or write operations and - * does not allow all operations that opened indices allow. It is not possible - * to index documents or to search for documents in a closed index. Closed - * indices do not have to maintain internal data structures for indexing or - * searching documents, which results in a smaller overhead on the cluster. + * Close an index. + *

              + * A closed index is blocked for read or write operations and does not allow all + * operations that opened indices allow. It is not possible to index documents + * or to search for documents in a closed index. Closed indices do not have to + * maintain internal data structures for indexing or searching documents, which + * results in a smaller overhead on the cluster. *

              * When opening or closing an index, the master node is responsible for * restarting the index shards to reflect the new state of the index. The shards @@ -528,8 +548,10 @@ public final CompletableFuture close( // ----- Endpoint: indices.create /** - * Create an index. You can use the create index API to add a new index to an - * Elasticsearch cluster. When creating an index, you can specify the following: + * Create an index. + *

              + * You can use the create index API to add a new index to an Elasticsearch + * cluster. When creating an index, you can specify the following: *

                *
              • Settings for the index.
              • *
              • Mappings for fields in the index.
              • @@ -574,8 +596,10 @@ public CompletableFuture create(CreateIndexRequest request) } /** - * Create an index. You can use the create index API to add a new index to an - * Elasticsearch cluster. When creating an index, you can specify the following: + * Create an index. + *

                + * You can use the create index API to add a new index to an Elasticsearch + * cluster. When creating an index, you can specify the following: *

                  *
                • Settings for the index.
                • *
                • Mappings for fields in the index.
                • @@ -751,9 +775,11 @@ public CompletableFuture dataStreamsStats() { // ----- Endpoint: indices.delete /** - * Delete indices. Deleting an index deletes its documents, shards, and - * metadata. It does not delete related Kibana components, such as data views, - * visualizations, or dashboards. + * Delete indices. + *

                  + * Deleting an index deletes its documents, shards, and metadata. It does not + * delete related Kibana components, such as data views, visualizations, or + * dashboards. *

                  * You cannot delete the current write index of a data stream. To delete the * index, you must roll over the data stream so a new write index is created. @@ -772,9 +798,11 @@ public CompletableFuture delete(DeleteIndexRequest request) } /** - * Delete indices. Deleting an index deletes its documents, shards, and - * metadata. It does not delete related Kibana components, such as data views, - * visualizations, or dashboards. + * Delete indices. + *

                  + * Deleting an index deletes its documents, shards, and metadata. It does not + * delete related Kibana components, such as data views, visualizations, or + * dashboards. *

                  * You cannot delete the current write index of a data stream. To delete the * index, you must roll over the data stream so a new write index is created. @@ -796,7 +824,9 @@ public final CompletableFuture delete( // ----- Endpoint: indices.delete_alias /** - * Delete an alias. Removes a data stream or index from an alias. + * Delete an alias. + *

                  + * Removes a data stream or index from an alias. * * @see Documentation @@ -811,7 +841,9 @@ public CompletableFuture deleteAlias(DeleteAliasRequest req } /** - * Delete an alias. Removes a data stream or index from an alias. + * Delete an alias. + *

                  + * Removes a data stream or index from an alias. * * @param fn * a function that initializes a builder to create the @@ -829,8 +861,10 @@ public final CompletableFuture deleteAlias( // ----- Endpoint: indices.delete_data_lifecycle /** - * Delete data stream lifecycles. Removes the data stream lifecycle from a data - * stream, rendering it not managed by the data stream lifecycle. + * Delete data stream lifecycles. + *

                  + * Removes the data stream lifecycle from a data stream, rendering it not + * managed by the data stream lifecycle. * * @see Documentation @@ -845,8 +879,10 @@ public CompletableFuture deleteDataLifecycle(Delete } /** - * Delete data stream lifecycles. Removes the data stream lifecycle from a data - * stream, rendering it not managed by the data stream lifecycle. + * Delete data stream lifecycles. + *

                  + * Removes the data stream lifecycle from a data stream, rendering it not + * managed by the data stream lifecycle. * * @param fn * a function that initializes a builder to create the @@ -864,8 +900,9 @@ public final CompletableFuture deleteDataLifecycle( // ----- Endpoint: indices.delete_data_stream /** - * Delete data streams. Deletes one or more data streams and their backing - * indices. + * Delete data streams. + *

                  + * Deletes one or more data streams and their backing indices. * * @see Documentation @@ -880,8 +917,9 @@ public CompletableFuture deleteDataStream(DeleteDataSt } /** - * Delete data streams. Deletes one or more data streams and their backing - * indices. + * Delete data streams. + *

                  + * Deletes one or more data streams and their backing indices. * * @param fn * a function that initializes a builder to create the @@ -899,8 +937,9 @@ public final CompletableFuture deleteDataStream( // ----- Endpoint: indices.delete_data_stream_options /** - * Delete data stream options. Removes the data stream options from a data - * stream. + * Delete data stream options. + *

                  + * Removes the data stream options from a data stream. * * @see Documentation @@ -916,8 +955,9 @@ public CompletableFuture deleteDataStreamOption } /** - * Delete data stream options. Removes the data stream options from a data - * stream. + * Delete data stream options. + *

                  + * Removes the data stream options from a data stream. * * @param fn * a function that initializes a builder to create the @@ -935,10 +975,12 @@ public final CompletableFuture deleteDataStream // ----- Endpoint: indices.delete_index_template /** - * Delete an index template. The provided <index-template> may contain - * multiple template names separated by a comma. If multiple template names are - * specified then there is no wildcard support and the provided names should - * match completely with existing templates. + * Delete an index template. + *

                  + * The provided <index-template> may contain multiple template names + * separated by a comma. If multiple template names are specified then there is + * no wildcard support and the provided names should match completely with + * existing templates. * * @see Documentation @@ -953,10 +995,12 @@ public CompletableFuture deleteIndexTemplate(Delete } /** - * Delete an index template. The provided <index-template> may contain - * multiple template names separated by a comma. If multiple template names are - * specified then there is no wildcard support and the provided names should - * match completely with existing templates. + * Delete an index template. + *

                  + * The provided <index-template> may contain multiple template names + * separated by a comma. If multiple template names are specified then there is + * no wildcard support and the provided names should match completely with + * existing templates. * * @param fn * a function that initializes a builder to create the @@ -971,12 +1015,52 @@ public final CompletableFuture deleteIndexTemplate( return deleteIndexTemplate(fn.apply(new DeleteIndexTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.delete_sample_configuration + + /** + * Delete sampling configuration. + *

                  + * Delete the sampling configuration for the specified index. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteSampleConfiguration( + DeleteSampleConfigurationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Delete sampling configuration. + *

                  + * Delete the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteSampleConfiguration( + Function> fn) { + return deleteSampleConfiguration(fn.apply(new DeleteSampleConfigurationRequest.Builder()).build()); + } + // ----- Endpoint: indices.delete_template /** - * Delete a legacy index template. IMPORTANT: This documentation is about legacy - * index templates, which are deprecated and will be replaced by the composable - * templates introduced in Elasticsearch 7.8. + * Delete a legacy index template. + *

                  + * IMPORTANT: This documentation is about legacy index templates, which are + * deprecated and will be replaced by the composable templates introduced in + * Elasticsearch 7.8. * * @see Documentation @@ -991,9 +1075,11 @@ public CompletableFuture deleteTemplate(DeleteTemplateRe } /** - * Delete a legacy index template. IMPORTANT: This documentation is about legacy - * index templates, which are deprecated and will be replaced by the composable - * templates introduced in Elasticsearch 7.8. + * Delete a legacy index template. + *

                  + * IMPORTANT: This documentation is about legacy index templates, which are + * deprecated and will be replaced by the composable templates introduced in + * Elasticsearch 7.8. * * @param fn * a function that initializes a builder to create the @@ -1011,10 +1097,12 @@ public final CompletableFuture deleteTemplate( // ----- Endpoint: indices.disk_usage /** - * Analyze the index disk usage. Analyze the disk usage of each field of an - * index or data stream. This API might not support indices created in previous - * Elasticsearch versions. The result of a small index can be inaccurate as some - * parts of an index might not be analyzed by the API. + * Analyze the index disk usage. + *

                  + * Analyze the disk usage of each field of an index or data stream. This API + * might not support indices created in previous Elasticsearch versions. The + * result of a small index can be inaccurate as some parts of an index might not + * be analyzed by the API. *

                  * NOTE: The total size of fields of the analyzed shards of the index in the * response is usually smaller than the index store_size value @@ -1041,10 +1129,12 @@ public CompletableFuture diskUsage(DiskUsageRequest request) } /** - * Analyze the index disk usage. Analyze the disk usage of each field of an - * index or data stream. This API might not support indices created in previous - * Elasticsearch versions. The result of a small index can be inaccurate as some - * parts of an index might not be analyzed by the API. + * Analyze the index disk usage. + *

                  + * Analyze the disk usage of each field of an index or data stream. This API + * might not support indices created in previous Elasticsearch versions. The + * result of a small index can be inaccurate as some parts of an index might not + * be analyzed by the API. *

                  * NOTE: The total size of fields of the analyzed shards of the index in the * response is usually smaller than the index store_size value @@ -1074,17 +1164,26 @@ public final CompletableFuture diskUsage( // ----- Endpoint: indices.downsample /** - * Downsample an index. Aggregate a time series (TSDS) index and store - * pre-computed statistical summaries (min, max, - * sum, value_count and avg) for each - * metric field grouped by a configured time interval. For example, a TSDS index - * that contains metrics sampled every 10 seconds can be downsampled to an - * hourly index. All documents within an hour interval are summarized and stored - * as a single document in the downsample index. + * Downsample an index. + *

                  + * Downsamples a time series (TSDS) index and reduces its size by keeping the + * last value or by pre-aggregating metrics: + *

                  + *

                  + * For example, a TSDS index that contains metrics sampled every 10 seconds can + * be downsampled to an hourly index. All documents within an hour interval are + * summarized and stored as a single document in the downsample index. *

                  * NOTE: Only indices in a time series data stream are supported. Neither field * nor document level security can be defined on the source index. The source - * index must be read only (index.blocks.write: true). + * index must be read-only (index.blocks.write: true). * * @see Documentation @@ -1099,17 +1198,26 @@ public CompletableFuture downsample(DownsampleRequest reques } /** - * Downsample an index. Aggregate a time series (TSDS) index and store - * pre-computed statistical summaries (min, max, - * sum, value_count and avg) for each - * metric field grouped by a configured time interval. For example, a TSDS index - * that contains metrics sampled every 10 seconds can be downsampled to an - * hourly index. All documents within an hour interval are summarized and stored - * as a single document in the downsample index. + * Downsample an index. + *

                  + * Downsamples a time series (TSDS) index and reduces its size by keeping the + * last value or by pre-aggregating metrics: + *

                  + *

                  + * For example, a TSDS index that contains metrics sampled every 10 seconds can + * be downsampled to an hourly index. All documents within an hour interval are + * summarized and stored as a single document in the downsample index. *

                  * NOTE: Only indices in a time series data stream are supported. Neither field * nor document level security can be defined on the source index. The source - * index must be read only (index.blocks.write: true). + * index must be read-only (index.blocks.write: true). * * @param fn * a function that initializes a builder to create the @@ -1127,8 +1235,9 @@ public final CompletableFuture downsample( // ----- Endpoint: indices.exists /** - * Check indices. Check if one or more indices, index aliases, or data streams - * exist. + * Check indices. + *

                  + * Check if one or more indices, index aliases, or data streams exist. * * @see Documentation @@ -1143,8 +1252,9 @@ public CompletableFuture exists(ExistsRequest request) { } /** - * Check indices. Check if one or more indices, index aliases, or data streams - * exist. + * Check indices. + *

                  + * Check if one or more indices, index aliases, or data streams exist. * * @param fn * a function that initializes a builder to create the @@ -1236,9 +1346,11 @@ public final CompletableFuture existsIndexTemplate( // ----- Endpoint: indices.exists_template /** - * Check existence of index templates. Get information about whether index - * templates exist. Index templates define settings, mappings, and aliases that - * can be applied automatically to new indices. + * Check existence of index templates. + *

                  + * Get information about whether index templates exist. Index templates define + * settings, mappings, and aliases that can be applied automatically to new + * indices. *

                  * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -1257,9 +1369,11 @@ public CompletableFuture existsTemplate(ExistsTemplateRequest r } /** - * Check existence of index templates. Get information about whether index - * templates exist. Index templates define settings, mappings, and aliases that - * can be applied automatically to new indices. + * Check existence of index templates. + *

                  + * Get information about whether index templates exist. Index templates define + * settings, mappings, and aliases that can be applied automatically to new + * indices. *

                  * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -1281,10 +1395,12 @@ public final CompletableFuture existsTemplate( // ----- Endpoint: indices.explain_data_lifecycle /** - * Get the status for a data stream lifecycle. Get information about an index or - * data stream's current data stream lifecycle status, such as time since index - * creation, time since rollover, the lifecycle configuration managing the - * index, or any errors encountered during lifecycle execution. + * Get the status for a data stream lifecycle. + *

                  + * Get information about an index or data stream's current data stream lifecycle + * status, such as time since index creation, time since rollover, the lifecycle + * configuration managing the index, or any errors encountered during lifecycle + * execution. * * @see Documentation @@ -1299,10 +1415,12 @@ public CompletableFuture explainDataLifecycle(Expl } /** - * Get the status for a data stream lifecycle. Get information about an index or - * data stream's current data stream lifecycle status, such as time since index - * creation, time since rollover, the lifecycle configuration managing the - * index, or any errors encountered during lifecycle execution. + * Get the status for a data stream lifecycle. + *

                  + * Get information about an index or data stream's current data stream lifecycle + * status, such as time since index creation, time since rollover, the lifecycle + * configuration managing the index, or any errors encountered during lifecycle + * execution. * * @param fn * a function that initializes a builder to create the @@ -1320,11 +1438,12 @@ public final CompletableFuture explainDataLifecycl // ----- Endpoint: indices.field_usage_stats /** - * Get field usage stats. Get field usage information for each shard and field - * of an index. Field usage statistics are automatically captured when queries - * are running on a cluster. A shard-level search request that accesses a given - * field, even if multiple times during that request, is counted as a single - * use. + * Get field usage stats. + *

                  + * Get field usage information for each shard and field of an index. Field usage + * statistics are automatically captured when queries are running on a cluster. + * A shard-level search request that accesses a given field, even if multiple + * times during that request, is counted as a single use. *

                  * The response body reports the per-shard usage count of the data structures * that back the fields in the index. A given request will increment each count @@ -1344,11 +1463,12 @@ public CompletableFuture fieldUsageStats(FieldUsageStat } /** - * Get field usage stats. Get field usage information for each shard and field - * of an index. Field usage statistics are automatically captured when queries - * are running on a cluster. A shard-level search request that accesses a given - * field, even if multiple times during that request, is counted as a single - * use. + * Get field usage stats. + *

                  + * Get field usage information for each shard and field of an index. Field usage + * statistics are automatically captured when queries are running on a cluster. + * A shard-level search request that accesses a given field, even if multiple + * times during that request, is counted as a single use. *

                  * The response body reports the per-shard usage count of the data structures * that back the fields in the index. A given request will increment each count @@ -1371,14 +1491,16 @@ public final CompletableFuture fieldUsageStats( // ----- Endpoint: indices.flush /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                  + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                  * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1405,14 +1527,16 @@ public CompletableFuture flush(FlushRequest request) { } /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                  + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                  * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1440,14 +1564,16 @@ public final CompletableFuture flush( } /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                  + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                  * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1474,9 +1600,11 @@ public CompletableFuture flush() { // ----- Endpoint: indices.forcemerge /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                  + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                  * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1561,9 +1689,11 @@ public CompletableFuture forcemerge(ForcemergeRequest reques } /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                  + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                  * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1649,9 +1779,11 @@ public final CompletableFuture forcemerge( } /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                  + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                  * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1736,8 +1868,10 @@ public CompletableFuture forcemerge() { // ----- Endpoint: indices.get /** - * Get index information. Get information about one or more indices. For data - * streams, the API returns information about the stream’s backing indices. + * Get index information. + *

                  + * Get information about one or more indices. For data streams, the API returns + * information about the stream’s backing indices. * * @see Documentation @@ -1752,8 +1886,10 @@ public CompletableFuture get(GetIndexRequest request) { } /** - * Get index information. Get information about one or more indices. For data - * streams, the API returns information about the stream’s backing indices. + * Get index information. + *

                  + * Get information about one or more indices. For data streams, the API returns + * information about the stream’s backing indices. * * @param fn * a function that initializes a builder to create the @@ -1771,8 +1907,9 @@ public final CompletableFuture get( // ----- Endpoint: indices.get_alias /** - * Get aliases. Retrieves information for one or more data stream or index - * aliases. + * Get aliases. + *

                  + * Retrieves information for one or more data stream or index aliases. * * @see Documentation @@ -1787,8 +1924,9 @@ public CompletableFuture getAlias(GetAliasRequest request) { } /** - * Get aliases. Retrieves information for one or more data stream or index - * aliases. + * Get aliases. + *

                  + * Retrieves information for one or more data stream or index aliases. * * @param fn * a function that initializes a builder to create the @@ -1804,8 +1942,9 @@ public final CompletableFuture getAlias( } /** - * Get aliases. Retrieves information for one or more data stream or index - * aliases. + * Get aliases. + *

                  + * Retrieves information for one or more data stream or index aliases. * * @see Documentation @@ -1817,6 +1956,59 @@ public CompletableFuture getAlias() { this.transportOptions); } + // ----- Endpoint: indices.get_all_sample_configuration + + /** + * Get all sampling configurations. + *

                  + * Get the sampling configurations for all indices. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getAllSampleConfiguration( + GetAllSampleConfigurationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAllSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get all sampling configurations. + *

                  + * Get the sampling configurations for all indices. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAllSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getAllSampleConfiguration( + Function> fn) { + return getAllSampleConfiguration(fn.apply(new GetAllSampleConfigurationRequest.Builder()).build()); + } + + /** + * Get all sampling configurations. + *

                  + * Get the sampling configurations for all indices. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getAllSampleConfiguration() { + return this.transport.performRequestAsync(new GetAllSampleConfigurationRequest.Builder().build(), + GetAllSampleConfigurationRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: indices.get_data_lifecycle /** @@ -1857,8 +2049,10 @@ public final CompletableFuture getDataLifecycle( // ----- Endpoint: indices.get_data_lifecycle_stats /** - * Get data stream lifecycle stats. Get statistics about the data streams that - * are managed by a data stream lifecycle. + * Get data stream lifecycle stats. + *

                  + * Get statistics about the data streams that are managed by a data stream + * lifecycle. * * @see Documentation @@ -2037,9 +2231,10 @@ public final CompletableFuture getDataStreamSetti // ----- Endpoint: indices.get_field_mapping /** - * Get mapping definitions. Retrieves mapping definitions for one or more - * fields. For data streams, the API retrieves field mappings for the stream’s - * backing indices. + * Get mapping definitions. + *

                  + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. *

                  * This API is useful if you don't need a complete mapping or if an index * mapping contains a large number of fields. @@ -2057,9 +2252,10 @@ public CompletableFuture getFieldMapping(GetFieldMappin } /** - * Get mapping definitions. Retrieves mapping definitions for one or more - * fields. For data streams, the API retrieves field mappings for the stream’s - * backing indices. + * Get mapping definitions. + *

                  + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. *

                  * This API is useful if you don't need a complete mapping or if an index * mapping contains a large number of fields. @@ -2080,7 +2276,9 @@ public final CompletableFuture getFieldMapping( // ----- Endpoint: indices.get_index_template /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                  + * Get information about one or more index templates. * * @see Documentation @@ -2095,7 +2293,9 @@ public CompletableFuture getIndexTemplate(GetIndexTemp } /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                  + * Get information about one or more index templates. * * @param fn * a function that initializes a builder to create the @@ -2111,7 +2311,9 @@ public final CompletableFuture getIndexTemplate( } /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                  + * Get information about one or more index templates. * * @see Documentation @@ -2126,8 +2328,10 @@ public CompletableFuture getIndexTemplate() { // ----- Endpoint: indices.get_mapping /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                  + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @see Documentation @@ -2142,8 +2346,10 @@ public CompletableFuture getMapping(GetMappingRequest reques } /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                  + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @param fn * a function that initializes a builder to create the @@ -2159,8 +2365,10 @@ public final CompletableFuture getMapping( } /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                  + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @see Documentation @@ -2210,11 +2418,121 @@ public final CompletableFuture getMigrateReinde return getMigrateReindexStatus(fn.apply(new GetMigrateReindexStatusRequest.Builder()).build()); } + // ----- Endpoint: indices.get_sample + + /** + * Request for a random sample of raw documents ingested into the given index or + * data stream. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSample(GetSampleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Request for a random sample of raw documents ingested into the given index or + * data stream. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSample( + Function> fn) { + return getSample(fn.apply(new GetSampleRequest.Builder()).build()); + } + + // ----- Endpoint: indices.get_sample_configuration + + /** + * Get sampling configuration. + *

                  + * Get the sampling configuration for the specified index. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSampleConfiguration( + GetSampleConfigurationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get sampling configuration. + *

                  + * Get the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSampleConfiguration( + Function> fn) { + return getSampleConfiguration(fn.apply(new GetSampleConfigurationRequest.Builder()).build()); + } + + // ----- Endpoint: indices.get_sample_stats + + /** + * Request stats for a random sample of raw documents ingested into the given + * index or data stream. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getSampleStats(GetSampleStatsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleStatsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Request stats for a random sample of raw documents ingested into the given + * index or data stream. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleStatsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getSampleStats( + Function> fn) { + return getSampleStats(fn.apply(new GetSampleStatsRequest.Builder()).build()); + } + // ----- Endpoint: indices.get_settings /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                  + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @see Documentation @@ -2229,8 +2547,10 @@ public CompletableFuture getSettings(GetIndicesSetti } /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                  + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @param fn * a function that initializes a builder to create the @@ -2246,8 +2566,10 @@ public final CompletableFuture getSettings( } /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                  + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @see Documentation @@ -2262,8 +2584,9 @@ public CompletableFuture getSettings() { // ----- Endpoint: indices.get_template /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                  + * Get information about one or more index templates. *

                  * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2282,8 +2605,9 @@ public CompletableFuture getTemplate(GetTemplateRequest req } /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                  + * Get information about one or more index templates. *

                  * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2303,8 +2627,9 @@ public final CompletableFuture getTemplate( } /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                  + * Get information about one or more index templates. *

                  * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2381,15 +2706,17 @@ public CompletableFuture migrateReindex() { // ----- Endpoint: indices.migrate_to_data_stream /** - * Convert an index alias to a data stream. Converts an index alias to a data - * stream. You must have a matching index template that is data stream enabled. - * The alias must meet the following criteria: The alias must have a write - * index; All indices for the alias must have a @timestamp field - * mapping of a date or date_nanos field type; The - * alias must not have any filters; The alias must not use custom routing. If - * successful, the request removes the alias and creates a data stream with the - * same name. The indices for the alias become hidden backing indices for the - * stream. The write index for the alias becomes the write index for the stream. + * Convert an index alias to a data stream. + *

                  + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @see Documentation @@ -2404,15 +2731,17 @@ public CompletableFuture migrateToDataStream(Migrat } /** - * Convert an index alias to a data stream. Converts an index alias to a data - * stream. You must have a matching index template that is data stream enabled. - * The alias must meet the following criteria: The alias must have a write - * index; All indices for the alias must have a @timestamp field - * mapping of a date or date_nanos field type; The - * alias must not have any filters; The alias must not use custom routing. If - * successful, the request removes the alias and creates a data stream with the - * same name. The indices for the alias become hidden backing indices for the - * stream. The write index for the alias becomes the write index for the stream. + * Convert an index alias to a data stream. + *

                  + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @param fn * a function that initializes a builder to create the @@ -2430,8 +2759,10 @@ public final CompletableFuture migrateToDataStream( // ----- Endpoint: indices.modify_data_stream /** - * Update data streams. Performs one or more data stream modification actions in - * a single atomic operation. + * Update data streams. + *

                  + * Performs one or more data stream modification actions in a single atomic + * operation. * * @see Documentation @@ -2446,8 +2777,10 @@ public CompletableFuture modifyDataStream(ModifyDataSt } /** - * Update data streams. Performs one or more data stream modification actions in - * a single atomic operation. + * Update data streams. + *

                  + * Performs one or more data stream modification actions in a single atomic + * operation. * * @param fn * a function that initializes a builder to create the @@ -2465,8 +2798,9 @@ public final CompletableFuture modifyDataStream( // ----- Endpoint: indices.open /** - * Open a closed index. For data streams, the API opens any closed backing - * indices. + * Open a closed index. + *

                  + * For data streams, the API opens any closed backing indices. *

                  * A closed index is blocked for read/write operations and does not allow all * operations that opened indices allow. It is not possible to index documents @@ -2512,8 +2846,9 @@ public CompletableFuture open(OpenRequest request) { } /** - * Open a closed index. For data streams, the API opens any closed backing - * indices. + * Open a closed index. + *

                  + * For data streams, the API opens any closed backing indices. *

                  * A closed index is blocked for read/write operations and does not allow all * operations that opened indices allow. It is not possible to index documents @@ -2561,8 +2896,10 @@ public final CompletableFuture open(Function + * Promote a data stream from a replicated data stream managed by cross-cluster + * replication (CCR) to a regular data stream. *

                  * With CCR auto following, a data stream from a remote cluster can be * replicated to the local cluster. These data streams can't be rolled over in @@ -2591,8 +2928,10 @@ public CompletableFuture promoteDataStream(PromoteDat } /** - * Promote a data stream. Promote a data stream from a replicated data stream - * managed by cross-cluster replication (CCR) to a regular data stream. + * Promote a data stream. + *

                  + * Promote a data stream from a replicated data stream managed by cross-cluster + * replication (CCR) to a regular data stream. *

                  * With CCR auto following, a data stream from a remote cluster can be * replicated to the local cluster. These data streams can't be rolled over in @@ -2624,7 +2963,9 @@ public final CompletableFuture promoteDataStream( // ----- Endpoint: indices.put_alias /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                  + * Adds a data stream or index to an alias. * * @see Documentation @@ -2639,7 +2980,9 @@ public CompletableFuture putAlias(PutAliasRequest request) { } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                  + * Adds a data stream or index to an alias. * * @param fn * a function that initializes a builder to create the @@ -2657,8 +3000,9 @@ public final CompletableFuture putAlias( // ----- Endpoint: indices.put_data_lifecycle /** - * Update data stream lifecycles. Update the data stream lifecycle of the - * specified data streams. + * Update data stream lifecycles. + *

                  + * Update the data stream lifecycle of the specified data streams. * * @see Documentation @@ -2673,8 +3017,9 @@ public CompletableFuture putDataLifecycle(PutDataLifec } /** - * Update data stream lifecycles. Update the data stream lifecycle of the - * specified data streams. + * Update data stream lifecycles. + *

                  + * Update the data stream lifecycle of the specified data streams. * * @param fn * a function that initializes a builder to create the @@ -2738,8 +3083,9 @@ public final CompletableFuture putDataStreamMappi // ----- Endpoint: indices.put_data_stream_options /** - * Update data stream options. Update the data stream options of the specified - * data streams. + * Update data stream options. + *

                  + * Update the data stream options of the specified data streams. * * @see Documentation @@ -2754,8 +3100,9 @@ public CompletableFuture putDataStreamOptions(PutD } /** - * Update data stream options. Update the data stream options of the specified - * data streams. + * Update data stream options. + *

                  + * Update the data stream options of the specified data streams. * * @param fn * a function that initializes a builder to create the @@ -2821,8 +3168,10 @@ public final CompletableFuture putDataStreamSetti // ----- Endpoint: indices.put_index_template /** - * Create or update an index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. + * Create or update an index template. + *

                  + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. *

                  * Elasticsearch applies templates to new indices based on an wildcard pattern * that matches the index name. Index templates are applied during data stream @@ -2876,8 +3225,10 @@ public CompletableFuture putIndexTemplate(PutIndexTemp } /** - * Create or update an index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. + * Create or update an index template. + *

                  + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. *

                  * Elasticsearch applies templates to new indices based on an wildcard pattern * that matches the index name. Index templates are applied during data stream @@ -2934,8 +3285,10 @@ public final CompletableFuture putIndexTemplate( // ----- Endpoint: indices.put_mapping /** - * Update field mappings. Add new fields to an existing data stream or index. - * You can use the update mapping API to: + * Update field mappings. + *

                  + * Add new fields to an existing data stream or index. You can use the update + * mapping API to: *

                    *
                  • Add a new field to an existing index
                  • *
                  • Update mappings for multiple indices in a single request
                  • @@ -2964,8 +3317,10 @@ public CompletableFuture putMapping(PutMappingRequest reques } /** - * Update field mappings. Add new fields to an existing data stream or index. - * You can use the update mapping API to: + * Update field mappings. + *

                    + * Add new fields to an existing data stream or index. You can use the update + * mapping API to: *

                      *
                    • Add a new field to an existing index
                    • *
                    • Update mappings for multiple indices in a single request
                    • @@ -2994,11 +3349,51 @@ public final CompletableFuture putMapping( return putMapping(fn.apply(new PutMappingRequest.Builder()).build()); } + // ----- Endpoint: indices.put_sample_configuration + + /** + * Create or update sampling configuration. + *

                      + * Create or update the sampling configuration for the specified index. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putSampleConfiguration( + PutSampleConfigurationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Create or update sampling configuration. + *

                      + * Create or update the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putSampleConfiguration( + Function> fn) { + return putSampleConfiguration(fn.apply(new PutSampleConfigurationRequest.Builder()).build()); + } + // ----- Endpoint: indices.put_settings /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                      + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                      * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3081,8 +3476,10 @@ public CompletableFuture putSettings(PutIndicesSetti } /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                      + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                      * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3166,8 +3563,10 @@ public final CompletableFuture putSettings( } /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                      + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                      * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3250,10 +3649,11 @@ public CompletableFuture putSettings() { // ----- Endpoint: indices.put_template /** - * Create or update a legacy index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. - * Elasticsearch applies templates to new indices based on an index pattern that - * matches the index name. + * Create or update a legacy index template. + *

                      + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. Elasticsearch applies templates to new indices + * based on an index pattern that matches the index name. *

                      * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -3294,10 +3694,11 @@ public CompletableFuture putTemplate(PutTemplateRequest req } /** - * Create or update a legacy index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. - * Elasticsearch applies templates to new indices based on an index pattern that - * matches the index name. + * Create or update a legacy index template. + *

                      + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. Elasticsearch applies templates to new indices + * based on an index pattern that matches the index name. *

                      * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -3341,9 +3742,11 @@ public final CompletableFuture putTemplate( // ----- Endpoint: indices.recovery /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                      + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                      * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3389,9 +3792,11 @@ public CompletableFuture recovery(RecoveryRequest request) { } /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                      + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                      * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3438,9 +3843,11 @@ public final CompletableFuture recovery( } /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                      + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                      * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3486,9 +3893,11 @@ public CompletableFuture recovery() { // ----- Endpoint: indices.refresh /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                      + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                      * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3523,9 +3932,11 @@ public CompletableFuture refresh(RefreshRequest request) { } /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                      + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                      * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3561,9 +3972,11 @@ public final CompletableFuture refresh( } /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                      + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                      * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3598,9 +4011,10 @@ public CompletableFuture refresh() { // ----- Endpoint: indices.reload_search_analyzers /** - * Reload search analyzers. Reload an index's search analyzers and their - * resources. For data streams, the API reloads search analyzers and resources - * for the stream's backing indices. + * Reload search analyzers. + *

                      + * Reload an index's search analyzers and their resources. For data streams, the + * API reloads search analyzers and resources for the stream's backing indices. *

                      * IMPORTANT: After reloading the search analyzers you should clear the request * cache to make sure it doesn't contain responses derived from the previous @@ -3635,9 +4049,10 @@ public CompletableFuture reloadSearchAnalyzers( } /** - * Reload search analyzers. Reload an index's search analyzers and their - * resources. For data streams, the API reloads search analyzers and resources - * for the stream's backing indices. + * Reload search analyzers. + *

                      + * Reload an index's search analyzers and their resources. For data streams, the + * API reloads search analyzers and resources for the stream's backing indices. *

                      * IMPORTANT: After reloading the search analyzers you should clear the request * cache to make sure it doesn't contain responses derived from the previous @@ -3999,9 +4414,10 @@ public CompletableFuture resolveCluster() { // ----- Endpoint: indices.resolve_index /** - * Resolve indices. Resolve the names and/or index patterns for indices, - * aliases, and data streams. Multiple patterns and remote clusters are - * supported. + * Resolve indices. + *

                      + * Resolve the names and/or index patterns for indices, aliases, and data + * streams. Multiple patterns and remote clusters are supported. * * @see Documentation @@ -4016,9 +4432,10 @@ public CompletableFuture resolveIndex(ResolveIndexRequest } /** - * Resolve indices. Resolve the names and/or index patterns for indices, - * aliases, and data streams. Multiple patterns and remote clusters are - * supported. + * Resolve indices. + *

                      + * Resolve the names and/or index patterns for indices, aliases, and data + * streams. Multiple patterns and remote clusters are supported. * * @param fn * a function that initializes a builder to create the @@ -4036,10 +4453,11 @@ public final CompletableFuture resolveIndex( // ----- Endpoint: indices.rollover /** - * Roll over to a new index. TIP: We recommend using the index lifecycle - * rollover action to automate rollovers. However, Serverless does not support - * Index Lifecycle Management (ILM), so don't use this approach in the - * Serverless context. + * Roll over to a new index. + *

                      + * TIP: We recommend using the index lifecycle rollover action to automate + * rollovers. However, Serverless does not support Index Lifecycle Management + * (ILM), so don't use this approach in the Serverless context. *

                      * The rollover API creates a new index for a data stream or index alias. The * API behavior depends on the rollover target. @@ -4103,10 +4521,11 @@ public CompletableFuture rollover(RolloverRequest request) { } /** - * Roll over to a new index. TIP: We recommend using the index lifecycle - * rollover action to automate rollovers. However, Serverless does not support - * Index Lifecycle Management (ILM), so don't use this approach in the - * Serverless context. + * Roll over to a new index. + *

                      + * TIP: We recommend using the index lifecycle rollover action to automate + * rollovers. However, Serverless does not support Index Lifecycle Management + * (ILM), so don't use this approach in the Serverless context. *

                      * The rollover API creates a new index for a data stream or index alias. The * API behavior depends on the rollover target. @@ -4173,9 +4592,10 @@ public final CompletableFuture rollover( // ----- Endpoint: indices.segments /** - * Get index segments. Get low-level information about the Lucene segments in - * index shards. For data streams, the API returns information about the - * stream's backing indices. + * Get index segments. + *

                      + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @see Documentation @@ -4190,9 +4610,10 @@ public CompletableFuture segments(SegmentsRequest request) { } /** - * Get index segments. Get low-level information about the Lucene segments in - * index shards. For data streams, the API returns information about the - * stream's backing indices. + * Get index segments. + *

                      + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @param fn * a function that initializes a builder to create the @@ -4208,9 +4629,10 @@ public final CompletableFuture segments( } /** - * Get index segments. Get low-level information about the Lucene segments in - * index shards. For data streams, the API returns information about the - * stream's backing indices. + * Get index segments. + *

                      + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @see Documentation @@ -4225,9 +4647,11 @@ public CompletableFuture segments() { // ----- Endpoint: indices.shard_stores /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                      + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                      * The index shard stores API returns the following information: *

                        @@ -4254,9 +4678,11 @@ public CompletableFuture shardStores(ShardStoresRequest req } /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                        + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                        * The index shard stores API returns the following information: *

                          @@ -4284,9 +4710,11 @@ public final CompletableFuture shardStores( } /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                          + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                          * The index shard stores API returns the following information: *

                            @@ -4313,7 +4741,9 @@ public CompletableFuture shardStores() { // ----- Endpoint: indices.shrink /** - * Shrink an index. Shrink an index into a new index with fewer primary shards. + * Shrink an index. + *

                            + * Shrink an index into a new index with fewer primary shards. *

                            * Before you can shrink an index: *

                              @@ -4382,7 +4812,9 @@ public CompletableFuture shrink(ShrinkRequest request) { } /** - * Shrink an index. Shrink an index into a new index with fewer primary shards. + * Shrink an index. + *

                              + * Shrink an index into a new index with fewer primary shards. *

                              * Before you can shrink an index: *

                                @@ -4454,8 +4886,10 @@ public final CompletableFuture shrink( // ----- Endpoint: indices.simulate_index_template /** - * Simulate an index. Get the index configuration that would be applied to the - * specified index from an existing index template. + * Simulate an index. + *

                                + * Get the index configuration that would be applied to the specified index from + * an existing index template. * * @see Documentation @@ -4471,8 +4905,10 @@ public CompletableFuture simulateIndexTemplate( } /** - * Simulate an index. Get the index configuration that would be applied to the - * specified index from an existing index template. + * Simulate an index. + *

                                + * Get the index configuration that would be applied to the specified index from + * an existing index template. * * @param fn * a function that initializes a builder to create the @@ -4490,8 +4926,10 @@ public final CompletableFuture simulateIndexTempl // ----- Endpoint: indices.simulate_template /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                + * Get the index configuration that would be applied by a particular index + * template. * * @see Documentation @@ -4506,8 +4944,10 @@ public CompletableFuture simulateTemplate(SimulateTemp } /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                + * Get the index configuration that would be applied by a particular index + * template. * * @param fn * a function that initializes a builder to create the @@ -4523,8 +4963,10 @@ public final CompletableFuture simulateTemplate( } /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                + * Get the index configuration that would be applied by a particular index + * template. * * @see Documentation @@ -4539,7 +4981,9 @@ public CompletableFuture simulateTemplate() { // ----- Endpoint: indices.split /** - * Split an index. Split an index into a new index with more primary shards. + * Split an index. + *

                                + * Split an index into a new index with more primary shards. *

                                  *
                                • *

                                  @@ -4616,7 +5060,9 @@ public CompletableFuture split(SplitRequest request) { } /** - * Split an index. Split an index into a new index with more primary shards. + * Split an index. + *

                                  + * Split an index into a new index with more primary shards. *

                                    *
                                  • *

                                    @@ -4696,8 +5142,10 @@ public final CompletableFuture split( // ----- Endpoint: indices.stats /** - * Get index statistics. For data streams, the API retrieves statistics for the - * stream's backing indices. + * Get index statistics. + *

                                    + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                    * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4725,8 +5173,10 @@ public CompletableFuture stats(IndicesStatsRequest request } /** - * Get index statistics. For data streams, the API retrieves statistics for the - * stream's backing indices. + * Get index statistics. + *

                                    + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                    * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4755,8 +5205,10 @@ public final CompletableFuture stats( } /** - * Get index statistics. For data streams, the API retrieves statistics for the - * stream's backing indices. + * Get index statistics. + *

                                    + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                    * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4784,7 +5236,9 @@ public CompletableFuture stats() { // ----- Endpoint: indices.update_aliases /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                    + * Adds a data stream or index to an alias. * * @see Documentation @@ -4799,7 +5253,9 @@ public CompletableFuture updateAliases(UpdateAliasesReque } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                    + * Adds a data stream or index to an alias. * * @param fn * a function that initializes a builder to create the @@ -4815,7 +5271,9 @@ public final CompletableFuture updateAliases( } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                    + * Adds a data stream or index to an alias. * * @see Documentation @@ -4830,7 +5288,9 @@ public CompletableFuture updateAliases() { // ----- Endpoint: indices.validate_query /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                    + * Validates a query without running it. * * @see Documentation @@ -4845,7 +5305,9 @@ public CompletableFuture validateQuery(ValidateQueryReque } /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                    + * Validates a query without running it. * * @param fn * a function that initializes a builder to create the @@ -4861,7 +5323,9 @@ public final CompletableFuture validateQuery( } /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                    + * Validates a query without running it. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index a8a7898db4..4093ff5a38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -108,8 +108,10 @@ public final AddBlockResponse addBlock(Function + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

                                    * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -130,8 +132,10 @@ public AnalyzeResponse analyze(AnalyzeRequest request) throws IOException, Elast } /** - * Get tokens from text analysis. The analyze API performs analysis on a text - * string and returns the resulting tokens. + * Get tokens from text analysis. + *

                                    + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

                                    * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -153,8 +157,10 @@ public final AnalyzeResponse analyze(Function + * The analyze API performs analysis on a text string and returns the resulting + * tokens. *

                                    * Generating excessive amount of tokens may cause a node to run out of memory. * The index.analyze.max_token_count setting enables you to limit @@ -214,8 +220,10 @@ public final CancelMigrateReindexResponse cancelMigrateReindex( // ----- Endpoint: indices.clear_cache /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

                                    + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

                                    * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -235,8 +243,10 @@ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOExcepti } /** - * Clear the cache. Clear the cache of one or more indices. For data streams, - * the API clears the caches of the stream's backing indices. + * Clear the cache. + *

                                    + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

                                    * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -257,8 +267,10 @@ public final ClearCacheResponse clearCache(Function + * Clear the cache of one or more indices. For data streams, the API clears the + * caches of the stream's backing indices. *

                                    * By default, the clear cache API clears all caches. To clear only specific * caches, use the fielddata, query, or @@ -278,8 +290,10 @@ public ClearCacheResponse clearCache() throws IOException, ElasticsearchExceptio // ----- Endpoint: indices.clone /** - * Clone an index. Clone an existing index into a new index. Each original - * primary shard is cloned into a new primary shard in the new index. + * Clone an index. + *

                                    + * Clone an existing index into a new index. Each original primary shard is + * cloned into a new primary shard in the new index. *

                                    * IMPORTANT: Elasticsearch does not apply index templates to the resulting * index. The API also does not copy index metadata from the original index. @@ -359,8 +373,10 @@ public CloneIndexResponse clone(CloneIndexRequest request) throws IOException, E } /** - * Clone an index. Clone an existing index into a new index. Each original - * primary shard is cloned into a new primary shard in the new index. + * Clone an index. + *

                                    + * Clone an existing index into a new index. Each original primary shard is + * cloned into a new primary shard in the new index. *

                                    * IMPORTANT: Elasticsearch does not apply index templates to the resulting * index. The API also does not copy index metadata from the original index. @@ -443,11 +459,13 @@ public final CloneIndexResponse clone(Function + * A closed index is blocked for read or write operations and does not allow all + * operations that opened indices allow. It is not possible to index documents + * or to search for documents in a closed index. Closed indices do not have to + * maintain internal data structures for indexing or searching documents, which + * results in a smaller overhead on the cluster. *

                                    * When opening or closing an index, the master node is responsible for * restarting the index shards to reflect the new state of the index. The shards @@ -484,11 +502,13 @@ public CloseIndexResponse close(CloseIndexRequest request) throws IOException, E } /** - * Close an index. A closed index is blocked for read or write operations and - * does not allow all operations that opened indices allow. It is not possible - * to index documents or to search for documents in a closed index. Closed - * indices do not have to maintain internal data structures for indexing or - * searching documents, which results in a smaller overhead on the cluster. + * Close an index. + *

                                    + * A closed index is blocked for read or write operations and does not allow all + * operations that opened indices allow. It is not possible to index documents + * or to search for documents in a closed index. Closed indices do not have to + * maintain internal data structures for indexing or searching documents, which + * results in a smaller overhead on the cluster. *

                                    * When opening or closing an index, the master node is responsible for * restarting the index shards to reflect the new state of the index. The shards @@ -528,8 +548,10 @@ public final CloseIndexResponse close(Function + * You can use the create index API to add a new index to an Elasticsearch + * cluster. When creating an index, you can specify the following: *

                                      *
                                    • Settings for the index.
                                    • *
                                    • Mappings for fields in the index.
                                    • @@ -574,8 +596,10 @@ public CreateIndexResponse create(CreateIndexRequest request) throws IOException } /** - * Create an index. You can use the create index API to add a new index to an - * Elasticsearch cluster. When creating an index, you can specify the following: + * Create an index. + *

                                      + * You can use the create index API to add a new index to an Elasticsearch + * cluster. When creating an index, you can specify the following: *

                                        *
                                      • Settings for the index.
                                      • *
                                      • Mappings for fields in the index.
                                      • @@ -755,9 +779,11 @@ public DataStreamsStatsResponse dataStreamsStats() throws IOException, Elasticse // ----- Endpoint: indices.delete /** - * Delete indices. Deleting an index deletes its documents, shards, and - * metadata. It does not delete related Kibana components, such as data views, - * visualizations, or dashboards. + * Delete indices. + *

                                        + * Deleting an index deletes its documents, shards, and metadata. It does not + * delete related Kibana components, such as data views, visualizations, or + * dashboards. *

                                        * You cannot delete the current write index of a data stream. To delete the * index, you must roll over the data stream so a new write index is created. @@ -776,9 +802,11 @@ public DeleteIndexResponse delete(DeleteIndexRequest request) throws IOException } /** - * Delete indices. Deleting an index deletes its documents, shards, and - * metadata. It does not delete related Kibana components, such as data views, - * visualizations, or dashboards. + * Delete indices. + *

                                        + * Deleting an index deletes its documents, shards, and metadata. It does not + * delete related Kibana components, such as data views, visualizations, or + * dashboards. *

                                        * You cannot delete the current write index of a data stream. To delete the * index, you must roll over the data stream so a new write index is created. @@ -800,7 +828,9 @@ public final DeleteIndexResponse delete(Function + * Removes a data stream or index from an alias. * * @see Documentation @@ -815,7 +845,9 @@ public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws IOExce } /** - * Delete an alias. Removes a data stream or index from an alias. + * Delete an alias. + *

                                        + * Removes a data stream or index from an alias. * * @param fn * a function that initializes a builder to create the @@ -834,8 +866,10 @@ public final DeleteAliasResponse deleteAlias( // ----- Endpoint: indices.delete_data_lifecycle /** - * Delete data stream lifecycles. Removes the data stream lifecycle from a data - * stream, rendering it not managed by the data stream lifecycle. + * Delete data stream lifecycles. + *

                                        + * Removes the data stream lifecycle from a data stream, rendering it not + * managed by the data stream lifecycle. * * @see Documentation @@ -851,8 +885,10 @@ public DeleteDataLifecycleResponse deleteDataLifecycle(DeleteDataLifecycleReques } /** - * Delete data stream lifecycles. Removes the data stream lifecycle from a data - * stream, rendering it not managed by the data stream lifecycle. + * Delete data stream lifecycles. + *

                                        + * Removes the data stream lifecycle from a data stream, rendering it not + * managed by the data stream lifecycle. * * @param fn * a function that initializes a builder to create the @@ -871,8 +907,9 @@ public final DeleteDataLifecycleResponse deleteDataLifecycle( // ----- Endpoint: indices.delete_data_stream /** - * Delete data streams. Deletes one or more data streams and their backing - * indices. + * Delete data streams. + *

                                        + * Deletes one or more data streams and their backing indices. * * @see Documentation @@ -888,8 +925,9 @@ public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request } /** - * Delete data streams. Deletes one or more data streams and their backing - * indices. + * Delete data streams. + *

                                        + * Deletes one or more data streams and their backing indices. * * @param fn * a function that initializes a builder to create the @@ -908,8 +946,9 @@ public final DeleteDataStreamResponse deleteDataStream( // ----- Endpoint: indices.delete_data_stream_options /** - * Delete data stream options. Removes the data stream options from a data - * stream. + * Delete data stream options. + *

                                        + * Removes the data stream options from a data stream. * * @see Documentation @@ -925,8 +964,9 @@ public DeleteDataStreamOptionsResponse deleteDataStreamOptions(DeleteDataStreamO } /** - * Delete data stream options. Removes the data stream options from a data - * stream. + * Delete data stream options. + *

                                        + * Removes the data stream options from a data stream. * * @param fn * a function that initializes a builder to create the @@ -945,10 +985,12 @@ public final DeleteDataStreamOptionsResponse deleteDataStreamOptions( // ----- Endpoint: indices.delete_index_template /** - * Delete an index template. The provided <index-template> may contain - * multiple template names separated by a comma. If multiple template names are - * specified then there is no wildcard support and the provided names should - * match completely with existing templates. + * Delete an index template. + *

                                        + * The provided <index-template> may contain multiple template names + * separated by a comma. If multiple template names are specified then there is + * no wildcard support and the provided names should match completely with + * existing templates. * * @see Documentation @@ -964,10 +1006,12 @@ public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateReques } /** - * Delete an index template. The provided <index-template> may contain - * multiple template names separated by a comma. If multiple template names are - * specified then there is no wildcard support and the provided names should - * match completely with existing templates. + * Delete an index template. + *

                                        + * The provided <index-template> may contain multiple template names + * separated by a comma. If multiple template names are specified then there is + * no wildcard support and the provided names should match completely with + * existing templates. * * @param fn * a function that initializes a builder to create the @@ -983,12 +1027,53 @@ public final DeleteIndexTemplateResponse deleteIndexTemplate( return deleteIndexTemplate(fn.apply(new DeleteIndexTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.delete_sample_configuration + + /** + * Delete sampling configuration. + *

                                        + * Delete the sampling configuration for the specified index. + * + * @see Documentation + * on elastic.co + */ + + public DeleteSampleConfigurationResponse deleteSampleConfiguration(DeleteSampleConfigurationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Delete sampling configuration. + *

                                        + * Delete the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteSampleConfigurationResponse deleteSampleConfiguration( + Function> fn) + throws IOException, ElasticsearchException { + return deleteSampleConfiguration(fn.apply(new DeleteSampleConfigurationRequest.Builder()).build()); + } + // ----- Endpoint: indices.delete_template /** - * Delete a legacy index template. IMPORTANT: This documentation is about legacy - * index templates, which are deprecated and will be replaced by the composable - * templates introduced in Elasticsearch 7.8. + * Delete a legacy index template. + *

                                        + * IMPORTANT: This documentation is about legacy index templates, which are + * deprecated and will be replaced by the composable templates introduced in + * Elasticsearch 7.8. * * @see Documentation @@ -1004,9 +1089,11 @@ public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) } /** - * Delete a legacy index template. IMPORTANT: This documentation is about legacy - * index templates, which are deprecated and will be replaced by the composable - * templates introduced in Elasticsearch 7.8. + * Delete a legacy index template. + *

                                        + * IMPORTANT: This documentation is about legacy index templates, which are + * deprecated and will be replaced by the composable templates introduced in + * Elasticsearch 7.8. * * @param fn * a function that initializes a builder to create the @@ -1025,10 +1112,12 @@ public final DeleteTemplateResponse deleteTemplate( // ----- Endpoint: indices.disk_usage /** - * Analyze the index disk usage. Analyze the disk usage of each field of an - * index or data stream. This API might not support indices created in previous - * Elasticsearch versions. The result of a small index can be inaccurate as some - * parts of an index might not be analyzed by the API. + * Analyze the index disk usage. + *

                                        + * Analyze the disk usage of each field of an index or data stream. This API + * might not support indices created in previous Elasticsearch versions. The + * result of a small index can be inaccurate as some parts of an index might not + * be analyzed by the API. *

                                        * NOTE: The total size of fields of the analyzed shards of the index in the * response is usually smaller than the index store_size value @@ -1055,10 +1144,12 @@ public DiskUsageResponse diskUsage(DiskUsageRequest request) throws IOException, } /** - * Analyze the index disk usage. Analyze the disk usage of each field of an - * index or data stream. This API might not support indices created in previous - * Elasticsearch versions. The result of a small index can be inaccurate as some - * parts of an index might not be analyzed by the API. + * Analyze the index disk usage. + *

                                        + * Analyze the disk usage of each field of an index or data stream. This API + * might not support indices created in previous Elasticsearch versions. The + * result of a small index can be inaccurate as some parts of an index might not + * be analyzed by the API. *

                                        * NOTE: The total size of fields of the analyzed shards of the index in the * response is usually smaller than the index store_size value @@ -1088,17 +1179,26 @@ public final DiskUsageResponse diskUsage(Functionmin, max, - * sum, value_count and avg) for each - * metric field grouped by a configured time interval. For example, a TSDS index - * that contains metrics sampled every 10 seconds can be downsampled to an - * hourly index. All documents within an hour interval are summarized and stored - * as a single document in the downsample index. + * Downsample an index. + *

                                        + * Downsamples a time series (TSDS) index and reduces its size by keeping the + * last value or by pre-aggregating metrics: + *

                                        + *

                                        + * For example, a TSDS index that contains metrics sampled every 10 seconds can + * be downsampled to an hourly index. All documents within an hour interval are + * summarized and stored as a single document in the downsample index. *

                                        * NOTE: Only indices in a time series data stream are supported. Neither field * nor document level security can be defined on the source index. The source - * index must be read only (index.blocks.write: true). + * index must be read-only (index.blocks.write: true). * * @see Documentation @@ -1113,17 +1213,26 @@ public DownsampleResponse downsample(DownsampleRequest request) throws IOExcepti } /** - * Downsample an index. Aggregate a time series (TSDS) index and store - * pre-computed statistical summaries (min, max, - * sum, value_count and avg) for each - * metric field grouped by a configured time interval. For example, a TSDS index - * that contains metrics sampled every 10 seconds can be downsampled to an - * hourly index. All documents within an hour interval are summarized and stored - * as a single document in the downsample index. + * Downsample an index. + *

                                        + * Downsamples a time series (TSDS) index and reduces its size by keeping the + * last value or by pre-aggregating metrics: + *

                                        + *

                                        + * For example, a TSDS index that contains metrics sampled every 10 seconds can + * be downsampled to an hourly index. All documents within an hour interval are + * summarized and stored as a single document in the downsample index. *

                                        * NOTE: Only indices in a time series data stream are supported. Neither field * nor document level security can be defined on the source index. The source - * index must be read only (index.blocks.write: true). + * index must be read-only (index.blocks.write: true). * * @param fn * a function that initializes a builder to create the @@ -1141,8 +1250,9 @@ public final DownsampleResponse downsample(Function + * Check if one or more indices, index aliases, or data streams exist. * * @see Documentation @@ -1157,8 +1267,9 @@ public BooleanResponse exists(ExistsRequest request) throws IOException, Elastic } /** - * Check indices. Check if one or more indices, index aliases, or data streams - * exist. + * Check indices. + *

                                        + * Check if one or more indices, index aliases, or data streams exist. * * @param fn * a function that initializes a builder to create the @@ -1252,9 +1363,11 @@ public final BooleanResponse existsIndexTemplate( // ----- Endpoint: indices.exists_template /** - * Check existence of index templates. Get information about whether index - * templates exist. Index templates define settings, mappings, and aliases that - * can be applied automatically to new indices. + * Check existence of index templates. + *

                                        + * Get information about whether index templates exist. Index templates define + * settings, mappings, and aliases that can be applied automatically to new + * indices. *

                                        * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -1273,9 +1386,11 @@ public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOEx } /** - * Check existence of index templates. Get information about whether index - * templates exist. Index templates define settings, mappings, and aliases that - * can be applied automatically to new indices. + * Check existence of index templates. + *

                                        + * Get information about whether index templates exist. Index templates define + * settings, mappings, and aliases that can be applied automatically to new + * indices. *

                                        * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -1298,10 +1413,12 @@ public final BooleanResponse existsTemplate( // ----- Endpoint: indices.explain_data_lifecycle /** - * Get the status for a data stream lifecycle. Get information about an index or - * data stream's current data stream lifecycle status, such as time since index - * creation, time since rollover, the lifecycle configuration managing the - * index, or any errors encountered during lifecycle execution. + * Get the status for a data stream lifecycle. + *

                                        + * Get information about an index or data stream's current data stream lifecycle + * status, such as time since index creation, time since rollover, the lifecycle + * configuration managing the index, or any errors encountered during lifecycle + * execution. * * @see Documentation @@ -1317,10 +1434,12 @@ public ExplainDataLifecycleResponse explainDataLifecycle(ExplainDataLifecycleReq } /** - * Get the status for a data stream lifecycle. Get information about an index or - * data stream's current data stream lifecycle status, such as time since index - * creation, time since rollover, the lifecycle configuration managing the - * index, or any errors encountered during lifecycle execution. + * Get the status for a data stream lifecycle. + *

                                        + * Get information about an index or data stream's current data stream lifecycle + * status, such as time since index creation, time since rollover, the lifecycle + * configuration managing the index, or any errors encountered during lifecycle + * execution. * * @param fn * a function that initializes a builder to create the @@ -1339,11 +1458,12 @@ public final ExplainDataLifecycleResponse explainDataLifecycle( // ----- Endpoint: indices.field_usage_stats /** - * Get field usage stats. Get field usage information for each shard and field - * of an index. Field usage statistics are automatically captured when queries - * are running on a cluster. A shard-level search request that accesses a given - * field, even if multiple times during that request, is counted as a single - * use. + * Get field usage stats. + *

                                        + * Get field usage information for each shard and field of an index. Field usage + * statistics are automatically captured when queries are running on a cluster. + * A shard-level search request that accesses a given field, even if multiple + * times during that request, is counted as a single use. *

                                        * The response body reports the per-shard usage count of the data structures * that back the fields in the index. A given request will increment each count @@ -1364,11 +1484,12 @@ public FieldUsageStatsResponse fieldUsageStats(FieldUsageStatsRequest request) } /** - * Get field usage stats. Get field usage information for each shard and field - * of an index. Field usage statistics are automatically captured when queries - * are running on a cluster. A shard-level search request that accesses a given - * field, even if multiple times during that request, is counted as a single - * use. + * Get field usage stats. + *

                                        + * Get field usage information for each shard and field of an index. Field usage + * statistics are automatically captured when queries are running on a cluster. + * A shard-level search request that accesses a given field, even if multiple + * times during that request, is counted as a single use. *

                                        * The response body reports the per-shard usage count of the data structures * that back the fields in the index. A given request will increment each count @@ -1392,14 +1513,16 @@ public final FieldUsageStatsResponse fieldUsageStats( // ----- Endpoint: indices.flush /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                                        + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                                        * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1426,14 +1549,16 @@ public FlushResponse flush(FlushRequest request) throws IOException, Elasticsear } /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                                        + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                                        * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1461,14 +1586,16 @@ public final FlushResponse flush(Function + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                                        * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of @@ -1495,9 +1622,11 @@ public FlushResponse flush() throws IOException, ElasticsearchException { // ----- Endpoint: indices.forcemerge /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                                        + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                                        * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1582,9 +1711,11 @@ public ForcemergeResponse forcemerge(ForcemergeRequest request) throws IOExcepti } /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                                        + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                                        * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1670,9 +1801,11 @@ public final ForcemergeResponse forcemerge(Function + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                                        * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -1757,8 +1890,10 @@ public ForcemergeResponse forcemerge() throws IOException, ElasticsearchExceptio // ----- Endpoint: indices.get /** - * Get index information. Get information about one or more indices. For data - * streams, the API returns information about the stream’s backing indices. + * Get index information. + *

                                        + * Get information about one or more indices. For data streams, the API returns + * information about the stream’s backing indices. * * @see Documentation @@ -1773,8 +1908,10 @@ public GetIndexResponse get(GetIndexRequest request) throws IOException, Elastic } /** - * Get index information. Get information about one or more indices. For data - * streams, the API returns information about the stream’s backing indices. + * Get index information. + *

                                        + * Get information about one or more indices. For data streams, the API returns + * information about the stream’s backing indices. * * @param fn * a function that initializes a builder to create the @@ -1792,8 +1929,9 @@ public final GetIndexResponse get(Function + * Retrieves information for one or more data stream or index aliases. * * @see Documentation @@ -1808,8 +1946,9 @@ public GetAliasResponse getAlias(GetAliasRequest request) throws IOException, El } /** - * Get aliases. Retrieves information for one or more data stream or index - * aliases. + * Get aliases. + *

                                        + * Retrieves information for one or more data stream or index aliases. * * @param fn * a function that initializes a builder to create the @@ -1825,8 +1964,9 @@ public final GetAliasResponse getAlias(Function + * Retrieves information for one or more data stream or index aliases. * * @see Documentation @@ -1838,6 +1978,60 @@ public GetAliasResponse getAlias() throws IOException, ElasticsearchException { this.transportOptions); } + // ----- Endpoint: indices.get_all_sample_configuration + + /** + * Get all sampling configurations. + *

                                        + * Get the sampling configurations for all indices. + * + * @see Documentation + * on elastic.co + */ + + public GetAllSampleConfigurationResponse getAllSampleConfiguration(GetAllSampleConfigurationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetAllSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get all sampling configurations. + *

                                        + * Get the sampling configurations for all indices. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetAllSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final GetAllSampleConfigurationResponse getAllSampleConfiguration( + Function> fn) + throws IOException, ElasticsearchException { + return getAllSampleConfiguration(fn.apply(new GetAllSampleConfigurationRequest.Builder()).build()); + } + + /** + * Get all sampling configurations. + *

                                        + * Get the sampling configurations for all indices. + * + * @see Documentation + * on elastic.co + */ + + public GetAllSampleConfigurationResponse getAllSampleConfiguration() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetAllSampleConfigurationRequest.Builder().build(), + GetAllSampleConfigurationRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: indices.get_data_lifecycle /** @@ -1880,8 +2074,10 @@ public final GetDataLifecycleResponse getDataLifecycle( // ----- Endpoint: indices.get_data_lifecycle_stats /** - * Get data stream lifecycle stats. Get statistics about the data streams that - * are managed by a data stream lifecycle. + * Get data stream lifecycle stats. + *

                                        + * Get statistics about the data streams that are managed by a data stream + * lifecycle. * * @see Documentation @@ -2066,9 +2262,10 @@ public final GetDataStreamSettingsResponse getDataStreamSettings( // ----- Endpoint: indices.get_field_mapping /** - * Get mapping definitions. Retrieves mapping definitions for one or more - * fields. For data streams, the API retrieves field mappings for the stream’s - * backing indices. + * Get mapping definitions. + *

                                        + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. *

                                        * This API is useful if you don't need a complete mapping or if an index * mapping contains a large number of fields. @@ -2087,9 +2284,10 @@ public GetFieldMappingResponse getFieldMapping(GetFieldMappingRequest request) } /** - * Get mapping definitions. Retrieves mapping definitions for one or more - * fields. For data streams, the API retrieves field mappings for the stream’s - * backing indices. + * Get mapping definitions. + *

                                        + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. *

                                        * This API is useful if you don't need a complete mapping or if an index * mapping contains a large number of fields. @@ -2111,7 +2309,9 @@ public final GetFieldMappingResponse getFieldMapping( // ----- Endpoint: indices.get_index_template /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                                        + * Get information about one or more index templates. * * @see Documentation @@ -2127,7 +2327,9 @@ public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request } /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                                        + * Get information about one or more index templates. * * @param fn * a function that initializes a builder to create the @@ -2144,7 +2346,9 @@ public final GetIndexTemplateResponse getIndexTemplate( } /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                                        + * Get information about one or more index templates. * * @see Documentation @@ -2159,8 +2363,10 @@ public GetIndexTemplateResponse getIndexTemplate() throws IOException, Elasticse // ----- Endpoint: indices.get_mapping /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                                        + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @see Documentation @@ -2175,8 +2381,10 @@ public GetMappingResponse getMapping(GetMappingRequest request) throws IOExcepti } /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                                        + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @param fn * a function that initializes a builder to create the @@ -2192,8 +2400,10 @@ public final GetMappingResponse getMapping(Function + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @see Documentation @@ -2244,11 +2454,124 @@ public final GetMigrateReindexStatusResponse getMigrateReindexStatus( return getMigrateReindexStatus(fn.apply(new GetMigrateReindexStatusRequest.Builder()).build()); } + // ----- Endpoint: indices.get_sample + + /** + * Request for a random sample of raw documents ingested into the given index or + * data stream. + * + * @see Documentation + * on elastic.co + */ + + public GetSampleResponse getSample(GetSampleRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Request for a random sample of raw documents ingested into the given index or + * data stream. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSampleResponse getSample(Function> fn) + throws IOException, ElasticsearchException { + return getSample(fn.apply(new GetSampleRequest.Builder()).build()); + } + + // ----- Endpoint: indices.get_sample_configuration + + /** + * Get sampling configuration. + *

                                        + * Get the sampling configuration for the specified index. + * + * @see Documentation + * on elastic.co + */ + + public GetSampleConfigurationResponse getSampleConfiguration(GetSampleConfigurationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get sampling configuration. + *

                                        + * Get the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSampleConfigurationResponse getSampleConfiguration( + Function> fn) + throws IOException, ElasticsearchException { + return getSampleConfiguration(fn.apply(new GetSampleConfigurationRequest.Builder()).build()); + } + + // ----- Endpoint: indices.get_sample_stats + + /** + * Request stats for a random sample of raw documents ingested into the given + * index or data stream. + * + * @see Documentation + * on elastic.co + */ + + public GetSampleStatsResponse getSampleStats(GetSampleStatsRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSampleStatsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Request stats for a random sample of raw documents ingested into the given + * index or data stream. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSampleStatsRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSampleStatsResponse getSampleStats( + Function> fn) + throws IOException, ElasticsearchException { + return getSampleStats(fn.apply(new GetSampleStatsRequest.Builder()).build()); + } + // ----- Endpoint: indices.get_settings /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                                        + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @see Documentation @@ -2264,8 +2587,10 @@ public GetIndicesSettingsResponse getSettings(GetIndicesSettingsRequest request) } /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                                        + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @param fn * a function that initializes a builder to create the @@ -2282,8 +2607,10 @@ public final GetIndicesSettingsResponse getSettings( } /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                                        + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @see Documentation @@ -2298,8 +2625,9 @@ public GetIndicesSettingsResponse getSettings() throws IOException, Elasticsearc // ----- Endpoint: indices.get_template /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                                        + * Get information about one or more index templates. *

                                        * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2318,8 +2646,9 @@ public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOExce } /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                                        + * Get information about one or more index templates. *

                                        * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2340,8 +2669,9 @@ public final GetTemplateResponse getTemplate( } /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                                        + * Get information about one or more index templates. *

                                        * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -2420,15 +2750,17 @@ public MigrateReindexResponse migrateReindex() throws IOException, Elasticsearch // ----- Endpoint: indices.migrate_to_data_stream /** - * Convert an index alias to a data stream. Converts an index alias to a data - * stream. You must have a matching index template that is data stream enabled. - * The alias must meet the following criteria: The alias must have a write - * index; All indices for the alias must have a @timestamp field - * mapping of a date or date_nanos field type; The - * alias must not have any filters; The alias must not use custom routing. If - * successful, the request removes the alias and creates a data stream with the - * same name. The indices for the alias become hidden backing indices for the - * stream. The write index for the alias becomes the write index for the stream. + * Convert an index alias to a data stream. + *

                                        + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @see Documentation @@ -2444,15 +2776,17 @@ public MigrateToDataStreamResponse migrateToDataStream(MigrateToDataStreamReques } /** - * Convert an index alias to a data stream. Converts an index alias to a data - * stream. You must have a matching index template that is data stream enabled. - * The alias must meet the following criteria: The alias must have a write - * index; All indices for the alias must have a @timestamp field - * mapping of a date or date_nanos field type; The - * alias must not have any filters; The alias must not use custom routing. If - * successful, the request removes the alias and creates a data stream with the - * same name. The indices for the alias become hidden backing indices for the - * stream. The write index for the alias becomes the write index for the stream. + * Convert an index alias to a data stream. + *

                                        + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @param fn * a function that initializes a builder to create the @@ -2471,8 +2805,10 @@ public final MigrateToDataStreamResponse migrateToDataStream( // ----- Endpoint: indices.modify_data_stream /** - * Update data streams. Performs one or more data stream modification actions in - * a single atomic operation. + * Update data streams. + *

                                        + * Performs one or more data stream modification actions in a single atomic + * operation. * * @see Documentation @@ -2488,8 +2824,10 @@ public ModifyDataStreamResponse modifyDataStream(ModifyDataStreamRequest request } /** - * Update data streams. Performs one or more data stream modification actions in - * a single atomic operation. + * Update data streams. + *

                                        + * Performs one or more data stream modification actions in a single atomic + * operation. * * @param fn * a function that initializes a builder to create the @@ -2508,8 +2846,9 @@ public final ModifyDataStreamResponse modifyDataStream( // ----- Endpoint: indices.open /** - * Open a closed index. For data streams, the API opens any closed backing - * indices. + * Open a closed index. + *

                                        + * For data streams, the API opens any closed backing indices. *

                                        * A closed index is blocked for read/write operations and does not allow all * operations that opened indices allow. It is not possible to index documents @@ -2555,8 +2894,9 @@ public OpenResponse open(OpenRequest request) throws IOException, ElasticsearchE } /** - * Open a closed index. For data streams, the API opens any closed backing - * indices. + * Open a closed index. + *

                                        + * For data streams, the API opens any closed backing indices. *

                                        * A closed index is blocked for read/write operations and does not allow all * operations that opened indices allow. It is not possible to index documents @@ -2605,8 +2945,10 @@ public final OpenResponse open(Function + * Promote a data stream from a replicated data stream managed by cross-cluster + * replication (CCR) to a regular data stream. *

                                        * With CCR auto following, a data stream from a remote cluster can be * replicated to the local cluster. These data streams can't be rolled over in @@ -2636,8 +2978,10 @@ public PromoteDataStreamResponse promoteDataStream(PromoteDataStreamRequest requ } /** - * Promote a data stream. Promote a data stream from a replicated data stream - * managed by cross-cluster replication (CCR) to a regular data stream. + * Promote a data stream. + *

                                        + * Promote a data stream from a replicated data stream managed by cross-cluster + * replication (CCR) to a regular data stream. *

                                        * With CCR auto following, a data stream from a remote cluster can be * replicated to the local cluster. These data streams can't be rolled over in @@ -2670,7 +3014,9 @@ public final PromoteDataStreamResponse promoteDataStream( // ----- Endpoint: indices.put_alias /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                        + * Adds a data stream or index to an alias. * * @see Documentation @@ -2685,7 +3031,9 @@ public PutAliasResponse putAlias(PutAliasRequest request) throws IOException, El } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                        + * Adds a data stream or index to an alias. * * @param fn * a function that initializes a builder to create the @@ -2703,8 +3051,9 @@ public final PutAliasResponse putAlias(Function + * Update the data stream lifecycle of the specified data streams. * * @see Documentation @@ -2720,8 +3069,9 @@ public PutDataLifecycleResponse putDataLifecycle(PutDataLifecycleRequest request } /** - * Update data stream lifecycles. Update the data stream lifecycle of the - * specified data streams. + * Update data stream lifecycles. + *

                                        + * Update the data stream lifecycle of the specified data streams. * * @param fn * a function that initializes a builder to create the @@ -2787,8 +3137,9 @@ public final PutDataStreamMappingsResponse putDataStreamMappings( // ----- Endpoint: indices.put_data_stream_options /** - * Update data stream options. Update the data stream options of the specified - * data streams. + * Update data stream options. + *

                                        + * Update the data stream options of the specified data streams. * * @see Documentation @@ -2804,8 +3155,9 @@ public PutDataStreamOptionsResponse putDataStreamOptions(PutDataStreamOptionsReq } /** - * Update data stream options. Update the data stream options of the specified - * data streams. + * Update data stream options. + *

                                        + * Update the data stream options of the specified data streams. * * @param fn * a function that initializes a builder to create the @@ -2873,8 +3225,10 @@ public final PutDataStreamSettingsResponse putDataStreamSettings( // ----- Endpoint: indices.put_index_template /** - * Create or update an index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. + * Create or update an index template. + *

                                        + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. *

                                        * Elasticsearch applies templates to new indices based on an wildcard pattern * that matches the index name. Index templates are applied during data stream @@ -2929,8 +3283,10 @@ public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request } /** - * Create or update an index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. + * Create or update an index template. + *

                                        + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. *

                                        * Elasticsearch applies templates to new indices based on an wildcard pattern * that matches the index name. Index templates are applied during data stream @@ -2988,8 +3344,10 @@ public final PutIndexTemplateResponse putIndexTemplate( // ----- Endpoint: indices.put_mapping /** - * Update field mappings. Add new fields to an existing data stream or index. - * You can use the update mapping API to: + * Update field mappings. + *

                                        + * Add new fields to an existing data stream or index. You can use the update + * mapping API to: *

                                          *
                                        • Add a new field to an existing index
                                        • *
                                        • Update mappings for multiple indices in a single request
                                        • @@ -3018,8 +3376,10 @@ public PutMappingResponse putMapping(PutMappingRequest request) throws IOExcepti } /** - * Update field mappings. Add new fields to an existing data stream or index. - * You can use the update mapping API to: + * Update field mappings. + *

                                          + * Add new fields to an existing data stream or index. You can use the update + * mapping API to: *

                                            *
                                          • Add a new field to an existing index
                                          • *
                                          • Update mappings for multiple indices in a single request
                                          • @@ -3048,11 +3408,52 @@ public final PutMappingResponse putMapping(Function + * Create or update the sampling configuration for the specified index. + * + * @see
                                            Documentation + * on elastic.co + */ + + public PutSampleConfigurationResponse putSampleConfiguration(PutSampleConfigurationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutSampleConfigurationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Create or update sampling configuration. + *

                                            + * Create or update the sampling configuration for the specified index. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutSampleConfigurationRequest} + * @see Documentation + * on elastic.co + */ + + public final PutSampleConfigurationResponse putSampleConfiguration( + Function> fn) + throws IOException, ElasticsearchException { + return putSampleConfiguration(fn.apply(new PutSampleConfigurationRequest.Builder()).build()); + } + // ----- Endpoint: indices.put_settings /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                                            + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                                            * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3136,8 +3537,10 @@ public PutIndicesSettingsResponse putSettings(PutIndicesSettingsRequest request) } /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                                            + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                                            * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3222,8 +3625,10 @@ public final PutIndicesSettingsResponse putSettings( } /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                                            + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                                            * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be @@ -3306,10 +3711,11 @@ public PutIndicesSettingsResponse putSettings() throws IOException, Elasticsearc // ----- Endpoint: indices.put_template /** - * Create or update a legacy index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. - * Elasticsearch applies templates to new indices based on an index pattern that - * matches the index name. + * Create or update a legacy index template. + *

                                            + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. Elasticsearch applies templates to new indices + * based on an index pattern that matches the index name. *

                                            * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -3350,10 +3756,11 @@ public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOExce } /** - * Create or update a legacy index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. - * Elasticsearch applies templates to new indices based on an index pattern that - * matches the index name. + * Create or update a legacy index template. + *

                                            + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. Elasticsearch applies templates to new indices + * based on an index pattern that matches the index name. *

                                            * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -3398,9 +3805,11 @@ public final PutTemplateResponse putTemplate( // ----- Endpoint: indices.recovery /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                                            + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                                            * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3446,9 +3855,11 @@ public RecoveryResponse recovery(RecoveryRequest request) throws IOException, El } /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                                            + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                                            * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3495,9 +3906,11 @@ public final RecoveryResponse recovery(Function + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                                            * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. @@ -3543,9 +3956,11 @@ public RecoveryResponse recovery() throws IOException, ElasticsearchException { // ----- Endpoint: indices.refresh /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                                            + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                                            * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3580,9 +3995,11 @@ public RefreshResponse refresh(RefreshRequest request) throws IOException, Elast } /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                                            + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                                            * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3618,9 +4035,11 @@ public final RefreshResponse refresh(Function + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                                            * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 @@ -3655,9 +4074,10 @@ public RefreshResponse refresh() throws IOException, ElasticsearchException { // ----- Endpoint: indices.reload_search_analyzers /** - * Reload search analyzers. Reload an index's search analyzers and their - * resources. For data streams, the API reloads search analyzers and resources - * for the stream's backing indices. + * Reload search analyzers. + *

                                            + * Reload an index's search analyzers and their resources. For data streams, the + * API reloads search analyzers and resources for the stream's backing indices. *

                                            * IMPORTANT: After reloading the search analyzers you should clear the request * cache to make sure it doesn't contain responses derived from the previous @@ -3692,9 +4112,10 @@ public ReloadSearchAnalyzersResponse reloadSearchAnalyzers(ReloadSearchAnalyzers } /** - * Reload search analyzers. Reload an index's search analyzers and their - * resources. For data streams, the API reloads search analyzers and resources - * for the stream's backing indices. + * Reload search analyzers. + *

                                            + * Reload an index's search analyzers and their resources. For data streams, the + * API reloads search analyzers and resources for the stream's backing indices. *

                                            * IMPORTANT: After reloading the search analyzers you should clear the request * cache to make sure it doesn't contain responses derived from the previous @@ -4060,9 +4481,10 @@ public ResolveClusterResponse resolveCluster() throws IOException, Elasticsearch // ----- Endpoint: indices.resolve_index /** - * Resolve indices. Resolve the names and/or index patterns for indices, - * aliases, and data streams. Multiple patterns and remote clusters are - * supported. + * Resolve indices. + *

                                            + * Resolve the names and/or index patterns for indices, aliases, and data + * streams. Multiple patterns and remote clusters are supported. * * @see Documentation @@ -4077,9 +4499,10 @@ public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws IOE } /** - * Resolve indices. Resolve the names and/or index patterns for indices, - * aliases, and data streams. Multiple patterns and remote clusters are - * supported. + * Resolve indices. + *

                                            + * Resolve the names and/or index patterns for indices, aliases, and data + * streams. Multiple patterns and remote clusters are supported. * * @param fn * a function that initializes a builder to create the @@ -4098,10 +4521,11 @@ public final ResolveIndexResponse resolveIndex( // ----- Endpoint: indices.rollover /** - * Roll over to a new index. TIP: We recommend using the index lifecycle - * rollover action to automate rollovers. However, Serverless does not support - * Index Lifecycle Management (ILM), so don't use this approach in the - * Serverless context. + * Roll over to a new index. + *

                                            + * TIP: We recommend using the index lifecycle rollover action to automate + * rollovers. However, Serverless does not support Index Lifecycle Management + * (ILM), so don't use this approach in the Serverless context. *

                                            * The rollover API creates a new index for a data stream or index alias. The * API behavior depends on the rollover target. @@ -4165,10 +4589,11 @@ public RolloverResponse rollover(RolloverRequest request) throws IOException, El } /** - * Roll over to a new index. TIP: We recommend using the index lifecycle - * rollover action to automate rollovers. However, Serverless does not support - * Index Lifecycle Management (ILM), so don't use this approach in the - * Serverless context. + * Roll over to a new index. + *

                                            + * TIP: We recommend using the index lifecycle rollover action to automate + * rollovers. However, Serverless does not support Index Lifecycle Management + * (ILM), so don't use this approach in the Serverless context. *

                                            * The rollover API creates a new index for a data stream or index alias. The * API behavior depends on the rollover target. @@ -4235,9 +4660,10 @@ public final RolloverResponse rollover(Function + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @see Documentation @@ -4252,9 +4678,10 @@ public SegmentsResponse segments(SegmentsRequest request) throws IOException, El } /** - * Get index segments. Get low-level information about the Lucene segments in - * index shards. For data streams, the API returns information about the - * stream's backing indices. + * Get index segments. + *

                                            + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @param fn * a function that initializes a builder to create the @@ -4270,9 +4697,10 @@ public final SegmentsResponse segments(Function + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @see Documentation @@ -4287,9 +4715,11 @@ public SegmentsResponse segments() throws IOException, ElasticsearchException { // ----- Endpoint: indices.shard_stores /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                                            + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                                            * The index shard stores API returns the following information: *

                                              @@ -4316,9 +4746,11 @@ public ShardStoresResponse shardStores(ShardStoresRequest request) throws IOExce } /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                                              + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                                              * The index shard stores API returns the following information: *

                                                @@ -4347,9 +4779,11 @@ public final ShardStoresResponse shardStores( } /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                                                + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                                                * The index shard stores API returns the following information: *

                                                  @@ -4376,7 +4810,9 @@ public ShardStoresResponse shardStores() throws IOException, ElasticsearchExcept // ----- Endpoint: indices.shrink /** - * Shrink an index. Shrink an index into a new index with fewer primary shards. + * Shrink an index. + *

                                                  + * Shrink an index into a new index with fewer primary shards. *

                                                  * Before you can shrink an index: *

                                                    @@ -4445,7 +4881,9 @@ public ShrinkResponse shrink(ShrinkRequest request) throws IOException, Elastics } /** - * Shrink an index. Shrink an index into a new index with fewer primary shards. + * Shrink an index. + *

                                                    + * Shrink an index into a new index with fewer primary shards. *

                                                    * Before you can shrink an index: *

                                                      @@ -4517,8 +4955,10 @@ public final ShrinkResponse shrink(Function + * Get the index configuration that would be applied to the specified index from + * an existing index template. * * @see Documentation @@ -4534,8 +4974,10 @@ public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplate } /** - * Simulate an index. Get the index configuration that would be applied to the - * specified index from an existing index template. + * Simulate an index. + *

                                                      + * Get the index configuration that would be applied to the specified index from + * an existing index template. * * @param fn * a function that initializes a builder to create the @@ -4554,8 +4996,10 @@ public final SimulateIndexTemplateResponse simulateIndexTemplate( // ----- Endpoint: indices.simulate_template /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                                      + * Get the index configuration that would be applied by a particular index + * template. * * @see Documentation @@ -4571,8 +5015,10 @@ public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request } /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                                      + * Get the index configuration that would be applied by a particular index + * template. * * @param fn * a function that initializes a builder to create the @@ -4589,8 +5035,10 @@ public final SimulateTemplateResponse simulateTemplate( } /** - * Simulate an index template. Get the index configuration that would be applied - * by a particular index template. + * Simulate an index template. + *

                                                      + * Get the index configuration that would be applied by a particular index + * template. * * @see Documentation @@ -4605,7 +5053,9 @@ public SimulateTemplateResponse simulateTemplate() throws IOException, Elasticse // ----- Endpoint: indices.split /** - * Split an index. Split an index into a new index with more primary shards. + * Split an index. + *

                                                      + * Split an index into a new index with more primary shards. *

                                                        *
                                                      • *

                                                        @@ -4682,7 +5132,9 @@ public SplitResponse split(SplitRequest request) throws IOException, Elasticsear } /** - * Split an index. Split an index into a new index with more primary shards. + * Split an index. + *

                                                        + * Split an index into a new index with more primary shards. *

                                                          *
                                                        • *

                                                          @@ -4762,8 +5214,10 @@ public final SplitResponse split(Function + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                                          * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4791,8 +5245,10 @@ public IndicesStatsResponse stats(IndicesStatsRequest request) throws IOExceptio } /** - * Get index statistics. For data streams, the API retrieves statistics for the - * stream's backing indices. + * Get index statistics. + *

                                                          + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                                          * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4822,8 +5278,10 @@ public final IndicesStatsResponse stats( } /** - * Get index statistics. For data streams, the API retrieves statistics for the - * stream's backing indices. + * Get index statistics. + *

                                                          + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                                          * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -4851,7 +5309,9 @@ public IndicesStatsResponse stats() throws IOException, ElasticsearchException { // ----- Endpoint: indices.update_aliases /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                                          + * Adds a data stream or index to an alias. * * @see Documentation @@ -4867,7 +5327,9 @@ public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                                          + * Adds a data stream or index to an alias. * * @param fn * a function that initializes a builder to create the @@ -4884,7 +5346,9 @@ public final UpdateAliasesResponse updateAliases( } /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                                          + * Adds a data stream or index to an alias. * * @see Documentation @@ -4899,7 +5363,9 @@ public UpdateAliasesResponse updateAliases() throws IOException, ElasticsearchEx // ----- Endpoint: indices.validate_query /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                                          + * Validates a query without running it. * * @see Documentation @@ -4915,7 +5381,9 @@ public ValidateQueryResponse validateQuery(ValidateQueryRequest request) } /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                                          + * Validates a query without running it. * * @param fn * a function that initializes a builder to create the @@ -4932,7 +5400,9 @@ public final ValidateQueryResponse validateQuery( } /** - * Validate a query. Validates a query without running it. + * Validate a query. + *

                                                          + * Validates a query without running it. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index 3c547ae1fe..642778b1a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -61,8 +61,9 @@ // typedef: indices.exists.Request /** - * Check indices. Check if one or more indices, index aliases, or data streams - * exist. + * Check indices. + *

                                                          + * Check if one or more indices, index aliases, or data streams exist. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java index 20a524acf7..6e57062fdd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java @@ -61,9 +61,11 @@ // typedef: indices.exists_template.Request /** - * Check existence of index templates. Get information about whether index - * templates exist. Index templates define settings, mappings, and aliases that - * can be applied automatically to new indices. + * Check existence of index templates. + *

                                                          + * Get information about whether index templates exist. Index templates define + * settings, mappings, and aliases that can be applied automatically to new + * indices. *

                                                          * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -114,7 +116,11 @@ public final Boolean flatSettings() { * Indicates whether to get information from the local node only. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -176,7 +182,11 @@ public final Builder flatSettings(@Nullable Boolean value) { * Indicates whether to get information from the local node only. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java index a4a4a4d5f9..bae1e58953 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -59,10 +59,12 @@ // typedef: indices.explain_data_lifecycle.Request /** - * Get the status for a data stream lifecycle. Get information about an index or - * data stream's current data stream lifecycle status, such as time since index - * creation, time since rollover, the lifecycle configuration managing the - * index, or any errors encountered during lifecycle execution. + * Get the status for a data stream lifecycle. + *

                                                          + * Get information about an index or data stream's current data stream lifecycle + * status, such as time since index creation, time since rollover, the lifecycle + * configuration managing the index, or any errors encountered during lifecycle + * execution. * * @see API @@ -93,7 +95,7 @@ public static ExplainDataLifecycleRequest of(Function * API name: {@code include_defaults} @@ -104,7 +106,7 @@ public final Boolean includeDefaults() { } /** - * Required - The name of the index to explain + * Required - Comma-separated list of index names to explain *

                                                          * API name: {@code index} */ @@ -113,7 +115,7 @@ public final List index() { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

                                                          * API name: {@code master_timeout} */ @@ -140,7 +142,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time masterTimeout; /** - * indicates if the API should return the default values the system uses for the + * Indicates if the API should return the default values the system uses for the * index's lifecycle *

                                                          * API name: {@code include_defaults} @@ -151,7 +153,7 @@ public final Builder includeDefaults(@Nullable Boolean value) { } /** - * Required - The name of the index to explain + * Required - Comma-separated list of index names to explain *

                                                          * API name: {@code index} *

                                                          @@ -163,7 +165,7 @@ public final Builder index(List list) { } /** - * Required - The name of the index to explain + * Required - Comma-separated list of index names to explain *

                                                          * API name: {@code index} *

                                                          @@ -175,7 +177,7 @@ public final Builder index(String value, String... values) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

                                                          * API name: {@code master_timeout} */ @@ -185,7 +187,7 @@ public final Builder masterTimeout(@Nullable Time value) { } /** - * Specify timeout for connection to master + * The period to wait for a connection to the master node. *

                                                          * API name: {@code master_timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java index 6fa8c6c012..b759dad795 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java @@ -59,11 +59,12 @@ // typedef: indices.field_usage_stats.Request /** - * Get field usage stats. Get field usage information for each shard and field - * of an index. Field usage statistics are automatically captured when queries - * are running on a cluster. A shard-level search request that accesses a given - * field, even if multiple times during that request, is counted as a single - * use. + * Get field usage stats. + *

                                                          + * Get field usage information for each shard and field of an index. Field usage + * statistics are automatically captured when queries are running on a cluster. + * A shard-level search request that accesses a given field, even if multiple + * times during that request, is counted as a single use. *

                                                          * The response body reports the per-shard usage count of the data structures * that back the fields in the index. A given request will increment each count diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java index 5d1fae1ad8..80f66941d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java @@ -59,14 +59,16 @@ // typedef: indices.flush.Request /** - * Flush data streams or indices. Flushing a data stream or index is the process - * of making sure that any data that is currently only stored in the transaction - * log is also permanently stored in the Lucene index. When restarting, - * Elasticsearch replays any unflushed operations from the transaction log into - * the Lucene index to bring it back into the state that it was in before the - * restart. Elasticsearch automatically triggers flushes as needed, using - * heuristics that trade off the size of the unflushed transaction log against - * the cost of performing each flush. + * Flush data streams or indices. + *

                                                          + * Flushing a data stream or index is the process of making sure that any data + * that is currently only stored in the transaction log is also permanently + * stored in the Lucene index. When restarting, Elasticsearch replays any + * unflushed operations from the transaction log into the Lucene index to bring + * it back into the state that it was in before the restart. Elasticsearch + * automatically triggers flushes as needed, using heuristics that trade off the + * size of the unflushed transaction log against the cost of performing each + * flush. *

                                                          * After each operation has been flushed it is permanently stored in the Lucene * index. This may mean that there is no need to maintain an additional copy of 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 c1123432d3..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 @@ -60,9 +60,11 @@ // typedef: indices.forcemerge.Request /** - * Force a merge. Perform the force merge operation on the shards of one or more - * indices. For data streams, the API forces a merge on the shards of the - * stream's backing indices. + * Force a merge. + *

                                                          + * Perform the force merge operation on the shards of one or more indices. For + * data streams, the API forces a merge on the shards of the stream's backing + * indices. *

                                                          * Merging reduces the number of segments in each shard by merging some of them * together and also frees up the space used by deleted documents. Merging @@ -204,7 +206,6 @@ public final List expandWildcards() { /** * Specify whether the index should be flushed after performing the operation - * (default: true) *

                                                          * API name: {@code flush} */ @@ -255,7 +256,7 @@ public final Boolean onlyExpungeDeletes() { } /** - * Should the request wait until the force merge is completed. + * Should the request wait until the force merge is completed *

                                                          * API name: {@code wait_for_completion} */ @@ -337,7 +338,6 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val /** * Specify whether the index should be flushed after performing the operation - * (default: true) *

                                                          * API name: {@code flush} */ @@ -404,7 +404,7 @@ public final Builder onlyExpungeDeletes(@Nullable Boolean value) { } /** - * Should the request wait until the force merge is completed. + * Should the request wait until the force merge is completed *

                                                          * API name: {@code wait_for_completion} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index c80e603fec..e302126dce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -60,8 +60,9 @@ // typedef: indices.get_alias.Request /** - * Get aliases. Retrieves information for one or more data stream or index - * aliases. + * Get aliases. + *

                                                          + * Retrieves information for one or more data stream or index aliases. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java new file mode 100644 index 0000000000..46f84f126f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java @@ -0,0 +1,180 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_all_sample_configuration.Request + +/** + * Get all sampling configurations. + *

                                                          + * Get the sampling configurations for all indices. + * + * @see API + * specification + */ + +public class GetAllSampleConfigurationRequest extends RequestBase { + @Nullable + private final Time masterTimeout; + + // --------------------------------------------------------------------------------------------- + + private GetAllSampleConfigurationRequest(Builder builder) { + + this.masterTimeout = builder.masterTimeout; + + } + + public static GetAllSampleConfigurationRequest of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * 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} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAllSampleConfigurationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Time masterTimeout; + + /** + * 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} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetAllSampleConfigurationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAllSampleConfigurationRequest build() { + _checkSingleUse(); + + return new GetAllSampleConfigurationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.get_all_sample_configuration}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.get_all_sample_configuration", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_sample/config"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetAllSampleConfigurationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationResponse.java similarity index 55% rename from java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java rename to java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationResponse.java index b1f5696c4e..5b4ddafb04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleDownsampling.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationResponse.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.elasticsearch.indices.get_all_sample_configuration.IndexSamplingConfiguration; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -50,39 +51,36 @@ // //---------------------------------------------------------------- -// typedef: indices._types.DataStreamLifecycleDownsampling +// typedef: indices.get_all_sample_configuration.Response /** * * @see API + * "../doc-files/api-spec.html#indices.get_all_sample_configuration.Response">API * specification */ @JsonpDeserializable -public class DataStreamLifecycleDownsampling implements JsonpSerializable { - private final List rounds; +public class GetAllSampleConfigurationResponse implements JsonpSerializable { + private final List configurations; // --------------------------------------------------------------------------------------------- - private DataStreamLifecycleDownsampling(Builder builder) { + private GetAllSampleConfigurationResponse(Builder builder) { - this.rounds = ApiTypeHelper.unmodifiableRequired(builder.rounds, this, "rounds"); + this.configurations = ApiTypeHelper.unmodifiableRequired(builder.configurations, this, "configurations"); } - public static DataStreamLifecycleDownsampling of( - Function> fn) { + public static GetAllSampleConfigurationResponse of( + Function> fn) { return fn.apply(new Builder()).build(); } /** - * Required - The list of downsampling rounds to execute as part of this - * downsampling configuration - *

                                                          - * API name: {@code rounds} + * Required - API name: {@code configurations} */ - public final List rounds() { - return this.rounds; + public final List configurations() { + return this.configurations; } /** @@ -96,10 +94,10 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (ApiTypeHelper.isDefined(this.rounds)) { - generator.writeKey("rounds"); + if (ApiTypeHelper.isDefined(this.configurations)) { + generator.writeKey("configurations"); generator.writeStartArray(); - for (DownsamplingRound item0 : this.rounds) { + for (IndexSamplingConfiguration item0 : this.configurations) { item0.serialize(generator, mapper); } @@ -117,50 +115,42 @@ public String toString() { // --------------------------------------------------------------------------------------------- /** - * Builder for {@link DataStreamLifecycleDownsampling}. + * Builder for {@link GetAllSampleConfigurationResponse}. */ public static class Builder extends WithJsonObjectBuilderBase implements - ObjectBuilder { - private List rounds; + ObjectBuilder { + private List configurations; /** - * Required - The list of downsampling rounds to execute as part of this - * downsampling configuration + * Required - API name: {@code configurations} *

                                                          - * API name: {@code rounds} - *

                                                          - * Adds all elements of list to rounds. + * Adds all elements of list to configurations. */ - public final Builder rounds(List list) { - this.rounds = _listAddAll(this.rounds, list); + public final Builder configurations(List list) { + this.configurations = _listAddAll(this.configurations, list); return this; } /** - * Required - The list of downsampling rounds to execute as part of this - * downsampling configuration - *

                                                          - * API name: {@code rounds} + * Required - API name: {@code configurations} *

                                                          - * Adds one or more values to rounds. + * Adds one or more values to configurations. */ - public final Builder rounds(DownsamplingRound value, DownsamplingRound... values) { - this.rounds = _listAdd(this.rounds, value, values); + public final Builder configurations(IndexSamplingConfiguration value, IndexSamplingConfiguration... values) { + this.configurations = _listAdd(this.configurations, value, values); return this; } /** - * Required - The list of downsampling rounds to execute as part of this - * downsampling configuration - *

                                                          - * API name: {@code rounds} + * Required - API name: {@code configurations} *

                                                          - * Adds a value to rounds using a builder lambda. + * Adds a value to configurations using a builder lambda. */ - public final Builder rounds(Function> fn) { - return rounds(fn.apply(new DownsamplingRound.Builder()).build()); + public final Builder configurations( + Function> fn) { + return configurations(fn.apply(new IndexSamplingConfiguration.Builder()).build()); } @Override @@ -169,30 +159,31 @@ protected Builder self() { } /** - * Builds a {@link DataStreamLifecycleDownsampling}. + * Builds a {@link GetAllSampleConfigurationResponse}. * * @throws NullPointerException * if some of the required fields are null. */ - public DataStreamLifecycleDownsampling build() { + public GetAllSampleConfigurationResponse build() { _checkSingleUse(); - return new DataStreamLifecycleDownsampling(this); + return new GetAllSampleConfigurationResponse(this); } } // --------------------------------------------------------------------------------------------- /** - * Json deserializer for {@link DataStreamLifecycleDownsampling} + * Json deserializer for {@link GetAllSampleConfigurationResponse} */ - public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer - .lazy(Builder::new, DataStreamLifecycleDownsampling::setupDataStreamLifecycleDownsamplingDeserializer); + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetAllSampleConfigurationResponse::setupGetAllSampleConfigurationResponseDeserializer); - protected static void setupDataStreamLifecycleDownsamplingDeserializer( - ObjectDeserializer op) { + protected static void setupGetAllSampleConfigurationResponseDeserializer( + ObjectDeserializer op) { - op.add(Builder::rounds, JsonpDeserializer.arrayDeserializer(DownsamplingRound._DESERIALIZER), "rounds"); + op.add(Builder::configurations, JsonpDeserializer.arrayDeserializer(IndexSamplingConfiguration._DESERIALIZER), + "configurations"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleStatsRequest.java index ecdf002dd3..17855dd9e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleStatsRequest.java @@ -50,8 +50,10 @@ // typedef: indices.get_data_lifecycle_stats.Request /** - * Get data stream lifecycle stats. Get statistics about the data streams that - * are managed by a data stream lifecycle. + * Get data stream lifecycle stats. + *

                                                          + * Get statistics about the data streams that are managed by a data stream + * lifecycle. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java index 72d6592f40..a9b13a5429 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java @@ -59,9 +59,10 @@ // typedef: indices.get_field_mapping.Request /** - * Get mapping definitions. Retrieves mapping definitions for one or more - * fields. For data streams, the API retrieves field mappings for the stream’s - * backing indices. + * Get mapping definitions. + *

                                                          + * Retrieves mapping definitions for one or more fields. For data streams, the + * API retrieves field mappings for the stream’s backing indices. *

                                                          * This API is useful if you don't need a complete mapping or if an index * mapping contains a large number of fields. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java index 570c384357..8a13ed23bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java @@ -61,8 +61,10 @@ // typedef: indices.get.Request /** - * Get index information. Get information about one or more indices. For data - * streams, the API returns information about the stream’s backing indices. + * Get index information. + *

                                                          + * Get information about one or more indices. For data streams, the API returns + * information about the stream’s backing indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index 9346aebe1d..5ab4c40d81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -56,7 +56,9 @@ // typedef: indices.get_index_template.Request /** - * Get index templates. Get information about one or more index templates. + * Get index templates. + *

                                                          + * Get information about one or more index templates. * * @see API @@ -120,7 +122,11 @@ public final Boolean includeDefaults() { * to false, which means information is retrieved from the master node. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -138,8 +144,7 @@ public final Time masterTimeout() { } /** - * Comma-separated list of index template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of index template to retrieve. Wildcard (*) expressions are supported. *

                                                          * API name: {@code name} */ @@ -197,7 +202,11 @@ public final Builder includeDefaults(@Nullable Boolean value) { * to false, which means information is retrieved from the master node. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter has no effect, is now deprecated, and will + * be removed in a future version. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; @@ -225,8 +234,7 @@ public final Builder masterTimeout(Function> f } /** - * Comma-separated list of index template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of index template to retrieve. Wildcard (*) expressions are supported. *

                                                          * API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index adbb474613..3a3189e583 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -60,8 +60,10 @@ // typedef: indices.get_settings.Request /** - * Get index settings. Get setting information for one or more indices. For data - * streams, it returns setting information for the stream's backing indices. + * Get index settings. + *

                                                          + * Get setting information for one or more indices. For data streams, it returns + * setting information for the stream's backing indices. * * @see API * specification @@ -185,7 +187,11 @@ public final List index() { * only. If false, information is retrieved from the master node. *

                                                          * API name: {@code local} + * + * @deprecated 9.1.0 This parameter is a no-op and settings are always retrieved + * locally. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -355,7 +361,11 @@ public final Builder index(String value, String... values) { * only. If false, information is retrieved from the master node. *

                                                          * API name: {@code local} + * + * @deprecated 9.1.0 This parameter is a no-op and settings are always retrieved + * locally. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index 052e642032..d2e2c999cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -60,8 +60,10 @@ // typedef: indices.get_mapping.Request /** - * Get mapping definitions. For data streams, the API retrieves mappings for the - * stream’s backing indices. + * Get mapping definitions. + *

                                                          + * For data streams, the API retrieves mappings for the stream’s backing + * indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java new file mode 100644 index 0000000000..29ca1ae117 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java @@ -0,0 +1,228 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample_configuration.Request + +/** + * Get sampling configuration. + *

                                                          + * Get the sampling configuration for the specified index. + * + * @see API + * specification + */ + +public class GetSampleConfigurationRequest extends RequestBase { + private final String index; + + @Nullable + private final Time masterTimeout; + + // --------------------------------------------------------------------------------------------- + + private GetSampleConfigurationRequest(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.masterTimeout = builder.masterTimeout; + + } + + public static GetSampleConfigurationRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the index. + *

                                                          + * API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * 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} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleConfigurationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String index; + + @Nullable + private Time masterTimeout; + + /** + * Required - The name of the index. + *

                                                          + * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleConfigurationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleConfigurationRequest build() { + _checkSingleUse(); + + return new GetSampleConfigurationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.get_sample_configuration}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.get_sample_configuration", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_sample"); + buf.append("/config"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetSampleConfigurationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationResponse.java new file mode 100644 index 0000000000..877f9ba144 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationResponse.java @@ -0,0 +1,190 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample_configuration.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSampleConfigurationResponse implements JsonpSerializable { + private final String index; + + private final SamplingConfiguration configuration; + + // --------------------------------------------------------------------------------------------- + + private GetSampleConfigurationResponse(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.configuration = ApiTypeHelper.requireNonNull(builder.configuration, this, "configuration"); + + } + + public static GetSampleConfigurationResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * Required - API name: {@code configuration} + */ + public final SamplingConfiguration configuration() { + return this.configuration; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("index"); + generator.write(this.index); + + generator.writeKey("configuration"); + this.configuration.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleConfigurationResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String index; + + private SamplingConfiguration configuration; + + /** + * Required - API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Required - API name: {@code configuration} + */ + public final Builder configuration(SamplingConfiguration value) { + this.configuration = value; + return this; + } + + /** + * Required - API name: {@code configuration} + */ + public final Builder configuration( + Function> fn) { + return this.configuration(fn.apply(new SamplingConfiguration.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleConfigurationResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleConfigurationResponse build() { + _checkSingleUse(); + + return new GetSampleConfigurationResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSampleConfigurationResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSampleConfigurationResponse::setupGetSampleConfigurationResponseDeserializer); + + protected static void setupGetSampleConfigurationResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); + op.add(Builder::configuration, SamplingConfiguration._DESERIALIZER, "configuration"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java new file mode 100644 index 0000000000..7869ea0a33 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java @@ -0,0 +1,182 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample.Request + +/** + * Request for a random sample of raw documents ingested into the given index or + * data stream. + * + * @see API + * specification + */ + +public class GetSampleRequest extends RequestBase { + private final String index; + + // --------------------------------------------------------------------------------------------- + + private GetSampleRequest(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + + } + + public static GetSampleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Single index or data stream name. Wildcards are not supported. + *

                                                          + * API name: {@code index} + */ + public final String index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String index; + + /** + * Required - Single index or data stream name. Wildcards are not supported. + *

                                                          + * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleRequest build() { + _checkSingleUse(); + + return new GetSampleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.get_sample}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.get_sample", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_sample"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetSampleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleResponse.java new file mode 100644 index 0000000000..aca30652ad --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleResponse.java @@ -0,0 +1,183 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch.indices.get_sample.RawDocument; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSampleResponse implements JsonpSerializable { + private final List sample; + + // --------------------------------------------------------------------------------------------- + + private GetSampleResponse(Builder builder) { + + this.sample = ApiTypeHelper.unmodifiableRequired(builder.sample, this, "sample"); + + } + + public static GetSampleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code sample} + */ + public final List sample() { + return this.sample; + } + + /** + * Serialize this object to JSON. + */ + 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.sample)) { + generator.writeKey("sample"); + generator.writeStartArray(); + for (RawDocument item0 : this.sample) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private List sample; + + /** + * Required - API name: {@code sample} + *

                                                          + * Adds all elements of list to sample. + */ + public final Builder sample(List list) { + this.sample = _listAddAll(this.sample, list); + return this; + } + + /** + * Required - API name: {@code sample} + *

                                                          + * Adds one or more values to sample. + */ + public final Builder sample(RawDocument value, RawDocument... values) { + this.sample = _listAdd(this.sample, value, values); + return this; + } + + /** + * Required - API name: {@code sample} + *

                                                          + * Adds a value to sample using a builder lambda. + */ + public final Builder sample(Function> fn) { + return sample(fn.apply(new RawDocument.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleResponse build() { + _checkSingleUse(); + + return new GetSampleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSampleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSampleResponse::setupGetSampleResponseDeserializer); + + protected static void setupGetSampleResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::sample, JsonpDeserializer.arrayDeserializer(RawDocument._DESERIALIZER), "sample"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java new file mode 100644 index 0000000000..4d943e8a55 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample_stats.Request + +/** + * Request stats for a random sample of raw documents ingested into the given + * index or data stream. + * + * @see API + * specification + */ + +public class GetSampleStatsRequest extends RequestBase { + private final String index; + + // --------------------------------------------------------------------------------------------- + + private GetSampleStatsRequest(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + + } + + public static GetSampleStatsRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Single index or data stream name. Wildcards are not supported. + *

                                                          + * API name: {@code index} + */ + public final String index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleStatsRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String index; + + /** + * Required - Single index or data stream name. Wildcards are not supported. + *

                                                          + * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleStatsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleStatsRequest build() { + _checkSingleUse(); + + return new GetSampleStatsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.get_sample_stats}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.get_sample_stats", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_sample"); + buf.append("/stats"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetSampleStatsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsResponse.java new file mode 100644 index 0000000000..dde0ce0ee9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsResponse.java @@ -0,0 +1,526 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.get_sample_stats.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSampleStatsResponse implements JsonpSerializable { + private final long potentialSamples; + + private final long samplesRejectedForMaxSamplesExceeded; + + private final long samplesRejectedForCondition; + + private final long samplesRejectedForRate; + + private final long samplesRejectedForException; + + private final long samplesRejectedForSize; + + private final long samplesAccepted; + + @Nullable + private final Time timeSampling; + + private final long timeSamplingMillis; + + @Nullable + private final Time timeEvaluatingCondition; + + private final long timeEvaluatingConditionMillis; + + @Nullable + private final Time timeCompilingCondition; + + private final long timeCompilingConditionMillis; + + @Nullable + private final String lastException; + + // --------------------------------------------------------------------------------------------- + + private GetSampleStatsResponse(Builder builder) { + + this.potentialSamples = ApiTypeHelper.requireNonNull(builder.potentialSamples, this, "potentialSamples", 0); + this.samplesRejectedForMaxSamplesExceeded = ApiTypeHelper.requireNonNull( + builder.samplesRejectedForMaxSamplesExceeded, this, "samplesRejectedForMaxSamplesExceeded", 0); + this.samplesRejectedForCondition = ApiTypeHelper.requireNonNull(builder.samplesRejectedForCondition, this, + "samplesRejectedForCondition", 0); + this.samplesRejectedForRate = ApiTypeHelper.requireNonNull(builder.samplesRejectedForRate, this, + "samplesRejectedForRate", 0); + this.samplesRejectedForException = ApiTypeHelper.requireNonNull(builder.samplesRejectedForException, this, + "samplesRejectedForException", 0); + this.samplesRejectedForSize = ApiTypeHelper.requireNonNull(builder.samplesRejectedForSize, this, + "samplesRejectedForSize", 0); + this.samplesAccepted = ApiTypeHelper.requireNonNull(builder.samplesAccepted, this, "samplesAccepted", 0); + this.timeSampling = builder.timeSampling; + this.timeSamplingMillis = ApiTypeHelper.requireNonNull(builder.timeSamplingMillis, this, "timeSamplingMillis", + 0); + this.timeEvaluatingCondition = builder.timeEvaluatingCondition; + this.timeEvaluatingConditionMillis = ApiTypeHelper.requireNonNull(builder.timeEvaluatingConditionMillis, this, + "timeEvaluatingConditionMillis", 0); + this.timeCompilingCondition = builder.timeCompilingCondition; + this.timeCompilingConditionMillis = ApiTypeHelper.requireNonNull(builder.timeCompilingConditionMillis, this, + "timeCompilingConditionMillis", 0); + this.lastException = builder.lastException; + + } + + public static GetSampleStatsResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code potential_samples} + */ + public final long potentialSamples() { + return this.potentialSamples; + } + + /** + * Required - API name: {@code samples_rejected_for_max_samples_exceeded} + */ + public final long samplesRejectedForMaxSamplesExceeded() { + return this.samplesRejectedForMaxSamplesExceeded; + } + + /** + * Required - API name: {@code samples_rejected_for_condition} + */ + public final long samplesRejectedForCondition() { + return this.samplesRejectedForCondition; + } + + /** + * Required - API name: {@code samples_rejected_for_rate} + */ + public final long samplesRejectedForRate() { + return this.samplesRejectedForRate; + } + + /** + * Required - API name: {@code samples_rejected_for_exception} + */ + public final long samplesRejectedForException() { + return this.samplesRejectedForException; + } + + /** + * Required - API name: {@code samples_rejected_for_size} + */ + public final long samplesRejectedForSize() { + return this.samplesRejectedForSize; + } + + /** + * Required - API name: {@code samples_accepted} + */ + public final long samplesAccepted() { + return this.samplesAccepted; + } + + /** + * API name: {@code time_sampling} + */ + @Nullable + public final Time timeSampling() { + return this.timeSampling; + } + + /** + * Required - API name: {@code time_sampling_millis} + */ + public final long timeSamplingMillis() { + return this.timeSamplingMillis; + } + + /** + * API name: {@code time_evaluating_condition} + */ + @Nullable + public final Time timeEvaluatingCondition() { + return this.timeEvaluatingCondition; + } + + /** + * Required - API name: {@code time_evaluating_condition_millis} + */ + public final long timeEvaluatingConditionMillis() { + return this.timeEvaluatingConditionMillis; + } + + /** + * API name: {@code time_compiling_condition} + */ + @Nullable + public final Time timeCompilingCondition() { + return this.timeCompilingCondition; + } + + /** + * Required - API name: {@code time_compiling_condition_millis} + */ + public final long timeCompilingConditionMillis() { + return this.timeCompilingConditionMillis; + } + + /** + * API name: {@code last_exception} + */ + @Nullable + public final String lastException() { + return this.lastException; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("potential_samples"); + generator.write(this.potentialSamples); + + generator.writeKey("samples_rejected_for_max_samples_exceeded"); + generator.write(this.samplesRejectedForMaxSamplesExceeded); + + generator.writeKey("samples_rejected_for_condition"); + generator.write(this.samplesRejectedForCondition); + + generator.writeKey("samples_rejected_for_rate"); + generator.write(this.samplesRejectedForRate); + + generator.writeKey("samples_rejected_for_exception"); + generator.write(this.samplesRejectedForException); + + generator.writeKey("samples_rejected_for_size"); + generator.write(this.samplesRejectedForSize); + + generator.writeKey("samples_accepted"); + generator.write(this.samplesAccepted); + + if (this.timeSampling != null) { + generator.writeKey("time_sampling"); + this.timeSampling.serialize(generator, mapper); + + } + generator.writeKey("time_sampling_millis"); + generator.write(this.timeSamplingMillis); + + if (this.timeEvaluatingCondition != null) { + generator.writeKey("time_evaluating_condition"); + this.timeEvaluatingCondition.serialize(generator, mapper); + + } + generator.writeKey("time_evaluating_condition_millis"); + generator.write(this.timeEvaluatingConditionMillis); + + if (this.timeCompilingCondition != null) { + generator.writeKey("time_compiling_condition"); + this.timeCompilingCondition.serialize(generator, mapper); + + } + generator.writeKey("time_compiling_condition_millis"); + generator.write(this.timeCompilingConditionMillis); + + if (this.lastException != null) { + generator.writeKey("last_exception"); + generator.write(this.lastException); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSampleStatsResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Long potentialSamples; + + private Long samplesRejectedForMaxSamplesExceeded; + + private Long samplesRejectedForCondition; + + private Long samplesRejectedForRate; + + private Long samplesRejectedForException; + + private Long samplesRejectedForSize; + + private Long samplesAccepted; + + @Nullable + private Time timeSampling; + + private Long timeSamplingMillis; + + @Nullable + private Time timeEvaluatingCondition; + + private Long timeEvaluatingConditionMillis; + + @Nullable + private Time timeCompilingCondition; + + private Long timeCompilingConditionMillis; + + @Nullable + private String lastException; + + /** + * Required - API name: {@code potential_samples} + */ + public final Builder potentialSamples(long value) { + this.potentialSamples = value; + return this; + } + + /** + * Required - API name: {@code samples_rejected_for_max_samples_exceeded} + */ + public final Builder samplesRejectedForMaxSamplesExceeded(long value) { + this.samplesRejectedForMaxSamplesExceeded = value; + return this; + } + + /** + * Required - API name: {@code samples_rejected_for_condition} + */ + public final Builder samplesRejectedForCondition(long value) { + this.samplesRejectedForCondition = value; + return this; + } + + /** + * Required - API name: {@code samples_rejected_for_rate} + */ + public final Builder samplesRejectedForRate(long value) { + this.samplesRejectedForRate = value; + return this; + } + + /** + * Required - API name: {@code samples_rejected_for_exception} + */ + public final Builder samplesRejectedForException(long value) { + this.samplesRejectedForException = value; + return this; + } + + /** + * Required - API name: {@code samples_rejected_for_size} + */ + public final Builder samplesRejectedForSize(long value) { + this.samplesRejectedForSize = value; + return this; + } + + /** + * Required - API name: {@code samples_accepted} + */ + public final Builder samplesAccepted(long value) { + this.samplesAccepted = value; + return this; + } + + /** + * API name: {@code time_sampling} + */ + public final Builder timeSampling(@Nullable Time value) { + this.timeSampling = value; + return this; + } + + /** + * API name: {@code time_sampling} + */ + public final Builder timeSampling(Function> fn) { + return this.timeSampling(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - API name: {@code time_sampling_millis} + */ + public final Builder timeSamplingMillis(long value) { + this.timeSamplingMillis = value; + return this; + } + + /** + * API name: {@code time_evaluating_condition} + */ + public final Builder timeEvaluatingCondition(@Nullable Time value) { + this.timeEvaluatingCondition = value; + return this; + } + + /** + * API name: {@code time_evaluating_condition} + */ + public final Builder timeEvaluatingCondition(Function> fn) { + return this.timeEvaluatingCondition(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - API name: {@code time_evaluating_condition_millis} + */ + public final Builder timeEvaluatingConditionMillis(long value) { + this.timeEvaluatingConditionMillis = value; + return this; + } + + /** + * API name: {@code time_compiling_condition} + */ + public final Builder timeCompilingCondition(@Nullable Time value) { + this.timeCompilingCondition = value; + return this; + } + + /** + * API name: {@code time_compiling_condition} + */ + public final Builder timeCompilingCondition(Function> fn) { + return this.timeCompilingCondition(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - API name: {@code time_compiling_condition_millis} + */ + public final Builder timeCompilingConditionMillis(long value) { + this.timeCompilingConditionMillis = value; + return this; + } + + /** + * API name: {@code last_exception} + */ + public final Builder lastException(@Nullable String value) { + this.lastException = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSampleStatsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSampleStatsResponse build() { + _checkSingleUse(); + + return new GetSampleStatsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSampleStatsResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSampleStatsResponse::setupGetSampleStatsResponseDeserializer); + + protected static void setupGetSampleStatsResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::potentialSamples, JsonpDeserializer.longDeserializer(), "potential_samples"); + op.add(Builder::samplesRejectedForMaxSamplesExceeded, JsonpDeserializer.longDeserializer(), + "samples_rejected_for_max_samples_exceeded"); + op.add(Builder::samplesRejectedForCondition, JsonpDeserializer.longDeserializer(), + "samples_rejected_for_condition"); + op.add(Builder::samplesRejectedForRate, JsonpDeserializer.longDeserializer(), "samples_rejected_for_rate"); + op.add(Builder::samplesRejectedForException, JsonpDeserializer.longDeserializer(), + "samples_rejected_for_exception"); + op.add(Builder::samplesRejectedForSize, JsonpDeserializer.longDeserializer(), "samples_rejected_for_size"); + op.add(Builder::samplesAccepted, JsonpDeserializer.longDeserializer(), "samples_accepted"); + op.add(Builder::timeSampling, Time._DESERIALIZER, "time_sampling"); + op.add(Builder::timeSamplingMillis, JsonpDeserializer.longDeserializer(), "time_sampling_millis"); + op.add(Builder::timeEvaluatingCondition, Time._DESERIALIZER, "time_evaluating_condition"); + op.add(Builder::timeEvaluatingConditionMillis, JsonpDeserializer.longDeserializer(), + "time_evaluating_condition_millis"); + op.add(Builder::timeCompilingCondition, Time._DESERIALIZER, "time_compiling_condition"); + op.add(Builder::timeCompilingConditionMillis, JsonpDeserializer.longDeserializer(), + "time_compiling_condition_millis"); + op.add(Builder::lastException, JsonpDeserializer.stringDeserializer(), "last_exception"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java index 5268ad0b28..0166b87ede 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java @@ -59,8 +59,9 @@ // typedef: indices.get_template.Request /** - * Get legacy index templates. Get information about one or more index - * templates. + * Get legacy index templates. + *

                                                          + * Get information about one or more index templates. *

                                                          * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -113,7 +114,11 @@ public final Boolean flatSettings() { * only. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter is a no-op and templates are always + * retrieved locally. */ + @Deprecated @Nullable public final Boolean local() { return this.local; @@ -178,7 +183,11 @@ public final Builder flatSettings(@Nullable Boolean value) { * only. *

                                                          * API name: {@code local} + * + * @deprecated 9.0.0 This parameter is a no-op and templates are always + * retrieved locally. */ + @Deprecated public final Builder local(@Nullable Boolean value) { this.local = value; return this; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java index 4ff847cbaf..2d2b957fca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java @@ -74,7 +74,7 @@ public class IndexTemplateSummary implements JsonpSerializable { private final DataStreamLifecycleWithRollover lifecycle; @Nullable - private final DataStreamOptionsTemplate dataStreamOptions; + private final DataStreamOptions dataStreamOptions; // --------------------------------------------------------------------------------------------- @@ -137,7 +137,7 @@ public final DataStreamLifecycleWithRollover lifecycle() { * API name: {@code data_stream_options} */ @Nullable - public final DataStreamOptionsTemplate dataStreamOptions() { + public final DataStreamOptions dataStreamOptions() { return this.dataStreamOptions; } @@ -213,7 +213,7 @@ public static class Builder extends WithJsonObjectBuilderBase private DataStreamLifecycleWithRollover lifecycle; @Nullable - private DataStreamOptionsTemplate dataStreamOptions; + private DataStreamOptions dataStreamOptions; /** * Aliases to add. If the index template includes a data_stream @@ -318,7 +318,7 @@ public final Builder lifecycle( /** * API name: {@code data_stream_options} */ - public final Builder dataStreamOptions(@Nullable DataStreamOptionsTemplate value) { + public final Builder dataStreamOptions(@Nullable DataStreamOptions value) { this.dataStreamOptions = value; return this; } @@ -327,8 +327,8 @@ public final Builder dataStreamOptions(@Nullable DataStreamOptionsTemplate value * API name: {@code data_stream_options} */ public final Builder dataStreamOptions( - Function> fn) { - return this.dataStreamOptions(fn.apply(new DataStreamOptionsTemplate.Builder()).build()); + Function> fn) { + return this.dataStreamOptions(fn.apply(new DataStreamOptions.Builder()).build()); } @Override @@ -363,7 +363,7 @@ protected static void setupIndexTemplateSummaryDeserializer(ObjectDeserializer + * For data streams, the API retrieves statistics for the stream's backing + * indices. *

                                                          * By default, the returned statistics are index-level with * primaries and total aggregations. @@ -105,7 +108,7 @@ public class IndicesStatsRequest extends RequestBase { @Nullable private final Level level; - private final List metric; + private final List metric; // --------------------------------------------------------------------------------------------- @@ -234,11 +237,11 @@ public final Level level() { } /** - * Limit the information returned the specific metrics. + * Limit the information returned the specific metrics *

                                                          * API name: {@code metric} */ - public final List metric() { + public final List metric() { return this.metric; } @@ -282,7 +285,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Level level; @Nullable - private List metric; + private List metric; /** * Comma-separated list or wildcard expressions of fields to include in @@ -486,25 +489,25 @@ public final Builder level(@Nullable Level value) { } /** - * Limit the information returned the specific metrics. + * Limit the information returned the specific metrics *

                                                          * API name: {@code metric} *

                                                          * Adds all elements of list to metric. */ - public final Builder metric(List list) { + public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; } /** - * Limit the information returned the specific metrics. + * Limit the information returned the specific metrics *

                                                          * API name: {@code metric} *

                                                          * Adds one or more values to metric. */ - public final Builder metric(String value, String... values) { + public final Builder metric(CommonStatsFlag value, CommonStatsFlag... values) { this.metric = _listAdd(this.metric, value, values); return this; } @@ -562,8 +565,8 @@ public IndicesStatsRequest build() { StringBuilder buf = new StringBuilder(); buf.append("/_stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_index)) { @@ -579,8 +582,8 @@ public IndicesStatsRequest build() { SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); buf.append("/_stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -603,14 +606,16 @@ public IndicesStatsRequest build() { if (propsSet == 0) { } if (propsSet == (_metric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_index)) { params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); } if (propsSet == (_index | _metric)) { params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index 6ad2f1b324..5123133b0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -56,15 +56,17 @@ // typedef: indices.migrate_to_data_stream.Request /** - * Convert an index alias to a data stream. Converts an index alias to a data - * stream. You must have a matching index template that is data stream enabled. - * The alias must meet the following criteria: The alias must have a write - * index; All indices for the alias must have a @timestamp field - * mapping of a date or date_nanos field type; The - * alias must not have any filters; The alias must not use custom routing. If - * successful, the request removes the alias and creates a data stream with the - * same name. The indices for the alias become hidden backing indices for the - * stream. The write index for the alias becomes the write index for the stream. + * Convert an index alias to a data stream. + *

                                                          + * Converts an index alias to a data stream. You must have a matching index + * template that is data stream enabled. The alias must meet the following + * criteria: The alias must have a write index; All indices for the alias must + * have a @timestamp field mapping of a date or + * date_nanos field type; The alias must not have any filters; The + * alias must not use custom routing. If successful, the request removes the + * alias and creates a data stream with the same name. The indices for the alias + * become hidden backing indices for the stream. The write index for the alias + * becomes the write index for the stream. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index fe3e20208a..bb759bc854 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java @@ -58,8 +58,10 @@ // typedef: indices.modify_data_stream.Request /** - * Update data streams. Performs one or more data stream modification actions in - * a single atomic operation. + * Update data streams. + *

                                                          + * Performs one or more data stream modification actions in a single atomic + * operation. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java index ccb97d05f5..d47a309bc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java @@ -61,8 +61,9 @@ // typedef: indices.open.Request /** - * Open a closed index. For data streams, the API opens any closed backing - * indices. + * Open a closed index. + *

                                                          + * For data streams, the API opens any closed backing indices. *

                                                          * A closed index is blocked for read/write operations and does not allow all * operations that opened indices allow. It is not possible to index documents diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java index 3dcbf52997..7b5acd661a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java @@ -56,8 +56,10 @@ // typedef: indices.promote_data_stream.Request /** - * Promote a data stream. Promote a data stream from a replicated data stream - * managed by cross-cluster replication (CCR) to a regular data stream. + * Promote a data stream. + *

                                                          + * Promote a data stream from a replicated data stream managed by cross-cluster + * replication (CCR) to a regular data stream. *

                                                          * With CCR auto following, a data stream from a remote cluster can be * replicated to the local cluster. These data streams can't be rolled over in @@ -109,7 +111,7 @@ public final Time masterTimeout() { } /** - * Required - The name of the data stream + * Required - The name of the data stream to promote *

                                                          * API name: {@code name} */ @@ -153,7 +155,7 @@ public final Builder masterTimeout(Function> f } /** - * Required - The name of the data stream + * Required - The name of the data stream to promote *

                                                          * API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java index 2a7ef5cff9..af3c93d50f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java @@ -63,7 +63,9 @@ // typedef: indices.put_alias.Request /** - * Create or update an alias. Adds a data stream or index to an alias. + * Create or update an alias. + *

                                                          + * Adds a data stream or index to an alias. * * @see API * specification @@ -75,8 +77,7 @@ public class PutAliasRequest extends RequestBase implements JsonpSerializable { private final List index; - @Nullable - private final String indexRouting; + private final List indexRouting; @Nullable private final Boolean isWriteIndex; @@ -86,11 +87,9 @@ public class PutAliasRequest extends RequestBase implements JsonpSerializable { private final String name; - @Nullable - private final String routing; + private final List routing; - @Nullable - private final String searchRouting; + private final List searchRouting; @Nullable private final Time timeout; @@ -101,12 +100,12 @@ private PutAliasRequest(Builder builder) { this.filter = builder.filter; this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); - this.indexRouting = builder.indexRouting; + this.indexRouting = ApiTypeHelper.unmodifiable(builder.indexRouting); this.isWriteIndex = builder.isWriteIndex; this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.routing = builder.routing; - this.searchRouting = builder.searchRouting; + this.routing = ApiTypeHelper.unmodifiable(builder.routing); + this.searchRouting = ApiTypeHelper.unmodifiable(builder.searchRouting); this.timeout = builder.timeout; } @@ -143,8 +142,7 @@ public final List index() { *

                                                          * API name: {@code index_routing} */ - @Nullable - public final String indexRouting() { + public final List indexRouting() { return this.indexRouting; } @@ -191,8 +189,7 @@ public final String name() { *

                                                          * API name: {@code routing} */ - @Nullable - public final String routing() { + public final List routing() { return this.routing; } @@ -203,8 +200,7 @@ public final String routing() { *

                                                          * API name: {@code search_routing} */ - @Nullable - public final String searchRouting() { + public final List searchRouting() { return this.searchRouting; } @@ -235,9 +231,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.filter.serialize(generator, mapper); } - if (this.indexRouting != null) { + if (ApiTypeHelper.isDefined(this.indexRouting)) { generator.writeKey("index_routing"); - generator.write(this.indexRouting); + generator.writeStartArray(); + for (String item0 : this.indexRouting) { + generator.write(item0); + + } + generator.writeEnd(); } if (this.isWriteIndex != null) { @@ -245,14 +246,24 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.isWriteIndex); } - if (this.routing != null) { + if (ApiTypeHelper.isDefined(this.routing)) { generator.writeKey("routing"); - generator.write(this.routing); + generator.writeStartArray(); + for (String item0 : this.routing) { + generator.write(item0); + + } + generator.writeEnd(); } - if (this.searchRouting != null) { + if (ApiTypeHelper.isDefined(this.searchRouting)) { generator.writeKey("search_routing"); - generator.write(this.searchRouting); + generator.writeStartArray(); + for (String item0 : this.searchRouting) { + generator.write(item0); + + } + generator.writeEnd(); } @@ -271,7 +282,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List index; @Nullable - private String indexRouting; + private List indexRouting; @Nullable private Boolean isWriteIndex; @@ -282,10 +293,10 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String name; @Nullable - private String routing; + private List routing; @Nullable - private String searchRouting; + private List searchRouting; @Nullable private Time timeout; @@ -353,9 +364,25 @@ public final Builder index(String value, String... values) { * stream aliases don’t support this parameter. *

                                                          * API name: {@code index_routing} + *

                                                          + * Adds all elements of list to indexRouting. + */ + public final Builder indexRouting(List list) { + this.indexRouting = _listAddAll(this.indexRouting, list); + return this; + } + + /** + * Value used to route indexing operations to a specific shard. If specified, + * this overwrites the routing value for indexing operations. Data + * stream aliases don’t support this parameter. + *

                                                          + * API name: {@code index_routing} + *

                                                          + * Adds one or more values to indexRouting. */ - public final Builder indexRouting(@Nullable String value) { - this.indexRouting = value; + public final Builder indexRouting(String value, String... values) { + this.indexRouting = _listAdd(this.indexRouting, value, values); return this; } @@ -412,9 +439,38 @@ public final Builder name(String value) { * stream aliases don’t support this parameter. *

                                                          * API name: {@code routing} + *

                                                          + * Adds all elements of list to routing. + */ + public final Builder routing(List list) { + this.routing = _listAddAll(this.routing, list); + return this; + } + + /** + * Value used to route indexing and search operations to a specific shard. Data + * stream aliases don’t support this parameter. + *

                                                          + * API name: {@code routing} + *

                                                          + * Adds one or more values to routing. + */ + public final Builder routing(String value, String... values) { + this.routing = _listAdd(this.routing, value, values); + return this; + } + + /** + * Value used to route search operations to a specific shard. If specified, this + * overwrites the routing value for search operations. Data stream + * aliases don’t support this parameter. + *

                                                          + * API name: {@code search_routing} + *

                                                          + * Adds all elements of list to searchRouting. */ - public final Builder routing(@Nullable String value) { - this.routing = value; + public final Builder searchRouting(List list) { + this.searchRouting = _listAddAll(this.searchRouting, list); return this; } @@ -424,9 +480,11 @@ public final Builder routing(@Nullable String value) { * aliases don’t support this parameter. *

                                                          * API name: {@code search_routing} + *

                                                          + * Adds one or more values to searchRouting. */ - public final Builder searchRouting(@Nullable String value) { - this.searchRouting = value; + public final Builder searchRouting(String value, String... values) { + this.searchRouting = _listAdd(this.searchRouting, value, values); return this; } @@ -480,10 +538,13 @@ public PutAliasRequest build() { protected static void setupPutAliasRequestDeserializer(ObjectDeserializer op) { op.add(Builder::filter, Query._DESERIALIZER, "filter"); - op.add(Builder::indexRouting, JsonpDeserializer.stringDeserializer(), "index_routing"); + op.add(Builder::indexRouting, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "index_routing"); op.add(Builder::isWriteIndex, JsonpDeserializer.booleanDeserializer(), "is_write_index"); - op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); - op.add(Builder::searchRouting, JsonpDeserializer.stringDeserializer(), "search_routing"); + op.add(Builder::routing, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "routing"); + op.add(Builder::searchRouting, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "search_routing"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java index 7da94aa133..42cfd5833b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java @@ -62,8 +62,9 @@ // typedef: indices.put_data_lifecycle.Request /** - * Update data stream lifecycles. Update the data stream lifecycle of the - * specified data streams. + * Update data stream lifecycles. + *

                                                          + * Update the data stream lifecycle of the specified data streams. * * @see API @@ -74,8 +75,10 @@ public class PutDataLifecycleRequest extends RequestBase implements JsonpSeriali @Nullable private final Time dataRetention; + private final List downsampling; + @Nullable - private final DataStreamLifecycleDownsampling downsampling; + private final SamplingMethod downsamplingMethod; @Nullable private final Boolean enabled; @@ -95,7 +98,8 @@ public class PutDataLifecycleRequest extends RequestBase implements JsonpSeriali private PutDataLifecycleRequest(Builder builder) { this.dataRetention = builder.dataRetention; - this.downsampling = builder.downsampling; + this.downsampling = ApiTypeHelper.unmodifiable(builder.downsampling); + this.downsamplingMethod = builder.downsamplingMethod; this.enabled = builder.enabled; this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); this.masterTimeout = builder.masterTimeout; @@ -127,11 +131,22 @@ public final Time dataRetention() { *

                                                          * API name: {@code downsampling} */ - @Nullable - public final DataStreamLifecycleDownsampling downsampling() { + public final List downsampling() { return this.downsampling; } + /** + * The method used to downsample the data. There are two options + * aggregate and last_value. It requires + * downsampling to be defined. Defaults to aggregate. + *

                                                          + * API name: {@code downsampling_method} + */ + @Nullable + public final SamplingMethod downsamplingMethod() { + return this.downsamplingMethod; + } + /** * If defined, it turns data stream lifecycle on/off * (true/false) for this data stream. A data stream @@ -204,10 +219,19 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.dataRetention.serialize(generator, mapper); } - if (this.downsampling != null) { + if (ApiTypeHelper.isDefined(this.downsampling)) { generator.writeKey("downsampling"); - this.downsampling.serialize(generator, mapper); + generator.writeStartArray(); + for (DownsamplingRound item0 : this.downsampling) { + item0.serialize(generator, mapper); + } + generator.writeEnd(); + + } + if (this.downsamplingMethod != null) { + generator.writeKey("downsampling_method"); + this.downsamplingMethod.serialize(generator, mapper); } if (this.enabled != null) { generator.writeKey("enabled"); @@ -230,7 +254,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Time dataRetention; @Nullable - private DataStreamLifecycleDownsampling downsampling; + private List downsampling; + + @Nullable + private SamplingMethod downsamplingMethod; @Nullable private Boolean enabled; @@ -276,9 +303,24 @@ public final Builder dataRetention(Function> f * rollover. *

                                                          * API name: {@code downsampling} + *

                                                          + * Adds all elements of list to downsampling. + */ + public final Builder downsampling(List list) { + this.downsampling = _listAddAll(this.downsampling, list); + return this; + } + + /** + * The downsampling configuration to execute for the managed backing index after + * rollover. + *

                                                          + * API name: {@code downsampling} + *

                                                          + * Adds one or more values to downsampling. */ - public final Builder downsampling(@Nullable DataStreamLifecycleDownsampling value) { - this.downsampling = value; + public final Builder downsampling(DownsamplingRound value, DownsamplingRound... values) { + this.downsampling = _listAdd(this.downsampling, value, values); return this; } @@ -287,10 +329,23 @@ public final Builder downsampling(@Nullable DataStreamLifecycleDownsampling valu * rollover. *

                                                          * API name: {@code downsampling} + *

                                                          + * Adds a value to downsampling using a builder lambda. */ - public final Builder downsampling( - Function> fn) { - return this.downsampling(fn.apply(new DataStreamLifecycleDownsampling.Builder()).build()); + public final Builder downsampling(Function> fn) { + return downsampling(fn.apply(new DownsamplingRound.Builder()).build()); + } + + /** + * The method used to downsample the data. There are two options + * aggregate and last_value. It requires + * downsampling to be defined. Defaults to aggregate. + *

                                                          + * API name: {@code downsampling_method} + */ + public final Builder downsamplingMethod(@Nullable SamplingMethod value) { + this.downsamplingMethod = value; + return this; } /** @@ -432,7 +487,9 @@ protected static void setupPutDataLifecycleRequestDeserializer( ObjectDeserializer op) { op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); - op.add(Builder::downsampling, DataStreamLifecycleDownsampling._DESERIALIZER, "downsampling"); + op.add(Builder::downsampling, JsonpDeserializer.arrayDeserializer(DownsamplingRound._DESERIALIZER), + "downsampling"); + op.add(Builder::downsamplingMethod, SamplingMethod._DESERIALIZER, "downsampling_method"); op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java index 5a1ec327cb..1926cd6b42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java @@ -61,8 +61,9 @@ // typedef: indices.put_data_stream_options.Request /** - * Update data stream options. Update the data stream options of the specified - * data streams. + * Update data stream options. + *

                                                          + * Update the data stream options of the specified data streams. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index c5ac931436..29763aa7a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -63,8 +63,10 @@ // typedef: indices.put_index_template.Request /** - * Create or update an index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. + * Create or update an index template. + *

                                                          + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. *

                                                          * Elasticsearch applies templates to new indices based on an wildcard pattern * that matches the index name. Index templates are applied during data stream @@ -201,7 +203,7 @@ public final Boolean allowAutoCreate() { } /** - * User defined reason for creating/updating the index template + * User defined reason for creating or updating the index template *

                                                          * API name: {@code cause} */ @@ -514,7 +516,7 @@ public final Builder allowAutoCreate(@Nullable Boolean value) { } /** - * User defined reason for creating/updating the index template + * User defined reason for creating or updating the index template *

                                                          * API name: {@code cause} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java index e6b325e951..af6b3ef27f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java @@ -63,8 +63,10 @@ // typedef: indices.put_settings.Request /** - * Update index settings. Changes dynamic index settings in real time. For data - * streams, index setting changes are applied to all backing indices by default. + * Update index settings. + *

                                                          + * Changes dynamic index settings in real time. For data streams, index setting + * changes are applied to all backing indices by default. *

                                                          * To revert a setting to the default value, use a null value. The list of * per-index settings that can be updated dynamically on live indices can be diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index 47444f793c..99b09c0c87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -71,8 +71,10 @@ // typedef: indices.put_mapping.Request /** - * Update field mappings. Add new fields to an existing data stream or index. - * You can use the update mapping API to: + * Update field mappings. + *

                                                          + * Add new fields to an existing data stream or index. You can use the update + * mapping API to: *

                                                            *
                                                          • Add a new field to an existing index
                                                          • *
                                                          • Update mappings for multiple indices in a single request
                                                          • @@ -288,7 +290,7 @@ public final Boolean ignoreUnavailable() { /** * Required - A comma-separated list of index names the mapping should be added - * to (supports wildcards); use _all or omit to add the mapping on + * to (supports wildcards). Use _all or omit to add the mapping on * all indices. *

                                                            * API name: {@code index} @@ -740,7 +742,7 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { /** * Required - A comma-separated list of index names the mapping should be added - * to (supports wildcards); use _all or omit to add the mapping on + * to (supports wildcards). Use _all or omit to add the mapping on * all indices. *

                                                            * API name: {@code index} @@ -754,7 +756,7 @@ public final Builder index(List list) { /** * Required - A comma-separated list of index names the mapping should be added - * to (supports wildcards); use _all or omit to add the mapping on + * to (supports wildcards). Use _all or omit to add the mapping on * all indices. *

                                                            * API name: {@code index} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java new file mode 100644 index 0000000000..89cb0022ca --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java @@ -0,0 +1,480 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Double; +import java.lang.Integer; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.put_sample_configuration.Request + +/** + * Create or update sampling configuration. + *

                                                            + * Create or update the sampling configuration for the specified index. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSampleConfigurationRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final String if_; + + private final String index; + + @Nullable + private final Time masterTimeout; + + @Nullable + private final Integer maxSamples; + + @Nullable + private final String maxSize; + + private final double rate; + + @Nullable + private final Time timeToLive; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private PutSampleConfigurationRequest(Builder builder) { + + this.if_ = builder.if_; + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.masterTimeout = builder.masterTimeout; + this.maxSamples = builder.maxSamples; + this.maxSize = builder.maxSize; + this.rate = ApiTypeHelper.requireNonNull(builder.rate, this, "rate", 0); + this.timeToLive = builder.timeToLive; + this.timeout = builder.timeout; + + } + + public static PutSampleConfigurationRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * An optional condition script that sampled documents must satisfy. + *

                                                            + * API name: {@code if} + */ + @Nullable + public final String if_() { + return this.if_; + } + + /** + * Required - The name of the index or data stream. + *

                                                            + * API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * 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} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + /** + * The maximum number of documents to sample. Must be greater than 0 and less + * than or equal to 10,000. + *

                                                            + * API name: {@code max_samples} + */ + @Nullable + public final Integer maxSamples() { + return this.maxSamples; + } + + /** + * The maximum total size of sampled documents. Must be greater than 0 and less + * than or equal to 5GB. + *

                                                            + * API name: {@code max_size} + */ + @Nullable + public final String maxSize() { + return this.maxSize; + } + + /** + * Required - The fraction of documents to sample. Must be greater than 0 and + * less than or equal to 1. Can be specified as a number or a string. + *

                                                            + * API name: {@code rate} + */ + public final double rate() { + return this.rate; + } + + /** + * The duration for which the sampled documents should be retained. Must be + * greater than 0 and less than or equal to 30 days. + *

                                                            + * API name: {@code time_to_live} + */ + @Nullable + public final Time timeToLive() { + return this.timeToLive; + } + + /** + * 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} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.if_ != null) { + generator.writeKey("if"); + generator.write(this.if_); + + } + if (this.maxSamples != null) { + generator.writeKey("max_samples"); + generator.write(this.maxSamples); + + } + if (this.maxSize != null) { + generator.writeKey("max_size"); + generator.write(this.maxSize); + + } + generator.writeKey("rate"); + generator.write(this.rate); + + if (this.timeToLive != null) { + generator.writeKey("time_to_live"); + this.timeToLive.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSampleConfigurationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String if_; + + private String index; + + @Nullable + private Time masterTimeout; + + @Nullable + private Integer maxSamples; + + @Nullable + private String maxSize; + + private Double rate; + + @Nullable + private Time timeToLive; + + @Nullable + private Time timeout; + + /** + * An optional condition script that sampled documents must satisfy. + *

                                                            + * API name: {@code if} + */ + public final Builder if_(@Nullable String value) { + this.if_ = value; + return this; + } + + /** + * Required - The name of the index or data stream. + *

                                                            + * API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * 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} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * The maximum number of documents to sample. Must be greater than 0 and less + * than or equal to 10,000. + *

                                                            + * API name: {@code max_samples} + */ + public final Builder maxSamples(@Nullable Integer value) { + this.maxSamples = value; + return this; + } + + /** + * The maximum total size of sampled documents. Must be greater than 0 and less + * than or equal to 5GB. + *

                                                            + * API name: {@code max_size} + */ + public final Builder maxSize(@Nullable String value) { + this.maxSize = value; + return this; + } + + /** + * Required - The fraction of documents to sample. Must be greater than 0 and + * less than or equal to 1. Can be specified as a number or a string. + *

                                                            + * API name: {@code rate} + */ + public final Builder rate(double value) { + this.rate = value; + return this; + } + + /** + * The duration for which the sampled documents should be retained. Must be + * greater than 0 and less than or equal to 30 days. + *

                                                            + * API name: {@code time_to_live} + */ + public final Builder timeToLive(@Nullable Time value) { + this.timeToLive = value; + return this; + } + + /** + * The duration for which the sampled documents should be retained. Must be + * greater than 0 and less than or equal to 30 days. + *

                                                            + * API name: {@code time_to_live} + */ + public final Builder timeToLive(Function> fn) { + return this.timeToLive(fn.apply(new Time.Builder()).build()); + } + + /** + * 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} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * 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} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSampleConfigurationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSampleConfigurationRequest build() { + _checkSingleUse(); + + return new PutSampleConfigurationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSampleConfigurationRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSampleConfigurationRequest::setupPutSampleConfigurationRequestDeserializer); + + protected static void setupPutSampleConfigurationRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::if_, JsonpDeserializer.stringDeserializer(), "if"); + op.add(Builder::maxSamples, JsonpDeserializer.integerDeserializer(), "max_samples"); + op.add(Builder::maxSize, JsonpDeserializer.stringDeserializer(), "max_size"); + op.add(Builder::rate, JsonpDeserializer.doubleDeserializer(), "rate"); + op.add(Builder::timeToLive, Time._DESERIALIZER, "time_to_live"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.put_sample_configuration}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.put_sample_configuration", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index, buf); + buf.append("/_sample"); + buf.append("/config"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + params.put("index", request.index); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutSampleConfigurationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationResponse.java new file mode 100644 index 0000000000..1cdc9faaf5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationResponse.java @@ -0,0 +1,110 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices.put_sample_configuration.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutSampleConfigurationResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private PutSampleConfigurationResponse(Builder builder) { + super(builder); + + } + + public static PutSampleConfigurationResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutSampleConfigurationResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutSampleConfigurationResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutSampleConfigurationResponse build() { + _checkSingleUse(); + + return new PutSampleConfigurationResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutSampleConfigurationResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutSampleConfigurationResponse::setupPutSampleConfigurationResponseDeserializer); + + protected static void setupPutSampleConfigurationResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index df57dca4e4..e8253e3464 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -63,10 +63,11 @@ // typedef: indices.put_template.Request /** - * Create or update a legacy index template. Index templates define settings, - * mappings, and aliases that can be applied automatically to new indices. - * Elasticsearch applies templates to new indices based on an index pattern that - * matches the index name. + * Create or update a legacy index template. + *

                                                            + * Index templates define settings, mappings, and aliases that can be applied + * automatically to new indices. Elasticsearch applies templates to new indices + * based on an index pattern that matches the index name. *

                                                            * IMPORTANT: This documentation is about legacy index templates, which are * deprecated and will be replaced by the composable templates introduced in @@ -159,7 +160,7 @@ public final Map aliases() { } /** - * User defined reason for creating/updating the index template + * User defined reason for creating or updating the index template *

                                                            * API name: {@code cause} */ @@ -383,7 +384,7 @@ public final Builder aliases(String key, Function * API name: {@code cause} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java index a3db1b7f9c..94914c0721 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java @@ -59,9 +59,11 @@ // typedef: indices.recovery.Request /** - * Get index recovery information. Get information about ongoing and completed - * shard recoveries for one or more indices. For data streams, the API returns - * information for the stream's backing indices. + * Get index recovery information. + *

                                                            + * Get information about ongoing and completed shard recoveries for one or more + * indices. For data streams, the API returns information for the stream's + * backing indices. *

                                                            * All recoveries, whether ongoing or complete, are kept in the cluster state * and may be reported on at any time. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java index 3ac65f3b59..990ccc09bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -59,9 +59,11 @@ // typedef: indices.refresh.Request /** - * Refresh an index. A refresh makes recent operations performed on one or more - * indices available for search. For data streams, the API runs the refresh - * operation on the stream’s backing indices. + * Refresh an index. + *

                                                            + * A refresh makes recent operations performed on one or more indices available + * for search. For data streams, the API runs the refresh operation on the + * stream’s backing indices. *

                                                            * By default, Elasticsearch periodically refreshes indices every second, but * only on indices that have received one search request or more in the last 30 diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java index 717eb3c6b2..5a42e52368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java @@ -59,9 +59,10 @@ // typedef: indices.reload_search_analyzers.Request /** - * Reload search analyzers. Reload an index's search analyzers and their - * resources. For data streams, the API reloads search analyzers and resources - * for the stream's backing indices. + * Reload search analyzers. + *

                                                            + * Reload an index's search analyzers and their resources. For data streams, the + * API reloads search analyzers and resources for the stream's backing indices. *

                                                            * IMPORTANT: After reloading the search analyzers you should clear the request * cache to make sure it doesn't contain responses derived from the previous diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java index 452b0a8e38..5c5105e401 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java @@ -80,7 +80,7 @@ public class RemoveBlockRequest extends RequestBase { @Nullable private final Boolean ignoreUnavailable; - private final String index; + private final List index; @Nullable private final Time masterTimeout; @@ -96,7 +96,7 @@ private RemoveBlockRequest(Builder builder) { this.block = ApiTypeHelper.requireNonNull(builder.block, this, "block"); this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); this.ignoreUnavailable = builder.ignoreUnavailable; - this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); this.masterTimeout = builder.masterTimeout; this.timeout = builder.timeout; @@ -164,7 +164,7 @@ public final Boolean ignoreUnavailable() { *

                                                            * API name: {@code index} */ - public final String index() { + public final List index() { return this.index; } @@ -215,7 +215,7 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean ignoreUnavailable; - private String index; + private List index; @Nullable private Time masterTimeout; @@ -299,9 +299,29 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) { * using the cluster update settings API. *

                                                            * API name: {@code index} + *

                                                            + * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Required - A comma-separated list or wildcard expression of index names used + * to limit the request. By default, you must explicitly name the indices you + * are removing blocks from. To allow the removal of blocks from indices with + * _all, *, or other wildcard expressions, change the + * action.destructive_requires_name setting to false. + * You can update this setting in the elasticsearch.yml file or by + * using the cluster update settings API. + *

                                                            + * API name: {@code index} + *

                                                            + * Adds one or more values to index. */ - public final Builder index(String value) { - this.index = value; + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); return this; } @@ -402,7 +422,7 @@ public RemoveBlockRequest build() { if (propsSet == (_index | _block)) { StringBuilder buf = new StringBuilder(); buf.append("/"); - SimpleEndpoint.pathEncode(request.index, buf); + SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); buf.append("/_block"); buf.append("/"); SimpleEndpoint.pathEncode(request.block.jsonValue(), buf); @@ -424,7 +444,7 @@ public RemoveBlockRequest build() { propsSet |= _block; if (propsSet == (_index | _block)) { - params.put("index", request.index); + params.put("index", request.index.stream().map(v -> v).collect(Collectors.joining(","))); params.put("block", request.block.jsonValue()); } return params; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index 2759cb8207..0bc6d4878e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -24,6 +24,8 @@ import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -59,15 +61,16 @@ // typedef: indices.resolve_index.Request /** - * Resolve indices. Resolve the names and/or index patterns for indices, - * aliases, and data streams. Multiple patterns and remote clusters are - * supported. + * Resolve indices. + *

                                                            + * Resolve the names and/or index patterns for indices, aliases, and data + * streams. Multiple patterns and remote clusters are supported. * * @see API * specification */ - -public class ResolveIndexRequest extends RequestBase { +@JsonpDeserializable +public class ResolveIndexRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean allowNoIndices; @@ -173,6 +176,25 @@ public final String projectRouting() { return this.projectRouting; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + + } + + } + // --------------------------------------------------------------------------------------------- /** @@ -344,6 +366,20 @@ public ResolveIndexRequest build() { // --------------------------------------------------------------------------------------------- + /** + * Json deserializer for {@link ResolveIndexRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ResolveIndexRequest::setupResolveIndexRequestDeserializer); + + protected static void setupResolveIndexRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::projectRouting, JsonpDeserializer.stringDeserializer(), "project_routing"); + + } + + // --------------------------------------------------------------------------------------------- + /** * Endpoint "{@code indices.resolve_index}". */ @@ -352,7 +388,7 @@ public ResolveIndexRequest build() { // Request method request -> { - return "GET"; + return "POST"; }, @@ -407,10 +443,7 @@ public ResolveIndexRequest build() { if (request.allowNoIndices != null) { params.put("allow_no_indices", String.valueOf(request.allowNoIndices)); } - if (request.projectRouting != null) { - params.put("project_routing", request.projectRouting); - } return params; - }, SimpleEndpoint.emptyMap(), false, ResolveIndexResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), true, ResolveIndexResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index ffb9541747..2bdccef301 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -63,10 +63,11 @@ // typedef: indices.rollover.Request /** - * Roll over to a new index. TIP: We recommend using the index lifecycle - * rollover action to automate rollovers. However, Serverless does not support - * Index Lifecycle Management (ILM), so don't use this approach in the - * Serverless context. + * Roll over to a new index. + *

                                                            + * TIP: We recommend using the index lifecycle rollover action to automate + * rollovers. However, Serverless does not support Index Lifecycle Management + * (ILM), so don't use this approach in the Serverless context. *

                                                            * The rollover API creates a new index for a data stream or index alias. The * API behavior depends on the rollover target. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java new file mode 100644 index 0000000000..6d33c28204 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java @@ -0,0 +1,424 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.DateTime; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.SamplingConfiguration + +/** + * Sampling configuration as returned by the API. + * + * @see API + * specification + */ +@JsonpDeserializable +public class SamplingConfiguration implements JsonpSerializable { + private final double rate; + + private final int maxSamples; + + @Nullable + private final String maxSize; + + private final long maxSizeInBytes; + + @Nullable + private final Time timeToLive; + + private final long timeToLiveInMillis; + + @Nullable + private final String if_; + + @Nullable + private final DateTime creationTime; + + private final long creationTimeInMillis; + + // --------------------------------------------------------------------------------------------- + + private SamplingConfiguration(Builder builder) { + + this.rate = ApiTypeHelper.requireNonNull(builder.rate, this, "rate", 0); + this.maxSamples = ApiTypeHelper.requireNonNull(builder.maxSamples, this, "maxSamples", 0); + this.maxSize = builder.maxSize; + this.maxSizeInBytes = ApiTypeHelper.requireNonNull(builder.maxSizeInBytes, this, "maxSizeInBytes", 0); + this.timeToLive = builder.timeToLive; + this.timeToLiveInMillis = ApiTypeHelper.requireNonNull(builder.timeToLiveInMillis, this, "timeToLiveInMillis", + 0); + this.if_ = builder.if_; + this.creationTime = builder.creationTime; + this.creationTimeInMillis = ApiTypeHelper.requireNonNull(builder.creationTimeInMillis, this, + "creationTimeInMillis", 0); + + } + + public static SamplingConfiguration of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The fraction of documents to sample between 0 and 1. + *

                                                            + * API name: {@code rate} + */ + public final double rate() { + return this.rate; + } + + /** + * Required - The maximum number of documents to sample. + *

                                                            + * API name: {@code max_samples} + */ + public final int maxSamples() { + return this.maxSamples; + } + + /** + * The maximum total size of sampled documents. + *

                                                            + * API name: {@code max_size} + */ + @Nullable + public final String maxSize() { + return this.maxSize; + } + + /** + * Required - The maximum total size of sampled documents in bytes. + *

                                                            + * API name: {@code max_size_in_bytes} + */ + public final long maxSizeInBytes() { + return this.maxSizeInBytes; + } + + /** + * The duration for which the sampled documents should be retained. + *

                                                            + * API name: {@code time_to_live} + */ + @Nullable + public final Time timeToLive() { + return this.timeToLive; + } + + /** + * Required - The duration for which the sampled documents should be retained, + * in milliseconds. + *

                                                            + * API name: {@code time_to_live_in_millis} + */ + public final long timeToLiveInMillis() { + return this.timeToLiveInMillis; + } + + /** + * An optional condition script that sampled documents must satisfy. + *

                                                            + * API name: {@code if} + */ + @Nullable + public final String if_() { + return this.if_; + } + + /** + * The time when the sampling configuration was created. + *

                                                            + * API name: {@code creation_time} + */ + @Nullable + public final DateTime creationTime() { + return this.creationTime; + } + + /** + * Required - The time when the sampling configuration was created, in + * milliseconds since epoch. + *

                                                            + * API name: {@code creation_time_in_millis} + */ + public final long creationTimeInMillis() { + return this.creationTimeInMillis; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("rate"); + generator.write(this.rate); + + generator.writeKey("max_samples"); + generator.write(this.maxSamples); + + if (this.maxSize != null) { + generator.writeKey("max_size"); + generator.write(this.maxSize); + + } + generator.writeKey("max_size_in_bytes"); + generator.write(this.maxSizeInBytes); + + if (this.timeToLive != null) { + generator.writeKey("time_to_live"); + this.timeToLive.serialize(generator, mapper); + + } + generator.writeKey("time_to_live_in_millis"); + generator.write(this.timeToLiveInMillis); + + if (this.if_ != null) { + generator.writeKey("if"); + generator.write(this.if_); + + } + if (this.creationTime != null) { + generator.writeKey("creation_time"); + this.creationTime.serialize(generator, mapper); + } + generator.writeKey("creation_time_in_millis"); + generator.write(this.creationTimeInMillis); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SamplingConfiguration}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Double rate; + + private Integer maxSamples; + + @Nullable + private String maxSize; + + private Long maxSizeInBytes; + + @Nullable + private Time timeToLive; + + private Long timeToLiveInMillis; + + @Nullable + private String if_; + + @Nullable + private DateTime creationTime; + + private Long creationTimeInMillis; + + /** + * Required - The fraction of documents to sample between 0 and 1. + *

                                                            + * API name: {@code rate} + */ + public final Builder rate(double value) { + this.rate = value; + return this; + } + + /** + * Required - The maximum number of documents to sample. + *

                                                            + * API name: {@code max_samples} + */ + public final Builder maxSamples(int value) { + this.maxSamples = value; + return this; + } + + /** + * The maximum total size of sampled documents. + *

                                                            + * API name: {@code max_size} + */ + public final Builder maxSize(@Nullable String value) { + this.maxSize = value; + return this; + } + + /** + * Required - The maximum total size of sampled documents in bytes. + *

                                                            + * API name: {@code max_size_in_bytes} + */ + public final Builder maxSizeInBytes(long value) { + this.maxSizeInBytes = value; + return this; + } + + /** + * The duration for which the sampled documents should be retained. + *

                                                            + * API name: {@code time_to_live} + */ + public final Builder timeToLive(@Nullable Time value) { + this.timeToLive = value; + return this; + } + + /** + * The duration for which the sampled documents should be retained. + *

                                                            + * API name: {@code time_to_live} + */ + public final Builder timeToLive(Function> fn) { + return this.timeToLive(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - The duration for which the sampled documents should be retained, + * in milliseconds. + *

                                                            + * API name: {@code time_to_live_in_millis} + */ + public final Builder timeToLiveInMillis(long value) { + this.timeToLiveInMillis = value; + return this; + } + + /** + * An optional condition script that sampled documents must satisfy. + *

                                                            + * API name: {@code if} + */ + public final Builder if_(@Nullable String value) { + this.if_ = value; + return this; + } + + /** + * The time when the sampling configuration was created. + *

                                                            + * API name: {@code creation_time} + */ + public final Builder creationTime(@Nullable DateTime value) { + this.creationTime = value; + return this; + } + + /** + * Required - The time when the sampling configuration was created, in + * milliseconds since epoch. + *

                                                            + * API name: {@code creation_time_in_millis} + */ + public final Builder creationTimeInMillis(long value) { + this.creationTimeInMillis = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SamplingConfiguration}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SamplingConfiguration build() { + _checkSingleUse(); + + return new SamplingConfiguration(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SamplingConfiguration} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SamplingConfiguration::setupSamplingConfigurationDeserializer); + + protected static void setupSamplingConfigurationDeserializer(ObjectDeserializer op) { + + op.add(Builder::rate, JsonpDeserializer.doubleDeserializer(), "rate"); + op.add(Builder::maxSamples, JsonpDeserializer.integerDeserializer(), "max_samples"); + op.add(Builder::maxSize, JsonpDeserializer.stringDeserializer(), "max_size"); + op.add(Builder::maxSizeInBytes, JsonpDeserializer.longDeserializer(), "max_size_in_bytes"); + op.add(Builder::timeToLive, Time._DESERIALIZER, "time_to_live"); + op.add(Builder::timeToLiveInMillis, JsonpDeserializer.longDeserializer(), "time_to_live_in_millis"); + op.add(Builder::if_, JsonpDeserializer.stringDeserializer(), "if"); + op.add(Builder::creationTime, DateTime._DESERIALIZER, "creation_time"); + op.add(Builder::creationTimeInMillis, JsonpDeserializer.longDeserializer(), "creation_time_in_millis"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingMethod.java new file mode 100644 index 0000000000..9dd9c45a1b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingMethod.java @@ -0,0 +1,66 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum SamplingMethod implements JsonEnum { + Aggregate("aggregate"), + + LastValue("last_value"), + + ; + + private final String jsonValue; + + SamplingMethod(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + SamplingMethod.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java index ef760413d8..e19942b158 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java @@ -59,9 +59,10 @@ // typedef: indices.segments.Request /** - * Get index segments. Get low-level information about the Lucene segments in - * index shards. For data streams, the API returns information about the - * stream's backing indices. + * Get index segments. + *

                                                            + * Get low-level information about the Lucene segments in index shards. For data + * streams, the API returns information about the stream's backing indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java index e7584b2f14..22e3e317b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java @@ -60,9 +60,11 @@ // typedef: indices.shard_stores.Request /** - * Get index shard stores. Get store information about replica shards in one or - * more indices. For data streams, the API retrieves store information for the - * stream's backing indices. + * Get index shard stores. + *

                                                            + * Get store information about replica shards in one or more indices. For data + * streams, the API retrieves store information for the stream's backing + * indices. *

                                                            * The index shard stores API returns the following information: *

                                                            @@ -1355,6 +1389,45 @@ public final PutGooglevertexaiResponse putGooglevertexai( return putGooglevertexai(fn.apply(new PutGooglevertexaiRequest.Builder()).build()); } + // ----- Endpoint: inference.put_groq + + /** + * Create a Groq inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * groq service. + * + * @see Documentation + * on elastic.co + */ + + public PutGroqResponse putGroq(PutGroqRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutGroqRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Create a Groq inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * groq service. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutGroqRequest} + * @see Documentation + * on elastic.co + */ + + public final PutGroqResponse putGroq(Function> fn) + throws IOException, ElasticsearchException { + return putGroq(fn.apply(new PutGroqRequest.Builder()).build()); + } + // ----- Endpoint: inference.put_hugging_face /** @@ -1617,6 +1690,45 @@ public final PutMistralResponse putMistral(Function + * Create an inference endpoint to perform an inference task with the + * nvidia service. + * + * @see Documentation + * on elastic.co + */ + + public PutNvidiaResponse putNvidia(PutNvidiaRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutNvidiaRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Create an Nvidia inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * nvidia service. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutNvidiaRequest} + * @see Documentation + * on elastic.co + */ + + public final PutNvidiaResponse putNvidia(Function> fn) + throws IOException, ElasticsearchException { + return putNvidia(fn.apply(new PutNvidiaRequest.Builder()).build()); + } + // ----- Endpoint: inference.put_openai /** @@ -1656,6 +1768,47 @@ public final PutOpenaiResponse putOpenai(Function + * Create an inference endpoint to perform an inference task with the + * openshift_ai service. + * + * @see Documentation + * on elastic.co + */ + + public PutOpenshiftAiResponse putOpenshiftAi(PutOpenshiftAiRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutOpenshiftAiRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Create an OpenShift AI inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * openshift_ai service. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutOpenshiftAiRequest} + * @see Documentation + * on elastic.co + */ + + public final PutOpenshiftAiResponse putOpenshiftAi( + Function> fn) + throws IOException, ElasticsearchException { + return putOpenshiftAi(fn.apply(new PutOpenshiftAiRequest.Builder()).build()); + } + // ----- Endpoint: inference.put_voyageai /** @@ -1750,7 +1903,7 @@ public final PutWatsonxResponse putWatsonx(FunctionDocumentation @@ -1765,7 +1918,7 @@ public RerankResponse rerank(RerankRequest request) throws IOException, Elastics } /** - * Perform reranking inference on the service + * Perform reranking inference on the service. * * @param fn * a function that initializes a builder to create the @@ -1783,7 +1936,7 @@ public final RerankResponse rerank(FunctionDocumentation @@ -1799,7 +1952,7 @@ public SparseEmbeddingResponse sparseEmbedding(SparseEmbeddingRequest request) } /** - * Perform sparse embedding inference on the service + * Perform sparse embedding inference on the service. * * @param fn * a function that initializes a builder to create the @@ -1818,9 +1971,11 @@ public final SparseEmbeddingResponse sparseEmbedding( // ----- Endpoint: inference.stream_completion /** - * Perform streaming completion inference on the service Get real-time responses - * for completion tasks by delivering answers incrementally, reducing response - * times during computation. This API works only with the completion task type. + * Perform streaming completion inference on the service. + *

                                                            + * Get real-time responses for completion tasks by delivering answers + * incrementally, reducing response times during computation. 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, @@ -1848,9 +2003,11 @@ public BinaryResponse streamCompletion(StreamCompletionRequest request) throws I } /** - * Perform streaming completion inference on the service Get real-time responses - * for completion tasks by delivering answers incrementally, reducing response - * times during computation. This API works only with the completion task type. + * Perform streaming completion inference on the service. + *

                                                            + * Get real-time responses for completion tasks by delivering answers + * incrementally, reducing response times during computation. 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, @@ -1882,7 +2039,7 @@ public final BinaryResponse streamCompletion( // ----- Endpoint: inference.text_embedding /** - * Perform text embedding inference on the service + * Perform text embedding inference on the service. * * @see Documentation @@ -1898,7 +2055,7 @@ public TextEmbeddingResponse textEmbedding(TextEmbeddingRequest request) } /** - * Perform text embedding inference on the service + * Perform text embedding inference on the service. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java index 8a167a2024..f103243d48 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java @@ -55,7 +55,11 @@ // typedef: inference.get.Request /** - * Get an inference endpoint + * Get an inference endpoint. + *

                                                            + * 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/GoogleModelGardenProvider.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleModelGardenProvider.java new file mode 100644 index 0000000000..bd86ba3363 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleModelGardenProvider.java @@ -0,0 +1,75 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum GoogleModelGardenProvider implements JsonEnum { + Google("google"), + + Anthropic("anthropic"), + + Meta("meta"), + + HuggingFace("hugging_face"), + + Mistral("mistral"), + + Ai21("ai21"), + + ; + + private final String jsonValue; + + GoogleModelGardenProvider(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + GoogleModelGardenProvider.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java index 4169f8006d..05cb76b4f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java @@ -61,10 +61,22 @@ */ @JsonpDeserializable public class GoogleVertexAIServiceSettings implements JsonpSerializable { + @Nullable + private final GoogleModelGardenProvider provider; + + @Nullable + private final String url; + + @Nullable + private final String streamingUrl; + + @Nullable private final String location; + @Nullable private final String modelId; + @Nullable private final String projectId; @Nullable @@ -79,9 +91,12 @@ public class GoogleVertexAIServiceSettings implements JsonpSerializable { private GoogleVertexAIServiceSettings(Builder builder) { - this.location = ApiTypeHelper.requireNonNull(builder.location, this, "location"); - this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); - this.projectId = ApiTypeHelper.requireNonNull(builder.projectId, this, "projectId"); + this.provider = builder.provider; + this.url = builder.url; + this.streamingUrl = builder.streamingUrl; + this.location = builder.location; + this.modelId = builder.modelId; + this.projectId = builder.projectId; this.rateLimit = builder.rateLimit; this.serviceAccountJson = ApiTypeHelper.requireNonNull(builder.serviceAccountJson, this, "serviceAccountJson"); this.dimensions = builder.dimensions; @@ -93,30 +108,120 @@ public static GoogleVertexAIServiceSettings of(Functioncompletion and + * chat_completion tasks. In order for a Google Model Garden + * endpoint to be used provider must be defined and be other than + * google. Modes: + *

                                                              + *
                                                            • Google Model Garden (third-party models): set provider to a + * supported non-google value and provide url and/or + * streaming_url.
                                                            • + *
                                                            • Google Vertex AI: omit provider or set it to + * google. In this mode, do not set url or + * streaming_url and Elastic will construct the endpoint url from + * location, model_id, and project_id + * parameters.
                                                            • + *
                                                            + *

                                                            + * API name: {@code provider} + */ + @Nullable + public final GoogleModelGardenProvider provider() { + return this.provider; + } + + /** + * The URL for non-streaming completion requests to a Google Model + * Garden provider endpoint. If both url and + * streaming_url are provided, each is used for its respective + * mode. If streaming_url is not provided, url is also + * used for streaming completion and chat_completion. + * If provider is not provided or set to google + * (Google Vertex AI), do not set url (or + * streaming_url). At least one of url or + * streaming_url must be provided for Google Model Garden endpoint + * usage. Certain providers require separate URLs for streaming and + * non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support + * both operation types through a single URL (e.g., Meta, Hugging Face). + * Information on constructing the URL for various providers can be found in the + * Google Model Garden documentation for the model, or on the endpoint’s + * Sample request page. The request examples also illustrate the + * proper formatting for the url. + *

                                                            + * API name: {@code url} + */ + @Nullable + public final String url() { + return this.url; + } + + /** + * The URL for streaming completion and + * chat_completion requests to a Google Model Garden provider + * endpoint. If both streaming_url and url are + * provided, each is used for its respective mode. If url is not + * provided, streaming_url is also used for non-streaming + * completion requests. If provider is not provided or + * set to google (Google Vertex AI), do not set + * streaming_url (or url). At least one of + * streaming_url or url must be provided for Google + * Model Garden endpoint usage. Certain providers require separate URLs for + * streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). + * Others support both operation types through a single URL (e.g., Meta, Hugging + * Face). Information on constructing the URL for various providers can be found + * in the Google Model Garden documentation for the model, or on the endpoint’s + * Sample request page. The request examples also illustrate the + * proper formatting for the streaming_url. + *

                                                            + * API name: {@code streaming_url} + */ + @Nullable + public final String streamingUrl() { + return this.streamingUrl; + } + + /** + * The name of the location to use for the inference task for the Google Vertex + * AI inference task. For Google Vertex AI, when provider is + * omitted or google location is mandatory. For Google + * Model Garden's completion and chat_completion + * tasks, when provider is a supported non-google + * value - location is ignored. Refer to the Google documentation + * for the list of supported locations. *

                                                            * API name: {@code location} */ + @Nullable public final String location() { return this.location; } /** - * Required - The name of the model to use for the inference task. Refer to the - * Google documentation for the list of supported models. + * The name of the model to use for the inference task. For Google Vertex AI + * model_id is mandatory. For Google Model Garden's + * completion and chat_completion tasks, when + * provider is a supported non-google value - + * model_id will be used for some providers that require it, + * otherwise - ignored. Refer to the Google documentation for the list of + * supported models for Google Vertex AI. *

                                                            * API name: {@code model_id} */ + @Nullable public final String modelId() { return this.modelId; } /** - * Required - The name of the project to use for the inference task. + * The name of the project to use for the Google Vertex AI inference task. For + * Google Vertex AI project_id is mandatory. For Google Model + * Garden's completion and chat_completion tasks, when + * provider is a supported non-google value - + * project_id is ignored. *

                                                            * API name: {@code project_id} */ + @Nullable public final String projectId() { return this.projectId; } @@ -167,15 +272,35 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("location"); - generator.write(this.location); + if (this.provider != null) { + generator.writeKey("provider"); + this.provider.serialize(generator, mapper); + } + if (this.url != null) { + generator.writeKey("url"); + generator.write(this.url); - generator.writeKey("model_id"); - generator.write(this.modelId); + } + if (this.streamingUrl != null) { + generator.writeKey("streaming_url"); + generator.write(this.streamingUrl); - generator.writeKey("project_id"); - generator.write(this.projectId); + } + if (this.location != null) { + generator.writeKey("location"); + generator.write(this.location); + } + if (this.modelId != null) { + generator.writeKey("model_id"); + generator.write(this.modelId); + + } + if (this.projectId != null) { + generator.writeKey("project_id"); + generator.write(this.projectId); + + } if (this.rateLimit != null) { generator.writeKey("rate_limit"); this.rateLimit.serialize(generator, mapper); @@ -206,10 +331,22 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private GoogleModelGardenProvider provider; + + @Nullable + private String url; + + @Nullable + private String streamingUrl; + + @Nullable private String location; + @Nullable private String modelId; + @Nullable private String projectId; @Nullable @@ -221,33 +358,120 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer dimensions; /** - * Required - The name of the location to use for the inference task. Refer to - * the Google documentation for the list of supported locations. + * The name of the Google Model Garden Provider for completion and + * chat_completion tasks. In order for a Google Model Garden + * endpoint to be used provider must be defined and be other than + * google. Modes: + *

                                                              + *
                                                            • Google Model Garden (third-party models): set provider to a + * supported non-google value and provide url and/or + * streaming_url.
                                                            • + *
                                                            • Google Vertex AI: omit provider or set it to + * google. In this mode, do not set url or + * streaming_url and Elastic will construct the endpoint url from + * location, model_id, and project_id + * parameters.
                                                            • + *
                                                            + *

                                                            + * API name: {@code provider} + */ + public final Builder provider(@Nullable GoogleModelGardenProvider value) { + this.provider = value; + return this; + } + + /** + * The URL for non-streaming completion requests to a Google Model + * Garden provider endpoint. If both url and + * streaming_url are provided, each is used for its respective + * mode. If streaming_url is not provided, url is also + * used for streaming completion and chat_completion. + * If provider is not provided or set to google + * (Google Vertex AI), do not set url (or + * streaming_url). At least one of url or + * streaming_url must be provided for Google Model Garden endpoint + * usage. Certain providers require separate URLs for streaming and + * non-streaming operations (e.g., Anthropic, Mistral, AI21). Others support + * both operation types through a single URL (e.g., Meta, Hugging Face). + * Information on constructing the URL for various providers can be found in the + * Google Model Garden documentation for the model, or on the endpoint’s + * Sample request page. The request examples also illustrate the + * proper formatting for the url. + *

                                                            + * API name: {@code url} + */ + public final Builder url(@Nullable String value) { + this.url = value; + return this; + } + + /** + * The URL for streaming completion and + * chat_completion requests to a Google Model Garden provider + * endpoint. If both streaming_url and url are + * provided, each is used for its respective mode. If url is not + * provided, streaming_url is also used for non-streaming + * completion requests. If provider is not provided or + * set to google (Google Vertex AI), do not set + * streaming_url (or url). At least one of + * streaming_url or url must be provided for Google + * Model Garden endpoint usage. Certain providers require separate URLs for + * streaming and non-streaming operations (e.g., Anthropic, Mistral, AI21). + * Others support both operation types through a single URL (e.g., Meta, Hugging + * Face). Information on constructing the URL for various providers can be found + * in the Google Model Garden documentation for the model, or on the endpoint’s + * Sample request page. The request examples also illustrate the + * proper formatting for the streaming_url. + *

                                                            + * API name: {@code streaming_url} + */ + public final Builder streamingUrl(@Nullable String value) { + this.streamingUrl = value; + return this; + } + + /** + * The name of the location to use for the inference task for the Google Vertex + * AI inference task. For Google Vertex AI, when provider is + * omitted or google location is mandatory. For Google + * Model Garden's completion and chat_completion + * tasks, when provider is a supported non-google + * value - location is ignored. Refer to the Google documentation + * for the list of supported locations. *

                                                            * API name: {@code location} */ - public final Builder location(String value) { + public final Builder location(@Nullable String value) { this.location = value; return this; } /** - * Required - The name of the model to use for the inference task. Refer to the - * Google documentation for the list of supported models. + * The name of the model to use for the inference task. For Google Vertex AI + * model_id is mandatory. For Google Model Garden's + * completion and chat_completion tasks, when + * provider is a supported non-google value - + * model_id will be used for some providers that require it, + * otherwise - ignored. Refer to the Google documentation for the list of + * supported models for Google Vertex AI. *

                                                            * API name: {@code model_id} */ - public final Builder modelId(String value) { + public final Builder modelId(@Nullable String value) { this.modelId = value; return this; } /** - * Required - The name of the project to use for the inference task. + * The name of the project to use for the Google Vertex AI inference task. For + * Google Vertex AI project_id is mandatory. For Google Model + * Garden's completion and chat_completion tasks, when + * provider is a supported non-google value - + * project_id is ignored. *

                                                            * API name: {@code project_id} */ - public final Builder projectId(String value) { + public final Builder projectId(@Nullable String value) { this.projectId = value; return this; } @@ -328,6 +552,9 @@ public GoogleVertexAIServiceSettings build() { protected static void setupGoogleVertexAIServiceSettingsDeserializer( ObjectDeserializer op) { + op.add(Builder::provider, GoogleModelGardenProvider._DESERIALIZER, "provider"); + op.add(Builder::url, JsonpDeserializer.stringDeserializer(), "url"); + op.add(Builder::streamingUrl, JsonpDeserializer.stringDeserializer(), "streaming_url"); op.add(Builder::location, JsonpDeserializer.stringDeserializer(), "location"); op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); op.add(Builder::projectId, JsonpDeserializer.stringDeserializer(), "project_id"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java index 5b3e69d24d..73b7523a58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java @@ -69,6 +69,9 @@ public class GoogleVertexAITaskSettings implements JsonpSerializable { @Nullable private final ThinkingConfig thinkingConfig; + @Nullable + private final Integer maxTokens; + // --------------------------------------------------------------------------------------------- private GoogleVertexAITaskSettings(Builder builder) { @@ -76,6 +79,7 @@ private GoogleVertexAITaskSettings(Builder builder) { this.autoTruncate = builder.autoTruncate; this.topN = builder.topN; this.thinkingConfig = builder.thinkingConfig; + this.maxTokens = builder.maxTokens; } @@ -117,6 +121,23 @@ public final ThinkingConfig thinkingConfig() { return this.thinkingConfig; } + /** + * For completion and chat_completion tasks, specifies + * the max_tokens value for requests sent to the Google Model + * Garden anthropic provider. If provider is not set + * to anthropic, this field is ignored. If max_tokens + * is specified - it must be a positive integer. If not specified, the default + * value of 1024 is used. Anthropic models require max_tokens to be + * set for each request. Please refer to the Anthropic documentation for more + * information. + *

                                                            + * API name: {@code max_tokens} + */ + @Nullable + public final Integer maxTokens() { + return this.maxTokens; + } + /** * Serialize this object to JSON. */ @@ -143,6 +164,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.thinkingConfig.serialize(generator, mapper); } + if (this.maxTokens != null) { + generator.writeKey("max_tokens"); + generator.write(this.maxTokens); + + } } @@ -169,6 +195,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ThinkingConfig thinkingConfig; + @Nullable + private Integer maxTokens; + /** * For a text_embedding task, truncate inputs longer than the * maximum token length automatically. @@ -214,6 +243,23 @@ public final Builder thinkingConfig(Functioncompletion and chat_completion tasks, specifies + * the max_tokens value for requests sent to the Google Model + * Garden anthropic provider. If provider is not set + * to anthropic, this field is ignored. If max_tokens + * is specified - it must be a positive integer. If not specified, the default + * value of 1024 is used. Anthropic models require max_tokens to be + * set for each request. Please refer to the Anthropic documentation for more + * information. + *

                                                            + * API name: {@code max_tokens} + */ + public final Builder maxTokens(@Nullable Integer value) { + this.maxTokens = value; + return this; + } + @Override protected Builder self() { return this; @@ -246,6 +292,7 @@ protected static void setupGoogleVertexAITaskSettingsDeserializer( op.add(Builder::autoTruncate, JsonpDeserializer.booleanDeserializer(), "auto_truncate"); op.add(Builder::topN, JsonpDeserializer.integerDeserializer(), "top_n"); op.add(Builder::thinkingConfig, ThinkingConfig._DESERIALIZER, "thinking_config"); + op.add(Builder::maxTokens, JsonpDeserializer.integerDeserializer(), "max_tokens"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java new file mode 100644 index 0000000000..eb2af6aada --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java @@ -0,0 +1,271 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.GroqServiceSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GroqServiceSettings implements JsonpSerializable { + private final String modelId; + + @Nullable + private final String apiKey; + + @Nullable + private final RateLimitSetting rateLimit; + + // --------------------------------------------------------------------------------------------- + + private GroqServiceSettings(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.apiKey = builder.apiKey; + this.rateLimit = builder.rateLimit; + + } + + public static GroqServiceSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the model to use for the inference task. Refer to the + * Groq model documentation for the list of supported models and versions. + * Service has been tested and confirmed to be working for + * completion and chat_completion tasks with the + * following models: + *

                                                              + *
                                                            • llama-3.3-70b-versatile
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * A valid API key for accessing Groq API. + *

                                                            + * IMPORTANT: You need to provide the API key only once, during the inference + * model creation. The get inference endpoint API does not retrieve your API + * key. After creating the inference model, you cannot change the associated API + * key. If you want to use a different API key, delete the inference model and + * recreate it with the same name and the updated API key. + *

                                                            + * API name: {@code api_key} + */ + @Nullable + public final String apiKey() { + return this.apiKey; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Groq API. By default, the groq service sets the number of + * requests allowed per minute to 1000. Refer to Groq documentation for more + * details. + *

                                                            + * API name: {@code rate_limit} + */ + @Nullable + public final RateLimitSetting rateLimit() { + return this.rateLimit; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("model_id"); + generator.write(this.modelId); + + if (this.apiKey != null) { + generator.writeKey("api_key"); + generator.write(this.apiKey); + + } + if (this.rateLimit != null) { + generator.writeKey("rate_limit"); + this.rateLimit.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GroqServiceSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String modelId; + + @Nullable + private String apiKey; + + @Nullable + private RateLimitSetting rateLimit; + + /** + * Required - The name of the model to use for the inference task. Refer to the + * Groq model documentation for the list of supported models and versions. + * Service has been tested and confirmed to be working for + * completion and chat_completion tasks with the + * following models: + *

                                                              + *
                                                            • llama-3.3-70b-versatile
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * A valid API key for accessing Groq API. + *

                                                            + * IMPORTANT: You need to provide the API key only once, during the inference + * model creation. The get inference endpoint API does not retrieve your API + * key. After creating the inference model, you cannot change the associated API + * key. If you want to use a different API key, delete the inference model and + * recreate it with the same name and the updated API key. + *

                                                            + * API name: {@code api_key} + */ + public final Builder apiKey(@Nullable String value) { + this.apiKey = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Groq API. By default, the groq service sets the number of + * requests allowed per minute to 1000. Refer to Groq documentation for more + * details. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(@Nullable RateLimitSetting value) { + this.rateLimit = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Groq API. By default, the groq service sets the number of + * requests allowed per minute to 1000. Refer to Groq documentation for more + * details. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(Function> fn) { + return this.rateLimit(fn.apply(new RateLimitSetting.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GroqServiceSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GroqServiceSettings build() { + _checkSingleUse(); + + return new GroqServiceSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GroqServiceSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GroqServiceSettings::setupGroqServiceSettingsDeserializer); + + protected static void setupGroqServiceSettingsDeserializer(ObjectDeserializer op) { + + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::apiKey, JsonpDeserializer.stringDeserializer(), "api_key"); + op.add(Builder::rateLimit, RateLimitSetting._DESERIALIZER, "rate_limit"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceType.java new file mode 100644 index 0000000000..14fe532425 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceType.java @@ -0,0 +1,65 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum GroqServiceType implements JsonEnum { + Groq("groq"), + + ; + + private final String jsonValue; + + GroqServiceType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + GroqServiceType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqTaskType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqTaskType.java new file mode 100644 index 0000000000..a353d3c79f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqTaskType.java @@ -0,0 +1,64 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum GroqTaskType implements JsonEnum { + ChatCompletion("chat_completion"), + + ; + + private final String jsonValue; + + GroqTaskType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + GroqTaskType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoGroq.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoGroq.java new file mode 100644 index 0000000000..f18c5f43a2 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoGroq.java @@ -0,0 +1,141 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.InferenceEndpointInfoGroq + +/** + * + * @see API + * specification + */ + +public abstract class InferenceEndpointInfoGroq extends InferenceEndpoint { + private final String inferenceId; + + private final TaskTypeGroq taskType; + + // --------------------------------------------------------------------------------------------- + + protected InferenceEndpointInfoGroq(AbstractBuilder builder) { + super(builder); + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + /** + * Required - The inference Id + *

                                                            + * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final TaskTypeGroq taskType() { + return this.taskType; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("inference_id"); + generator.write(this.inferenceId); + + generator.writeKey("task_type"); + this.taskType.serialize(generator, mapper); + + } + + public abstract static class AbstractBuilder> + extends + InferenceEndpoint.AbstractBuilder { + private String inferenceId; + + private TaskTypeGroq taskType; + + /** + * Required - The inference Id + *

                                                            + * API name: {@code inference_id} + */ + public final BuilderT inferenceId(String value) { + this.inferenceId = value; + return self(); + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final BuilderT taskType(TaskTypeGroq value) { + this.taskType = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupInferenceEndpointInfoGroqDeserializer( + ObjectDeserializer op) { + InferenceEndpoint.setupInferenceEndpointDeserializer(op); + op.add(AbstractBuilder::inferenceId, JsonpDeserializer.stringDeserializer(), "inference_id"); + op.add(AbstractBuilder::taskType, TaskTypeGroq._DESERIALIZER, "task_type"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoNvidia.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoNvidia.java new file mode 100644 index 0000000000..baeadde8d5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoNvidia.java @@ -0,0 +1,141 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.InferenceEndpointInfoNvidia + +/** + * + * @see API + * specification + */ + +public abstract class InferenceEndpointInfoNvidia extends InferenceEndpoint { + private final String inferenceId; + + private final TaskTypeNvidia taskType; + + // --------------------------------------------------------------------------------------------- + + protected InferenceEndpointInfoNvidia(AbstractBuilder builder) { + super(builder); + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + /** + * Required - The inference ID + *

                                                            + * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final TaskTypeNvidia taskType() { + return this.taskType; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("inference_id"); + generator.write(this.inferenceId); + + generator.writeKey("task_type"); + this.taskType.serialize(generator, mapper); + + } + + public abstract static class AbstractBuilder> + extends + InferenceEndpoint.AbstractBuilder { + private String inferenceId; + + private TaskTypeNvidia taskType; + + /** + * Required - The inference ID + *

                                                            + * API name: {@code inference_id} + */ + public final BuilderT inferenceId(String value) { + this.inferenceId = value; + return self(); + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final BuilderT taskType(TaskTypeNvidia value) { + this.taskType = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupInferenceEndpointInfoNvidiaDeserializer( + ObjectDeserializer op) { + InferenceEndpoint.setupInferenceEndpointDeserializer(op); + op.add(AbstractBuilder::inferenceId, JsonpDeserializer.stringDeserializer(), "inference_id"); + op.add(AbstractBuilder::taskType, TaskTypeNvidia._DESERIALIZER, "task_type"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoOpenShiftAi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoOpenShiftAi.java new file mode 100644 index 0000000000..030151353a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceEndpointInfoOpenShiftAi.java @@ -0,0 +1,141 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.InferenceEndpointInfoOpenShiftAi + +/** + * + * @see API + * specification + */ + +public abstract class InferenceEndpointInfoOpenShiftAi extends InferenceEndpoint { + private final String inferenceId; + + private final TaskTypeOpenShiftAi taskType; + + // --------------------------------------------------------------------------------------------- + + protected InferenceEndpointInfoOpenShiftAi(AbstractBuilder builder) { + super(builder); + + this.inferenceId = ApiTypeHelper.requireNonNull(builder.inferenceId, this, "inferenceId"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + + } + + /** + * Required - The inference Id + *

                                                            + * API name: {@code inference_id} + */ + public final String inferenceId() { + return this.inferenceId; + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final TaskTypeOpenShiftAi taskType() { + return this.taskType; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("inference_id"); + generator.write(this.inferenceId); + + generator.writeKey("task_type"); + this.taskType.serialize(generator, mapper); + + } + + public abstract static class AbstractBuilder> + extends + InferenceEndpoint.AbstractBuilder { + private String inferenceId; + + private TaskTypeOpenShiftAi taskType; + + /** + * Required - The inference Id + *

                                                            + * API name: {@code inference_id} + */ + public final BuilderT inferenceId(String value) { + this.inferenceId = value; + return self(); + } + + /** + * Required - The task type + *

                                                            + * API name: {@code task_type} + */ + public final BuilderT taskType(TaskTypeOpenShiftAi value) { + this.taskType = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupInferenceEndpointInfoOpenShiftAiDeserializer( + ObjectDeserializer op) { + InferenceEndpoint.setupInferenceEndpointDeserializer(op); + op.add(AbstractBuilder::inferenceId, JsonpDeserializer.stringDeserializer(), "inference_id"); + op.add(AbstractBuilder::taskType, TaskTypeOpenShiftAi._DESERIALIZER, "task_type"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaInputType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaInputType.java new file mode 100644 index 0000000000..b9a5955a94 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaInputType.java @@ -0,0 +1,67 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NvidiaInputType implements JsonEnum { + Ingest("ingest"), + + Search("search"), + + ; + + private final String jsonValue; + + NvidiaInputType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NvidiaInputType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java new file mode 100644 index 0000000000..b0474390dd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java @@ -0,0 +1,386 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.NvidiaServiceSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class NvidiaServiceSettings implements JsonpSerializable { + private final String apiKey; + + @Nullable + private final String url; + + private final String modelId; + + @Nullable + private final Integer maxInputTokens; + + @Nullable + private final NvidiaSimilarityType similarity; + + @Nullable + private final RateLimitSetting rateLimit; + + // --------------------------------------------------------------------------------------------- + + private NvidiaServiceSettings(Builder builder) { + + this.apiKey = ApiTypeHelper.requireNonNull(builder.apiKey, this, "apiKey"); + this.url = builder.url; + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.maxInputTokens = builder.maxInputTokens; + this.similarity = builder.similarity; + this.rateLimit = builder.rateLimit; + + } + + public static NvidiaServiceSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - A valid API key for your Nvidia endpoint. Can be found in + * API Keys section of Nvidia account settings. + *

                                                            + * API name: {@code api_key} + */ + public final String apiKey() { + return this.apiKey; + } + + /** + * The URL of the Nvidia model endpoint. If not provided, the default endpoint + * URL is used depending on the task type: + *

                                                              + *
                                                            • For text_embedding task - + * https://integrate.api.nvidia.com/v1/embeddings.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * https://integrate.api.nvidia.com/v1/chat/completions.
                                                            • + *
                                                            • For rerank task - + * https://ai.api.nvidia.com/v1/retrieval/nvidia/reranking.
                                                            • + *
                                                            + *

                                                            + * API name: {@code url} + */ + @Nullable + public final String url() { + return this.url; + } + + /** + * Required - The name of the model to use for the inference task. Refer to the + * model's documentation for the name if needed. Service has been tested and + * confirmed to be working with the following models: + *

                                                              + *
                                                            • For text_embedding task - + * nvidia/llama-3.2-nv-embedqa-1b-v2.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * microsoft/phi-3-mini-128k-instruct.
                                                            • + *
                                                            • For rerank task - nv-rerank-qa-mistral-4b:1. + * Service doesn't support text_embedding task + * baai/bge-m3 and nvidia/nvclip models due to them + * not recognizing the input_type parameter.
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * For a text_embedding task, the maximum number of tokens per + * input. Inputs exceeding this value are truncated prior to sending to the + * Nvidia API. + *

                                                            + * API name: {@code max_input_tokens} + */ + @Nullable + public final Integer maxInputTokens() { + return this.maxInputTokens; + } + + /** + * For a text_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. + *

                                                            + * API name: {@code similarity} + */ + @Nullable + public final NvidiaSimilarityType similarity() { + return this.similarity; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Nvidia API. By default, the nvidia service sets the number + * of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + @Nullable + public final RateLimitSetting rateLimit() { + return this.rateLimit; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("api_key"); + generator.write(this.apiKey); + + if (this.url != null) { + generator.writeKey("url"); + generator.write(this.url); + + } + generator.writeKey("model_id"); + generator.write(this.modelId); + + if (this.maxInputTokens != null) { + generator.writeKey("max_input_tokens"); + generator.write(this.maxInputTokens); + + } + if (this.similarity != null) { + generator.writeKey("similarity"); + this.similarity.serialize(generator, mapper); + } + if (this.rateLimit != null) { + generator.writeKey("rate_limit"); + this.rateLimit.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link NvidiaServiceSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String apiKey; + + @Nullable + private String url; + + private String modelId; + + @Nullable + private Integer maxInputTokens; + + @Nullable + private NvidiaSimilarityType similarity; + + @Nullable + private RateLimitSetting rateLimit; + + /** + * Required - A valid API key for your Nvidia endpoint. Can be found in + * API Keys section of Nvidia account settings. + *

                                                            + * API name: {@code api_key} + */ + public final Builder apiKey(String value) { + this.apiKey = value; + return this; + } + + /** + * The URL of the Nvidia model endpoint. If not provided, the default endpoint + * URL is used depending on the task type: + *

                                                              + *
                                                            • For text_embedding task - + * https://integrate.api.nvidia.com/v1/embeddings.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * https://integrate.api.nvidia.com/v1/chat/completions.
                                                            • + *
                                                            • For rerank task - + * https://ai.api.nvidia.com/v1/retrieval/nvidia/reranking.
                                                            • + *
                                                            + *

                                                            + * API name: {@code url} + */ + public final Builder url(@Nullable String value) { + this.url = value; + return this; + } + + /** + * Required - The name of the model to use for the inference task. Refer to the + * model's documentation for the name if needed. Service has been tested and + * confirmed to be working with the following models: + *

                                                              + *
                                                            • For text_embedding task - + * nvidia/llama-3.2-nv-embedqa-1b-v2.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * microsoft/phi-3-mini-128k-instruct.
                                                            • + *
                                                            • For rerank task - nv-rerank-qa-mistral-4b:1. + * Service doesn't support text_embedding task + * baai/bge-m3 and nvidia/nvclip models due to them + * not recognizing the input_type parameter.
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * For a text_embedding task, the maximum number of tokens per + * input. Inputs exceeding this value are truncated prior to sending to the + * Nvidia API. + *

                                                            + * API name: {@code max_input_tokens} + */ + public final Builder maxInputTokens(@Nullable Integer value) { + this.maxInputTokens = value; + return this; + } + + /** + * For a text_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. + *

                                                            + * API name: {@code similarity} + */ + public final Builder similarity(@Nullable NvidiaSimilarityType value) { + this.similarity = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Nvidia API. By default, the nvidia service sets the number + * of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(@Nullable RateLimitSetting value) { + this.rateLimit = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the Nvidia API. By default, the nvidia service sets the number + * of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(Function> fn) { + return this.rateLimit(fn.apply(new RateLimitSetting.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link NvidiaServiceSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public NvidiaServiceSettings build() { + _checkSingleUse(); + + return new NvidiaServiceSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link NvidiaServiceSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, NvidiaServiceSettings::setupNvidiaServiceSettingsDeserializer); + + protected static void setupNvidiaServiceSettingsDeserializer(ObjectDeserializer op) { + + op.add(Builder::apiKey, JsonpDeserializer.stringDeserializer(), "api_key"); + op.add(Builder::url, JsonpDeserializer.stringDeserializer(), "url"); + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::maxInputTokens, JsonpDeserializer.integerDeserializer(), "max_input_tokens"); + op.add(Builder::similarity, NvidiaSimilarityType._DESERIALIZER, "similarity"); + op.add(Builder::rateLimit, RateLimitSetting._DESERIALIZER, "rate_limit"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceType.java new file mode 100644 index 0000000000..41cbffef44 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceType.java @@ -0,0 +1,65 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NvidiaServiceType implements JsonEnum { + Nvidia("nvidia"), + + ; + + private final String jsonValue; + + NvidiaServiceType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NvidiaServiceType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaSimilarityType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaSimilarityType.java new file mode 100644 index 0000000000..fcd6af9152 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaSimilarityType.java @@ -0,0 +1,69 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NvidiaSimilarityType implements JsonEnum { + Cosine("cosine"), + + DotProduct("dot_product"), + + L2Norm("l2_norm"), + + ; + + private final String jsonValue; + + NvidiaSimilarityType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NvidiaSimilarityType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java new file mode 100644 index 0000000000..c864af3ba9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java @@ -0,0 +1,233 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.NvidiaTaskSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class NvidiaTaskSettings implements JsonpSerializable { + @Nullable + private final NvidiaInputType inputType; + + @Nullable + private final CohereTruncateType truncate; + + // --------------------------------------------------------------------------------------------- + + private NvidiaTaskSettings(Builder builder) { + + this.inputType = builder.inputType; + this.truncate = builder.truncate; + + } + + public static NvidiaTaskSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * For a text_embedding task, type of input sent to the Nvidia + * endpoint. Valid values are: + *

                                                              + *
                                                            • ingest: Mapped to Nvidia's passage value in + * request. Used when generating embeddings during indexing.
                                                            • + *
                                                            • search: Mapped to Nvidia's query value in + * request. Used when generating embeddings during querying.
                                                            • + *
                                                            + *

                                                            + * IMPORTANT: For Nvidia endpoints, if the input_type field is not + * specified, it defaults to query. + *

                                                            + * API name: {@code input_type} + */ + @Nullable + public final NvidiaInputType inputType() { + return this.inputType; + } + + /** + * For a text_embedding task, the method used by the Nvidia model + * to handle inputs longer than the maximum token length. Valid values are: + *

                                                              + *
                                                            • END: When the input exceeds the maximum input token length, + * the end of the input is discarded.
                                                            • + *
                                                            • NONE: When the input exceeds the maximum input token length, + * an error is returned.
                                                            • + *
                                                            • START: When the input exceeds the maximum input token + * length, the start of the input is discarded.
                                                            • + *
                                                            + *

                                                            + * API name: {@code truncate} + */ + @Nullable + public final CohereTruncateType truncate() { + return this.truncate; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.inputType != null) { + generator.writeKey("input_type"); + this.inputType.serialize(generator, mapper); + } + if (this.truncate != null) { + generator.writeKey("truncate"); + this.truncate.serialize(generator, mapper); + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link NvidiaTaskSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private NvidiaInputType inputType; + + @Nullable + private CohereTruncateType truncate; + + /** + * For a text_embedding task, type of input sent to the Nvidia + * endpoint. Valid values are: + *

                                                              + *
                                                            • ingest: Mapped to Nvidia's passage value in + * request. Used when generating embeddings during indexing.
                                                            • + *
                                                            • search: Mapped to Nvidia's query value in + * request. Used when generating embeddings during querying.
                                                            • + *
                                                            + *

                                                            + * IMPORTANT: For Nvidia endpoints, if the input_type field is not + * specified, it defaults to query. + *

                                                            + * API name: {@code input_type} + */ + public final Builder inputType(@Nullable NvidiaInputType value) { + this.inputType = value; + return this; + } + + /** + * For a text_embedding task, the method used by the Nvidia model + * to handle inputs longer than the maximum token length. Valid values are: + *

                                                              + *
                                                            • END: When the input exceeds the maximum input token length, + * the end of the input is discarded.
                                                            • + *
                                                            • NONE: When the input exceeds the maximum input token length, + * an error is returned.
                                                            • + *
                                                            • START: When the input exceeds the maximum input token + * length, the start of the input is discarded.
                                                            • + *
                                                            + *

                                                            + * API name: {@code truncate} + */ + public final Builder truncate(@Nullable CohereTruncateType value) { + this.truncate = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link NvidiaTaskSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public NvidiaTaskSettings build() { + _checkSingleUse(); + + return new NvidiaTaskSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link NvidiaTaskSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, NvidiaTaskSettings::setupNvidiaTaskSettingsDeserializer); + + protected static void setupNvidiaTaskSettingsDeserializer(ObjectDeserializer op) { + + op.add(Builder::inputType, NvidiaInputType._DESERIALIZER, "input_type"); + op.add(Builder::truncate, CohereTruncateType._DESERIALIZER, "truncate"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskType.java new file mode 100644 index 0000000000..c9dc2a4c76 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskType.java @@ -0,0 +1,70 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NvidiaTaskType implements JsonEnum { + ChatCompletion("chat_completion"), + + Completion("completion"), + + Rerank("rerank"), + + TextEmbedding("text_embedding"), + + ; + + private final String jsonValue; + + NvidiaTaskType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NvidiaTaskType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java index 66df43e923..f2b9427fe9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch.inference; +import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -62,11 +63,15 @@ public class OpenAITaskSettings implements JsonpSerializable { @Nullable private final String user; + @Nullable + private final JsonData headers; + // --------------------------------------------------------------------------------------------- private OpenAITaskSettings(Builder builder) { this.user = builder.user; + this.headers = builder.headers; } @@ -86,6 +91,24 @@ public final String user() { return this.user; } + /** + * Specifies custom HTTP header parameters. For example: + * + *

                                                            +	 * "headers":{
                                                            +	 *   "Custom-Header": "Some-Value",
                                                            +	 *   "Another-Custom-Header": "Another-Value"
                                                            +	 * }
                                                            +	 * 
                                                            +	 * 
                                                            + *

                                                            + * API name: {@code headers} + */ + @Nullable + public final JsonData headers() { + return this.headers; + } + /** * Serialize this object to JSON. */ @@ -102,6 +125,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.user); } + if (this.headers != null) { + generator.writeKey("headers"); + this.headers.serialize(generator, mapper); + + } } @@ -122,6 +150,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String user; + @Nullable + private JsonData headers; + /** * For a completion or text_embedding task, specify * the user issuing the request. This information can be used for abuse @@ -134,6 +165,24 @@ public final Builder user(@Nullable String value) { return this; } + /** + * Specifies custom HTTP header parameters. For example: + * + *

                                                            +		 * "headers":{
                                                            +		 *   "Custom-Header": "Some-Value",
                                                            +		 *   "Another-Custom-Header": "Another-Value"
                                                            +		 * }
                                                            +		 * 
                                                            +		 * 
                                                            + *

                                                            + * API name: {@code headers} + */ + public final Builder headers(@Nullable JsonData value) { + this.headers = value; + return this; + } + @Override protected Builder self() { return this; @@ -163,6 +212,7 @@ public OpenAITaskSettings build() { protected static void setupOpenAITaskSettingsDeserializer(ObjectDeserializer op) { op.add(Builder::user, JsonpDeserializer.stringDeserializer(), "user"); + op.add(Builder::headers, JsonData._DESERIALIZER, "headers"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java new file mode 100644 index 0000000000..d053dee8ed --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java @@ -0,0 +1,361 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.OpenShiftAiServiceSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class OpenShiftAiServiceSettings implements JsonpSerializable { + private final String apiKey; + + private final String url; + + @Nullable + private final String modelId; + + @Nullable + private final Integer maxInputTokens; + + @Nullable + private final OpenShiftAiSimilarityType similarity; + + @Nullable + private final RateLimitSetting rateLimit; + + // --------------------------------------------------------------------------------------------- + + private OpenShiftAiServiceSettings(Builder builder) { + + this.apiKey = ApiTypeHelper.requireNonNull(builder.apiKey, this, "apiKey"); + this.url = ApiTypeHelper.requireNonNull(builder.url, this, "url"); + this.modelId = builder.modelId; + this.maxInputTokens = builder.maxInputTokens; + this.similarity = builder.similarity; + this.rateLimit = builder.rateLimit; + + } + + public static OpenShiftAiServiceSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - A valid API key for your OpenShift AI endpoint. Can be found in + * Token authentication section of model related information. + *

                                                            + * API name: {@code api_key} + */ + public final String apiKey() { + return this.apiKey; + } + + /** + * Required - The URL of the OpenShift AI hosted model endpoint. + *

                                                            + * API name: {@code url} + */ + public final String url() { + return this.url; + } + + /** + * The name of the model to use for the inference task. Refer to the hosted + * model's documentation for the name if needed. Service has been tested and + * confirmed to be working with the following models: + *

                                                              + *
                                                            • For text_embedding task - gritlm-7b.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * llama-31-8b-instruct.
                                                            • + *
                                                            • For rerank task - bge-reranker-v2-m3.
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + @Nullable + public final String modelId() { + return this.modelId; + } + + /** + * For a text_embedding task, the maximum number of tokens per + * input before chunking occurs. + *

                                                            + * API name: {@code max_input_tokens} + */ + @Nullable + public final Integer maxInputTokens() { + return this.maxInputTokens; + } + + /** + * For a text_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. If not specified, the default dot_product value + * is used. + *

                                                            + * API name: {@code similarity} + */ + @Nullable + public final OpenShiftAiSimilarityType similarity() { + return this.similarity; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the OpenShift AI API. By default, the openshift_ai service sets + * the number of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + @Nullable + public final RateLimitSetting rateLimit() { + return this.rateLimit; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("api_key"); + generator.write(this.apiKey); + + generator.writeKey("url"); + generator.write(this.url); + + if (this.modelId != null) { + generator.writeKey("model_id"); + generator.write(this.modelId); + + } + if (this.maxInputTokens != null) { + generator.writeKey("max_input_tokens"); + generator.write(this.maxInputTokens); + + } + if (this.similarity != null) { + generator.writeKey("similarity"); + this.similarity.serialize(generator, mapper); + } + if (this.rateLimit != null) { + generator.writeKey("rate_limit"); + this.rateLimit.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link OpenShiftAiServiceSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String apiKey; + + private String url; + + @Nullable + private String modelId; + + @Nullable + private Integer maxInputTokens; + + @Nullable + private OpenShiftAiSimilarityType similarity; + + @Nullable + private RateLimitSetting rateLimit; + + /** + * Required - A valid API key for your OpenShift AI endpoint. Can be found in + * Token authentication section of model related information. + *

                                                            + * API name: {@code api_key} + */ + public final Builder apiKey(String value) { + this.apiKey = value; + return this; + } + + /** + * Required - The URL of the OpenShift AI hosted model endpoint. + *

                                                            + * API name: {@code url} + */ + public final Builder url(String value) { + this.url = value; + return this; + } + + /** + * The name of the model to use for the inference task. Refer to the hosted + * model's documentation for the name if needed. Service has been tested and + * confirmed to be working with the following models: + *

                                                              + *
                                                            • For text_embedding task - gritlm-7b.
                                                            • + *
                                                            • For completion and chat_completion tasks - + * llama-31-8b-instruct.
                                                            • + *
                                                            • For rerank task - bge-reranker-v2-m3.
                                                            • + *
                                                            + *

                                                            + * API name: {@code model_id} + */ + public final Builder modelId(@Nullable String value) { + this.modelId = value; + return this; + } + + /** + * For a text_embedding task, the maximum number of tokens per + * input before chunking occurs. + *

                                                            + * API name: {@code max_input_tokens} + */ + public final Builder maxInputTokens(@Nullable Integer value) { + this.maxInputTokens = value; + return this; + } + + /** + * For a text_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. If not specified, the default dot_product value + * is used. + *

                                                            + * API name: {@code similarity} + */ + public final Builder similarity(@Nullable OpenShiftAiSimilarityType value) { + this.similarity = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the OpenShift AI API. By default, the openshift_ai service sets + * the number of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(@Nullable RateLimitSetting value) { + this.rateLimit = value; + return this; + } + + /** + * This setting helps to minimize the number of rate limit errors returned from + * the OpenShift AI API. By default, the openshift_ai service sets + * the number of requests allowed per minute to 3000. + *

                                                            + * API name: {@code rate_limit} + */ + public final Builder rateLimit(Function> fn) { + return this.rateLimit(fn.apply(new RateLimitSetting.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link OpenShiftAiServiceSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public OpenShiftAiServiceSettings build() { + _checkSingleUse(); + + return new OpenShiftAiServiceSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link OpenShiftAiServiceSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, OpenShiftAiServiceSettings::setupOpenShiftAiServiceSettingsDeserializer); + + protected static void setupOpenShiftAiServiceSettingsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::apiKey, JsonpDeserializer.stringDeserializer(), "api_key"); + op.add(Builder::url, JsonpDeserializer.stringDeserializer(), "url"); + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::maxInputTokens, JsonpDeserializer.integerDeserializer(), "max_input_tokens"); + op.add(Builder::similarity, OpenShiftAiSimilarityType._DESERIALIZER, "similarity"); + op.add(Builder::rateLimit, RateLimitSetting._DESERIALIZER, "rate_limit"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceType.java new file mode 100644 index 0000000000..ab7ca2623b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceType.java @@ -0,0 +1,65 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum OpenShiftAiServiceType implements JsonEnum { + OpenshiftAi("openshift_ai"), + + ; + + private final String jsonValue; + + OpenShiftAiServiceType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + OpenShiftAiServiceType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiSimilarityType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiSimilarityType.java new file mode 100644 index 0000000000..7dfc81d0c6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiSimilarityType.java @@ -0,0 +1,69 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum OpenShiftAiSimilarityType implements JsonEnum { + Cosine("cosine"), + + DotProduct("dot_product"), + + L2Norm("l2_norm"), + + ; + + private final String jsonValue; + + OpenShiftAiSimilarityType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + OpenShiftAiSimilarityType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java new file mode 100644 index 0000000000..8887697c6d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java @@ -0,0 +1,204 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference._types.OpenShiftAiTaskSettings + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class OpenShiftAiTaskSettings implements JsonpSerializable { + @Nullable + private final Boolean returnDocuments; + + @Nullable + private final Integer topN; + + // --------------------------------------------------------------------------------------------- + + private OpenShiftAiTaskSettings(Builder builder) { + + this.returnDocuments = builder.returnDocuments; + this.topN = builder.topN; + + } + + public static OpenShiftAiTaskSettings of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * For a rerank task, whether to return the source documents in the + * response. + *

                                                            + * API name: {@code return_documents} + */ + @Nullable + public final Boolean returnDocuments() { + return this.returnDocuments; + } + + /** + * For a rerank task, the number of most relevant documents to + * return. + *

                                                            + * API name: {@code top_n} + */ + @Nullable + public final Integer topN() { + return this.topN; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.returnDocuments != null) { + generator.writeKey("return_documents"); + generator.write(this.returnDocuments); + + } + if (this.topN != null) { + generator.writeKey("top_n"); + generator.write(this.topN); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link OpenShiftAiTaskSettings}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Boolean returnDocuments; + + @Nullable + private Integer topN; + + /** + * For a rerank task, whether to return the source documents in the + * response. + *

                                                            + * API name: {@code return_documents} + */ + public final Builder returnDocuments(@Nullable Boolean value) { + this.returnDocuments = value; + return this; + } + + /** + * For a rerank task, the number of most relevant documents to + * return. + *

                                                            + * API name: {@code top_n} + */ + public final Builder topN(@Nullable Integer value) { + this.topN = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link OpenShiftAiTaskSettings}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public OpenShiftAiTaskSettings build() { + _checkSingleUse(); + + return new OpenShiftAiTaskSettings(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link OpenShiftAiTaskSettings} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, OpenShiftAiTaskSettings::setupOpenShiftAiTaskSettingsDeserializer); + + protected static void setupOpenShiftAiTaskSettingsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::returnDocuments, JsonpDeserializer.booleanDeserializer(), "return_documents"); + op.add(Builder::topN, JsonpDeserializer.integerDeserializer(), "top_n"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskType.java new file mode 100644 index 0000000000..d0a3e87d8c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskType.java @@ -0,0 +1,71 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum OpenShiftAiTaskType implements JsonEnum { + TextEmbedding("text_embedding"), + + Completion("completion"), + + ChatCompletion("chat_completion"), + + Rerank("rerank"), + + ; + + private final String jsonValue; + + OpenShiftAiTaskType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + OpenShiftAiTaskType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java index 94e1d4d7c1..ada82dfab0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java @@ -115,7 +115,9 @@ public final String alibabacloudInferenceId() { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -241,7 +243,9 @@ public final Builder alibabacloudInferenceId(String value) { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -251,7 +255,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java index 4ebfbe57ef..076e630f35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java @@ -124,7 +124,9 @@ public final String amazonbedrockInferenceId() { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -250,7 +252,9 @@ public final Builder amazonbedrockInferenceId(String value) { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -260,7 +264,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java index 13129bb0f0..642c2e1777 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java @@ -115,7 +115,10 @@ public final String amazonsagemakerInferenceId() { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank, completion, or + * chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -242,7 +245,10 @@ public final Builder amazonsagemakerInferenceId(String value) { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank, completion, or + * chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -252,7 +258,10 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank, completion, or + * chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java index 00a3c74b07..d89b475287 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java @@ -70,9 +70,6 @@ public class PutAnthropicRequest extends RequestBase implements JsonpSerializable { private final String anthropicInferenceId; - @Nullable - private final InferenceChunkingSettings chunkingSettings; - private final AnthropicServiceType service; private final AnthropicServiceSettings serviceSettings; @@ -91,7 +88,6 @@ private PutAnthropicRequest(Builder builder) { this.anthropicInferenceId = ApiTypeHelper.requireNonNull(builder.anthropicInferenceId, this, "anthropicInferenceId"); - this.chunkingSettings = builder.chunkingSettings; this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); this.taskSettings = builder.taskSettings; @@ -113,16 +109,6 @@ public final String anthropicInferenceId() { return this.anthropicInferenceId; } - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - @Nullable - public final InferenceChunkingSettings chunkingSettings() { - return this.chunkingSettings; - } - /** * Required - The type of service supported for the specified task type. In this * case, anthropic. @@ -135,7 +121,7 @@ public final AnthropicServiceType service() { /** * Required - Settings used to install the inference model. These settings are - * specific to the watsonxai service. + * specific to the anthropic service. *

                                                            * API name: {@code service_settings} */ @@ -186,11 +172,6 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (this.chunkingSettings != null) { - generator.writeKey("chunking_settings"); - this.chunkingSettings.serialize(generator, mapper); - - } generator.writeKey("service"); this.service.serialize(generator, mapper); generator.writeKey("service_settings"); @@ -215,9 +196,6 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String anthropicInferenceId; - @Nullable - private InferenceChunkingSettings chunkingSettings; - private AnthropicServiceType service; private AnthropicServiceSettings serviceSettings; @@ -240,26 +218,6 @@ public final Builder anthropicInferenceId(String value) { return this; } - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { - this.chunkingSettings = value; - return this; - } - - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings( - Function> fn) { - return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); - } - /** * Required - The type of service supported for the specified task type. In this * case, anthropic. @@ -273,7 +231,7 @@ public final Builder service(AnthropicServiceType value) { /** * Required - Settings used to install the inference model. These settings are - * specific to the watsonxai service. + * specific to the anthropic service. *

                                                            * API name: {@code service_settings} */ @@ -284,7 +242,7 @@ public final Builder serviceSettings(AnthropicServiceSettings value) { /** * Required - Settings used to install the inference model. These settings are - * specific to the watsonxai service. + * specific to the anthropic service. *

                                                            * API name: {@code service_settings} */ @@ -375,7 +333,6 @@ public PutAnthropicRequest build() { protected static void setupPutAnthropicRequestDeserializer(ObjectDeserializer op) { - op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); op.add(Builder::service, AnthropicServiceType._DESERIALIZER, "service"); op.add(Builder::serviceSettings, AnthropicServiceSettings._DESERIALIZER, "service_settings"); op.add(Builder::taskSettings, AnthropicTaskSettings._DESERIALIZER, "task_settings"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java index d1983f563f..39fe28a3e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java @@ -115,7 +115,9 @@ public final String azureaistudioInferenceId() { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -136,7 +138,7 @@ public final AzureAiStudioServiceType service() { /** * Required - Settings used to install the inference model. These settings are - * specific to the openai service. + * specific to the azureaistudio service. *

                                                            * API name: {@code service_settings} */ @@ -241,7 +243,9 @@ public final Builder azureaistudioInferenceId(String value) { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -251,7 +255,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -273,7 +279,7 @@ public final Builder service(AzureAiStudioServiceType value) { /** * Required - Settings used to install the inference model. These settings are - * specific to the openai service. + * specific to the azureaistudio service. *

                                                            * API name: {@code service_settings} */ @@ -284,7 +290,7 @@ public final Builder serviceSettings(AzureAiStudioServiceSettings value) { /** * Required - Settings used to install the inference model. These settings are - * specific to the openai service. + * specific to the azureaistudio service. *

                                                            * API name: {@code service_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java index 202f0fba06..5b2f217b21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java @@ -130,7 +130,9 @@ public final String azureopenaiInferenceId() { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion and chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -258,7 +260,9 @@ public final Builder azureopenaiInferenceId(String value) { } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion and chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -268,7 +272,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion and chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java index 4bba30aaa1..f66becc3e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java @@ -104,7 +104,9 @@ public static PutCohereRequest of(Functiontext_embedding task type. Not applicable to the + * rerank or completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -229,7 +231,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank or completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -239,7 +243,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank or completion task type. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java index 7958841c92..c6019122c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java @@ -72,9 +72,6 @@ */ @JsonpDeserializable public class PutContextualaiRequest extends RequestBase implements JsonpSerializable { - @Nullable - private final InferenceChunkingSettings chunkingSettings; - private final String contextualaiInferenceId; private final ContextualAIServiceType service; @@ -93,7 +90,6 @@ public class PutContextualaiRequest extends RequestBase implements JsonpSerializ private PutContextualaiRequest(Builder builder) { - this.chunkingSettings = builder.chunkingSettings; this.contextualaiInferenceId = ApiTypeHelper.requireNonNull(builder.contextualaiInferenceId, this, "contextualaiInferenceId"); this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); @@ -108,16 +104,6 @@ public static PutContextualaiRequest of(Function - * API name: {@code chunking_settings} - */ - @Nullable - public final InferenceChunkingSettings chunkingSettings() { - return this.chunkingSettings; - } - /** * Required - The unique identifier of the inference endpoint. *

                                                            @@ -189,11 +175,6 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (this.chunkingSettings != null) { - generator.writeKey("chunking_settings"); - this.chunkingSettings.serialize(generator, mapper); - - } generator.writeKey("service"); this.service.serialize(generator, mapper); generator.writeKey("service_settings"); @@ -216,9 +197,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - @Nullable - private InferenceChunkingSettings chunkingSettings; - private String contextualaiInferenceId; private ContextualAIServiceType service; @@ -233,26 +211,6 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { - this.chunkingSettings = value; - return this; - } - - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings( - Function> fn) { - return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); - } - /** * Required - The unique identifier of the inference endpoint. *

                                                            @@ -378,7 +336,6 @@ public PutContextualaiRequest build() { protected static void setupPutContextualaiRequestDeserializer( ObjectDeserializer op) { - op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); op.add(Builder::service, ContextualAIServiceType._DESERIALIZER, "service"); op.add(Builder::serviceSettings, ContextualAIServiceSettings._DESERIALIZER, "service_settings"); op.add(Builder::taskSettings, ContextualAITaskSettings._DESERIALIZER, "task_settings"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java index 3c107b3401..15ff3c6e01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java @@ -158,7 +158,9 @@ public static PutCustomRequest of(Functionsparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -269,7 +271,9 @@ public static class Builder extends RequestBase.AbstractBuilder private CustomTaskType taskType; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -279,7 +283,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * sparse_embedding or text_embedding task types. Not + * applicable to the rerank or completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java index d04368660d..e0325a1f4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java @@ -68,9 +68,6 @@ */ @JsonpDeserializable public class PutDeepseekRequest extends RequestBase implements JsonpSerializable { - @Nullable - private final InferenceChunkingSettings chunkingSettings; - private final String deepseekInferenceId; private final DeepSeekServiceType service; @@ -86,7 +83,6 @@ public class PutDeepseekRequest extends RequestBase implements JsonpSerializable private PutDeepseekRequest(Builder builder) { - this.chunkingSettings = builder.chunkingSettings; this.deepseekInferenceId = ApiTypeHelper.requireNonNull(builder.deepseekInferenceId, this, "deepseekInferenceId"); this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); @@ -100,16 +96,6 @@ public static PutDeepseekRequest of(Function - * API name: {@code chunking_settings} - */ - @Nullable - public final InferenceChunkingSettings chunkingSettings() { - return this.chunkingSettings; - } - /** * Required - The unique identifier of the inference endpoint. *

                                                            @@ -170,11 +156,6 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (this.chunkingSettings != null) { - generator.writeKey("chunking_settings"); - this.chunkingSettings.serialize(generator, mapper); - - } generator.writeKey("service"); this.service.serialize(generator, mapper); generator.writeKey("service_settings"); @@ -191,9 +172,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - @Nullable - private InferenceChunkingSettings chunkingSettings; - private String deepseekInferenceId; private DeepSeekServiceType service; @@ -205,26 +183,6 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { - this.chunkingSettings = value; - return this; - } - - /** - * The chunking configuration object. - *

                                                            - * API name: {@code chunking_settings} - */ - public final Builder chunkingSettings( - Function> fn) { - return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); - } - /** * Required - The unique identifier of the inference endpoint. *

                                                            @@ -327,7 +285,6 @@ public PutDeepseekRequest build() { protected static void setupPutDeepseekRequestDeserializer(ObjectDeserializer op) { - op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); op.add(Builder::service, DeepSeekServiceType._DESERIALIZER, "service"); op.add(Builder::serviceSettings, DeepSeekServiceSettings._DESERIALIZER, "service_settings"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java index a0a00b64e7..9883225f60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java @@ -135,8 +135,7 @@ public static PutElasticsearchRequest of(Functionsparse_embedding and text_embedding task types. Not - * applicable to the rerank, completion, or - * chat_completion task types. + * applicable to the rerank task type. *

                                                            * API name: {@code chunking_settings} */ @@ -264,8 +263,7 @@ public static class Builder extends RequestBase.AbstractBuilder /** * The chunking configuration object. Applies only to the * sparse_embedding and text_embedding task types. Not - * applicable to the rerank, completion, or - * chat_completion task types. + * applicable to the rerank task type. *

                                                            * API name: {@code chunking_settings} */ @@ -277,8 +275,7 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) /** * The chunking configuration object. Applies only to the * sparse_embedding and text_embedding task types. Not - * applicable to the rerank, completion, or - * chat_completion task types. + * applicable to the rerank task type. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java index 1cc1ebbdf0..56f296c822 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java @@ -102,7 +102,9 @@ public static PutGoogleaistudioRequest of(Functiontext_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -207,7 +209,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ @@ -217,7 +221,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion task type. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java index e4250e93e9..331554b6f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java @@ -106,7 +106,10 @@ public static PutGooglevertexaiRequest of(Functiontext_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ @@ -231,7 +234,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ @@ -241,7 +247,10 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java new file mode 100644 index 0000000000..5564041b79 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java @@ -0,0 +1,354 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_groq.Request + +/** + * Create a Groq inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * groq service. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutGroqRequest extends RequestBase implements JsonpSerializable { + private final String groqInferenceId; + + private final GroqServiceType service; + + private final GroqServiceSettings serviceSettings; + + private final GroqTaskType taskType; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private PutGroqRequest(Builder builder) { + + this.groqInferenceId = ApiTypeHelper.requireNonNull(builder.groqInferenceId, this, "groqInferenceId"); + this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); + this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.timeout = builder.timeout; + + } + + public static PutGroqRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code groq_inference_id} + */ + public final String groqInferenceId() { + return this.groqInferenceId; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, groq. + *

                                                            + * API name: {@code service} + */ + public final GroqServiceType service() { + return this.service; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the groq service. + *

                                                            + * API name: {@code service_settings} + */ + public final GroqServiceSettings serviceSettings() { + return this.serviceSettings; + } + + /** + * Required - The type of the inference task that the model will perform. + *

                                                            + * API name: {@code task_type} + */ + public final GroqTaskType taskType() { + return this.taskType; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("service"); + this.service.serialize(generator, mapper); + generator.writeKey("service_settings"); + this.serviceSettings.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutGroqRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + private String groqInferenceId; + + private GroqServiceType service; + + private GroqServiceSettings serviceSettings; + + private GroqTaskType taskType; + + @Nullable + private Time timeout; + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code groq_inference_id} + */ + public final Builder groqInferenceId(String value) { + this.groqInferenceId = value; + return this; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, groq. + *

                                                            + * API name: {@code service} + */ + public final Builder service(GroqServiceType value) { + this.service = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the groq service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings(GroqServiceSettings value) { + this.serviceSettings = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the groq service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings( + Function> fn) { + return this.serviceSettings(fn.apply(new GroqServiceSettings.Builder()).build()); + } + + /** + * Required - The type of the inference task that the model will perform. + *

                                                            + * API name: {@code task_type} + */ + public final Builder taskType(GroqTaskType value) { + this.taskType = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutGroqRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutGroqRequest build() { + _checkSingleUse(); + + return new PutGroqRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutGroqRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutGroqRequest::setupPutGroqRequestDeserializer); + + protected static void setupPutGroqRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::service, GroqServiceType._DESERIALIZER, "service"); + op.add(Builder::serviceSettings, GroqServiceSettings._DESERIALIZER, "service_settings"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.put_groq}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.put_groq", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _taskType = 1 << 0; + final int _groqInferenceId = 1 << 1; + + int propsSet = 0; + + propsSet |= _taskType; + propsSet |= _groqInferenceId; + + if (propsSet == (_taskType | _groqInferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.groqInferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskType = 1 << 0; + final int _groqInferenceId = 1 << 1; + + int propsSet = 0; + + propsSet |= _taskType; + propsSet |= _groqInferenceId; + + if (propsSet == (_taskType | _groqInferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("groqInferenceId", request.groqInferenceId); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutGroqResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqResponse.java new file mode 100644 index 0000000000..cf52ec2c72 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqResponse.java @@ -0,0 +1,106 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_groq.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutGroqResponse extends InferenceEndpointInfoGroq { + // --------------------------------------------------------------------------------------------- + + private PutGroqResponse(Builder builder) { + super(builder); + + } + + public static PutGroqResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutGroqResponse}. + */ + + public static class Builder extends InferenceEndpointInfoGroq.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutGroqResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutGroqResponse build() { + _checkSingleUse(); + + return new PutGroqResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutGroqResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutGroqResponse::setupPutGroqResponseDeserializer); + + protected static void setupPutGroqResponseDeserializer(ObjectDeserializer op) { + InferenceEndpointInfoGroq.setupInferenceEndpointInfoGroqDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java index b69d922116..d1a3b1f9af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java @@ -153,7 +153,10 @@ public static PutHuggingFaceRequest of(Functiontext_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ @@ -278,7 +281,10 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ @@ -288,7 +294,10 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java index 571e2b5b37..b088dabe40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java @@ -109,7 +109,9 @@ public static PutJinaaiRequest of(Functiontext_embedding task type. Not applicable to the + * rerank task type. *

                                                            * API name: {@code chunking_settings} */ @@ -234,7 +236,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank task type. *

                                                            * API name: {@code chunking_settings} */ @@ -244,7 +248,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank task type. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java index 66a486d89e..8dda3b9eff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java @@ -100,7 +100,9 @@ public static PutLlamaRequest of(Functiontext_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -203,7 +205,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -213,7 +217,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java index 468e7b6294..eb3238fa40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java @@ -100,7 +100,9 @@ public static PutMistralRequest of(Functiontext_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -205,7 +207,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -215,7 +219,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java new file mode 100644 index 0000000000..1cd7261bc3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java @@ -0,0 +1,464 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_nvidia.Request + +/** + * Create an Nvidia inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * nvidia service. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutNvidiaRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final InferenceChunkingSettings chunkingSettings; + + private final String nvidiaInferenceId; + + private final NvidiaServiceType service; + + private final NvidiaServiceSettings serviceSettings; + + @Nullable + private final NvidiaTaskSettings taskSettings; + + private final NvidiaTaskType taskType; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private PutNvidiaRequest(Builder builder) { + + this.chunkingSettings = builder.chunkingSettings; + this.nvidiaInferenceId = ApiTypeHelper.requireNonNull(builder.nvidiaInferenceId, this, "nvidiaInferenceId"); + this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); + this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); + this.taskSettings = builder.taskSettings; + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.timeout = builder.timeout; + + } + + public static PutNvidiaRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + @Nullable + public final InferenceChunkingSettings chunkingSettings() { + return this.chunkingSettings; + } + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code nvidia_inference_id} + */ + public final String nvidiaInferenceId() { + return this.nvidiaInferenceId; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, nvidia. + *

                                                            + * API name: {@code service} + */ + public final NvidiaServiceType service() { + return this.service; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the nvidia service. + *

                                                            + * API name: {@code service_settings} + */ + public final NvidiaServiceSettings serviceSettings() { + return this.serviceSettings; + } + + /** + * Settings to configure the inference task. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. These settings are specific to the task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + @Nullable + public final NvidiaTaskSettings taskSettings() { + return this.taskSettings; + } + + /** + * Required - The type of the inference task that the model will perform. NOTE: + * The chat_completion task type only supports streaming and only + * through the _stream API. + *

                                                            + * API name: {@code task_type} + */ + public final NvidiaTaskType taskType() { + return this.taskType; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.chunkingSettings != null) { + generator.writeKey("chunking_settings"); + this.chunkingSettings.serialize(generator, mapper); + + } + generator.writeKey("service"); + this.service.serialize(generator, mapper); + generator.writeKey("service_settings"); + this.serviceSettings.serialize(generator, mapper); + + if (this.taskSettings != null) { + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutNvidiaRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private InferenceChunkingSettings chunkingSettings; + + private String nvidiaInferenceId; + + private NvidiaServiceType service; + + private NvidiaServiceSettings serviceSettings; + + @Nullable + private NvidiaTaskSettings taskSettings; + + private NvidiaTaskType taskType; + + @Nullable + private Time timeout; + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { + this.chunkingSettings = value; + return this; + } + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings( + Function> fn) { + return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); + } + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code nvidia_inference_id} + */ + public final Builder nvidiaInferenceId(String value) { + this.nvidiaInferenceId = value; + return this; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, nvidia. + *

                                                            + * API name: {@code service} + */ + public final Builder service(NvidiaServiceType value) { + this.service = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the nvidia service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings(NvidiaServiceSettings value) { + this.serviceSettings = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the nvidia service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings( + Function> fn) { + return this.serviceSettings(fn.apply(new NvidiaServiceSettings.Builder()).build()); + } + + /** + * Settings to configure the inference task. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. These settings are specific to the task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + public final Builder taskSettings(@Nullable NvidiaTaskSettings value) { + this.taskSettings = value; + return this; + } + + /** + * Settings to configure the inference task. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. These settings are specific to the task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + public final Builder taskSettings(Function> fn) { + return this.taskSettings(fn.apply(new NvidiaTaskSettings.Builder()).build()); + } + + /** + * Required - The type of the inference task that the model will perform. NOTE: + * The chat_completion task type only supports streaming and only + * through the _stream API. + *

                                                            + * API name: {@code task_type} + */ + public final Builder taskType(NvidiaTaskType value) { + this.taskType = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutNvidiaRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutNvidiaRequest build() { + _checkSingleUse(); + + return new PutNvidiaRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutNvidiaRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutNvidiaRequest::setupPutNvidiaRequestDeserializer); + + protected static void setupPutNvidiaRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); + op.add(Builder::service, NvidiaServiceType._DESERIALIZER, "service"); + op.add(Builder::serviceSettings, NvidiaServiceSettings._DESERIALIZER, "service_settings"); + op.add(Builder::taskSettings, NvidiaTaskSettings._DESERIALIZER, "task_settings"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.put_nvidia}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.put_nvidia", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _taskType = 1 << 0; + final int _nvidiaInferenceId = 1 << 1; + + int propsSet = 0; + + propsSet |= _taskType; + propsSet |= _nvidiaInferenceId; + + if (propsSet == (_taskType | _nvidiaInferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.nvidiaInferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _taskType = 1 << 0; + final int _nvidiaInferenceId = 1 << 1; + + int propsSet = 0; + + propsSet |= _taskType; + propsSet |= _nvidiaInferenceId; + + if (propsSet == (_taskType | _nvidiaInferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("nvidiaInferenceId", request.nvidiaInferenceId); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutNvidiaResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaResponse.java new file mode 100644 index 0000000000..1f1e59cabe --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaResponse.java @@ -0,0 +1,106 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_nvidia.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutNvidiaResponse extends InferenceEndpointInfoNvidia { + // --------------------------------------------------------------------------------------------- + + private PutNvidiaResponse(Builder builder) { + super(builder); + + } + + public static PutNvidiaResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutNvidiaResponse}. + */ + + public static class Builder extends InferenceEndpointInfoNvidia.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutNvidiaResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutNvidiaResponse build() { + _checkSingleUse(); + + return new PutNvidiaResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutNvidiaResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutNvidiaResponse::setupPutNvidiaResponseDeserializer); + + protected static void setupPutNvidiaResponseDeserializer(ObjectDeserializer op) { + InferenceEndpointInfoNvidia.setupInferenceEndpointInfoNvidiaDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java index c118b9f8ed..36d40ccf12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java @@ -104,7 +104,9 @@ public static PutOpenaiRequest of(Functiontext_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -231,7 +233,9 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ @@ -241,7 +245,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. *

                                                            * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java new file mode 100644 index 0000000000..89f6b8c510 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java @@ -0,0 +1,470 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_openshift_ai.Request + +/** + * Create an OpenShift AI inference endpoint. + *

                                                            + * Create an inference endpoint to perform an inference task with the + * openshift_ai service. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutOpenshiftAiRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final InferenceChunkingSettings chunkingSettings; + + private final String openshiftaiInferenceId; + + private final OpenShiftAiServiceType service; + + private final OpenShiftAiServiceSettings serviceSettings; + + @Nullable + private final OpenShiftAiTaskSettings taskSettings; + + private final OpenShiftAiTaskType taskType; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private PutOpenshiftAiRequest(Builder builder) { + + this.chunkingSettings = builder.chunkingSettings; + this.openshiftaiInferenceId = ApiTypeHelper.requireNonNull(builder.openshiftaiInferenceId, this, + "openshiftaiInferenceId"); + this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); + this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); + this.taskSettings = builder.taskSettings; + this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); + this.timeout = builder.timeout; + + } + + public static PutOpenshiftAiRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + @Nullable + public final InferenceChunkingSettings chunkingSettings() { + return this.chunkingSettings; + } + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code openshiftai_inference_id} + */ + public final String openshiftaiInferenceId() { + return this.openshiftaiInferenceId; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, openshift_ai. + *

                                                            + * API name: {@code service} + */ + public final OpenShiftAiServiceType service() { + return this.service; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the openshift_ai service. + *

                                                            + * API name: {@code service_settings} + */ + public final OpenShiftAiServiceSettings serviceSettings() { + return this.serviceSettings; + } + + /** + * Settings to configure the inference task. Applies only to the + * rerank task type. Not applicable to the + * text_embedding, completion, or + * chat_completion task types. These settings are specific to the + * task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + @Nullable + public final OpenShiftAiTaskSettings taskSettings() { + return this.taskSettings; + } + + /** + * Required - The type of the inference task that the model will perform. NOTE: + * The chat_completion task type only supports streaming and only + * through the _stream API. + *

                                                            + * API name: {@code task_type} + */ + public final OpenShiftAiTaskType taskType() { + return this.taskType; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.chunkingSettings != null) { + generator.writeKey("chunking_settings"); + this.chunkingSettings.serialize(generator, mapper); + + } + generator.writeKey("service"); + this.service.serialize(generator, mapper); + generator.writeKey("service_settings"); + this.serviceSettings.serialize(generator, mapper); + + if (this.taskSettings != null) { + generator.writeKey("task_settings"); + this.taskSettings.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutOpenshiftAiRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private InferenceChunkingSettings chunkingSettings; + + private String openshiftaiInferenceId; + + private OpenShiftAiServiceType service; + + private OpenShiftAiServiceSettings serviceSettings; + + @Nullable + private OpenShiftAiTaskSettings taskSettings; + + private OpenShiftAiTaskType taskType; + + @Nullable + private Time timeout; + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { + this.chunkingSettings = value; + return this; + } + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank, completion, or chat_completion + * task types. + *

                                                            + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings( + Function> fn) { + return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); + } + + /** + * Required - The unique identifier of the inference endpoint. + *

                                                            + * API name: {@code openshiftai_inference_id} + */ + public final Builder openshiftaiInferenceId(String value) { + this.openshiftaiInferenceId = value; + return this; + } + + /** + * Required - The type of service supported for the specified task type. In this + * case, openshift_ai. + *

                                                            + * API name: {@code service} + */ + public final Builder service(OpenShiftAiServiceType value) { + this.service = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the openshift_ai service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings(OpenShiftAiServiceSettings value) { + this.serviceSettings = value; + return this; + } + + /** + * Required - Settings used to install the inference model. These settings are + * specific to the openshift_ai service. + *

                                                            + * API name: {@code service_settings} + */ + public final Builder serviceSettings( + Function> fn) { + return this.serviceSettings(fn.apply(new OpenShiftAiServiceSettings.Builder()).build()); + } + + /** + * Settings to configure the inference task. Applies only to the + * rerank task type. Not applicable to the + * text_embedding, completion, or + * chat_completion task types. These settings are specific to the + * task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + public final Builder taskSettings(@Nullable OpenShiftAiTaskSettings value) { + this.taskSettings = value; + return this; + } + + /** + * Settings to configure the inference task. Applies only to the + * rerank task type. Not applicable to the + * text_embedding, completion, or + * chat_completion task types. These settings are specific to the + * task type you specified. + *

                                                            + * API name: {@code task_settings} + */ + public final Builder taskSettings( + Function> fn) { + return this.taskSettings(fn.apply(new OpenShiftAiTaskSettings.Builder()).build()); + } + + /** + * Required - The type of the inference task that the model will perform. NOTE: + * The chat_completion task type only supports streaming and only + * through the _stream API. + *

                                                            + * API name: {@code task_type} + */ + public final Builder taskType(OpenShiftAiTaskType value) { + this.taskType = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Specifies the amount of time to wait for the inference endpoint to be + * created. + *

                                                            + * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutOpenshiftAiRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutOpenshiftAiRequest build() { + _checkSingleUse(); + + return new PutOpenshiftAiRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutOpenshiftAiRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutOpenshiftAiRequest::setupPutOpenshiftAiRequestDeserializer); + + protected static void setupPutOpenshiftAiRequestDeserializer(ObjectDeserializer op) { + + op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); + op.add(Builder::service, OpenShiftAiServiceType._DESERIALIZER, "service"); + op.add(Builder::serviceSettings, OpenShiftAiServiceSettings._DESERIALIZER, "service_settings"); + op.add(Builder::taskSettings, OpenShiftAiTaskSettings._DESERIALIZER, "task_settings"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code inference.put_openshift_ai}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/inference.put_openshift_ai", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _openshiftaiInferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _openshiftaiInferenceId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _openshiftaiInferenceId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_inference"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.taskType.jsonValue(), buf); + buf.append("/"); + SimpleEndpoint.pathEncode(request.openshiftaiInferenceId, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Path parameters + request -> { + Map params = new HashMap<>(); + final int _openshiftaiInferenceId = 1 << 0; + final int _taskType = 1 << 1; + + int propsSet = 0; + + propsSet |= _openshiftaiInferenceId; + propsSet |= _taskType; + + if (propsSet == (_taskType | _openshiftaiInferenceId)) { + params.put("taskType", request.taskType.jsonValue()); + params.put("openshiftaiInferenceId", request.openshiftaiInferenceId); + } + return params; + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutOpenshiftAiResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiResponse.java new file mode 100644 index 0000000000..85b3f41107 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiResponse.java @@ -0,0 +1,108 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: inference.put_openshift_ai.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutOpenshiftAiResponse extends InferenceEndpointInfoOpenShiftAi { + // --------------------------------------------------------------------------------------------- + + private PutOpenshiftAiResponse(Builder builder) { + super(builder); + + } + + public static PutOpenshiftAiResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutOpenshiftAiResponse}. + */ + + public static class Builder extends InferenceEndpointInfoOpenShiftAi.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutOpenshiftAiResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutOpenshiftAiResponse build() { + _checkSingleUse(); + + return new PutOpenshiftAiResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutOpenshiftAiResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutOpenshiftAiResponse::setupPutOpenshiftAiResponseDeserializer); + + protected static void setupPutOpenshiftAiResponseDeserializer( + ObjectDeserializer op) { + InferenceEndpointInfoOpenShiftAi.setupInferenceEndpointInfoOpenShiftAiDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java index 6c5567205d..88f5faba51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java @@ -82,9 +82,10 @@ * rerank, sparse_embedding, * text_embedding) *

                                                          • Anthropic (completion)
                                                          • - *
                                                          • Azure AI Studio (completion, 'rerank', + *
                                                          • Azure AI Studio (completion, rerank, + * text_embedding)
                                                          • + *
                                                          • Azure OpenAI (chat_completion, completion, * text_embedding)
                                                          • - *
                                                          • Azure OpenAI (completion, text_embedding)
                                                          • *
                                                          • Cohere (completion, rerank, * text_embedding)
                                                          • *
                                                          • DeepSeek (chat_completion, completion)
                                                          • @@ -96,6 +97,7 @@ * text_embedding) *
                                                          • Google Vertex AI (chat_completion, completion, * rerank, text_embedding)
                                                          • + *
                                                          • Groq (chat_completion)
                                                          • *
                                                          • Hugging Face (chat_completion, completion, * rerank, text_embedding)
                                                          • *
                                                          • JinaAI (rerank, text_embedding)
                                                          • @@ -103,8 +105,12 @@ * text_embedding) *
                                                          • Mistral (chat_completion, completion, * text_embedding)
                                                          • + *
                                                          • Nvidia (chat_completion, completion, + * text_embedding, rerank)
                                                          • *
                                                          • OpenAI (chat_completion, completion, * text_embedding)
                                                          • + *
                                                          • OpenShift AI (chat_completion, completion, + * rerank, text_embedding)
                                                          • *
                                                          • VoyageAI (rerank, text_embedding)
                                                          • *
                                                          • Watsonx inference integration (text_embedding)
                                                          • *
                                                          diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java index db8606c52d..1fc6387210 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java @@ -108,7 +108,9 @@ public static PutVoyageaiRequest of(Functiontext_embedding task type. Not applicable to the + * rerank task type. *

                                                          * API name: {@code chunking_settings} */ @@ -233,7 +235,9 @@ public static class Builder extends RequestBase.AbstractBuilder private String voyageaiInferenceId; /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank task type. *

                                                          * API name: {@code chunking_settings} */ @@ -243,7 +247,9 @@ public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) } /** - * The chunking configuration object. + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * rerank task type. *

                                                          * API name: {@code chunking_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java index a18d73db1b..de1a4a2e52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java @@ -71,6 +71,9 @@ */ @JsonpDeserializable public class PutWatsonxRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final InferenceChunkingSettings chunkingSettings; + private final WatsonxServiceType service; private final WatsonxServiceSettings serviceSettings; @@ -86,6 +89,7 @@ public class PutWatsonxRequest extends RequestBase implements JsonpSerializable private PutWatsonxRequest(Builder builder) { + this.chunkingSettings = builder.chunkingSettings; this.service = ApiTypeHelper.requireNonNull(builder.service, this, "service"); this.serviceSettings = ApiTypeHelper.requireNonNull(builder.serviceSettings, this, "serviceSettings"); this.taskType = ApiTypeHelper.requireNonNull(builder.taskType, this, "taskType"); @@ -98,6 +102,18 @@ public static PutWatsonxRequest of(Functiontext_embedding task type. Not applicable to the + * completion or chat_completion task types. + *

                                                          + * API name: {@code chunking_settings} + */ + @Nullable + public final InferenceChunkingSettings chunkingSettings() { + return this.chunkingSettings; + } + /** * Required - The type of service supported for the specified task type. In this * case, watsonxai. @@ -158,6 +174,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.chunkingSettings != null) { + generator.writeKey("chunking_settings"); + this.chunkingSettings.serialize(generator, mapper); + + } generator.writeKey("service"); this.service.serialize(generator, mapper); generator.writeKey("service_settings"); @@ -174,6 +195,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private InferenceChunkingSettings chunkingSettings; + private WatsonxServiceType service; private WatsonxServiceSettings serviceSettings; @@ -185,6 +209,30 @@ public static class Builder extends RequestBase.AbstractBuilder private String watsonxInferenceId; + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. + *

                                                          + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings(@Nullable InferenceChunkingSettings value) { + this.chunkingSettings = value; + return this; + } + + /** + * The chunking configuration object. Applies only to the + * text_embedding task type. Not applicable to the + * completion or chat_completion task types. + *

                                                          + * API name: {@code chunking_settings} + */ + public final Builder chunkingSettings( + Function> fn) { + return this.chunkingSettings(fn.apply(new InferenceChunkingSettings.Builder()).build()); + } + /** * Required - The type of service supported for the specified task type. In this * case, watsonxai. @@ -287,6 +335,7 @@ public PutWatsonxRequest build() { protected static void setupPutWatsonxRequestDeserializer(ObjectDeserializer op) { + op.add(Builder::chunkingSettings, InferenceChunkingSettings._DESERIALIZER, "chunking_settings"); op.add(Builder::service, WatsonxServiceType._DESERIALIZER, "service"); op.add(Builder::serviceSettings, WatsonxServiceSettings._DESERIALIZER, "service_settings"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java index a511dd76f0..2af3c0fcbe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java @@ -85,8 +85,8 @@ public static RateLimitSetting of(Functionazureaistudio service: 240

                                                        • *
                                                        • azureopenai service and task type * text_embedding: 1440
                                                        • - *
                                                        • azureopenai service and task type completion: - * 120
                                                        • + *
                                                        • azureopenai service and task types completion + * or chat_completion: 120
                                                        • *
                                                        • cohere service: 10000
                                                        • *
                                                        • contextualai service: 1000
                                                        • *
                                                        • elastic service and task type chat_completion: @@ -101,6 +101,7 @@ public static RateLimitSetting of(Function3000
                                                        • *
                                                        • openai service and task type completion: * 500
                                                        • + *
                                                        • openshift_ai service: 3000
                                                        • *
                                                        • voyageai service: 2000
                                                        • *
                                                        • watsonxai service: 120
                                                        • *
                                                        @@ -155,8 +156,8 @@ public static class Builder extends WithJsonObjectBuilderBase implement *
                                                      • azureaistudio service: 240
                                                      • *
                                                      • azureopenai service and task type * text_embedding: 1440
                                                      • - *
                                                      • azureopenai service and task type completion: - * 120
                                                      • + *
                                                      • azureopenai service and task types completion + * or chat_completion: 120
                                                      • *
                                                      • cohere service: 10000
                                                      • *
                                                      • contextualai service: 1000
                                                      • *
                                                      • elastic service and task type chat_completion: @@ -171,6 +172,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement * 3000
                                                      • *
                                                      • openai service and task type completion: * 500
                                                      • + *
                                                      • openshift_ai service: 3000
                                                      • *
                                                      • voyageai service: 2000
                                                      • *
                                                      • watsonxai service: 120
                                                      • *
                                                      diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java index 293652b235..112d514cd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java @@ -118,7 +118,8 @@ public final List messages() { } /** - * The ID of the model to use. + * The ID of the model to use. By default, the model ID is set to the value + * included when creating the inference endpoint. *

                                                      * API name: {@code model} */ @@ -387,7 +388,8 @@ public final Builder messages(Function> } /** - * The ID of the model to use. + * The ID of the model to use. By default, the model ID is set to the value + * included when creating the inference endpoint. *

                                                      * API name: {@code model} */ 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 1143e2babb..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 @@ -62,7 +62,7 @@ // typedef: inference.rerank.Request /** - * Perform reranking inference on the service + * Perform reranking inference on the service. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java index dc311f4061..f3bdfe79e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java @@ -60,7 +60,7 @@ // typedef: inference.sparse_embedding.Request /** - * Perform sparse embedding inference on the service + * Perform sparse embedding inference on the service. * * @see API @@ -112,7 +112,9 @@ public final List input() { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ @@ -214,7 +216,9 @@ public final Builder input(String value, String... values) { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java index c450a4d75f..3d50756619 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java @@ -62,9 +62,11 @@ // typedef: inference.stream_completion.Request /** - * Perform streaming completion inference on the service Get real-time responses - * for completion tasks by delivering answers incrementally, reducing response - * times during computation. This API works only with the completion task type. + * Perform streaming completion inference on the service. + *

                                                      + * Get real-time responses for completion tasks by delivering answers + * incrementally, reducing response times during computation. 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, @@ -133,7 +135,9 @@ public final List input() { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ @@ -243,7 +247,9 @@ public final Builder input(String value, String... values) { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeAzureOpenAI.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeAzureOpenAI.java index c91711a9af..078c14052e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeAzureOpenAI.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeAzureOpenAI.java @@ -50,6 +50,8 @@ public enum TaskTypeAzureOpenAI implements JsonEnum { Completion("completion"), + ChatCompletion("chat_completion"), + ; private final String jsonValue; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGoogleVertexAI.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGoogleVertexAI.java index 3a46cab379..27177074e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGoogleVertexAI.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGoogleVertexAI.java @@ -46,6 +46,10 @@ */ @JsonpDeserializable public enum TaskTypeGoogleVertexAI implements JsonEnum { + ChatCompletion("chat_completion"), + + Completion("completion"), + TextEmbedding("text_embedding"), Rerank("rerank"), diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGroq.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGroq.java new file mode 100644 index 0000000000..3bbbbb7a86 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeGroq.java @@ -0,0 +1,64 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum TaskTypeGroq implements JsonEnum { + ChatCompletion("chat_completion"), + + ; + + private final String jsonValue; + + TaskTypeGroq(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + TaskTypeGroq.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeNvidia.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeNvidia.java new file mode 100644 index 0000000000..bac4e814bb --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeNvidia.java @@ -0,0 +1,70 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum TaskTypeNvidia implements JsonEnum { + ChatCompletion("chat_completion"), + + Completion("completion"), + + Rerank("rerank"), + + TextEmbedding("text_embedding"), + + ; + + private final String jsonValue; + + TaskTypeNvidia(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + TaskTypeNvidia.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeOpenShiftAi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeOpenShiftAi.java new file mode 100644 index 0000000000..97197ac171 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TaskTypeOpenShiftAi.java @@ -0,0 +1,71 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum TaskTypeOpenShiftAi implements JsonEnum { + TextEmbedding("text_embedding"), + + ChatCompletion("chat_completion"), + + Completion("completion"), + + Rerank("rerank"), + + ; + + private final String jsonValue; + + TaskTypeOpenShiftAi(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + TaskTypeOpenShiftAi.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java index 36e7b4e75f..ced3bbe616 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java @@ -60,7 +60,7 @@ // typedef: inference.text_embedding.Request /** - * Perform text embedding inference on the service + * Perform text embedding inference on the service. * * @see API @@ -142,7 +142,9 @@ public final String inputType() { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ @@ -278,7 +280,9 @@ public final Builder inputType(@Nullable String value) { } /** - * Optional task settings + * Task settings for the individual inference request. These settings are + * specific to the <task_type> you specified and override the task + * settings specified when initializing the service. *

                                                      * API name: {@code task_settings} */ 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(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class CefProcessor extends ProcessorBase implements ProcessorVariant { + private final String field; + + @Nullable + private final Boolean ignoreMissing; + + @Nullable + private final String targetField; + + @Nullable + private final Boolean ignoreEmptyValues; + + @Nullable + private final String timezone; + + // --------------------------------------------------------------------------------------------- + + private CefProcessor(Builder builder) { + super(builder); + + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); + this.ignoreMissing = builder.ignoreMissing; + this.targetField = builder.targetField; + this.ignoreEmptyValues = builder.ignoreEmptyValues; + this.timezone = builder.timezone; + + } + + public static CefProcessor of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Processor variant kind. + */ + @Override + public Processor.Kind _processorKind() { + return Processor.Kind.Cef; + } + + /** + * Required - The field containing the CEF message. + *

                                                      + * API name: {@code field} + */ + public final String field() { + return this.field; + } + + /** + * If true and field does not exist or is + * null, the processor quietly exits without modifying the + * document. + *

                                                      + * API name: {@code ignore_missing} + */ + @Nullable + public final Boolean ignoreMissing() { + return this.ignoreMissing; + } + + /** + * The field to assign the converted value to. By default, the + * target_field is 'cef' + *

                                                      + * API name: {@code target_field} + */ + @Nullable + public final String targetField() { + return this.targetField; + } + + /** + * If true and value is anempty string in extensions, the processor + * quietly exits without modifying the document. + *

                                                      + * API name: {@code ignore_empty_values} + */ + @Nullable + public final Boolean ignoreEmptyValues() { + return this.ignoreEmptyValues; + } + + /** + * The timezone to use when parsing the date and when date math index supports + * resolves expressions into concrete index names. + *

                                                      + * API name: {@code timezone} + */ + @Nullable + public final String timezone() { + return this.timezone; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("field"); + generator.write(this.field); + + if (this.ignoreMissing != null) { + generator.writeKey("ignore_missing"); + generator.write(this.ignoreMissing); + + } + if (this.targetField != null) { + generator.writeKey("target_field"); + generator.write(this.targetField); + + } + if (this.ignoreEmptyValues != null) { + generator.writeKey("ignore_empty_values"); + generator.write(this.ignoreEmptyValues); + + } + if (this.timezone != null) { + generator.writeKey("timezone"); + generator.write(this.timezone); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CefProcessor}. + */ + + public static class Builder extends ProcessorBase.AbstractBuilder implements ObjectBuilder { + private String field; + + @Nullable + private Boolean ignoreMissing; + + @Nullable + private String targetField; + + @Nullable + private Boolean ignoreEmptyValues; + + @Nullable + private String timezone; + + /** + * Required - The field containing the CEF message. + *

                                                      + * API name: {@code field} + */ + public final Builder field(String value) { + this.field = value; + return this; + } + + /** + * If true and field does not exist or is + * null, the processor quietly exits without modifying the + * document. + *

                                                      + * API name: {@code ignore_missing} + */ + public final Builder ignoreMissing(@Nullable Boolean value) { + this.ignoreMissing = value; + return this; + } + + /** + * The field to assign the converted value to. By default, the + * target_field is 'cef' + *

                                                      + * API name: {@code target_field} + */ + public final Builder targetField(@Nullable String value) { + this.targetField = value; + return this; + } + + /** + * If true and value is anempty string in extensions, the processor + * quietly exits without modifying the document. + *

                                                      + * API name: {@code ignore_empty_values} + */ + public final Builder ignoreEmptyValues(@Nullable Boolean value) { + this.ignoreEmptyValues = value; + return this; + } + + /** + * The timezone to use when parsing the date and when date math index supports + * resolves expressions into concrete index names. + *

                                                      + * API name: {@code timezone} + */ + public final Builder timezone(@Nullable String value) { + this.timezone = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CefProcessor}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CefProcessor build() { + _checkSingleUse(); + + return new CefProcessor(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link CefProcessor} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + CefProcessor::setupCefProcessorDeserializer); + + protected static void setupCefProcessorDeserializer(ObjectDeserializer op) { + ProcessorBase.setupProcessorBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(Builder::ignoreMissing, JsonpDeserializer.booleanDeserializer(), "ignore_missing"); + op.add(Builder::targetField, JsonpDeserializer.stringDeserializer(), "target_field"); + op.add(Builder::ignoreEmptyValues, JsonpDeserializer.booleanDeserializer(), "ignore_empty_values"); + op.add(Builder::timezone, JsonpDeserializer.stringDeserializer(), "timezone"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java index 27cffbb33a..5b8b79434f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java @@ -56,7 +56,9 @@ // typedef: ingest.delete_pipeline.Request /** - * Delete pipelines. Delete one or more ingest pipelines. + * Delete pipelines. + *

                                                      + * Delete one or more ingest pipelines. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java index 0ef18a6419..23c5c49cb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestAsyncClient.java @@ -139,7 +139,9 @@ public final CompletableFuture deleteIpLocatio // ----- Endpoint: ingest.delete_pipeline /** - * Delete pipelines. Delete one or more ingest pipelines. + * Delete pipelines. + *

                                                      + * Delete one or more ingest pipelines. * * @see Documentation @@ -154,7 +156,9 @@ public CompletableFuture deletePipeline(DeletePipelineRe } /** - * Delete pipelines. Delete one or more ingest pipelines. + * Delete pipelines. + *

                                                      + * Delete one or more ingest pipelines. * * @param fn * a function that initializes a builder to create the @@ -172,8 +176,10 @@ public final CompletableFuture deletePipeline( // ----- Endpoint: ingest.geo_ip_stats /** - * Get GeoIP statistics. Get download statistics for GeoIP2 databases that are - * used with the GeoIP processor. + * Get GeoIP statistics. + *

                                                      + * Get download statistics for GeoIP2 databases that are used with the GeoIP + * processor. * * @see Documentation @@ -341,11 +347,12 @@ public CompletableFuture getPipeline() { // ----- Endpoint: ingest.processor_grok /** - * Run a grok processor. Extract structured fields out of a single text field - * within a document. You must choose which field to extract matched fields - * from, as well as the grok pattern you expect will match. A grok pattern is - * like a regular expression that supports aliased expressions that can be - * reused. + * Run a grok processor. + *

                                                      + * Extract structured fields out of a single text field within a document. You + * must choose which field to extract matched fields from, as well as the grok + * pattern you expect will match. A grok pattern is like a regular expression + * that supports aliased expressions that can be reused. * * @see Documentation @@ -430,8 +437,9 @@ public final CompletableFuture putIpLocationDatab // ----- Endpoint: ingest.put_pipeline /** - * Create or update a pipeline. Changes made using this API take effect - * immediately. + * Create or update a pipeline. + *

                                                      + * Changes made using this API take effect immediately. * * @see Documentation @@ -446,8 +454,9 @@ public CompletableFuture putPipeline(PutPipelineRequest req } /** - * Create or update a pipeline. Changes made using this API take effect - * immediately. + * Create or update a pipeline. + *

                                                      + * Changes made using this API take effect immediately. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java index b1afe78fb8..794cea31fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ElasticsearchIngestClient.java @@ -142,7 +142,9 @@ public final DeleteIpLocationDatabaseResponse deleteIpLocationDatabase( // ----- Endpoint: ingest.delete_pipeline /** - * Delete pipelines. Delete one or more ingest pipelines. + * Delete pipelines. + *

                                                      + * Delete one or more ingest pipelines. * * @see Documentation @@ -158,7 +160,9 @@ public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) } /** - * Delete pipelines. Delete one or more ingest pipelines. + * Delete pipelines. + *

                                                      + * Delete one or more ingest pipelines. * * @param fn * a function that initializes a builder to create the @@ -177,8 +181,10 @@ public final DeletePipelineResponse deletePipeline( // ----- Endpoint: ingest.geo_ip_stats /** - * Get GeoIP statistics. Get download statistics for GeoIP2 databases that are - * used with the GeoIP processor. + * Get GeoIP statistics. + *

                                                      + * Get download statistics for GeoIP2 databases that are used with the GeoIP + * processor. * * @see Documentation @@ -350,11 +356,12 @@ public GetPipelineResponse getPipeline() throws IOException, ElasticsearchExcept // ----- Endpoint: ingest.processor_grok /** - * Run a grok processor. Extract structured fields out of a single text field - * within a document. You must choose which field to extract matched fields - * from, as well as the grok pattern you expect will match. A grok pattern is - * like a regular expression that supports aliased expressions that can be - * reused. + * Run a grok processor. + *

                                                      + * Extract structured fields out of a single text field within a document. You + * must choose which field to extract matched fields from, as well as the grok + * pattern you expect will match. A grok pattern is like a regular expression + * that supports aliased expressions that can be reused. * * @see Documentation @@ -442,8 +449,9 @@ public final PutIpLocationDatabaseResponse putIpLocationDatabase( // ----- Endpoint: ingest.put_pipeline /** - * Create or update a pipeline. Changes made using this API take effect - * immediately. + * Create or update a pipeline. + *

                                                      + * Changes made using this API take effect immediately. * * @see Documentation @@ -458,8 +466,9 @@ public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOExce } /** - * Create or update a pipeline. Changes made using this API take effect - * immediately. + * Create or update a pipeline. + *

                                                      + * Changes made using this API take effect immediately. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java index b7048547f3..97ff8a5df1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsRequest.java @@ -50,8 +50,10 @@ // typedef: ingest.geo_ip_stats.Request /** - * Get GeoIP statistics. Get download statistics for GeoIP2 databases that are - * used with the GeoIP processor. + * Get GeoIP statistics. + *

                                                      + * Get download statistics for GeoIP2 databases that are used with the GeoIP + * processor. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java index 60be460222..0366202a00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java @@ -113,7 +113,7 @@ public final Time masterTimeout() { } /** - * Return pipelines without their definitions (default: false) + * Return pipelines without their definitions *

                                                      * API name: {@code summary} */ @@ -174,7 +174,7 @@ public final Builder masterTimeout(Function> f } /** - * Return pipelines without their definitions (default: false) + * Return pipelines without their definitions *

                                                      * API name: {@code summary} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Processor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Processor.java index 721d8f4f31..eee9a481e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Processor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Processor.java @@ -80,6 +80,8 @@ public enum Kind implements JsonEnum { Bytes("bytes"), + Cef("cef"), + Circle("circle"), CommunityId("community_id"), @@ -265,6 +267,23 @@ public BytesProcessor bytes() { return TaggedUnionUtils.get(this, Kind.Bytes); } + /** + * Is this variant instance of kind {@code cef}? + */ + public boolean isCef() { + return _kind == Kind.Cef; + } + + /** + * Get the {@code cef} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code cef} kind. + */ + public CefProcessor cef() { + return TaggedUnionUtils.get(this, Kind.Cef); + } + /** * Is this variant instance of kind {@code circle}? */ @@ -1072,6 +1091,16 @@ public ObjectBuilder bytes(Function cef(CefProcessor v) { + this._kind = Kind.Cef; + this._value = v; + return this; + } + + public ObjectBuilder cef(Function> fn) { + return this.cef(fn.apply(new CefProcessor.Builder()).build()); + } + public ObjectBuilder circle(CircleProcessor v) { this._kind = Kind.Circle; this._value = v; @@ -1542,6 +1571,7 @@ protected static void setupProcessorDeserializer(ObjectDeserializer op) op.add(Builder::append, AppendProcessor._DESERIALIZER, "append"); op.add(Builder::attachment, AttachmentProcessor._DESERIALIZER, "attachment"); op.add(Builder::bytes, BytesProcessor._DESERIALIZER, "bytes"); + op.add(Builder::cef, CefProcessor._DESERIALIZER, "cef"); op.add(Builder::circle, CircleProcessor._DESERIALIZER, "circle"); op.add(Builder::communityId, CommunityIDProcessor._DESERIALIZER, "community_id"); op.add(Builder::convert, ConvertProcessor._DESERIALIZER, "convert"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java index ea2e5109b8..2ca6e86a49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorBuilders.java @@ -98,6 +98,23 @@ public static Processor bytes(Function> fn) { + Processor.Builder builder = new Processor.Builder(); + builder.cef(fn.apply(new CefProcessor.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link CircleProcessor circle} {@code Processor} * variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java index 2398ff96ea..f2c2c3294f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ProcessorGrokRequest.java @@ -50,11 +50,12 @@ // typedef: ingest.processor_grok.Request /** - * Run a grok processor. Extract structured fields out of a single text field - * within a document. You must choose which field to extract matched fields - * from, as well as the grok pattern you expect will match. A grok pattern is - * like a regular expression that supports aliased expressions that can be - * reused. + * Run a grok processor. + *

                                                      + * Extract structured fields out of a single text field within a document. You + * must choose which field to extract matched fields from, as well as the grok + * pattern you expect will match. A grok pattern is like a regular expression + * that supports aliased expressions that can be reused. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java index c537d255cb..ddfda6abe4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.lang.Integer; import java.lang.Long; import java.lang.String; import java.util.HashMap; @@ -62,8 +63,9 @@ // typedef: ingest.put_pipeline.Request /** - * Create or update a pipeline. Changes made using this API take effect - * immediately. + * Create or update a pipeline. + *

                                                      + * Changes made using this API take effect immediately. * * @see API * specification @@ -84,7 +86,7 @@ public class PutPipelineRequest extends RequestBase implements JsonpSerializable private final String id; @Nullable - private final Long ifVersion; + private final Integer ifVersion; @Nullable private final Time masterTimeout; @@ -179,7 +181,7 @@ public final String id() { * API name: {@code if_version} */ @Nullable - public final Long ifVersion() { + public final Integer ifVersion() { return this.ifVersion; } @@ -329,7 +331,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; @Nullable - private Long ifVersion; + private Integer ifVersion; @Nullable private Time masterTimeout; @@ -420,7 +422,7 @@ public final Builder id(String value) { *

                                                      * API name: {@code if_version} */ - public final Builder ifVersion(@Nullable Long value) { + public final Builder ifVersion(@Nullable Integer value) { this.ifVersion = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java index 6203bd402c..9e815cb267 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseAsyncClient.java @@ -398,8 +398,9 @@ public CompletableFuture postStartBasic() { // ----- Endpoint: license.post_start_trial /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you @@ -422,8 +423,9 @@ public CompletableFuture postStartTrial(PostStartTrialRe } /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you @@ -447,8 +449,9 @@ public final CompletableFuture postStartTrial( } /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java index b85db6f66f..937bbb427a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/ElasticsearchLicenseClient.java @@ -400,8 +400,9 @@ public PostStartBasicResponse postStartBasic() throws IOException, Elasticsearch // ----- Endpoint: license.post_start_trial /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you @@ -425,8 +426,9 @@ public PostStartTrialResponse postStartTrial(PostStartTrialRequest request) } /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you @@ -451,8 +453,9 @@ public final PostStartTrialResponse postStartTrial( } /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java index 8400f90b61..4de8ce8f3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java @@ -101,7 +101,7 @@ public static PostStartBasicRequest of(Function * API name: {@code acknowledge} */ @@ -150,7 +150,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time timeout; /** - * whether the user has acknowledged acknowledge messages (default: false) + * Whether the user has acknowledged acknowledge messages *

                                                      * API name: {@code acknowledge} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java index bcd24ee935..41271d2ea0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java @@ -57,8 +57,9 @@ // typedef: license.post_start_trial.Request /** - * Start a trial. Start a 30-day trial, which gives access to all subscription - * features. + * Start a trial. + *

                                                      + * Start a 30-day trial, which gives access to all subscription features. *

                                                      * NOTE: You are allowed to start a trial only if your cluster has not already * activated a trial for the current major product version. For example, if you @@ -98,7 +99,7 @@ public static PostStartTrialRequest of(Function * API name: {@code acknowledge} */ @@ -118,7 +119,7 @@ public final Time masterTimeout() { } /** - * The type of trial license to generate (default: "trial") + * The type of trial license to generate *

                                                      * API name: {@code type} */ @@ -146,7 +147,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String type; /** - * whether the user has acknowledged acknowledge messages (default: false) + * Whether the user has acknowledged acknowledge messages *

                                                      * API name: {@code acknowledge} */ @@ -175,7 +176,7 @@ public final Builder masterTimeout(Function> f } /** - * The type of trial license to generate (default: "trial") + * The type of trial license to generate *

                                                      * API name: {@code type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java index 92d3141550..8e07a2282f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java @@ -58,9 +58,11 @@ // typedef: logstash.delete_pipeline.Request /** - * Delete a Logstash pipeline. Delete a pipeline that is used for Logstash - * Central Management. If the request succeeds, you receive an empty response - * with an appropriate status code. + * Delete a Logstash pipeline. + *

                                                      + * Delete a pipeline that is used for Logstash Central Management. If the + * request succeeds, you receive an empty response with an appropriate status + * code. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java index b48fd6030f..470fd7444a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashAsyncClient.java @@ -71,9 +71,11 @@ public ElasticsearchLogstashAsyncClient withTransportOptions(@Nullable Transport // ----- Endpoint: logstash.delete_pipeline /** - * Delete a Logstash pipeline. Delete a pipeline that is used for Logstash - * Central Management. If the request succeeds, you receive an empty response - * with an appropriate status code. + * Delete a Logstash pipeline. + *

                                                      + * Delete a pipeline that is used for Logstash Central Management. If the + * request succeeds, you receive an empty response with an appropriate status + * code. * * @see Documentation @@ -88,9 +90,11 @@ public CompletableFuture deletePipeline(DeletePipelineRequest r } /** - * Delete a Logstash pipeline. Delete a pipeline that is used for Logstash - * Central Management. If the request succeeds, you receive an empty response - * with an appropriate status code. + * Delete a Logstash pipeline. + *

                                                      + * Delete a pipeline that is used for Logstash Central Management. If the + * request succeeds, you receive an empty response with an appropriate status + * code. * * @param fn * a function that initializes a builder to create the @@ -108,8 +112,9 @@ public final CompletableFuture deletePipeline( // ----- Endpoint: logstash.get_pipeline /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @see Documentation @@ -124,8 +129,9 @@ public CompletableFuture getPipeline(GetPipelineRequest req } /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @param fn * a function that initializes a builder to create the @@ -141,8 +147,9 @@ public final CompletableFuture getPipeline( } /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java index c570fcb93a..41be201d41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/ElasticsearchLogstashClient.java @@ -69,9 +69,11 @@ public ElasticsearchLogstashClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: logstash.delete_pipeline /** - * Delete a Logstash pipeline. Delete a pipeline that is used for Logstash - * Central Management. If the request succeeds, you receive an empty response - * with an appropriate status code. + * Delete a Logstash pipeline. + *

                                                      + * Delete a pipeline that is used for Logstash Central Management. If the + * request succeeds, you receive an empty response with an appropriate status + * code. * * @see Documentation @@ -86,9 +88,11 @@ public BooleanResponse deletePipeline(DeletePipelineRequest request) throws IOEx } /** - * Delete a Logstash pipeline. Delete a pipeline that is used for Logstash - * Central Management. If the request succeeds, you receive an empty response - * with an appropriate status code. + * Delete a Logstash pipeline. + *

                                                      + * Delete a pipeline that is used for Logstash Central Management. If the + * request succeeds, you receive an empty response with an appropriate status + * code. * * @param fn * a function that initializes a builder to create the @@ -107,8 +111,9 @@ public final BooleanResponse deletePipeline( // ----- Endpoint: logstash.get_pipeline /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @see Documentation @@ -123,8 +128,9 @@ public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOExce } /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @param fn * a function that initializes a builder to create the @@ -141,8 +147,9 @@ public final GetPipelineResponse getPipeline( } /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index ba98e79152..b3e608143b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -58,8 +58,9 @@ // typedef: logstash.get_pipeline.Request /** - * Get Logstash pipelines. Get pipelines that are used for Logstash Central - * Management. + * Get Logstash pipelines. + *

                                                      + * Get pipelines that are used for Logstash Central Management. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java index 64844c3c2b..9529193c57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java @@ -55,9 +55,11 @@ // typedef: migration.deprecations.Request /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java index 5d8fbac25f..3313e996f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationAsyncClient.java @@ -70,9 +70,11 @@ public ElasticsearchMigrationAsyncClient withTransportOptions(@Nullable Transpor // ----- Endpoint: migration.deprecations /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -90,9 +92,11 @@ public CompletableFuture deprecations(DeprecationsRequest } /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -111,9 +115,11 @@ public final CompletableFuture deprecations( } /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -131,10 +137,11 @@ public CompletableFuture deprecations() { // ----- Endpoint: migration.get_feature_upgrade_status /** - * Get feature migration information. Version upgrades sometimes require changes - * to how features store configuration information and data in system indices. - * Check which features need to be migrated and the status of any migrations - * that are in progress. + * Get feature migration information. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. Check which features + * need to be migrated and the status of any migrations that are in progress. *

                                                      * TIP: This API is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -151,9 +158,11 @@ public CompletableFuture getFeatureUpgradeStatu // ----- Endpoint: migration.post_feature_upgrade /** - * Start the feature migration. Version upgrades sometimes require changes to - * how features store configuration information and data in system indices. This - * API starts the automatic migration process. + * Start the feature migration. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. This API starts the + * automatic migration process. *

                                                      * Some functionality might be temporarily unavailable during the migration * process. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java index 0378f1bf98..e43c823688 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/ElasticsearchMigrationClient.java @@ -68,9 +68,11 @@ public ElasticsearchMigrationClient withTransportOptions(@Nullable TransportOpti // ----- Endpoint: migration.deprecations /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -88,9 +90,11 @@ public DeprecationsResponse deprecations(DeprecationsRequest request) throws IOE } /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -110,9 +114,11 @@ public final DeprecationsResponse deprecations( } /** - * Get deprecation information. Get information about different cluster, node, - * and index level settings that use deprecated features that will be removed or - * changed in the next major version. + * Get deprecation information. + *

                                                      + * Get information about different cluster, node, and index level settings that + * use deprecated features that will be removed or changed in the next major + * version. *

                                                      * TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -130,10 +136,11 @@ public DeprecationsResponse deprecations() throws IOException, ElasticsearchExce // ----- Endpoint: migration.get_feature_upgrade_status /** - * Get feature migration information. Version upgrades sometimes require changes - * to how features store configuration information and data in system indices. - * Check which features need to be migrated and the status of any migrations - * that are in progress. + * Get feature migration information. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. Check which features + * need to be migrated and the status of any migrations that are in progress. *

                                                      * TIP: This API is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. @@ -150,9 +157,11 @@ public GetFeatureUpgradeStatusResponse getFeatureUpgradeStatus() throws IOExcept // ----- Endpoint: migration.post_feature_upgrade /** - * Start the feature migration. Version upgrades sometimes require changes to - * how features store configuration information and data in system indices. This - * API starts the automatic migration process. + * Start the feature migration. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. This API starts the + * automatic migration process. *

                                                      * Some functionality might be temporarily unavailable during the migration * process. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java index 17649e75e1..ebb5a7b2b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/GetFeatureUpgradeStatusRequest.java @@ -50,10 +50,11 @@ // typedef: migration.get_feature_upgrade_status.Request /** - * Get feature migration information. Version upgrades sometimes require changes - * to how features store configuration information and data in system indices. - * Check which features need to be migrated and the status of any migrations - * that are in progress. + * Get feature migration information. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. Check which features + * need to be migrated and the status of any migrations that are in progress. *

                                                      * TIP: This API is designed for indirect use by the Upgrade Assistant. You are * strongly recommended to use the Upgrade Assistant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java index 95e329319a..e9e1a87492 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/PostFeatureUpgradeRequest.java @@ -50,9 +50,11 @@ // typedef: migration.post_feature_upgrade.Request /** - * Start the feature migration. Version upgrades sometimes require changes to - * how features store configuration information and data in system indices. This - * API starts the automatic migration process. + * Start the feature migration. + *

                                                      + * Version upgrades sometimes require changes to how features store + * configuration information and data in system indices. This API starts the + * automatic migration process. *

                                                      * Some functionality might be temporarily unavailable during the migration * process. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java index 28d7763ee3..f8b77bfe2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlAsyncClient.java @@ -854,14 +854,16 @@ public CompletableFuture explainDataFrameAnal // ----- Endpoint: ml.flush_job /** - * Force buffered data to be processed. The flush jobs API is only applicable - * when sending data for analysis using the post data API. Depending on the - * content of the buffer, then it might additionally calculate new results. Both - * flush and close operations are similar, however the flush is more efficient - * if you are expecting to send more data for analysis. When flushing, the job - * remains open and is available to continue analyzing data. A close operation - * additionally prunes and persists the model state to disk and the job must be - * opened again before analyzing further data. + * Force buffered data to be processed. + *

                                                      + * The flush jobs API is only applicable when sending data for analysis using + * the post data API. Depending on the content of the buffer, then it might + * additionally calculate new results. Both flush and close operations are + * similar, however the flush is more efficient if you are expecting to send + * more data for analysis. When flushing, the job remains open and is available + * to continue analyzing data. A close operation additionally prunes and + * persists the model state to disk and the job must be opened again before + * analyzing further data. * * @see Documentation @@ -876,14 +878,16 @@ public CompletableFuture flushJob(FlushJobRequest request) { } /** - * Force buffered data to be processed. The flush jobs API is only applicable - * when sending data for analysis using the post data API. Depending on the - * content of the buffer, then it might additionally calculate new results. Both - * flush and close operations are similar, however the flush is more efficient - * if you are expecting to send more data for analysis. When flushing, the job - * remains open and is available to continue analyzing data. A close operation - * additionally prunes and persists the model state to disk and the job must be - * opened again before analyzing further data. + * Force buffered data to be processed. + *

                                                      + * The flush jobs API is only applicable when sending data for analysis using + * the post data API. Depending on the content of the buffer, then it might + * additionally calculate new results. Both flush and close operations are + * similar, however the flush is more efficient if you are expecting to send + * more data for analysis. When flushing, the job remains open and is available + * to continue analyzing data. A close operation additionally prunes and + * persists the model state to disk and the job must be opened again before + * analyzing further data. * * @param fn * a function that initializes a builder to create the @@ -944,8 +948,9 @@ public final CompletableFuture forecast( // ----- Endpoint: ml.get_buckets /** - * Get anomaly detection job results for buckets. The API presents a - * chronological view of the records, grouped by bucket. + * Get anomaly detection job results for buckets. + *

                                                      + * The API presents a chronological view of the records, grouped by bucket. * * @see Documentation @@ -960,8 +965,9 @@ public CompletableFuture getBuckets(GetBucketsRequest reques } /** - * Get anomaly detection job results for buckets. The API presents a - * chronological view of the records, grouped by bucket. + * Get anomaly detection job results for buckets. + *

                                                      + * The API presents a chronological view of the records, grouped by bucket. * * @param fn * a function that initializes a builder to create the @@ -1091,9 +1097,11 @@ public final CompletableFuture getCategories( // ----- Endpoint: ml.get_data_frame_analytics /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @see Documentation @@ -1109,9 +1117,11 @@ public CompletableFuture getDataFrameAnalytics( } /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @param fn * a function that initializes a builder to create the @@ -1127,9 +1137,11 @@ public final CompletableFuture getDataFrameAnalyt } /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @see Documentation @@ -1191,11 +1203,12 @@ public CompletableFuture getDataFrameAnalyti // ----- Endpoint: ml.get_datafeed_stats /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1213,11 +1226,12 @@ public CompletableFuture getDatafeedStats(GetDatafeedS } /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1236,11 +1250,12 @@ public final CompletableFuture getDatafeedStats( } /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1258,11 +1273,12 @@ public CompletableFuture getDatafeedStats() { // ----- Endpoint: ml.get_datafeeds /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @see getDatafeeds(GetDatafeedsRequest } /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @param fn @@ -1299,11 +1316,12 @@ public final CompletableFuture getDatafeeds( } /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @see getDatafeeds() { // ----- Endpoint: ml.get_filters /** - * Get filters. You can get a single filter or all filters. + * Get filters. + *

                                                      + * You can get a single filter or all filters. * * @see Documentation @@ -1334,7 +1354,9 @@ public CompletableFuture getFilters(GetFiltersRequest reques } /** - * Get filters. You can get a single filter or all filters. + * Get filters. + *

                                                      + * You can get a single filter or all filters. * * @param fn * a function that initializes a builder to create the @@ -1350,7 +1372,9 @@ public final CompletableFuture getFilters( } /** - * Get filters. You can get a single filter or all filters. + * Get filters. + *

                                                      + * You can get a single filter or all filters. * * @see Documentation @@ -1365,9 +1389,10 @@ public CompletableFuture getFilters() { // ----- Endpoint: ml.get_influencers /** - * Get anomaly detection job results for influencers. Influencers are the - * entities that have contributed to, or are to blame for, the anomalies. - * Influencer results are available only if an + * Get anomaly detection job results for influencers. + *

                                                      + * Influencers are the entities that have contributed to, or are to blame for, + * the anomalies. Influencer results are available only if an * influencer_field_name is specified in the job configuration. * * @see getInfluencers(GetInfluencersRe } /** - * Get anomaly detection job results for influencers. Influencers are the - * entities that have contributed to, or are to blame for, the anomalies. - * Influencer results are available only if an + * Get anomaly detection job results for influencers. + *

                                                      + * Influencers are the entities that have contributed to, or are to blame for, + * the anomalies. Influencer results are available only if an * influencer_field_name is specified in the job configuration. * * @param fn @@ -1450,12 +1476,13 @@ public CompletableFuture getJobStats() { // ----- Endpoint: ml.get_jobs /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @see Documentation @@ -1470,12 +1497,13 @@ public CompletableFuture getJobs(GetJobsRequest request) { } /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @param fn * a function that initializes a builder to create the @@ -1491,12 +1519,13 @@ public final CompletableFuture getJobs( } /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @see Documentation @@ -1511,9 +1540,11 @@ public CompletableFuture getJobs() { // ----- Endpoint: ml.get_memory_stats /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @see Documentation @@ -1528,9 +1559,11 @@ public CompletableFuture getMemoryStats(GetMemoryStatsRe } /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @param fn * a function that initializes a builder to create the @@ -1546,9 +1579,11 @@ public final CompletableFuture getMemoryStats( } /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @see Documentation @@ -1699,15 +1734,17 @@ public final CompletableFuture getOverallBuckets( // ----- Endpoint: ml.get_records /** - * Get anomaly records for an anomaly detection job. Records contain the - * detailed analytical results. They describe the anomalous activity that has - * been identified in the input data based on the detector configuration. There - * can be many anomaly records depending on the characteristics and size of the - * input data. In practice, there are often too many to be able to manually - * process them. The machine learning features therefore perform a sophisticated - * aggregation of the anomaly records into buckets. The number of record results - * depends on the number of anomalies found in each bucket, which relates to the - * number of time series being modeled and the number of detectors. + * Get anomaly records for an anomaly detection job. + *

                                                      + * Records contain the detailed analytical results. They describe the anomalous + * activity that has been identified in the input data based on the detector + * configuration. There can be many anomaly records depending on the + * characteristics and size of the input data. In practice, there are often too + * many to be able to manually process them. The machine learning features + * therefore perform a sophisticated aggregation of the anomaly records into + * buckets. The number of record results depends on the number of anomalies + * found in each bucket, which relates to the number of time series being + * modeled and the number of detectors. * * @see Documentation @@ -1722,15 +1759,17 @@ public CompletableFuture getRecords(GetRecordsRequest reques } /** - * Get anomaly records for an anomaly detection job. Records contain the - * detailed analytical results. They describe the anomalous activity that has - * been identified in the input data based on the detector configuration. There - * can be many anomaly records depending on the characteristics and size of the - * input data. In practice, there are often too many to be able to manually - * process them. The machine learning features therefore perform a sophisticated - * aggregation of the anomaly records into buckets. The number of record results - * depends on the number of anomalies found in each bucket, which relates to the - * number of time series being modeled and the number of detectors. + * Get anomaly records for an anomaly detection job. + *

                                                      + * Records contain the detailed analytical results. They describe the anomalous + * activity that has been identified in the input data based on the detector + * configuration. There can be many anomaly records depending on the + * characteristics and size of the input data. In practice, there are often too + * many to be able to manually process them. The machine learning features + * therefore perform a sophisticated aggregation of the anomaly records into + * buckets. The number of record results depends on the number of anomalies + * found in each bucket, which relates to the number of time series being + * modeled and the number of detectors. * * @param fn * a function that initializes a builder to create the @@ -1794,9 +1833,11 @@ public CompletableFuture getTrainedModels() { // ----- Endpoint: ml.get_trained_models_stats /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @see Documentation @@ -1812,9 +1853,11 @@ public CompletableFuture getTrainedModelsStats( } /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @param fn * a function that initializes a builder to create the @@ -1830,9 +1873,11 @@ public final CompletableFuture getTrainedModelsSt } /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @see Documentation @@ -1880,13 +1925,14 @@ public final CompletableFuture inferTrainedModel( // ----- Endpoint: ml.info /** - * Get machine learning information. Get defaults and limits used by machine - * learning. This endpoint is designed to be used by a user interface that needs - * to fully understand machine learning configurations where some options are - * not specified, meaning that the defaults should be used. This endpoint may be - * used to find out what those defaults are. It also provides information about - * the maximum size of machine learning jobs that could run in the current - * cluster configuration. + * Get machine learning information. + *

                                                      + * Get defaults and limits used by machine learning. This endpoint is designed + * to be used by a user interface that needs to fully understand machine + * learning configurations where some options are not specified, meaning that + * the defaults should be used. This endpoint may be used to find out what those + * defaults are. It also provides information about the maximum size of machine + * learning jobs that could run in the current cluster configuration. * * @see Documentation @@ -2021,8 +2067,9 @@ public final CompletableFuture postData( // ----- Endpoint: ml.preview_data_frame_analytics /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @see Documentation @@ -2038,8 +2085,9 @@ public CompletableFuture previewDataFrameAnal } /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @param fn * a function that initializes a builder to create the @@ -2055,8 +2103,9 @@ public final CompletableFuture previewDataFra } /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @see Documentation @@ -2071,16 +2120,18 @@ public CompletableFuture previewDataFrameAnal // ----- Endpoint: ml.preview_datafeed /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @see Documentation @@ -2099,16 +2150,18 @@ public CompletableFuture> preview } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @param fn * a function that initializes a builder to create the @@ -2146,16 +2199,18 @@ public final CompletableFuture> previewDatafeed( } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @see Documentation @@ -2174,16 +2229,18 @@ public CompletableFuture> preview } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @param fn * a function that initializes a builder to create the @@ -2267,10 +2324,12 @@ public final CompletableFuture putCalendarJob( // ----- Endpoint: ml.put_data_frame_analytics /** - * Create a data frame analytics job. This API creates a data frame analytics - * job that performs an analysis on the source indices and stores the outcome in - * a destination index. By default, the query used in the source configuration - * is {"match_all": {}}. + * Create a data frame analytics job. + *

                                                      + * This API creates a data frame analytics job that performs an analysis on the + * source indices and stores the outcome in a destination index. By default, the + * query used in the source configuration is + * {"match_all": {}}. *

                                                      * If the destination index does not exist, it is created automatically when you * start the job. @@ -2293,10 +2352,12 @@ public CompletableFuture putDataFrameAnalytics( } /** - * Create a data frame analytics job. This API creates a data frame analytics - * job that performs an analysis on the source indices and stores the outcome in - * a destination index. By default, the query used in the source configuration - * is {"match_all": {}}. + * Create a data frame analytics job. + *

                                                      + * This API creates a data frame analytics job that performs an analysis on the + * source indices and stores the outcome in a destination index. By default, the + * query used in the source configuration is + * {"match_all": {}}. *

                                                      * If the destination index does not exist, it is created automatically when you * start the job. @@ -2321,11 +2382,13 @@ public final CompletableFuture putDataFrameAnalyt // ----- Endpoint: ml.put_datafeed /** - * Create a datafeed. Datafeeds retrieve data from Elasticsearch for analysis by - * an anomaly detection job. You can associate only one datafeed with each - * anomaly detection job. The datafeed contains a query that runs at a defined - * interval (frequency). If you are concerned about delayed data, - * you can add a delay + * Create a datafeed. + *

                                                      + * Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + * detection job. You can associate only one datafeed with each anomaly + * detection job. The datafeed contains a query that runs at a defined interval + * (frequency). If you are concerned about delayed data, you can + * add a delay * (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": * {"boost": 1}}`. *

                                                      @@ -2350,11 +2413,13 @@ public CompletableFuture putDatafeed(PutDatafeedRequest req } /** - * Create a datafeed. Datafeeds retrieve data from Elasticsearch for analysis by - * an anomaly detection job. You can associate only one datafeed with each - * anomaly detection job. The datafeed contains a query that runs at a defined - * interval (frequency). If you are concerned about delayed data, - * you can add a delay + * Create a datafeed. + *

                                                      + * Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + * detection job. You can associate only one datafeed with each anomaly + * detection job. The datafeed contains a query that runs at a defined interval + * (frequency). If you are concerned about delayed data, you can + * add a delay * (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": * {"boost": 1}}`. *

                                                      @@ -2382,8 +2447,10 @@ public final CompletableFuture putDatafeed( // ----- Endpoint: ml.put_filter /** - * Create a filter. A filter contains a list of strings. It can be used by one - * or more anomaly detection jobs. Specifically, filters are referenced in the + * Create a filter. + *

                                                      + * A filter contains a list of strings. It can be used by one or more anomaly + * detection jobs. Specifically, filters are referenced in the * custom_rules property of detector configuration objects. * * @see putFilter(PutFilterRequest request) } /** - * Create a filter. A filter contains a list of strings. It can be used by one - * or more anomaly detection jobs. Specifically, filters are referenced in the + * Create a filter. + *

                                                      + * A filter contains a list of strings. It can be used by one or more anomaly + * detection jobs. Specifically, filters are referenced in the * custom_rules property of detector configuration objects. * * @param fn @@ -2462,8 +2531,10 @@ public final CompletableFuture putJob( // ----- Endpoint: ml.put_trained_model /** - * Create a trained model. Enable you to supply a trained model that is not - * created by data frame analytics. + * Create a trained model. + *

                                                      + * Enable you to supply a trained model that is not created by data frame + * analytics. * * @see Documentation @@ -2478,8 +2549,10 @@ public CompletableFuture putTrainedModel(PutTrainedMode } /** - * Create a trained model. Enable you to supply a trained model that is not - * created by data frame analytics. + * Create a trained model. + *

                                                      + * Enable you to supply a trained model that is not created by data frame + * analytics. * * @param fn * a function that initializes a builder to create the @@ -2497,19 +2570,21 @@ public final CompletableFuture putTrainedModel( // ----- Endpoint: ml.put_trained_model_alias /** - * Create or update a trained model alias. A trained model alias is a logical - * name used to reference a single trained model. You can use aliases instead of - * trained model identifiers to make it easier to reference your models. For - * example, you can use aliases in inference aggregations and processors. An - * alias must be unique and refer to only a single trained model. However, you - * can have multiple aliases for each trained model. If you use this API to - * update an alias such that it references a different trained model ID and the - * model uses a different type of data frame analytics, an error occurs. For - * example, this situation occurs if you have a trained model for regression - * analysis and a trained model for classification analysis; you cannot reassign - * an alias from one type of trained model to another. If you use this API to - * update an alias and there are very few input fields in common between the old - * and new trained models for the model alias, the API returns a warning. + * Create or update a trained model alias. + *

                                                      + * A trained model alias is a logical name used to reference a single trained + * model. You can use aliases instead of trained model identifiers to make it + * easier to reference your models. For example, you can use aliases in + * inference aggregations and processors. An alias must be unique and refer to + * only a single trained model. However, you can have multiple aliases for each + * trained model. If you use this API to update an alias such that it references + * a different trained model ID and the model uses a different type of data + * frame analytics, an error occurs. For example, this situation occurs if you + * have a trained model for regression analysis and a trained model for + * classification analysis; you cannot reassign an alias from one type of + * trained model to another. If you use this API to update an alias and there + * are very few input fields in common between the old and new trained models + * for the model alias, the API returns a warning. * * @see Documentation @@ -2524,19 +2599,21 @@ public CompletableFuture putTrainedModelAlias(PutT } /** - * Create or update a trained model alias. A trained model alias is a logical - * name used to reference a single trained model. You can use aliases instead of - * trained model identifiers to make it easier to reference your models. For - * example, you can use aliases in inference aggregations and processors. An - * alias must be unique and refer to only a single trained model. However, you - * can have multiple aliases for each trained model. If you use this API to - * update an alias such that it references a different trained model ID and the - * model uses a different type of data frame analytics, an error occurs. For - * example, this situation occurs if you have a trained model for regression - * analysis and a trained model for classification analysis; you cannot reassign - * an alias from one type of trained model to another. If you use this API to - * update an alias and there are very few input fields in common between the old - * and new trained models for the model alias, the API returns a warning. + * Create or update a trained model alias. + *

                                                      + * A trained model alias is a logical name used to reference a single trained + * model. You can use aliases instead of trained model identifiers to make it + * easier to reference your models. For example, you can use aliases in + * inference aggregations and processors. An alias must be unique and refer to + * only a single trained model. However, you can have multiple aliases for each + * trained model. If you use this API to update an alias such that it references + * a different trained model ID and the model uses a different type of data + * frame analytics, an error occurs. For example, this situation occurs if you + * have a trained model for regression analysis and a trained model for + * classification analysis; you cannot reassign an alias from one type of + * trained model to another. If you use this API to update an alias and there + * are very few input fields in common between the old and new trained models + * for the model alias, the API returns a warning. * * @param fn * a function that initializes a builder to create the @@ -2588,10 +2665,11 @@ public final CompletableFuture putTrained // ----- Endpoint: ml.put_trained_model_vocabulary /** - * Create a trained model vocabulary. This API is supported only for natural - * language processing (NLP) models. The vocabulary is stored in the index as - * described in inference_config.*.vocabulary of the trained model - * definition. + * Create a trained model vocabulary. + *

                                                      + * This API is supported only for natural language processing (NLP) models. The + * vocabulary is stored in the index as described in + * inference_config.*.vocabulary of the trained model definition. * * @see Documentation @@ -2607,10 +2685,11 @@ public CompletableFuture putTrainedModelVocab } /** - * Create a trained model vocabulary. This API is supported only for natural - * language processing (NLP) models. The vocabulary is stored in the index as - * described in inference_config.*.vocabulary of the trained model - * definition. + * Create a trained model vocabulary. + *

                                                      + * This API is supported only for natural language processing (NLP) models. The + * vocabulary is stored in the index as described in + * inference_config.*.vocabulary of the trained model definition. * * @param fn * a function that initializes a builder to create the @@ -2628,10 +2707,11 @@ public final CompletableFuture putTrainedMode // ----- Endpoint: ml.reset_job /** - * Reset an anomaly detection job. All model state and results are deleted. The - * job is ready to start over as if it had just been created. It is not - * currently possible to reset multiple jobs using wildcards or a comma - * separated list. + * Reset an anomaly detection job. + *

                                                      + * All model state and results are deleted. The job is ready to start over as if + * it had just been created. It is not currently possible to reset multiple jobs + * using wildcards or a comma separated list. * * @see Documentation @@ -2646,10 +2726,11 @@ public CompletableFuture resetJob(ResetJobRequest request) { } /** - * Reset an anomaly detection job. All model state and results are deleted. The - * job is ready to start over as if it had just been created. It is not - * currently possible to reset multiple jobs using wildcards or a comma - * separated list. + * Reset an anomaly detection job. + *

                                                      + * All model state and results are deleted. The job is ready to start over as if + * it had just been created. It is not currently possible to reset multiple jobs + * using wildcards or a comma separated list. * * @param fn * a function that initializes a builder to create the @@ -2667,14 +2748,15 @@ public final CompletableFuture resetJob( // ----- Endpoint: ml.revert_model_snapshot /** - * Revert to a snapshot. The machine learning features react quickly to - * anomalous input, learning new behaviors in data. Highly anomalous input - * increases the variance in the models whilst the system learns whether this is - * a new step-change in behavior or a one-off event. In the case where this - * anomalous input is known to be a one-off, then it might be appropriate to - * reset the model state to a time before this event. For example, you might - * consider reverting to a saved snapshot after Black Friday or a critical - * system failure. + * Revert to a snapshot. + *

                                                      + * The machine learning features react quickly to anomalous input, learning new + * behaviors in data. Highly anomalous input increases the variance in the + * models whilst the system learns whether this is a new step-change in behavior + * or a one-off event. In the case where this anomalous input is known to be a + * one-off, then it might be appropriate to reset the model state to a time + * before this event. For example, you might consider reverting to a saved + * snapshot after Black Friday or a critical system failure. * * @see Documentation @@ -2689,14 +2771,15 @@ public CompletableFuture revertModelSnapshot(Revert } /** - * Revert to a snapshot. The machine learning features react quickly to - * anomalous input, learning new behaviors in data. Highly anomalous input - * increases the variance in the models whilst the system learns whether this is - * a new step-change in behavior or a one-off event. In the case where this - * anomalous input is known to be a one-off, then it might be appropriate to - * reset the model state to a time before this event. For example, you might - * consider reverting to a saved snapshot after Black Friday or a critical - * system failure. + * Revert to a snapshot. + *

                                                      + * The machine learning features react quickly to anomalous input, learning new + * behaviors in data. Highly anomalous input increases the variance in the + * models whilst the system learns whether this is a new step-change in behavior + * or a one-off event. In the case where this anomalous input is known to be a + * one-off, then it might be appropriate to reset the model state to a time + * before this event. For example, you might consider reverting to a saved + * snapshot after Black Friday or a critical system failure. * * @param fn * a function that initializes a builder to create the @@ -2714,17 +2797,19 @@ public final CompletableFuture revertModelSnapshot( // ----- Endpoint: ml.set_upgrade_mode /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @see Documentation @@ -2739,17 +2824,19 @@ public CompletableFuture setUpgradeMode(SetUpgradeModeRe } /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @param fn * a function that initializes a builder to create the @@ -2765,17 +2852,19 @@ public final CompletableFuture setUpgradeMode( } /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @see Documentation @@ -2790,10 +2879,12 @@ public CompletableFuture setUpgradeMode() { // ----- Endpoint: ml.start_data_frame_analytics /** - * Start a data frame analytics job. A data frame analytics job can be started - * and stopped multiple times throughout its lifecycle. If the destination index - * does not exist, it is created automatically the first time you start the data - * frame analytics job. The index.number_of_shards and + * Start a data frame analytics job. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. If the destination index does not exist, it is + * created automatically the first time you start the data frame analytics job. + * The index.number_of_shards and * index.number_of_replicas settings for the destination index are * copied from the source index. If there are multiple source indices, the * destination index copies the highest setting values. The mappings for the @@ -2816,10 +2907,12 @@ public CompletableFuture startDataFrameAnalytic } /** - * Start a data frame analytics job. A data frame analytics job can be started - * and stopped multiple times throughout its lifecycle. If the destination index - * does not exist, it is created automatically the first time you start the data - * frame analytics job. The index.number_of_shards and + * Start a data frame analytics job. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. If the destination index does not exist, it is + * created automatically the first time you start the data frame analytics job. + * The index.number_of_shards and * index.number_of_replicas settings for the destination index are * copied from the source index. If there are multiple source indices, the * destination index copies the highest setting values. The mappings for the @@ -2909,8 +3002,9 @@ public final CompletableFuture startDatafeed( // ----- Endpoint: ml.start_trained_model_deployment /** - * Start a trained model deployment. It allocates the model to every machine - * learning node. + * Start a trained model deployment. + *

                                                      + * It allocates the model to every machine learning node. * * @see Documentation @@ -2926,8 +3020,9 @@ public CompletableFuture startTrainedModelD } /** - * Start a trained model deployment. It allocates the model to every machine - * learning node. + * Start a trained model deployment. + *

                                                      + * It allocates the model to every machine learning node. * * @param fn * a function that initializes a builder to create the @@ -2945,8 +3040,10 @@ public final CompletableFuture startTrained // ----- Endpoint: ml.stop_data_frame_analytics /** - * Stop data frame analytics jobs. A data frame analytics job can be started and - * stopped multiple times throughout its lifecycle. + * Stop data frame analytics jobs. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. * * @see Documentation @@ -2962,8 +3059,10 @@ public CompletableFuture stopDataFrameAnalytics( } /** - * Stop data frame analytics jobs. A data frame analytics job can be started and - * stopped multiple times throughout its lifecycle. + * Stop data frame analytics jobs. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. * * @param fn * a function that initializes a builder to create the @@ -2981,9 +3080,10 @@ public final CompletableFuture stopDataFrameAnal // ----- Endpoint: ml.stop_datafeed /** - * Stop datafeeds. A datafeed that is stopped ceases to retrieve data from - * Elasticsearch. A datafeed can be started and stopped multiple times - * throughout its lifecycle. + * Stop datafeeds. + *

                                                      + * A datafeed that is stopped ceases to retrieve data from Elasticsearch. A + * datafeed can be started and stopped multiple times throughout its lifecycle. * * @see Documentation @@ -2998,9 +3098,10 @@ public CompletableFuture stopDatafeed(StopDatafeedRequest } /** - * Stop datafeeds. A datafeed that is stopped ceases to retrieve data from - * Elasticsearch. A datafeed can be started and stopped multiple times - * throughout its lifecycle. + * Stop datafeeds. + *

                                                      + * A datafeed that is stopped ceases to retrieve data from Elasticsearch. A + * datafeed can be started and stopped multiple times throughout its lifecycle. * * @param fn * a function that initializes a builder to create the @@ -3086,11 +3187,13 @@ public final CompletableFuture updateDataFrame // ----- Endpoint: ml.update_datafeed /** - * Update a datafeed. You must stop and start the datafeed for the changes to be - * applied. When Elasticsearch security features are enabled, your datafeed - * remembers which roles the user who updated it had at the time of the update - * and runs the query using those same roles. If you provide secondary - * authorization headers, those credentials are used instead. + * Update a datafeed. + *

                                                      + * You must stop and start the datafeed for the changes to be applied. When + * Elasticsearch security features are enabled, your datafeed remembers which + * roles the user who updated it had at the time of the update and runs the + * query using those same roles. If you provide secondary authorization headers, + * those credentials are used instead. * * @see Documentation @@ -3105,11 +3208,13 @@ public CompletableFuture updateDatafeed(UpdateDatafeedRe } /** - * Update a datafeed. You must stop and start the datafeed for the changes to be - * applied. When Elasticsearch security features are enabled, your datafeed - * remembers which roles the user who updated it had at the time of the update - * and runs the query using those same roles. If you provide secondary - * authorization headers, those credentials are used instead. + * Update a datafeed. + *

                                                      + * You must stop and start the datafeed for the changes to be applied. When + * Elasticsearch security features are enabled, your datafeed remembers which + * roles the user who updated it had at the time of the update and runs the + * query using those same roles. If you provide secondary authorization headers, + * those credentials are used instead. * * @param fn * a function that initializes a builder to create the @@ -3127,8 +3232,10 @@ public final CompletableFuture updateDatafeed( // ----- Endpoint: ml.update_filter /** - * Update a filter. Updates the description of a filter, adds items, or removes - * items from the list. + * Update a filter. + *

                                                      + * Updates the description of a filter, adds items, or removes items from the + * list. * * @see Documentation @@ -3143,8 +3250,10 @@ public CompletableFuture updateFilter(UpdateFilterRequest } /** - * Update a filter. Updates the description of a filter, adds items, or removes - * items from the list. + * Update a filter. + *

                                                      + * Updates the description of a filter, adds items, or removes items from the + * list. * * @param fn * a function that initializes a builder to create the @@ -3162,8 +3271,9 @@ public final CompletableFuture updateFilter( // ----- Endpoint: ml.update_job /** - * Update an anomaly detection job. Updates certain properties of an anomaly - * detection job. + * Update an anomaly detection job. + *

                                                      + * Updates certain properties of an anomaly detection job. * * @see Documentation @@ -3178,8 +3288,9 @@ public CompletableFuture updateJob(UpdateJobRequest request) } /** - * Update an anomaly detection job. Updates certain properties of an anomaly - * detection job. + * Update an anomaly detection job. + *

                                                      + * Updates certain properties of an anomaly detection job. * * @param fn * a function that initializes a builder to create the @@ -3197,7 +3308,9 @@ public final CompletableFuture updateJob( // ----- Endpoint: ml.update_model_snapshot /** - * Update a snapshot. Updates certain properties of a snapshot. + * Update a snapshot. + *

                                                      + * Updates certain properties of a snapshot. * * @see Documentation @@ -3212,7 +3325,9 @@ public CompletableFuture updateModelSnapshot(Update } /** - * Update a snapshot. Updates certain properties of a snapshot. + * Update a snapshot. + *

                                                      + * Updates certain properties of a snapshot. * * @param fn * a function that initializes a builder to create the @@ -3264,14 +3379,16 @@ public final CompletableFuture updateTrain // ----- Endpoint: ml.upgrade_job_snapshot /** - * Upgrade a snapshot. Upgrade an anomaly detection model snapshot to the latest - * major version. Over time, older snapshot formats are deprecated and removed. - * Anomaly detection jobs support only snapshots that are from the current or - * previous major version. This API provides a means to upgrade a snapshot to - * the current major version. This aids in preparing the cluster for an upgrade - * to the next major version. Only one snapshot per anomaly detection job can be - * upgraded at a time and the upgraded snapshot cannot be the current snapshot - * of the anomaly detection job. + * Upgrade a snapshot. + *

                                                      + * Upgrade an anomaly detection model snapshot to the latest major version. Over + * time, older snapshot formats are deprecated and removed. Anomaly detection + * jobs support only snapshots that are from the current or previous major + * version. This API provides a means to upgrade a snapshot to the current major + * version. This aids in preparing the cluster for an upgrade to the next major + * version. Only one snapshot per anomaly detection job can be upgraded at a + * time and the upgraded snapshot cannot be the current snapshot of the anomaly + * detection job. * * @see Documentation @@ -3286,14 +3403,16 @@ public CompletableFuture upgradeJobSnapshot(UpgradeJ } /** - * Upgrade a snapshot. Upgrade an anomaly detection model snapshot to the latest - * major version. Over time, older snapshot formats are deprecated and removed. - * Anomaly detection jobs support only snapshots that are from the current or - * previous major version. This API provides a means to upgrade a snapshot to - * the current major version. This aids in preparing the cluster for an upgrade - * to the next major version. Only one snapshot per anomaly detection job can be - * upgraded at a time and the upgraded snapshot cannot be the current snapshot - * of the anomaly detection job. + * Upgrade a snapshot. + *

                                                      + * Upgrade an anomaly detection model snapshot to the latest major version. Over + * time, older snapshot formats are deprecated and removed. Anomaly detection + * jobs support only snapshots that are from the current or previous major + * version. This API provides a means to upgrade a snapshot to the current major + * version. This aids in preparing the cluster for an upgrade to the next major + * version. Only one snapshot per anomaly detection job can be upgraded at a + * time and the upgraded snapshot cannot be the current snapshot of the anomaly + * detection job. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java index 56e89c1819..b103746877 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ElasticsearchMlClient.java @@ -880,14 +880,16 @@ public ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics() throws IOEx // ----- Endpoint: ml.flush_job /** - * Force buffered data to be processed. The flush jobs API is only applicable - * when sending data for analysis using the post data API. Depending on the - * content of the buffer, then it might additionally calculate new results. Both - * flush and close operations are similar, however the flush is more efficient - * if you are expecting to send more data for analysis. When flushing, the job - * remains open and is available to continue analyzing data. A close operation - * additionally prunes and persists the model state to disk and the job must be - * opened again before analyzing further data. + * Force buffered data to be processed. + *

                                                      + * The flush jobs API is only applicable when sending data for analysis using + * the post data API. Depending on the content of the buffer, then it might + * additionally calculate new results. Both flush and close operations are + * similar, however the flush is more efficient if you are expecting to send + * more data for analysis. When flushing, the job remains open and is available + * to continue analyzing data. A close operation additionally prunes and + * persists the model state to disk and the job must be opened again before + * analyzing further data. * * @see Documentation @@ -902,14 +904,16 @@ public FlushJobResponse flushJob(FlushJobRequest request) throws IOException, El } /** - * Force buffered data to be processed. The flush jobs API is only applicable - * when sending data for analysis using the post data API. Depending on the - * content of the buffer, then it might additionally calculate new results. Both - * flush and close operations are similar, however the flush is more efficient - * if you are expecting to send more data for analysis. When flushing, the job - * remains open and is available to continue analyzing data. A close operation - * additionally prunes and persists the model state to disk and the job must be - * opened again before analyzing further data. + * Force buffered data to be processed. + *

                                                      + * The flush jobs API is only applicable when sending data for analysis using + * the post data API. Depending on the content of the buffer, then it might + * additionally calculate new results. Both flush and close operations are + * similar, however the flush is more efficient if you are expecting to send + * more data for analysis. When flushing, the job remains open and is available + * to continue analyzing data. A close operation additionally prunes and + * persists the model state to disk and the job must be opened again before + * analyzing further data. * * @param fn * a function that initializes a builder to create the @@ -970,8 +974,9 @@ public final ForecastResponse forecast(Function + * The API presents a chronological view of the records, grouped by bucket. * * @see Documentation @@ -986,8 +991,9 @@ public GetBucketsResponse getBuckets(GetBucketsRequest request) throws IOExcepti } /** - * Get anomaly detection job results for buckets. The API presents a - * chronological view of the records, grouped by bucket. + * Get anomaly detection job results for buckets. + *

                                                      + * The API presents a chronological view of the records, grouped by bucket. * * @param fn * a function that initializes a builder to create the @@ -1122,9 +1128,11 @@ public final GetCategoriesResponse getCategories( // ----- Endpoint: ml.get_data_frame_analytics /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @see Documentation @@ -1140,9 +1148,11 @@ public GetDataFrameAnalyticsResponse getDataFrameAnalytics(GetDataFrameAnalytics } /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @param fn * a function that initializes a builder to create the @@ -1159,9 +1169,11 @@ public final GetDataFrameAnalyticsResponse getDataFrameAnalytics( } /** - * Get data frame analytics job configuration info. You can get information for - * multiple data frame analytics jobs in a single API request by using a - * comma-separated list of data frame analytics jobs or a wildcard expression. + * Get data frame analytics job configuration info. + *

                                                      + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @see Documentation @@ -1224,11 +1236,12 @@ public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats() throws IO // ----- Endpoint: ml.get_datafeed_stats /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1247,11 +1260,12 @@ public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request } /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1271,11 +1285,12 @@ public final GetDatafeedStatsResponse getDatafeedStats( } /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. @@ -1293,11 +1308,12 @@ public GetDatafeedStatsResponse getDatafeedStats() throws IOException, Elasticse // ----- Endpoint: ml.get_datafeeds /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @see _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @param fn @@ -1335,11 +1352,12 @@ public final GetDatafeedsResponse getDatafeeds( } /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @see + * You can get a single filter or all filters. * * @see Documentation @@ -1370,7 +1390,9 @@ public GetFiltersResponse getFilters(GetFiltersRequest request) throws IOExcepti } /** - * Get filters. You can get a single filter or all filters. + * Get filters. + *

                                                      + * You can get a single filter or all filters. * * @param fn * a function that initializes a builder to create the @@ -1386,7 +1408,9 @@ public final GetFiltersResponse getFilters(Function + * You can get a single filter or all filters. * * @see Documentation @@ -1401,9 +1425,10 @@ public GetFiltersResponse getFilters() throws IOException, ElasticsearchExceptio // ----- Endpoint: ml.get_influencers /** - * Get anomaly detection job results for influencers. Influencers are the - * entities that have contributed to, or are to blame for, the anomalies. - * Influencer results are available only if an + * Get anomaly detection job results for influencers. + *

                                                      + * Influencers are the entities that have contributed to, or are to blame for, + * the anomalies. Influencer results are available only if an * influencer_field_name is specified in the job configuration. * * @see + * Influencers are the entities that have contributed to, or are to blame for, + * the anomalies. Influencer results are available only if an * influencer_field_name is specified in the job configuration. * * @param fn @@ -1489,12 +1515,13 @@ public GetJobStatsResponse getJobStats() throws IOException, ElasticsearchExcept // ----- Endpoint: ml.get_jobs /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @see Documentation @@ -1509,12 +1536,13 @@ public GetJobsResponse getJobs(GetJobsRequest request) throws IOException, Elast } /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @param fn * a function that initializes a builder to create the @@ -1530,12 +1558,13 @@ public final GetJobsResponse getJobs(Function_all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @see Documentation @@ -1550,9 +1579,11 @@ public GetJobsResponse getJobs() throws IOException, ElasticsearchException { // ----- Endpoint: ml.get_memory_stats /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @see Documentation @@ -1568,9 +1599,11 @@ public GetMemoryStatsResponse getMemoryStats(GetMemoryStatsRequest request) } /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @param fn * a function that initializes a builder to create the @@ -1587,9 +1620,11 @@ public final GetMemoryStatsResponse getMemoryStats( } /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @see Documentation @@ -1745,15 +1780,17 @@ public final GetOverallBucketsResponse getOverallBuckets( // ----- Endpoint: ml.get_records /** - * Get anomaly records for an anomaly detection job. Records contain the - * detailed analytical results. They describe the anomalous activity that has - * been identified in the input data based on the detector configuration. There - * can be many anomaly records depending on the characteristics and size of the - * input data. In practice, there are often too many to be able to manually - * process them. The machine learning features therefore perform a sophisticated - * aggregation of the anomaly records into buckets. The number of record results - * depends on the number of anomalies found in each bucket, which relates to the - * number of time series being modeled and the number of detectors. + * Get anomaly records for an anomaly detection job. + *

                                                      + * Records contain the detailed analytical results. They describe the anomalous + * activity that has been identified in the input data based on the detector + * configuration. There can be many anomaly records depending on the + * characteristics and size of the input data. In practice, there are often too + * many to be able to manually process them. The machine learning features + * therefore perform a sophisticated aggregation of the anomaly records into + * buckets. The number of record results depends on the number of anomalies + * found in each bucket, which relates to the number of time series being + * modeled and the number of detectors. * * @see Documentation @@ -1768,15 +1805,17 @@ public GetRecordsResponse getRecords(GetRecordsRequest request) throws IOExcepti } /** - * Get anomaly records for an anomaly detection job. Records contain the - * detailed analytical results. They describe the anomalous activity that has - * been identified in the input data based on the detector configuration. There - * can be many anomaly records depending on the characteristics and size of the - * input data. In practice, there are often too many to be able to manually - * process them. The machine learning features therefore perform a sophisticated - * aggregation of the anomaly records into buckets. The number of record results - * depends on the number of anomalies found in each bucket, which relates to the - * number of time series being modeled and the number of detectors. + * Get anomaly records for an anomaly detection job. + *

                                                      + * Records contain the detailed analytical results. They describe the anomalous + * activity that has been identified in the input data based on the detector + * configuration. There can be many anomaly records depending on the + * characteristics and size of the input data. In practice, there are often too + * many to be able to manually process them. The machine learning features + * therefore perform a sophisticated aggregation of the anomaly records into + * buckets. The number of record results depends on the number of anomalies + * found in each bucket, which relates to the number of time series being + * modeled and the number of detectors. * * @param fn * a function that initializes a builder to create the @@ -1842,9 +1881,11 @@ public GetTrainedModelsResponse getTrainedModels() throws IOException, Elasticse // ----- Endpoint: ml.get_trained_models_stats /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @see Documentation @@ -1860,9 +1901,11 @@ public GetTrainedModelsStatsResponse getTrainedModelsStats(GetTrainedModelsStats } /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @param fn * a function that initializes a builder to create the @@ -1879,9 +1922,11 @@ public final GetTrainedModelsStatsResponse getTrainedModelsStats( } /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @see Documentation @@ -1931,13 +1976,14 @@ public final InferTrainedModelResponse inferTrainedModel( // ----- Endpoint: ml.info /** - * Get machine learning information. Get defaults and limits used by machine - * learning. This endpoint is designed to be used by a user interface that needs - * to fully understand machine learning configurations where some options are - * not specified, meaning that the defaults should be used. This endpoint may be - * used to find out what those defaults are. It also provides information about - * the maximum size of machine learning jobs that could run in the current - * cluster configuration. + * Get machine learning information. + *

                                                      + * Get defaults and limits used by machine learning. This endpoint is designed + * to be used by a user interface that needs to fully understand machine + * learning configurations where some options are not specified, meaning that + * the defaults should be used. This endpoint may be used to find out what those + * defaults are. It also provides information about the maximum size of machine + * learning jobs that could run in the current cluster configuration. * * @see Documentation @@ -2075,8 +2121,9 @@ public final PostDataResponse postData( // ----- Endpoint: ml.preview_data_frame_analytics /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @see Documentation @@ -2092,8 +2139,9 @@ public PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics(PreviewDataFr } /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @param fn * a function that initializes a builder to create the @@ -2110,8 +2158,9 @@ public final PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics( } /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @see Documentation @@ -2126,16 +2175,18 @@ public PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics() throws IOEx // ----- Endpoint: ml.preview_datafeed /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @see Documentation @@ -2154,16 +2205,18 @@ public PreviewDatafeedResponse previewDatafeed(PreviewDat } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @param fn * a function that initializes a builder to create the @@ -2203,16 +2256,18 @@ public final PreviewDatafeedResponse previewDatafeed( } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @see Documentation @@ -2231,16 +2286,18 @@ public PreviewDatafeedResponse previewDatafeed(PreviewDat } /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @param fn * a function that initializes a builder to create the @@ -2328,10 +2385,12 @@ public final PutCalendarJobResponse putCalendarJob( // ----- Endpoint: ml.put_data_frame_analytics /** - * Create a data frame analytics job. This API creates a data frame analytics - * job that performs an analysis on the source indices and stores the outcome in - * a destination index. By default, the query used in the source configuration - * is {"match_all": {}}. + * Create a data frame analytics job. + *

                                                      + * This API creates a data frame analytics job that performs an analysis on the + * source indices and stores the outcome in a destination index. By default, the + * query used in the source configuration is + * {"match_all": {}}. *

                                                      * If the destination index does not exist, it is created automatically when you * start the job. @@ -2354,10 +2413,12 @@ public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalytics } /** - * Create a data frame analytics job. This API creates a data frame analytics - * job that performs an analysis on the source indices and stores the outcome in - * a destination index. By default, the query used in the source configuration - * is {"match_all": {}}. + * Create a data frame analytics job. + *

                                                      + * This API creates a data frame analytics job that performs an analysis on the + * source indices and stores the outcome in a destination index. By default, the + * query used in the source configuration is + * {"match_all": {}}. *

                                                      * If the destination index does not exist, it is created automatically when you * start the job. @@ -2383,11 +2444,13 @@ public final PutDataFrameAnalyticsResponse putDataFrameAnalytics( // ----- Endpoint: ml.put_datafeed /** - * Create a datafeed. Datafeeds retrieve data from Elasticsearch for analysis by - * an anomaly detection job. You can associate only one datafeed with each - * anomaly detection job. The datafeed contains a query that runs at a defined - * interval (frequency). If you are concerned about delayed data, - * you can add a delay + * Create a datafeed. + *

                                                      + * Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + * detection job. You can associate only one datafeed with each anomaly + * detection job. The datafeed contains a query that runs at a defined interval + * (frequency). If you are concerned about delayed data, you can + * add a delay * (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": * {"boost": 1}}`. *

                                                      @@ -2412,11 +2475,13 @@ public PutDatafeedResponse putDatafeed(PutDatafeedRequest request) throws IOExce } /** - * Create a datafeed. Datafeeds retrieve data from Elasticsearch for analysis by - * an anomaly detection job. You can associate only one datafeed with each - * anomaly detection job. The datafeed contains a query that runs at a defined - * interval (frequency). If you are concerned about delayed data, - * you can add a delay + * Create a datafeed. + *

                                                      + * Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + * detection job. You can associate only one datafeed with each anomaly + * detection job. The datafeed contains a query that runs at a defined interval + * (frequency). If you are concerned about delayed data, you can + * add a delay * (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": * {"boost": 1}}`. *

                                                      @@ -2445,8 +2510,10 @@ public final PutDatafeedResponse putDatafeed( // ----- Endpoint: ml.put_filter /** - * Create a filter. A filter contains a list of strings. It can be used by one - * or more anomaly detection jobs. Specifically, filters are referenced in the + * Create a filter. + *

                                                      + * A filter contains a list of strings. It can be used by one or more anomaly + * detection jobs. Specifically, filters are referenced in the * custom_rules property of detector configuration objects. * * @see + * A filter contains a list of strings. It can be used by one or more anomaly + * detection jobs. Specifically, filters are referenced in the * custom_rules property of detector configuration objects. * * @param fn @@ -2525,8 +2594,10 @@ public final PutJobResponse putJob(Function + * Enable you to supply a trained model that is not created by data frame + * analytics. * * @see Documentation @@ -2542,8 +2613,10 @@ public PutTrainedModelResponse putTrainedModel(PutTrainedModelRequest request) } /** - * Create a trained model. Enable you to supply a trained model that is not - * created by data frame analytics. + * Create a trained model. + *

                                                      + * Enable you to supply a trained model that is not created by data frame + * analytics. * * @param fn * a function that initializes a builder to create the @@ -2562,19 +2635,21 @@ public final PutTrainedModelResponse putTrainedModel( // ----- Endpoint: ml.put_trained_model_alias /** - * Create or update a trained model alias. A trained model alias is a logical - * name used to reference a single trained model. You can use aliases instead of - * trained model identifiers to make it easier to reference your models. For - * example, you can use aliases in inference aggregations and processors. An - * alias must be unique and refer to only a single trained model. However, you - * can have multiple aliases for each trained model. If you use this API to - * update an alias such that it references a different trained model ID and the - * model uses a different type of data frame analytics, an error occurs. For - * example, this situation occurs if you have a trained model for regression - * analysis and a trained model for classification analysis; you cannot reassign - * an alias from one type of trained model to another. If you use this API to - * update an alias and there are very few input fields in common between the old - * and new trained models for the model alias, the API returns a warning. + * Create or update a trained model alias. + *

                                                      + * A trained model alias is a logical name used to reference a single trained + * model. You can use aliases instead of trained model identifiers to make it + * easier to reference your models. For example, you can use aliases in + * inference aggregations and processors. An alias must be unique and refer to + * only a single trained model. However, you can have multiple aliases for each + * trained model. If you use this API to update an alias such that it references + * a different trained model ID and the model uses a different type of data + * frame analytics, an error occurs. For example, this situation occurs if you + * have a trained model for regression analysis and a trained model for + * classification analysis; you cannot reassign an alias from one type of + * trained model to another. If you use this API to update an alias and there + * are very few input fields in common between the old and new trained models + * for the model alias, the API returns a warning. * * @see Documentation @@ -2590,19 +2665,21 @@ public PutTrainedModelAliasResponse putTrainedModelAlias(PutTrainedModelAliasReq } /** - * Create or update a trained model alias. A trained model alias is a logical - * name used to reference a single trained model. You can use aliases instead of - * trained model identifiers to make it easier to reference your models. For - * example, you can use aliases in inference aggregations and processors. An - * alias must be unique and refer to only a single trained model. However, you - * can have multiple aliases for each trained model. If you use this API to - * update an alias such that it references a different trained model ID and the - * model uses a different type of data frame analytics, an error occurs. For - * example, this situation occurs if you have a trained model for regression - * analysis and a trained model for classification analysis; you cannot reassign - * an alias from one type of trained model to another. If you use this API to - * update an alias and there are very few input fields in common between the old - * and new trained models for the model alias, the API returns a warning. + * Create or update a trained model alias. + *

                                                      + * A trained model alias is a logical name used to reference a single trained + * model. You can use aliases instead of trained model identifiers to make it + * easier to reference your models. For example, you can use aliases in + * inference aggregations and processors. An alias must be unique and refer to + * only a single trained model. However, you can have multiple aliases for each + * trained model. If you use this API to update an alias such that it references + * a different trained model ID and the model uses a different type of data + * frame analytics, an error occurs. For example, this situation occurs if you + * have a trained model for regression analysis and a trained model for + * classification analysis; you cannot reassign an alias from one type of + * trained model to another. If you use this API to update an alias and there + * are very few input fields in common between the old and new trained models + * for the model alias, the API returns a warning. * * @param fn * a function that initializes a builder to create the @@ -2656,10 +2733,11 @@ public final PutTrainedModelDefinitionPartResponse putTrainedModelDefinitionPart // ----- Endpoint: ml.put_trained_model_vocabulary /** - * Create a trained model vocabulary. This API is supported only for natural - * language processing (NLP) models. The vocabulary is stored in the index as - * described in inference_config.*.vocabulary of the trained model - * definition. + * Create a trained model vocabulary. + *

                                                      + * This API is supported only for natural language processing (NLP) models. The + * vocabulary is stored in the index as described in + * inference_config.*.vocabulary of the trained model definition. * * @see Documentation @@ -2675,10 +2753,11 @@ public PutTrainedModelVocabularyResponse putTrainedModelVocabulary(PutTrainedMod } /** - * Create a trained model vocabulary. This API is supported only for natural - * language processing (NLP) models. The vocabulary is stored in the index as - * described in inference_config.*.vocabulary of the trained model - * definition. + * Create a trained model vocabulary. + *

                                                      + * This API is supported only for natural language processing (NLP) models. The + * vocabulary is stored in the index as described in + * inference_config.*.vocabulary of the trained model definition. * * @param fn * a function that initializes a builder to create the @@ -2697,10 +2776,11 @@ public final PutTrainedModelVocabularyResponse putTrainedModelVocabulary( // ----- Endpoint: ml.reset_job /** - * Reset an anomaly detection job. All model state and results are deleted. The - * job is ready to start over as if it had just been created. It is not - * currently possible to reset multiple jobs using wildcards or a comma - * separated list. + * Reset an anomaly detection job. + *

                                                      + * All model state and results are deleted. The job is ready to start over as if + * it had just been created. It is not currently possible to reset multiple jobs + * using wildcards or a comma separated list. * * @see Documentation @@ -2715,10 +2795,11 @@ public ResetJobResponse resetJob(ResetJobRequest request) throws IOException, El } /** - * Reset an anomaly detection job. All model state and results are deleted. The - * job is ready to start over as if it had just been created. It is not - * currently possible to reset multiple jobs using wildcards or a comma - * separated list. + * Reset an anomaly detection job. + *

                                                      + * All model state and results are deleted. The job is ready to start over as if + * it had just been created. It is not currently possible to reset multiple jobs + * using wildcards or a comma separated list. * * @param fn * a function that initializes a builder to create the @@ -2736,14 +2817,15 @@ public final ResetJobResponse resetJob(Function + * The machine learning features react quickly to anomalous input, learning new + * behaviors in data. Highly anomalous input increases the variance in the + * models whilst the system learns whether this is a new step-change in behavior + * or a one-off event. In the case where this anomalous input is known to be a + * one-off, then it might be appropriate to reset the model state to a time + * before this event. For example, you might consider reverting to a saved + * snapshot after Black Friday or a critical system failure. * * @see Documentation @@ -2759,14 +2841,15 @@ public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotReques } /** - * Revert to a snapshot. The machine learning features react quickly to - * anomalous input, learning new behaviors in data. Highly anomalous input - * increases the variance in the models whilst the system learns whether this is - * a new step-change in behavior or a one-off event. In the case where this - * anomalous input is known to be a one-off, then it might be appropriate to - * reset the model state to a time before this event. For example, you might - * consider reverting to a saved snapshot after Black Friday or a critical - * system failure. + * Revert to a snapshot. + *

                                                      + * The machine learning features react quickly to anomalous input, learning new + * behaviors in data. Highly anomalous input increases the variance in the + * models whilst the system learns whether this is a new step-change in behavior + * or a one-off event. In the case where this anomalous input is known to be a + * one-off, then it might be appropriate to reset the model state to a time + * before this event. For example, you might consider reverting to a saved + * snapshot after Black Friday or a critical system failure. * * @param fn * a function that initializes a builder to create the @@ -2785,17 +2868,19 @@ public final RevertModelSnapshotResponse revertModelSnapshot( // ----- Endpoint: ml.set_upgrade_mode /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @see Documentation @@ -2811,17 +2896,19 @@ public SetUpgradeModeResponse setUpgradeMode(SetUpgradeModeRequest request) } /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @param fn * a function that initializes a builder to create the @@ -2838,17 +2925,19 @@ public final SetUpgradeModeResponse setUpgradeMode( } /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @see Documentation @@ -2863,10 +2952,12 @@ public SetUpgradeModeResponse setUpgradeMode() throws IOException, Elasticsearch // ----- Endpoint: ml.start_data_frame_analytics /** - * Start a data frame analytics job. A data frame analytics job can be started - * and stopped multiple times throughout its lifecycle. If the destination index - * does not exist, it is created automatically the first time you start the data - * frame analytics job. The index.number_of_shards and + * Start a data frame analytics job. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. If the destination index does not exist, it is + * created automatically the first time you start the data frame analytics job. + * The index.number_of_shards and * index.number_of_replicas settings for the destination index are * copied from the source index. If there are multiple source indices, the * destination index copies the highest setting values. The mappings for the @@ -2889,10 +2980,12 @@ public StartDataFrameAnalyticsResponse startDataFrameAnalytics(StartDataFrameAna } /** - * Start a data frame analytics job. A data frame analytics job can be started - * and stopped multiple times throughout its lifecycle. If the destination index - * does not exist, it is created automatically the first time you start the data - * frame analytics job. The index.number_of_shards and + * Start a data frame analytics job. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. If the destination index does not exist, it is + * created automatically the first time you start the data frame analytics job. + * The index.number_of_shards and * index.number_of_replicas settings for the destination index are * copied from the source index. If there are multiple source indices, the * destination index copies the highest setting values. The mappings for the @@ -2985,8 +3078,9 @@ public final StartDatafeedResponse startDatafeed( // ----- Endpoint: ml.start_trained_model_deployment /** - * Start a trained model deployment. It allocates the model to every machine - * learning node. + * Start a trained model deployment. + *

                                                      + * It allocates the model to every machine learning node. * * @see Documentation @@ -3002,8 +3096,9 @@ public StartTrainedModelDeploymentResponse startTrainedModelDeployment(StartTrai } /** - * Start a trained model deployment. It allocates the model to every machine - * learning node. + * Start a trained model deployment. + *

                                                      + * It allocates the model to every machine learning node. * * @param fn * a function that initializes a builder to create the @@ -3022,8 +3117,10 @@ public final StartTrainedModelDeploymentResponse startTrainedModelDeployment( // ----- Endpoint: ml.stop_data_frame_analytics /** - * Stop data frame analytics jobs. A data frame analytics job can be started and - * stopped multiple times throughout its lifecycle. + * Stop data frame analytics jobs. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. * * @see Documentation @@ -3039,8 +3136,10 @@ public StopDataFrameAnalyticsResponse stopDataFrameAnalytics(StopDataFrameAnalyt } /** - * Stop data frame analytics jobs. A data frame analytics job can be started and - * stopped multiple times throughout its lifecycle. + * Stop data frame analytics jobs. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. * * @param fn * a function that initializes a builder to create the @@ -3059,9 +3158,10 @@ public final StopDataFrameAnalyticsResponse stopDataFrameAnalytics( // ----- Endpoint: ml.stop_datafeed /** - * Stop datafeeds. A datafeed that is stopped ceases to retrieve data from - * Elasticsearch. A datafeed can be started and stopped multiple times - * throughout its lifecycle. + * Stop datafeeds. + *

                                                      + * A datafeed that is stopped ceases to retrieve data from Elasticsearch. A + * datafeed can be started and stopped multiple times throughout its lifecycle. * * @see Documentation @@ -3076,9 +3176,10 @@ public StopDatafeedResponse stopDatafeed(StopDatafeedRequest request) throws IOE } /** - * Stop datafeeds. A datafeed that is stopped ceases to retrieve data from - * Elasticsearch. A datafeed can be started and stopped multiple times - * throughout its lifecycle. + * Stop datafeeds. + *

                                                      + * A datafeed that is stopped ceases to retrieve data from Elasticsearch. A + * datafeed can be started and stopped multiple times throughout its lifecycle. * * @param fn * a function that initializes a builder to create the @@ -3167,11 +3268,13 @@ public final UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics( // ----- Endpoint: ml.update_datafeed /** - * Update a datafeed. You must stop and start the datafeed for the changes to be - * applied. When Elasticsearch security features are enabled, your datafeed - * remembers which roles the user who updated it had at the time of the update - * and runs the query using those same roles. If you provide secondary - * authorization headers, those credentials are used instead. + * Update a datafeed. + *

                                                      + * You must stop and start the datafeed for the changes to be applied. When + * Elasticsearch security features are enabled, your datafeed remembers which + * roles the user who updated it had at the time of the update and runs the + * query using those same roles. If you provide secondary authorization headers, + * those credentials are used instead. * * @see Documentation @@ -3187,11 +3290,13 @@ public UpdateDatafeedResponse updateDatafeed(UpdateDatafeedRequest request) } /** - * Update a datafeed. You must stop and start the datafeed for the changes to be - * applied. When Elasticsearch security features are enabled, your datafeed - * remembers which roles the user who updated it had at the time of the update - * and runs the query using those same roles. If you provide secondary - * authorization headers, those credentials are used instead. + * Update a datafeed. + *

                                                      + * You must stop and start the datafeed for the changes to be applied. When + * Elasticsearch security features are enabled, your datafeed remembers which + * roles the user who updated it had at the time of the update and runs the + * query using those same roles. If you provide secondary authorization headers, + * those credentials are used instead. * * @param fn * a function that initializes a builder to create the @@ -3210,8 +3315,10 @@ public final UpdateDatafeedResponse updateDatafeed( // ----- Endpoint: ml.update_filter /** - * Update a filter. Updates the description of a filter, adds items, or removes - * items from the list. + * Update a filter. + *

                                                      + * Updates the description of a filter, adds items, or removes items from the + * list. * * @see Documentation @@ -3226,8 +3333,10 @@ public UpdateFilterResponse updateFilter(UpdateFilterRequest request) throws IOE } /** - * Update a filter. Updates the description of a filter, adds items, or removes - * items from the list. + * Update a filter. + *

                                                      + * Updates the description of a filter, adds items, or removes items from the + * list. * * @param fn * a function that initializes a builder to create the @@ -3246,8 +3355,9 @@ public final UpdateFilterResponse updateFilter( // ----- Endpoint: ml.update_job /** - * Update an anomaly detection job. Updates certain properties of an anomaly - * detection job. + * Update an anomaly detection job. + *

                                                      + * Updates certain properties of an anomaly detection job. * * @see Documentation @@ -3262,8 +3372,9 @@ public UpdateJobResponse updateJob(UpdateJobRequest request) throws IOException, } /** - * Update an anomaly detection job. Updates certain properties of an anomaly - * detection job. + * Update an anomaly detection job. + *

                                                      + * Updates certain properties of an anomaly detection job. * * @param fn * a function that initializes a builder to create the @@ -3281,7 +3392,9 @@ public final UpdateJobResponse updateJob(Function + * Updates certain properties of a snapshot. * * @see Documentation @@ -3297,7 +3410,9 @@ public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotReques } /** - * Update a snapshot. Updates certain properties of a snapshot. + * Update a snapshot. + *

                                                      + * Updates certain properties of a snapshot. * * @param fn * a function that initializes a builder to create the @@ -3351,14 +3466,16 @@ public final UpdateTrainedModelDeploymentResponse updateTrainedModelDeployment( // ----- Endpoint: ml.upgrade_job_snapshot /** - * Upgrade a snapshot. Upgrade an anomaly detection model snapshot to the latest - * major version. Over time, older snapshot formats are deprecated and removed. - * Anomaly detection jobs support only snapshots that are from the current or - * previous major version. This API provides a means to upgrade a snapshot to - * the current major version. This aids in preparing the cluster for an upgrade - * to the next major version. Only one snapshot per anomaly detection job can be - * upgraded at a time and the upgraded snapshot cannot be the current snapshot - * of the anomaly detection job. + * Upgrade a snapshot. + *

                                                      + * Upgrade an anomaly detection model snapshot to the latest major version. Over + * time, older snapshot formats are deprecated and removed. Anomaly detection + * jobs support only snapshots that are from the current or previous major + * version. This API provides a means to upgrade a snapshot to the current major + * version. This aids in preparing the cluster for an upgrade to the next major + * version. Only one snapshot per anomaly detection job can be upgraded at a + * time and the upgraded snapshot cannot be the current snapshot of the anomaly + * detection job. * * @see Documentation @@ -3374,14 +3491,16 @@ public UpgradeJobSnapshotResponse upgradeJobSnapshot(UpgradeJobSnapshotRequest r } /** - * Upgrade a snapshot. Upgrade an anomaly detection model snapshot to the latest - * major version. Over time, older snapshot formats are deprecated and removed. - * Anomaly detection jobs support only snapshots that are from the current or - * previous major version. This API provides a means to upgrade a snapshot to - * the current major version. This aids in preparing the cluster for an upgrade - * to the next major version. Only one snapshot per anomaly detection job can be - * upgraded at a time and the upgraded snapshot cannot be the current snapshot - * of the anomaly detection job. + * Upgrade a snapshot. + *

                                                      + * Upgrade an anomaly detection model snapshot to the latest major version. Over + * time, older snapshot formats are deprecated and removed. Anomaly detection + * jobs support only snapshots that are from the current or previous major + * version. This API provides a means to upgrade a snapshot to the current major + * version. This aids in preparing the cluster for an upgrade to the next major + * version. Only one snapshot per anomaly detection job can be upgraded at a + * time and the upgraded snapshot cannot be the current snapshot of the anomaly + * detection job. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java index 7b7a1e6957..9d5b39a3b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java @@ -60,14 +60,16 @@ // typedef: ml.flush_job.Request /** - * Force buffered data to be processed. The flush jobs API is only applicable - * when sending data for analysis using the post data API. Depending on the - * content of the buffer, then it might additionally calculate new results. Both - * flush and close operations are similar, however the flush is more efficient - * if you are expecting to send more data for analysis. When flushing, the job - * remains open and is available to continue analyzing data. A close operation - * additionally prunes and persists the model state to disk and the job must be - * opened again before analyzing further data. + * Force buffered data to be processed. + *

                                                      + * The flush jobs API is only applicable when sending data for analysis using + * the post data API. Depending on the content of the buffer, then it might + * additionally calculate new results. Both flush and close operations are + * similar, however the flush is more efficient if you are expecting to send + * more data for analysis. When flushing, the job remains open and is available + * to continue analyzing data. A close operation additionally prunes and + * persists the model state to disk and the job must be opened again before + * analyzing further data. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java index 5ad3d1066a..17ee11390d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java @@ -61,8 +61,9 @@ // typedef: ml.get_buckets.Request /** - * Get anomaly detection job results for buckets. The API presents a - * chronological view of the records, grouped by bucket. + * Get anomaly detection job results for buckets. + *

                                                      + * The API presents a chronological view of the records, grouped by bucket. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java index 0c113016fc..1ce75887e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.HashMap; import java.util.Map; @@ -66,7 +67,7 @@ @JsonpDeserializable public class GetCategoriesRequest extends RequestBase implements JsonpSerializable { @Nullable - private final String categoryId; + private final Long categoryId; @Nullable private final Integer from; @@ -109,7 +110,7 @@ public static GetCategoriesRequest of(Function implements ObjectBuilder { @Nullable - private String categoryId; + private Long categoryId; @Nullable private Integer from; @@ -217,7 +218,7 @@ public static class Builder extends RequestBase.AbstractBuilder *

                                                      * API name: {@code category_id} */ - public final Builder categoryId(@Nullable String value) { + public final Builder categoryId(@Nullable Long value) { this.categoryId = value; return this; } @@ -349,7 +350,7 @@ protected static void setupGetCategoriesRequestDeserializer(ObjectDeserializer + * You can get information for multiple data frame analytics jobs in a single + * API request by using a comma-separated list of data frame analytics jobs or a + * wildcard expression. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java index 4c2c109efe..a4aacbe23b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java @@ -58,11 +58,12 @@ // typedef: ml.get_datafeed_stats.Request /** - * Get datafeed stats. You can get statistics for multiple datafeeds in a single - * API request by using a comma-separated list of datafeeds or a wildcard - * expression. You can get statistics for all datafeeds by using - * _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeed stats. + *

                                                      + * You can get statistics for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get statistics for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. If the datafeed is stopped, the only * information you receive is the datafeed_id and the * state. This API returns a maximum of 10,000 datafeeds. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java index 1d316b5ad6..c4045e0366 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java @@ -58,11 +58,12 @@ // typedef: ml.get_datafeeds.Request /** - * Get datafeeds configuration info. You can get information for multiple - * datafeeds in a single API request by using a comma-separated list of - * datafeeds or a wildcard expression. You can get information for all datafeeds - * by using _all, by specifying * as the - * <feed_id>, or by omitting the + * Get datafeeds configuration info. + *

                                                      + * You can get information for multiple datafeeds in a single API request by + * using a comma-separated list of datafeeds or a wildcard expression. You can + * get information for all datafeeds by using _all, by specifying + * * as the <feed_id>, or by omitting the * <feed_id>. This API returns a maximum of 10,000 datafeeds. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java index a140b57a87..9a01d258e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java @@ -58,7 +58,9 @@ // typedef: ml.get_filters.Request /** - * Get filters. You can get a single filter or all filters. + * Get filters. + *

                                                      + * You can get a single filter or all filters. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java index c237b00f61..787b2d1e6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java @@ -61,9 +61,10 @@ // typedef: ml.get_influencers.Request /** - * Get anomaly detection job results for influencers. Influencers are the - * entities that have contributed to, or are to blame for, the anomalies. - * Influencer results are available only if an + * Get anomaly detection job results for influencers. + *

                                                      + * Influencers are the entities that have contributed to, or are to blame for, + * the anomalies. Influencer results are available only if an * influencer_field_name is specified in the job configuration. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java index 790c1a1b4a..679898911a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java @@ -58,12 +58,13 @@ // typedef: ml.get_jobs.Request /** - * Get anomaly detection jobs configuration info. You can get information for - * multiple anomaly detection jobs in a single API request by using a group - * name, a comma-separated list of jobs, or a wildcard expression. You can get - * information for all anomaly detection jobs by using _all, by - * specifying * as the <job_id>, or by omitting - * the <job_id>. + * Get anomaly detection jobs configuration info. + *

                                                      + * You can get information for multiple anomaly detection jobs in a single API + * request by using a group name, a comma-separated list of jobs, or a wildcard + * expression. You can get information for all anomaly detection jobs by using + * _all, by specifying * as the + * <job_id>, or by omitting the <job_id>. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java index 3cba84b249..0efdf99f87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java @@ -55,9 +55,11 @@ // typedef: ml.get_memory_stats.Request /** - * Get machine learning memory usage info. Get information about how machine - * learning jobs and trained models are using memory, on each node, both within - * the JVM heap, and natively, outside of the JVM. + * Get machine learning memory usage info. + *

                                                      + * Get information about how machine learning jobs and trained models are using + * memory, on each node, both within the JVM heap, and natively, outside of the + * JVM. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java index 59e9fefaf3..296151b7a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java @@ -61,15 +61,17 @@ // typedef: ml.get_records.Request /** - * Get anomaly records for an anomaly detection job. Records contain the - * detailed analytical results. They describe the anomalous activity that has - * been identified in the input data based on the detector configuration. There - * can be many anomaly records depending on the characteristics and size of the - * input data. In practice, there are often too many to be able to manually - * process them. The machine learning features therefore perform a sophisticated - * aggregation of the anomaly records into buckets. The number of record results - * depends on the number of anomalies found in each bucket, which relates to the - * number of time series being modeled and the number of detectors. + * Get anomaly records for an anomaly detection job. + *

                                                      + * Records contain the detailed analytical results. They describe the anomalous + * activity that has been identified in the input data based on the detector + * configuration. There can be many anomaly records depending on the + * characteristics and size of the input data. In practice, there are often too + * many to be able to manually process them. The machine learning features + * therefore perform a sophisticated aggregation of the anomaly records into + * buckets. The number of record results depends on the number of anomalies + * found in each bucket, which relates to the number of time series being + * modeled and the number of detectors. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java index 503c296888..96be8d1cec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java @@ -59,9 +59,11 @@ // typedef: ml.get_trained_models_stats.Request /** - * Get trained models usage info. You can get usage information for multiple - * trained models in a single API request by using a comma-separated list of - * model IDs or a wildcard expression. + * Get trained models usage info. + *

                                                      + * You can get usage information for multiple trained models in a single API + * request by using a comma-separated list of model IDs or a wildcard + * expression. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java index ebc509a2e1..8018434df1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/MlInfoRequest.java @@ -50,13 +50,14 @@ // typedef: ml.info.Request /** - * Get machine learning information. Get defaults and limits used by machine - * learning. This endpoint is designed to be used by a user interface that needs - * to fully understand machine learning configurations where some options are - * not specified, meaning that the defaults should be used. This endpoint may be - * used to find out what those defaults are. It also provides information about - * the maximum size of machine learning jobs that could run in the current - * cluster configuration. + * Get machine learning information. + *

                                                      + * Get defaults and limits used by machine learning. This endpoint is designed + * to be used by a user interface that needs to fully understand machine + * learning configurations where some options are not specified, meaning that + * the defaults should be used. This endpoint may be used to find out what those + * defaults are. It also provides information about the maximum size of machine + * learning jobs that could run in the current cluster configuration. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java index ea7021c471..83fa9a8d7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java @@ -58,8 +58,9 @@ // typedef: ml.preview_data_frame_analytics.Request /** - * Preview features used by data frame analytics. Preview the extracted features - * used by a data frame analytics config. + * Preview features used by data frame analytics. + *

                                                      + * Preview the extracted features used by a data frame analytics config. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java index a82cac2410..1acc15aa33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java @@ -57,16 +57,18 @@ // typedef: ml.preview_datafeed.Request /** - * Preview a datafeed. This API returns the first "page" of search - * results from a datafeed. You can preview an existing datafeed or provide - * configuration details for a datafeed and anomaly detection job in the API. - * The preview shows the structure of the data that will be passed to the - * anomaly detection engine. IMPORTANT: When Elasticsearch security features are - * enabled, the preview uses the credentials of the user that called the API. - * However, when the datafeed starts it uses the roles of the last user that - * created or updated the datafeed. To get a preview that accurately reflects - * the behavior of the datafeed, use the appropriate credentials. You can also - * use secondary authorization headers to supply the credentials. + * Preview a datafeed. + *

                                                      + * This API returns the first "page" of search results from a + * datafeed. You can preview an existing datafeed or provide configuration + * details for a datafeed and anomaly detection job in the API. The preview + * shows the structure of the data that will be passed to the anomaly detection + * engine. IMPORTANT: When Elasticsearch security features are enabled, the + * preview uses the credentials of the user that called the API. However, when + * the datafeed starts it uses the roles of the last user that created or + * updated the datafeed. To get a preview that accurately reflects the behavior + * of the datafeed, use the appropriate credentials. You can also use secondary + * authorization headers to supply the credentials. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java index a12a3d5bfc..4d8008d77f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java @@ -62,10 +62,12 @@ // typedef: ml.put_data_frame_analytics.Request /** - * Create a data frame analytics job. This API creates a data frame analytics - * job that performs an analysis on the source indices and stores the outcome in - * a destination index. By default, the query used in the source configuration - * is {"match_all": {}}. + * Create a data frame analytics job. + *

                                                      + * This API creates a data frame analytics job that performs an analysis on the + * source indices and stores the outcome in a destination index. By default, the + * query used in the source configuration is + * {"match_all": {}}. *

                                                      * If the destination index does not exist, it is created automatically when you * start the job. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java index 074450d21a..3fc28502e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java @@ -70,11 +70,13 @@ // typedef: ml.put_datafeed.Request /** - * Create a datafeed. Datafeeds retrieve data from Elasticsearch for analysis by - * an anomaly detection job. You can associate only one datafeed with each - * anomaly detection job. The datafeed contains a query that runs at a defined - * interval (frequency). If you are concerned about delayed data, - * you can add a delay + * Create a datafeed. + *

                                                      + * Datafeeds retrieve data from Elasticsearch for analysis by an anomaly + * detection job. You can associate only one datafeed with each anomaly + * detection job. The datafeed contains a query that runs at a defined interval + * (frequency). If you are concerned about delayed data, you can + * add a delay * (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": * {"boost": 1}}`. *

                                                      diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java index 94b1847de2..eb36ab9a28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java @@ -59,8 +59,10 @@ // typedef: ml.put_filter.Request /** - * Create a filter. A filter contains a list of strings. It can be used by one - * or more anomaly detection jobs. Specifically, filters are referenced in the + * Create a filter. + *

                                                      + * A filter contains a list of strings. It can be used by one or more anomaly + * detection jobs. Specifically, filters are referenced in the * custom_rules property of detector configuration objects. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java index 4e0a44d8b0..642c161d06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java @@ -56,19 +56,21 @@ // typedef: ml.put_trained_model_alias.Request /** - * Create or update a trained model alias. A trained model alias is a logical - * name used to reference a single trained model. You can use aliases instead of - * trained model identifiers to make it easier to reference your models. For - * example, you can use aliases in inference aggregations and processors. An - * alias must be unique and refer to only a single trained model. However, you - * can have multiple aliases for each trained model. If you use this API to - * update an alias such that it references a different trained model ID and the - * model uses a different type of data frame analytics, an error occurs. For - * example, this situation occurs if you have a trained model for regression - * analysis and a trained model for classification analysis; you cannot reassign - * an alias from one type of trained model to another. If you use this API to - * update an alias and there are very few input fields in common between the old - * and new trained models for the model alias, the API returns a warning. + * Create or update a trained model alias. + *

                                                      + * A trained model alias is a logical name used to reference a single trained + * model. You can use aliases instead of trained model identifiers to make it + * easier to reference your models. For example, you can use aliases in + * inference aggregations and processors. An alias must be unique and refer to + * only a single trained model. However, you can have multiple aliases for each + * trained model. If you use this API to update an alias such that it references + * a different trained model ID and the model uses a different type of data + * frame analytics, an error occurs. For example, this situation occurs if you + * have a trained model for regression analysis and a trained model for + * classification analysis; you cannot reassign an alias from one type of + * trained model to another. If you use this API to update an alias and there + * are very few input fields in common between the old and new trained models + * for the model alias, the API returns a warning. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index c491b5ec9b..4d204426f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -63,8 +63,10 @@ // typedef: ml.put_trained_model.Request /** - * Create a trained model. Enable you to supply a trained model that is not - * created by data frame analytics. + * Create a trained model. + *

                                                      + * Enable you to supply a trained model that is not created by data frame + * analytics. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index a53878fd5a..907cdb2da6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -60,10 +60,11 @@ // typedef: ml.put_trained_model_vocabulary.Request /** - * Create a trained model vocabulary. This API is supported only for natural - * language processing (NLP) models. The vocabulary is stored in the index as - * described in inference_config.*.vocabulary of the trained model - * definition. + * Create a trained model vocabulary. + *

                                                      + * This API is supported only for natural language processing (NLP) models. The + * vocabulary is stored in the index as described in + * inference_config.*.vocabulary of the trained model definition. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java index c14419d739..8ca6cdf19d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java @@ -56,10 +56,11 @@ // typedef: ml.reset_job.Request /** - * Reset an anomaly detection job. All model state and results are deleted. The - * job is ready to start over as if it had just been created. It is not - * currently possible to reset multiple jobs using wildcards or a comma - * separated list. + * Reset an anomaly detection job. + *

                                                      + * All model state and results are deleted. The job is ready to start over as if + * it had just been created. It is not currently possible to reset multiple jobs + * using wildcards or a comma separated list. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java index a7d5e2d29e..d18f7eb8ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java @@ -59,14 +59,15 @@ // typedef: ml.revert_model_snapshot.Request /** - * Revert to a snapshot. The machine learning features react quickly to - * anomalous input, learning new behaviors in data. Highly anomalous input - * increases the variance in the models whilst the system learns whether this is - * a new step-change in behavior or a one-off event. In the case where this - * anomalous input is known to be a one-off, then it might be appropriate to - * reset the model state to a time before this event. For example, you might - * consider reverting to a saved snapshot after Black Friday or a critical - * system failure. + * Revert to a snapshot. + *

                                                      + * The machine learning features react quickly to anomalous input, learning new + * behaviors in data. Highly anomalous input increases the variance in the + * models whilst the system learns whether this is a new step-change in behavior + * or a one-off event. In the case where this anomalous input is known to be a + * one-off, then it might be appropriate to reset the model state to a time + * before this event. For example, you might consider reverting to a saved + * snapshot after Black Friday or a critical system failure. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java index 4822c9b6b8..eeed8ce568 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java @@ -56,17 +56,19 @@ // typedef: ml.set_upgrade_mode.Request /** - * Set upgrade_mode for ML indices. Sets a cluster wide upgrade_mode setting - * that prepares machine learning indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * machine learning indices. In those circumstances, there must be no machine - * learning jobs running. You can close the machine learning jobs, do the - * upgrade, then open all the jobs again. Alternatively, you can use this API to - * temporarily halt tasks associated with the jobs and datafeeds and prevent new - * jobs from opening. You can also use this API during upgrades that do not - * require you to reindex your machine learning indices, though stopping jobs is - * not a requirement in that case. You can see the current value for the - * upgrade_mode setting by using the get machine learning info API. + * Set upgrade_mode for ML indices. + *

                                                      + * Sets a cluster wide upgrade_mode setting that prepares machine learning + * indices for an upgrade. When upgrading your cluster, in some circumstances + * you must restart your nodes and reindex your machine learning indices. In + * those circumstances, there must be no machine learning jobs running. You can + * close the machine learning jobs, do the upgrade, then open all the jobs + * again. Alternatively, you can use this API to temporarily halt tasks + * associated with the jobs and datafeeds and prevent new jobs from opening. You + * can also use this API during upgrades that do not require you to reindex your + * machine learning indices, though stopping jobs is not a requirement in that + * case. You can see the current value for the upgrade_mode setting by using the + * get machine learning info API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java index eae1178342..b34def9dbf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java @@ -24,6 +24,8 @@ import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -32,6 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -56,10 +59,12 @@ // typedef: ml.start_data_frame_analytics.Request /** - * Start a data frame analytics job. A data frame analytics job can be started - * and stopped multiple times throughout its lifecycle. If the destination index - * does not exist, it is created automatically the first time you start the data - * frame analytics job. The index.number_of_shards and + * Start a data frame analytics job. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. If the destination index does not exist, it is + * created automatically the first time you start the data frame analytics job. + * The index.number_of_shards and * index.number_of_replicas settings for the destination index are * copied from the source index. If there are multiple source indices, the * destination index copies the highest setting values. The mappings for the @@ -72,8 +77,8 @@ * "../doc-files/api-spec.html#ml.start_data_frame_analytics.Request">API * specification */ - -public class StartDataFrameAnalyticsRequest extends RequestBase { +@JsonpDeserializable +public class StartDataFrameAnalyticsRequest extends RequestBase implements JsonpSerializable { private final String id; @Nullable @@ -115,6 +120,25 @@ public final Time timeout() { return this.timeout; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.timeout != null) { + generator.writeKey("timeout"); + this.timeout.serialize(generator, mapper); + + } + + } + // --------------------------------------------------------------------------------------------- /** @@ -182,6 +206,21 @@ public StartDataFrameAnalyticsRequest build() { // --------------------------------------------------------------------------------------------- + /** + * Json deserializer for {@link StartDataFrameAnalyticsRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, StartDataFrameAnalyticsRequest::setupStartDataFrameAnalyticsRequestDeserializer); + + protected static void setupStartDataFrameAnalyticsRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::timeout, Time._DESERIALIZER, "timeout"); + + } + + // --------------------------------------------------------------------------------------------- + /** * Endpoint "{@code ml.start_data_frame_analytics}". */ @@ -233,11 +272,7 @@ public StartDataFrameAnalyticsRequest build() { // Request parameters request -> { - Map params = new HashMap<>(); - if (request.timeout != null) { - params.put("timeout", request.timeout._toJsonString()); - } - return params; + return Collections.emptyMap(); - }, SimpleEndpoint.emptyMap(), false, StartDataFrameAnalyticsResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), true, StartDataFrameAnalyticsResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index fef410ab27..8ef2c95aa0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -59,8 +59,9 @@ // typedef: ml.start_trained_model_deployment.Request /** - * Start a trained model deployment. It allocates the model to every machine - * learning node. + * Start a trained model deployment. + *

                                                      + * It allocates the model to every machine learning node. * * @see API @@ -181,7 +182,7 @@ public final Integer numberOfAllocations() { } /** - * The deployment priority. + * The deployment priority *

                                                      * API name: {@code priority} */ @@ -369,7 +370,7 @@ public final Builder numberOfAllocations(@Nullable Integer value) { } /** - * The deployment priority. + * The deployment priority *

                                                      * API name: {@code priority} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java index 848d645985..23d349c47e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java @@ -24,6 +24,8 @@ import co.elastic.clients.elasticsearch._types.Time; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -33,6 +35,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -57,15 +60,17 @@ // typedef: ml.stop_data_frame_analytics.Request /** - * Stop data frame analytics jobs. A data frame analytics job can be started and - * stopped multiple times throughout its lifecycle. + * Stop data frame analytics jobs. + *

                                                      + * A data frame analytics job can be started and stopped multiple times + * throughout its lifecycle. * * @see API * specification */ - -public class StopDataFrameAnalyticsRequest extends RequestBase { +@JsonpDeserializable +public class StopDataFrameAnalyticsRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean allowNoMatch; @@ -145,6 +150,35 @@ public final Time timeout() { return this.timeout; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.allowNoMatch != null) { + generator.writeKey("allow_no_match"); + generator.write(this.allowNoMatch); + + } + if (this.force != null) { + generator.writeKey("force"); + generator.write(this.force); + + } + if (this.timeout != null) { + generator.writeKey("timeout"); + this.timeout.serialize(generator, mapper); + + } + + } + // --------------------------------------------------------------------------------------------- /** @@ -249,6 +283,23 @@ public StopDataFrameAnalyticsRequest build() { // --------------------------------------------------------------------------------------------- + /** + * Json deserializer for {@link StopDataFrameAnalyticsRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, StopDataFrameAnalyticsRequest::setupStopDataFrameAnalyticsRequestDeserializer); + + protected static void setupStopDataFrameAnalyticsRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::allowNoMatch, JsonpDeserializer.booleanDeserializer(), "allow_no_match"); + op.add(Builder::force, JsonpDeserializer.booleanDeserializer(), "force"); + op.add(Builder::timeout, Time._DESERIALIZER, "timeout"); + + } + + // --------------------------------------------------------------------------------------------- + /** * Endpoint "{@code ml.stop_data_frame_analytics}". */ @@ -300,17 +351,7 @@ public StopDataFrameAnalyticsRequest build() { // Request parameters request -> { - Map params = new HashMap<>(); - if (request.force != null) { - params.put("force", String.valueOf(request.force)); - } - if (request.allowNoMatch != null) { - params.put("allow_no_match", String.valueOf(request.allowNoMatch)); - } - if (request.timeout != null) { - params.put("timeout", request.timeout._toJsonString()); - } - return params; + return Collections.emptyMap(); - }, SimpleEndpoint.emptyMap(), false, StopDataFrameAnalyticsResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), true, StopDataFrameAnalyticsResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java index 6fc33948cc..b664f831c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java @@ -60,9 +60,10 @@ // typedef: ml.stop_datafeed.Request /** - * Stop datafeeds. A datafeed that is stopped ceases to retrieve data from - * Elasticsearch. A datafeed can be started and stopped multiple times - * throughout its lifecycle. + * Stop datafeeds. + *

                                                      + * A datafeed that is stopped ceases to retrieve data from Elasticsearch. A + * datafeed can be started and stopped multiple times throughout its lifecycle. * * @see API * specification @@ -72,6 +73,9 @@ public class StopDatafeedRequest extends RequestBase implements JsonpSerializabl @Nullable private final Boolean allowNoMatch; + @Nullable + private final Boolean closeJob; + private final String datafeedId; @Nullable @@ -85,6 +89,7 @@ public class StopDatafeedRequest extends RequestBase implements JsonpSerializabl private StopDatafeedRequest(Builder builder) { this.allowNoMatch = builder.allowNoMatch; + this.closeJob = builder.closeJob; this.datafeedId = ApiTypeHelper.requireNonNull(builder.datafeedId, this, "datafeedId"); this.force = builder.force; this.timeout = builder.timeout; @@ -105,6 +110,16 @@ public final Boolean allowNoMatch() { return this.allowNoMatch; } + /** + * Refer to the description for the close_job query parameter. + *

                                                      + * API name: {@code close_job} + */ + @Nullable + public final Boolean closeJob() { + return this.closeJob; + } + /** * Required - Identifier for the datafeed. You can stop multiple datafeeds in a * single API request by using a comma-separated list of datafeeds or a wildcard @@ -152,6 +167,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("allow_no_match"); generator.write(this.allowNoMatch); + } + if (this.closeJob != null) { + generator.writeKey("close_job"); + generator.write(this.closeJob); + } if (this.force != null) { generator.writeKey("force"); @@ -178,6 +198,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean allowNoMatch; + @Nullable + private Boolean closeJob; + private String datafeedId; @Nullable @@ -196,6 +219,16 @@ public final Builder allowNoMatch(@Nullable Boolean value) { return this; } + /** + * Refer to the description for the close_job query parameter. + *

                                                      + * API name: {@code close_job} + */ + public final Builder closeJob(@Nullable Boolean value) { + this.closeJob = value; + return this; + } + /** * Required - Identifier for the datafeed. You can stop multiple datafeeds in a * single API request by using a comma-separated list of datafeeds or a wildcard @@ -267,6 +300,7 @@ public StopDatafeedRequest build() { protected static void setupStopDatafeedRequestDeserializer(ObjectDeserializer op) { op.add(Builder::allowNoMatch, JsonpDeserializer.booleanDeserializer(), "allow_no_match"); + op.add(Builder::closeJob, JsonpDeserializer.booleanDeserializer(), "close_job"); op.add(Builder::force, JsonpDeserializer.booleanDeserializer(), "force"); op.add(Builder::timeout, Time._DESERIALIZER, "timeout"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java index 7e35541a75..fa6a8274eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java @@ -23,6 +23,8 @@ import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; @@ -32,6 +34,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -62,14 +65,17 @@ * "../doc-files/api-spec.html#ml.stop_trained_model_deployment.Request">API * specification */ - -public class StopTrainedModelDeploymentRequest extends RequestBase { +@JsonpDeserializable +public class StopTrainedModelDeploymentRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean allowNoMatch; @Nullable private final Boolean force; + @Nullable + private final String id; + private final String modelId; // --------------------------------------------------------------------------------------------- @@ -78,6 +84,7 @@ private StopTrainedModelDeploymentRequest(Builder builder) { this.allowNoMatch = builder.allowNoMatch; this.force = builder.force; + this.id = builder.id; this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); } @@ -114,6 +121,16 @@ public final Boolean force() { return this.force; } + /** + * If provided, must be the same identifier as in the path. + *

                                                      + * API name: {@code id} + */ + @Nullable + public final String id() { + return this.id; + } + /** * Required - The unique identifier of the trained model. *

                                                      @@ -123,6 +140,35 @@ public final String modelId() { return this.modelId; } + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.allowNoMatch != null) { + generator.writeKey("allow_no_match"); + generator.write(this.allowNoMatch); + + } + if (this.force != null) { + generator.writeKey("force"); + generator.write(this.force); + + } + if (this.id != null) { + generator.writeKey("id"); + generator.write(this.id); + + } + + } + // --------------------------------------------------------------------------------------------- /** @@ -138,6 +184,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean force; + @Nullable + private String id; + private String modelId; /** @@ -167,6 +216,16 @@ public final Builder force(@Nullable Boolean value) { return this; } + /** + * If provided, must be the same identifier as in the path. + *

                                                      + * API name: {@code id} + */ + public final Builder id(@Nullable String value) { + this.id = value; + return this; + } + /** * Required - The unique identifier of the trained model. *

                                                      @@ -197,6 +256,23 @@ public StopTrainedModelDeploymentRequest build() { // --------------------------------------------------------------------------------------------- + /** + * Json deserializer for {@link StopTrainedModelDeploymentRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, StopTrainedModelDeploymentRequest::setupStopTrainedModelDeploymentRequestDeserializer); + + protected static void setupStopTrainedModelDeploymentRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::allowNoMatch, JsonpDeserializer.booleanDeserializer(), "allow_no_match"); + op.add(Builder::force, JsonpDeserializer.booleanDeserializer(), "force"); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + + } + + // --------------------------------------------------------------------------------------------- + /** * Endpoint "{@code ml.stop_trained_model_deployment}". */ @@ -248,14 +324,7 @@ public StopTrainedModelDeploymentRequest build() { // Request parameters request -> { - Map params = new HashMap<>(); - if (request.force != null) { - params.put("force", String.valueOf(request.force)); - } - if (request.allowNoMatch != null) { - params.put("allow_no_match", String.valueOf(request.allowNoMatch)); - } - return params; + return Collections.emptyMap(); - }, SimpleEndpoint.emptyMap(), false, StopTrainedModelDeploymentResponse._DESERIALIZER); + }, SimpleEndpoint.emptyMap(), true, StopTrainedModelDeploymentResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java index 14c53e1f42..b967c4eaf4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java @@ -70,11 +70,13 @@ // typedef: ml.update_datafeed.Request /** - * Update a datafeed. You must stop and start the datafeed for the changes to be - * applied. When Elasticsearch security features are enabled, your datafeed - * remembers which roles the user who updated it had at the time of the update - * and runs the query using those same roles. If you provide secondary - * authorization headers, those credentials are used instead. + * Update a datafeed. + *

                                                      + * You must stop and start the datafeed for the changes to be applied. When + * Elasticsearch security features are enabled, your datafeed remembers which + * roles the user who updated it had at the time of the update and runs the + * query using those same roles. If you provide secondary authorization headers, + * those credentials are used instead. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java index 6be77d51bc..19c14f78dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java @@ -59,8 +59,10 @@ // typedef: ml.update_filter.Request /** - * Update a filter. Updates the description of a filter, adds items, or removes - * items from the list. + * Update a filter. + *

                                                      + * Updates the description of a filter, adds items, or removes items from the + * list. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java index 0bab8e1160..c26e86d08b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java @@ -63,8 +63,9 @@ // typedef: ml.update_job.Request /** - * Update an anomaly detection job. Updates certain properties of an anomaly - * detection job. + * Update an anomaly detection job. + *

                                                      + * Updates certain properties of an anomaly detection job. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java index dd32b0fa44..368cb6bc07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java @@ -59,7 +59,9 @@ // typedef: ml.update_model_snapshot.Request /** - * Update a snapshot. Updates certain properties of a snapshot. + * Update a snapshot. + *

                                                      + * Updates certain properties of a snapshot. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java index c489ad903a..8ab9b8da3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java @@ -57,14 +57,16 @@ // typedef: ml.upgrade_job_snapshot.Request /** - * Upgrade a snapshot. Upgrade an anomaly detection model snapshot to the latest - * major version. Over time, older snapshot formats are deprecated and removed. - * Anomaly detection jobs support only snapshots that are from the current or - * previous major version. This API provides a means to upgrade a snapshot to - * the current major version. This aids in preparing the cluster for an upgrade - * to the next major version. Only one snapshot per anomaly detection job can be - * upgraded at a time and the upgraded snapshot cannot be the current snapshot - * of the anomaly detection job. + * Upgrade a snapshot. + *

                                                      + * Upgrade an anomaly detection model snapshot to the latest major version. Over + * time, older snapshot formats are deprecated and removed. Anomaly detection + * jobs support only snapshots that are from the current or previous major + * version. This API provides a means to upgrade a snapshot to the current major + * version. This aids in preparing the cluster for an upgrade to the next major + * version. Only one snapshot per anomaly detection job can be upgraded at a + * time and the upgraded snapshot cannot be the current snapshot of the anomaly + * detection job. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java index a13a2aac52..de98ef35ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java @@ -37,6 +37,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; @@ -63,8 +64,9 @@ // typedef: monitoring.bulk.Request /** - * Send monitoring data. This API is used by the monitoring features to send - * monitoring data. + * Send monitoring data. + *

                                                      + * This API is used by the monitoring features to send monitoring data. * * @see API * specification @@ -77,9 +79,6 @@ public class BulkRequest extends RequestBase implements NdJsonpSerializable, Jso private final String systemId; - @Nullable - private final String type; - private final List operations; // --------------------------------------------------------------------------------------------- @@ -89,7 +88,6 @@ private BulkRequest(Builder builder) { this.interval = ApiTypeHelper.requireNonNull(builder.interval, this, "interval"); this.systemApiVersion = ApiTypeHelper.requireNonNull(builder.systemApiVersion, this, "systemApiVersion"); this.systemId = ApiTypeHelper.requireNonNull(builder.systemId, this, "systemId"); - this.type = builder.type; this.operations = ApiTypeHelper.unmodifiableRequired(builder.operations, this, "operations"); } @@ -129,19 +127,6 @@ public final String systemId() { return this.systemId; } - /** - * Default document type for items which don't provide one - *

                                                      - * API name: {@code type} - * - * @deprecated 7.0.0 - */ - @Deprecated - @Nullable - public final String type() { - return this.type; - } - /** * Required - Request body. */ @@ -175,9 +160,6 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String systemId; - @Nullable - private String type; - private List operations; /** @@ -219,19 +201,6 @@ public final Builder systemId(String value) { return this; } - /** - * Default document type for items which don't provide one - *

                                                      - * API name: {@code type} - * - * @deprecated 7.0.0 - */ - @Deprecated - public final Builder type(@Nullable String value) { - this.type = value; - return this; - } - /** * Required - Request body. *

                                                      @@ -308,47 +277,13 @@ public BulkRequest build() { // Request path request -> { - final int _type = 1 << 0; - - int propsSet = 0; - - if (request.type() != null) - propsSet |= _type; - - if (propsSet == 0) { - StringBuilder buf = new StringBuilder(); - buf.append("/_monitoring"); - buf.append("/bulk"); - return buf.toString(); - } - if (propsSet == (_type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/_monitoring"); - buf.append("/"); - SimpleEndpoint.pathEncode(request.type, buf); - buf.append("/bulk"); - return buf.toString(); - } - throw SimpleEndpoint.noPathTemplateFound("path"); + return "/_monitoring/bulk"; }, // Path parameters request -> { - Map params = new HashMap<>(); - final int _type = 1 << 0; - - int propsSet = 0; - - if (request.type() != null) - propsSet |= _type; - - if (propsSet == 0) { - } - if (propsSet == (_type)) { - params.put("type", request.type); - } - return params; + return Collections.emptyMap(); }, // Request parameters diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java index d355da3221..18e437e6af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringAsyncClient.java @@ -70,8 +70,9 @@ public ElasticsearchMonitoringAsyncClient withTransportOptions(@Nullable Transpo // ----- Endpoint: monitoring.bulk /** - * Send monitoring data. This API is used by the monitoring features to send - * monitoring data. + * Send monitoring data. + *

                                                      + * This API is used by the monitoring features to send monitoring data. * * @see Documentation on @@ -86,8 +87,9 @@ public CompletableFuture bulk(BulkRequest request) { } /** - * Send monitoring data. This API is used by the monitoring features to send - * monitoring data. + * Send monitoring data. + *

                                                      + * This API is used by the monitoring features to send monitoring data. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java index 281b576b18..7d1eadbb37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/ElasticsearchMonitoringClient.java @@ -69,8 +69,9 @@ public ElasticsearchMonitoringClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: monitoring.bulk /** - * Send monitoring data. This API is used by the monitoring features to send - * monitoring data. + * Send monitoring data. + *

                                                      + * This API is used by the monitoring features to send monitoring data. * * @see Documentation on @@ -85,8 +86,9 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE } /** - * Send monitoring data. This API is used by the monitoring features to send - * monitoring data. + * Send monitoring data. + *

                                                      + * This API is used by the monitoring features to send monitoring data. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java index 23ad53c1d7..a8cdcbdf6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java @@ -59,8 +59,9 @@ // typedef: nodes.clear_repositories_metering_archive.Request /** - * Clear the archived repositories metering. Clear the archived repositories - * metering information in the cluster. + * Clear the archived repositories metering. + *

                                                      + * Clear the archived repositories metering information in the cluster. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java index c7bc581656..02cc0ef236 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java @@ -68,8 +68,9 @@ public ElasticsearchNodesAsyncClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: nodes.clear_repositories_metering_archive /** - * Clear the archived repositories metering. Clear the archived repositories - * metering information in the cluster. + * Clear the archived repositories metering. + *

                                                      + * Clear the archived repositories metering information in the cluster. * * @see Documentation @@ -85,8 +86,9 @@ public CompletableFuture clearReposito } /** - * Clear the archived repositories metering. Clear the archived repositories - * metering information in the cluster. + * Clear the archived repositories metering. + *

                                                      + * Clear the archived repositories metering information in the cluster. * * @param fn * a function that initializes a builder to create the @@ -105,12 +107,13 @@ public final CompletableFuture clearRe // ----- Endpoint: nodes.get_repositories_metering_info /** - * Get cluster repositories metering. Get repositories metering information for - * a cluster. This API exposes monotonically non-decreasing counters and it is - * expected that clients would durably store the information needed to compute - * aggregations over a period of time. Additionally, the information exposed by - * this API is volatile, meaning that it will not be present after node - * restarts. + * Get cluster repositories metering. + *

                                                      + * Get repositories metering information for a cluster. This API exposes + * monotonically non-decreasing counters and it is expected that clients would + * durably store the information needed to compute aggregations over a period of + * time. Additionally, the information exposed by this API is volatile, meaning + * that it will not be present after node restarts. * * @see Documentation @@ -126,12 +129,13 @@ public CompletableFuture getRepositoriesMet } /** - * Get cluster repositories metering. Get repositories metering information for - * a cluster. This API exposes monotonically non-decreasing counters and it is - * expected that clients would durably store the information needed to compute - * aggregations over a period of time. Additionally, the information exposed by - * this API is volatile, meaning that it will not be present after node - * restarts. + * Get cluster repositories metering. + *

                                                      + * Get repositories metering information for a cluster. This API exposes + * monotonically non-decreasing counters and it is expected that clients would + * durably store the information needed to compute aggregations over a period of + * time. Additionally, the information exposed by this API is volatile, meaning + * that it will not be present after node restarts. * * @param fn * a function that initializes a builder to create the @@ -149,9 +153,10 @@ public final CompletableFuture getRepositor // ----- Endpoint: nodes.hot_threads /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @see Documentation @@ -166,9 +171,10 @@ public CompletableFuture hotThreads(HotThreadsRequest request) { } /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @param fn * a function that initializes a builder to create the @@ -184,9 +190,10 @@ public final CompletableFuture hotThreads( } /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @see Documentation @@ -347,8 +354,10 @@ public CompletableFuture reloadSecureSettings() { // ----- Endpoint: nodes.stats /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @see Documentation @@ -363,8 +372,10 @@ public CompletableFuture stats(NodesStatsRequest request) { } /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @param fn * a function that initializes a builder to create the @@ -380,8 +391,10 @@ public final CompletableFuture stats( } /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java index 7d5796f54e..ed56c42f21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java @@ -68,8 +68,9 @@ public ElasticsearchNodesClient withTransportOptions(@Nullable TransportOptions // ----- Endpoint: nodes.clear_repositories_metering_archive /** - * Clear the archived repositories metering. Clear the archived repositories - * metering information in the cluster. + * Clear the archived repositories metering. + *

                                                      + * Clear the archived repositories metering information in the cluster. * * @see Documentation @@ -85,8 +86,9 @@ public ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringArchive } /** - * Clear the archived repositories metering. Clear the archived repositories - * metering information in the cluster. + * Clear the archived repositories metering. + *

                                                      + * Clear the archived repositories metering information in the cluster. * * @param fn * a function that initializes a builder to create the @@ -106,12 +108,13 @@ public final ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringA // ----- Endpoint: nodes.get_repositories_metering_info /** - * Get cluster repositories metering. Get repositories metering information for - * a cluster. This API exposes monotonically non-decreasing counters and it is - * expected that clients would durably store the information needed to compute - * aggregations over a period of time. Additionally, the information exposed by - * this API is volatile, meaning that it will not be present after node - * restarts. + * Get cluster repositories metering. + *

                                                      + * Get repositories metering information for a cluster. This API exposes + * monotonically non-decreasing counters and it is expected that clients would + * durably store the information needed to compute aggregations over a period of + * time. Additionally, the information exposed by this API is volatile, meaning + * that it will not be present after node restarts. * * @see Documentation @@ -127,12 +130,13 @@ public GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(GetReposi } /** - * Get cluster repositories metering. Get repositories metering information for - * a cluster. This API exposes monotonically non-decreasing counters and it is - * expected that clients would durably store the information needed to compute - * aggregations over a period of time. Additionally, the information exposed by - * this API is volatile, meaning that it will not be present after node - * restarts. + * Get cluster repositories metering. + *

                                                      + * Get repositories metering information for a cluster. This API exposes + * monotonically non-decreasing counters and it is expected that clients would + * durably store the information needed to compute aggregations over a period of + * time. Additionally, the information exposed by this API is volatile, meaning + * that it will not be present after node restarts. * * @param fn * a function that initializes a builder to create the @@ -151,9 +155,10 @@ public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo( // ----- Endpoint: nodes.hot_threads /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @see Documentation @@ -168,9 +173,10 @@ public TextResponse hotThreads(HotThreadsRequest request) throws IOException, El } /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @param fn * a function that initializes a builder to create the @@ -186,9 +192,10 @@ public final TextResponse hotThreads(Function + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @see Documentation @@ -351,8 +358,10 @@ public ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, E // ----- Endpoint: nodes.stats /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @see Documentation @@ -367,8 +376,10 @@ public NodesStatsResponse stats(NodesStatsRequest request) throws IOException, E } /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @param fn * a function that initializes a builder to create the @@ -384,8 +395,10 @@ public final NodesStatsResponse stats(Function + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java index d317ca23be..a8d5059c01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java @@ -58,12 +58,13 @@ // typedef: nodes.get_repositories_metering_info.Request /** - * Get cluster repositories metering. Get repositories metering information for - * a cluster. This API exposes monotonically non-decreasing counters and it is - * expected that clients would durably store the information needed to compute - * aggregations over a period of time. Additionally, the information exposed by - * this API is volatile, meaning that it will not be present after node - * restarts. + * Get cluster repositories metering. + *

                                                      + * Get repositories metering information for a cluster. This API exposes + * monotonically non-decreasing counters and it is expected that clients would + * durably store the information needed to compute aggregations over a period of + * time. Additionally, the information exposed by this API is volatile, meaning + * that it will not be present after node restarts. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java index 69a5c43f08..ce3a360360 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java @@ -58,9 +58,10 @@ // typedef: nodes.hot_threads.Request /** - * Get the hot threads for nodes. Get a breakdown of the hot threads on each - * selected node in the cluster. The output is plain text with a breakdown of - * the top hot threads for each node. + * Get the hot threads for nodes. + *

                                                      + * Get a breakdown of the hot threads on each selected node in the cluster. The + * output is plain text with a breakdown of the top hot threads for each node. * * @see API * specification @@ -150,7 +151,7 @@ public final Long snapshots() { } /** - * The sort order for 'cpu' type (default: total) + * The sort order for 'cpu' type *

                                                      * API name: {@code sort} */ @@ -288,7 +289,7 @@ public final Builder snapshots(@Nullable Long value) { } /** - * The sort order for 'cpu' type (default: total) + * The sort order for 'cpu' type *

                                                      * API name: {@code sort} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java index 2109a57bad..8da4fcda73 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java @@ -28,10 +28,12 @@ import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.DateTime; import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -65,12 +67,27 @@ public class NodeReloadResult implements JsonpSerializable { @Nullable private final ErrorCause reloadException; + private final List secureSettingNames; + + @Nullable + private final String keystorePath; + + @Nullable + private final String keystoreDigest; + + @Nullable + private final DateTime keystoreLastModifiedTime; + // --------------------------------------------------------------------------------------------- private NodeReloadResult(Builder builder) { this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); this.reloadException = builder.reloadException; + this.secureSettingNames = ApiTypeHelper.unmodifiable(builder.secureSettingNames); + this.keystorePath = builder.keystorePath; + this.keystoreDigest = builder.keystoreDigest; + this.keystoreLastModifiedTime = builder.keystoreLastModifiedTime; } @@ -93,6 +110,45 @@ public final ErrorCause reloadException() { return this.reloadException; } + /** + * The names of the secure settings that were reloaded. + *

                                                      + * API name: {@code secure_setting_names} + */ + public final List secureSettingNames() { + return this.secureSettingNames; + } + + /** + * The path to the keystore file. + *

                                                      + * API name: {@code keystore_path} + */ + @Nullable + public final String keystorePath() { + return this.keystorePath; + } + + /** + * A SHA-256 hash of the keystore file contents. + *

                                                      + * API name: {@code keystore_digest} + */ + @Nullable + public final String keystoreDigest() { + return this.keystoreDigest; + } + + /** + * The last modification time of the keystore file. + *

                                                      + * API name: {@code keystore_last_modified_time} + */ + @Nullable + public final DateTime keystoreLastModifiedTime() { + return this.keystoreLastModifiedTime; + } + /** * Serialize this object to JSON. */ @@ -112,6 +168,30 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.reloadException.serialize(generator, mapper); } + if (ApiTypeHelper.isDefined(this.secureSettingNames)) { + generator.writeKey("secure_setting_names"); + generator.writeStartArray(); + for (String item0 : this.secureSettingNames) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.keystorePath != null) { + generator.writeKey("keystore_path"); + generator.write(this.keystorePath); + + } + if (this.keystoreDigest != null) { + generator.writeKey("keystore_digest"); + generator.write(this.keystoreDigest); + + } + if (this.keystoreLastModifiedTime != null) { + generator.writeKey("keystore_last_modified_time"); + this.keystoreLastModifiedTime.serialize(generator, mapper); + } } @@ -132,6 +212,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ErrorCause reloadException; + @Nullable + private List secureSettingNames; + + @Nullable + private String keystorePath; + + @Nullable + private String keystoreDigest; + + @Nullable + private DateTime keystoreLastModifiedTime; + /** * Required - API name: {@code name} */ @@ -155,6 +247,60 @@ public final Builder reloadException(Function + * API name: {@code secure_setting_names} + *

                                                      + * Adds all elements of list to secureSettingNames. + */ + public final Builder secureSettingNames(List list) { + this.secureSettingNames = _listAddAll(this.secureSettingNames, list); + return this; + } + + /** + * The names of the secure settings that were reloaded. + *

                                                      + * API name: {@code secure_setting_names} + *

                                                      + * Adds one or more values to secureSettingNames. + */ + public final Builder secureSettingNames(String value, String... values) { + this.secureSettingNames = _listAdd(this.secureSettingNames, value, values); + return this; + } + + /** + * The path to the keystore file. + *

                                                      + * API name: {@code keystore_path} + */ + public final Builder keystorePath(@Nullable String value) { + this.keystorePath = value; + return this; + } + + /** + * A SHA-256 hash of the keystore file contents. + *

                                                      + * API name: {@code keystore_digest} + */ + public final Builder keystoreDigest(@Nullable String value) { + this.keystoreDigest = value; + return this; + } + + /** + * The last modification time of the keystore file. + *

                                                      + * API name: {@code keystore_last_modified_time} + */ + public final Builder keystoreLastModifiedTime(@Nullable DateTime value) { + this.keystoreLastModifiedTime = value; + return this; + } + @Override protected Builder self() { return this; @@ -185,6 +331,11 @@ protected static void setupNodeReloadResultDeserializer(ObjectDeserializer metric; + private final List metric; private final List nodeId; @@ -110,7 +111,7 @@ public final Boolean flatSettings() { *

                                                      * API name: {@code metric} */ - public final List metric() { + public final List metric() { return this.metric; } @@ -147,7 +148,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean flatSettings; @Nullable - private List metric; + private List metric; @Nullable private List nodeId; @@ -173,7 +174,7 @@ public final Builder flatSettings(@Nullable Boolean value) { *

                                                      * Adds all elements of list to metric. */ - public final Builder metric(List list) { + public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; } @@ -186,7 +187,7 @@ public final Builder metric(List list) { *

                                                      * Adds one or more values to metric. */ - public final Builder metric(String value, String... values) { + public final Builder metric(NodesInfoMetric value, NodesInfoMetric... values) { this.metric = _listAdd(this.metric, value, values); return this; } @@ -297,8 +298,8 @@ public NodesInfoRequest build() { StringBuilder buf = new StringBuilder(); buf.append("/_nodes"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_nodeId | _metric)) { @@ -308,8 +309,8 @@ public NodesInfoRequest build() { SimpleEndpoint.pathEncode(request.nodeId.stream().map(v -> v).collect(Collectors.joining(",")), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -335,11 +336,13 @@ public NodesInfoRequest build() { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); } if (propsSet == (_metric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_nodeId | _metric)) { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java index 8923b2321c..465efbcb7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java @@ -19,10 +19,12 @@ package co.elastic.clients.elasticsearch.nodes; +import co.elastic.clients.elasticsearch._types.CommonStatsFlag; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.NodeStatsLevel; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.nodes.stats.NodeStatsMetric; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -60,8 +62,10 @@ // typedef: nodes.stats.Request /** - * Get node statistics. Get statistics for nodes in a cluster. By default, all - * stats are returned. You can limit the returned information by using metrics. + * Get node statistics. + *

                                                      + * Get statistics for nodes in a cluster. By default, all stats are returned. + * You can limit the returned information by using metrics. * * @see API * specification @@ -83,12 +87,12 @@ public class NodesStatsRequest extends RequestBase { @Nullable private final Boolean includeUnloadedSegments; - private final List indexMetric; + private final List indexMetric; @Nullable private final NodeStatsLevel level; - private final List metric; + private final List metric; private final List nodeId; @@ -188,7 +192,7 @@ public final Boolean includeUnloadedSegments() { *

                                                      * API name: {@code index_metric} */ - public final List indexMetric() { + public final List indexMetric() { return this.indexMetric; } @@ -204,11 +208,11 @@ public final NodeStatsLevel level() { } /** - * Limit the information returned to the specified metrics + * Limits the information returned to the specific metrics. *

                                                      * API name: {@code metric} */ - public final List metric() { + public final List metric() { return this.metric; } @@ -269,13 +273,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean includeUnloadedSegments; @Nullable - private List indexMetric; + private List indexMetric; @Nullable private NodeStatsLevel level; @Nullable - private List metric; + private List metric; @Nullable private List nodeId; @@ -404,7 +408,7 @@ public final Builder includeUnloadedSegments(@Nullable Boolean value) { *

                                                      * Adds all elements of list to indexMetric. */ - public final Builder indexMetric(List list) { + public final Builder indexMetric(List list) { this.indexMetric = _listAddAll(this.indexMetric, list); return this; } @@ -417,7 +421,7 @@ public final Builder indexMetric(List list) { *

                                                      * Adds one or more values to indexMetric. */ - public final Builder indexMetric(String value, String... values) { + public final Builder indexMetric(CommonStatsFlag value, CommonStatsFlag... values) { this.indexMetric = _listAdd(this.indexMetric, value, values); return this; } @@ -434,25 +438,25 @@ public final Builder level(@Nullable NodeStatsLevel value) { } /** - * Limit the information returned to the specified metrics + * Limits the information returned to the specific metrics. *

                                                      * API name: {@code metric} *

                                                      * Adds all elements of list to metric. */ - public final Builder metric(List list) { + public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; } /** - * Limit the information returned to the specified metrics + * Limits the information returned to the specific metrics. *

                                                      * API name: {@code metric} *

                                                      * Adds one or more values to metric. */ - public final Builder metric(String value, String... values) { + public final Builder metric(NodeStatsMetric value, NodeStatsMetric... values) { this.metric = _listAdd(this.metric, value, values); return this; } @@ -593,8 +597,8 @@ public NodesStatsRequest build() { buf.append("/_nodes"); buf.append("/stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_nodeId | _metric)) { @@ -605,8 +609,8 @@ public NodesStatsRequest build() { buf); buf.append("/stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_metric | _indexMetric)) { @@ -614,11 +618,11 @@ public NodesStatsRequest build() { buf.append("/_nodes"); buf.append("/stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.indexMetric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.indexMetric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_nodeId | _metric | _indexMetric)) { @@ -629,11 +633,11 @@ public NodesStatsRequest build() { buf); buf.append("/stats"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.indexMetric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.indexMetric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -662,22 +666,26 @@ public NodesStatsRequest build() { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); } if (propsSet == (_metric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_nodeId | _metric)) { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_metric | _indexMetric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); params.put("indexMetric", - request.indexMetric.stream().map(v -> v).collect(Collectors.joining(","))); + request.indexMetric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_nodeId | _metric | _indexMetric)) { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); params.put("indexMetric", - request.indexMetric.stream().map(v -> v).collect(Collectors.joining(","))); + request.indexMetric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java index 8b0127991c..ecfa6c53d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java @@ -22,6 +22,7 @@ import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.nodes.usage.NodesUsageMetric; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -65,7 +66,7 @@ */ public class NodesUsageRequest extends RequestBase { - private final List metric; + private final List metric; private final List nodeId; @@ -88,18 +89,19 @@ public static NodesUsageRequest of(Function_all, rest_actions. + * list of the following options: _all, rest_actions, + * aggregations. *

                                                      * API name: {@code metric} */ - public final List metric() { + public final List metric() { return this.metric; } /** * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * information. Use _local to return information from the node + * you're connecting to, leave empty to get information from all nodes. *

                                                      * API name: {@code node_id} */ @@ -128,7 +130,7 @@ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { @Nullable - private List metric; + private List metric; @Nullable private List nodeId; @@ -138,34 +140,36 @@ public static class Builder extends RequestBase.AbstractBuilder /** * Limits the information returned to the specific metrics. A comma-separated - * list of the following options: _all, rest_actions. + * list of the following options: _all, rest_actions, + * aggregations. *

                                                      * API name: {@code metric} *

                                                      * Adds all elements of list to metric. */ - public final Builder metric(List list) { + public final Builder metric(List list) { this.metric = _listAddAll(this.metric, list); return this; } /** * Limits the information returned to the specific metrics. A comma-separated - * list of the following options: _all, rest_actions. + * list of the following options: _all, rest_actions, + * aggregations. *

                                                      * API name: {@code metric} *

                                                      * Adds one or more values to metric. */ - public final Builder metric(String value, String... values) { + public final Builder metric(NodesUsageMetric value, NodesUsageMetric... values) { this.metric = _listAdd(this.metric, value, values); return this; } /** * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * information. Use _local to return information from the node + * you're connecting to, leave empty to get information from all nodes. *

                                                      * API name: {@code node_id} *

                                                      @@ -178,8 +182,8 @@ public final Builder nodeId(List list) { /** * A comma-separated list of node IDs or names to limit the returned - * information; use _local to return information from the node - * you're connecting to, leave empty to get information from all nodes + * information. Use _local to return information from the node + * you're connecting to, leave empty to get information from all nodes. *

                                                      * API name: {@code node_id} *

                                                      @@ -275,8 +279,8 @@ public NodesUsageRequest build() { buf.append("/_nodes"); buf.append("/usage"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } if (propsSet == (_nodeId | _metric)) { @@ -287,8 +291,8 @@ public NodesUsageRequest build() { buf); buf.append("/usage"); buf.append("/"); - SimpleEndpoint.pathEncode(request.metric.stream().map(v -> v).collect(Collectors.joining(",")), - buf); + SimpleEndpoint.pathEncode( + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -314,11 +318,13 @@ public NodesUsageRequest build() { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); } if (propsSet == (_metric)) { - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } if (propsSet == (_nodeId | _metric)) { params.put("nodeId", request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); - params.put("metric", request.metric.stream().map(v -> v).collect(Collectors.joining(","))); + params.put("metric", + request.metric.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodesInfoMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodesInfoMetric.java new file mode 100644 index 0000000000..f10c279e08 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodesInfoMetric.java @@ -0,0 +1,90 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.nodes.info; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NodesInfoMetric implements JsonEnum { + All("_all"), + + None("_none"), + + Settings("settings"), + + Os("os"), + + Process("process"), + + Jvm("jvm"), + + ThreadPool("thread_pool"), + + Transport("transport"), + + Http("http"), + + RemoteClusterServer("remote_cluster_server"), + + Plugins("plugins"), + + Ingest("ingest"), + + Aggregations("aggregations"), + + Indices("indices"), + + ; + + private final String jsonValue; + + NodesInfoMetric(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NodesInfoMetric.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/NodeStatsMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/NodeStatsMetric.java new file mode 100644 index 0000000000..fca373d407 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/stats/NodeStatsMetric.java @@ -0,0 +1,100 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.nodes.stats; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NodeStatsMetric implements JsonEnum { + All("_all"), + + None("_none"), + + Indices("indices"), + + Os("os"), + + Process("process"), + + Jvm("jvm"), + + ThreadPool("thread_pool"), + + Fs("fs"), + + Transport("transport"), + + Http("http"), + + Breaker("breaker"), + + Script("script"), + + Discovery("discovery"), + + Ingest("ingest"), + + AdaptiveSelection("adaptive_selection"), + + ScriptCache("script_cache"), + + IndexingPressure("indexing_pressure"), + + Repositories("repositories"), + + Allocations("allocations"), + + ; + + private final String jsonValue; + + NodeStatsMetric(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NodeStatsMetric.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodesUsageMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodesUsageMetric.java new file mode 100644 index 0000000000..129be57fa2 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodesUsageMetric.java @@ -0,0 +1,68 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.nodes.usage; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum NodesUsageMetric implements JsonEnum { + All("_all"), + + RestActions("rest_actions"), + + Aggregations("aggregations"), + + ; + + private final String jsonValue; + + NodesUsageMetric(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + NodesUsageMetric.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectAsyncClient.java index 9d754cafc4..37b3261397 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectAsyncClient.java @@ -20,6 +20,7 @@ package co.elastic.clients.elasticsearch.project; import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; @@ -27,6 +28,7 @@ import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.util.ObjectBuilder; import java.util.concurrent.CompletableFuture; +import java.util.function.Function; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -68,14 +70,52 @@ public ElasticsearchProjectAsyncClient withTransportOptions(@Nullable TransportO // ----- Endpoint: project.tags /** - * Get tags. Get the tags that are defined for the project. + * Get tags. + *

                                                      + * Get the tags that are defined for the project. * * @see Documentation * on elastic.co */ + + public CompletableFuture tags(TagsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TagsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Get tags. + *

                                                      + * Get the tags that are defined for the project. + * + * @param fn + * a function that initializes a builder to create the + * {@link TagsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture tags(Function> fn) { + return tags(fn.apply(new TagsRequest.Builder()).build()); + } + + /** + * Get tags. + *

                                                      + * Get the tags that are defined for the project. + * + * @see Documentation + * on elastic.co + */ + public CompletableFuture tags() { - return this.transport.performRequestAsync(TagsRequest._INSTANCE, TagsRequest._ENDPOINT, this.transportOptions); + return this.transport.performRequestAsync(new TagsRequest.Builder().build(), TagsRequest._ENDPOINT, + this.transportOptions); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectClient.java index d602846d6c..552a78ab6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/ElasticsearchProjectClient.java @@ -21,6 +21,7 @@ import co.elastic.clients.ApiClient; import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; @@ -28,6 +29,7 @@ import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; +import java.util.function.Function; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -66,14 +68,53 @@ public ElasticsearchProjectClient withTransportOptions(@Nullable TransportOption // ----- Endpoint: project.tags /** - * Get tags. Get the tags that are defined for the project. + * Get tags. + *

                                                      + * Get the tags that are defined for the project. * * @see Documentation * on elastic.co */ + + public TagsResponse tags(TagsRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) TagsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Get tags. + *

                                                      + * Get the tags that are defined for the project. + * + * @param fn + * a function that initializes a builder to create the + * {@link TagsRequest} + * @see Documentation + * on elastic.co + */ + + public final TagsResponse tags(Function> fn) + throws IOException, ElasticsearchException { + return tags(fn.apply(new TagsRequest.Builder()).build()); + } + + /** + * Get tags. + *

                                                      + * Get the tags that are defined for the project. + * + * @see Documentation + * on elastic.co + */ + public TagsResponse tags() throws IOException, ElasticsearchException { - return this.transport.performRequest(TagsRequest._INSTANCE, TagsRequest._ENDPOINT, this.transportOptions); + return this.transport.performRequest(new TagsRequest.Builder().build(), TagsRequest._ENDPOINT, + this.transportOptions); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java index e783a67727..3cef815c53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java @@ -29,8 +29,13 @@ import co.elastic.clients.transport.endpoints.SimpleEndpoint; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.String; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -50,20 +55,79 @@ // typedef: project.tags.Request /** - * Get tags. Get the tags that are defined for the project. + * Get tags. + *

                                                      + * Get the tags that are defined for the project. * * @see API * specification */ public class TagsRequest extends RequestBase { - public TagsRequest() { + @Nullable + private final String projectRouting; + + // --------------------------------------------------------------------------------------------- + + private TagsRequest(Builder builder) { + + this.projectRouting = builder.projectRouting; + + } + + public static TagsRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * A Lucene query using project metadata tags used to filter which projects are + * returned in the response, such as _alias:_origin or _alias:pr. + *

                                                      + * API name: {@code project_routing} + */ + @Nullable + public final String projectRouting() { + return this.projectRouting; } + // --------------------------------------------------------------------------------------------- + /** - * Singleton instance for {@link TagsRequest}. + * Builder for {@link TagsRequest}. */ - public static final TagsRequest _INSTANCE = new TagsRequest(); + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String projectRouting; + + /** + * A Lucene query using project metadata tags used to filter which projects are + * returned in the response, such as _alias:_origin or _alias:pr. + *

                                                      + * API name: {@code project_routing} + */ + public final Builder projectRouting(@Nullable String value) { + this.projectRouting = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TagsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TagsRequest build() { + _checkSingleUse(); + + return new TagsRequest(this); + } + } // --------------------------------------------------------------------------------------------- @@ -75,7 +139,7 @@ public TagsRequest() { // Request method request -> { - return "GET"; + return "POST"; }, @@ -92,7 +156,11 @@ public TagsRequest() { // Request parameters request -> { - return Collections.emptyMap(); + Map params = new HashMap<>(); + if (request.projectRouting != null) { + params.put("project_routing", request.projectRouting); + } + return params; }, SimpleEndpoint.emptyMap(), false, TagsResponse._DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java index 7ff412f639..4504ced88e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java @@ -56,9 +56,11 @@ // typedef: query_rules.delete_rule.Request /** - * Delete a query rule. Delete a query rule within a query ruleset. This is a - * destructive action that is only recoverable by re-adding the same rule with - * the create or update query rule API. + * Delete a query rule. + *

                                                      + * Delete a query rule within a query ruleset. This is a destructive action that + * is only recoverable by re-adding the same rule with the create or update + * query rule API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java index 2b3dd0377c..f066d34fcc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java @@ -56,8 +56,10 @@ // typedef: query_rules.delete_ruleset.Request /** - * Delete a query ruleset. Remove a query ruleset and its associated data. This - * is a destructive action that is not recoverable. + * Delete a query ruleset. + *

                                                      + * Remove a query ruleset and its associated data. This is a destructive action + * that is not recoverable. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesAsyncClient.java index 86b2a15a24..c781ee8b0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesAsyncClient.java @@ -70,9 +70,11 @@ public ElasticsearchQueryRulesAsyncClient withTransportOptions(@Nullable Transpo // ----- Endpoint: query_rules.delete_rule /** - * Delete a query rule. Delete a query rule within a query ruleset. This is a - * destructive action that is only recoverable by re-adding the same rule with - * the create or update query rule API. + * Delete a query rule. + *

                                                      + * Delete a query rule within a query ruleset. This is a destructive action that + * is only recoverable by re-adding the same rule with the create or update + * query rule API. * * @see Documentation @@ -87,9 +89,11 @@ public CompletableFuture deleteRule(DeleteRuleRequest reques } /** - * Delete a query rule. Delete a query rule within a query ruleset. This is a - * destructive action that is only recoverable by re-adding the same rule with - * the create or update query rule API. + * Delete a query rule. + *

                                                      + * Delete a query rule within a query ruleset. This is a destructive action that + * is only recoverable by re-adding the same rule with the create or update + * query rule API. * * @param fn * a function that initializes a builder to create the @@ -107,8 +111,10 @@ public final CompletableFuture deleteRule( // ----- Endpoint: query_rules.delete_ruleset /** - * Delete a query ruleset. Remove a query ruleset and its associated data. This - * is a destructive action that is not recoverable. + * Delete a query ruleset. + *

                                                      + * Remove a query ruleset and its associated data. This is a destructive action + * that is not recoverable. * * @see Documentation @@ -123,8 +129,10 @@ public CompletableFuture deleteRuleset(DeleteRulesetReque } /** - * Delete a query ruleset. Remove a query ruleset and its associated data. This - * is a destructive action that is not recoverable. + * Delete a query ruleset. + *

                                                      + * Remove a query ruleset and its associated data. This is a destructive action + * that is not recoverable. * * @param fn * a function that initializes a builder to create the @@ -142,7 +150,9 @@ public final CompletableFuture deleteRuleset( // ----- Endpoint: query_rules.get_rule /** - * Get a query rule. Get details about a query rule within a query ruleset. + * Get a query rule. + *

                                                      + * Get details about a query rule within a query ruleset. * * @see Documentation @@ -157,7 +167,9 @@ public CompletableFuture getRule(GetRuleRequest request) { } /** - * Get a query rule. Get details about a query rule within a query ruleset. + * Get a query rule. + *

                                                      + * Get details about a query rule within a query ruleset. * * @param fn * a function that initializes a builder to create the @@ -175,7 +187,9 @@ public final CompletableFuture getRule( // ----- Endpoint: query_rules.get_ruleset /** - * Get a query ruleset. Get details about a query ruleset. + * Get a query ruleset. + *

                                                      + * Get details about a query ruleset. * * @see Documentation @@ -190,7 +204,9 @@ public CompletableFuture getRuleset(GetRulesetRequest reques } /** - * Get a query ruleset. Get details about a query ruleset. + * Get a query ruleset. + *

                                                      + * Get details about a query ruleset. * * @param fn * a function that initializes a builder to create the @@ -208,7 +224,9 @@ public final CompletableFuture getRuleset( // ----- Endpoint: query_rules.list_rulesets /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @see Documentation @@ -223,7 +241,9 @@ public CompletableFuture listRulesets(ListRulesetsRequest } /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @param fn * a function that initializes a builder to create the @@ -239,7 +259,9 @@ public final CompletableFuture listRulesets( } /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @see Documentation @@ -254,8 +276,9 @@ public CompletableFuture listRulesets() { // ----- Endpoint: query_rules.put_rule /** - * Create or update a query rule. Create or update a query rule within a query - * ruleset. + * Create or update a query rule. + *

                                                      + * Create or update a query rule within a query ruleset. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only pin * documents using ids or docs, but cannot use both in single rule. It is @@ -277,8 +300,9 @@ public CompletableFuture putRule(PutRuleRequest request) { } /** - * Create or update a query rule. Create or update a query rule within a query - * ruleset. + * Create or update a query rule. + *

                                                      + * Create or update a query rule within a query ruleset. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only pin * documents using ids or docs, but cannot use both in single rule. It is @@ -303,9 +327,11 @@ public final CompletableFuture putRule( // ----- Endpoint: query_rules.put_ruleset /** - * Create or update a query ruleset. There is a limit of 100 rules per ruleset. - * This limit can be increased by using the - * xpack.applications.rules.max_rules_per_ruleset cluster setting. + * Create or update a query ruleset. + *

                                                      + * There is a limit of 100 rules per ruleset. This limit can be increased by + * using the xpack.applications.rules.max_rules_per_ruleset cluster + * setting. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only select * documents using ids or docs, but cannot use both in @@ -327,9 +353,11 @@ public CompletableFuture putRuleset(PutRulesetRequest reques } /** - * Create or update a query ruleset. There is a limit of 100 rules per ruleset. - * This limit can be increased by using the - * xpack.applications.rules.max_rules_per_ruleset cluster setting. + * Create or update a query ruleset. + *

                                                      + * There is a limit of 100 rules per ruleset. This limit can be increased by + * using the xpack.applications.rules.max_rules_per_ruleset cluster + * setting. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only select * documents using ids or docs, but cannot use both in @@ -354,8 +382,10 @@ public final CompletableFuture putRuleset( // ----- Endpoint: query_rules.test /** - * Test a query ruleset. Evaluate match criteria against a query ruleset to - * identify the rules that would match that criteria. + * Test a query ruleset. + *

                                                      + * Evaluate match criteria against a query ruleset to identify the rules that + * would match that criteria. * * @see Documentation @@ -370,8 +400,10 @@ public CompletableFuture test(TestRequest request) { } /** - * Test a query ruleset. Evaluate match criteria against a query ruleset to - * identify the rules that would match that criteria. + * Test a query ruleset. + *

                                                      + * Evaluate match criteria against a query ruleset to identify the rules that + * would match that criteria. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesClient.java index 4deb1c9dd2..e7bbaef5db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ElasticsearchQueryRulesClient.java @@ -69,9 +69,11 @@ public ElasticsearchQueryRulesClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: query_rules.delete_rule /** - * Delete a query rule. Delete a query rule within a query ruleset. This is a - * destructive action that is only recoverable by re-adding the same rule with - * the create or update query rule API. + * Delete a query rule. + *

                                                      + * Delete a query rule within a query ruleset. This is a destructive action that + * is only recoverable by re-adding the same rule with the create or update + * query rule API. * * @see Documentation @@ -86,9 +88,11 @@ public DeleteRuleResponse deleteRule(DeleteRuleRequest request) throws IOExcepti } /** - * Delete a query rule. Delete a query rule within a query ruleset. This is a - * destructive action that is only recoverable by re-adding the same rule with - * the create or update query rule API. + * Delete a query rule. + *

                                                      + * Delete a query rule within a query ruleset. This is a destructive action that + * is only recoverable by re-adding the same rule with the create or update + * query rule API. * * @param fn * a function that initializes a builder to create the @@ -106,8 +110,10 @@ public final DeleteRuleResponse deleteRule(Function + * Remove a query ruleset and its associated data. This is a destructive action + * that is not recoverable. * * @see Documentation @@ -123,8 +129,10 @@ public DeleteRulesetResponse deleteRuleset(DeleteRulesetRequest request) } /** - * Delete a query ruleset. Remove a query ruleset and its associated data. This - * is a destructive action that is not recoverable. + * Delete a query ruleset. + *

                                                      + * Remove a query ruleset and its associated data. This is a destructive action + * that is not recoverable. * * @param fn * a function that initializes a builder to create the @@ -143,7 +151,9 @@ public final DeleteRulesetResponse deleteRuleset( // ----- Endpoint: query_rules.get_rule /** - * Get a query rule. Get details about a query rule within a query ruleset. + * Get a query rule. + *

                                                      + * Get details about a query rule within a query ruleset. * * @see Documentation @@ -158,7 +168,9 @@ public GetRuleResponse getRule(GetRuleRequest request) throws IOException, Elast } /** - * Get a query rule. Get details about a query rule within a query ruleset. + * Get a query rule. + *

                                                      + * Get details about a query rule within a query ruleset. * * @param fn * a function that initializes a builder to create the @@ -176,7 +188,9 @@ public final GetRuleResponse getRule(Function + * Get details about a query ruleset. * * @see Documentation @@ -191,7 +205,9 @@ public GetRulesetResponse getRuleset(GetRulesetRequest request) throws IOExcepti } /** - * Get a query ruleset. Get details about a query ruleset. + * Get a query ruleset. + *

                                                      + * Get details about a query ruleset. * * @param fn * a function that initializes a builder to create the @@ -209,7 +225,9 @@ public final GetRulesetResponse getRuleset(Function + * Get summarized information about the query rulesets. * * @see Documentation @@ -224,7 +242,9 @@ public ListRulesetsResponse listRulesets(ListRulesetsRequest request) throws IOE } /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @param fn * a function that initializes a builder to create the @@ -241,7 +261,9 @@ public final ListRulesetsResponse listRulesets( } /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @see Documentation @@ -256,8 +278,9 @@ public ListRulesetsResponse listRulesets() throws IOException, ElasticsearchExce // ----- Endpoint: query_rules.put_rule /** - * Create or update a query rule. Create or update a query rule within a query - * ruleset. + * Create or update a query rule. + *

                                                      + * Create or update a query rule within a query ruleset. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only pin * documents using ids or docs, but cannot use both in single rule. It is @@ -279,8 +302,9 @@ public PutRuleResponse putRule(PutRuleRequest request) throws IOException, Elast } /** - * Create or update a query rule. Create or update a query rule within a query - * ruleset. + * Create or update a query rule. + *

                                                      + * Create or update a query rule within a query ruleset. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only pin * documents using ids or docs, but cannot use both in single rule. It is @@ -305,9 +329,11 @@ public final PutRuleResponse putRule(Functionxpack.applications.rules.max_rules_per_ruleset cluster setting. + * Create or update a query ruleset. + *

                                                      + * There is a limit of 100 rules per ruleset. This limit can be increased by + * using the xpack.applications.rules.max_rules_per_ruleset cluster + * setting. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only select * documents using ids or docs, but cannot use both in @@ -329,9 +355,11 @@ public PutRulesetResponse putRuleset(PutRulesetRequest request) throws IOExcepti } /** - * Create or update a query ruleset. There is a limit of 100 rules per ruleset. - * This limit can be increased by using the - * xpack.applications.rules.max_rules_per_ruleset cluster setting. + * Create or update a query ruleset. + *

                                                      + * There is a limit of 100 rules per ruleset. This limit can be increased by + * using the xpack.applications.rules.max_rules_per_ruleset cluster + * setting. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only select * documents using ids or docs, but cannot use both in @@ -356,8 +384,10 @@ public final PutRulesetResponse putRuleset(Function + * Evaluate match criteria against a query ruleset to identify the rules that + * would match that criteria. * * @see Documentation @@ -372,8 +402,10 @@ public TestResponse test(TestRequest request) throws IOException, ElasticsearchE } /** - * Test a query ruleset. Evaluate match criteria against a query ruleset to - * identify the rules that would match that criteria. + * Test a query ruleset. + *

                                                      + * Evaluate match criteria against a query ruleset to identify the rules that + * would match that criteria. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java index b136cca503..1e83d54dc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java @@ -56,7 +56,9 @@ // typedef: query_rules.get_rule.Request /** - * Get a query rule. Get details about a query rule within a query ruleset. + * Get a query rule. + *

                                                      + * Get details about a query rule within a query ruleset. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java index 08cb75e6bc..fe3c92ca95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java @@ -56,7 +56,9 @@ // typedef: query_rules.get_ruleset.Request /** - * Get a query ruleset. Get details about a query ruleset. + * Get a query ruleset. + *

                                                      + * Get details about a query ruleset. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java index 6141c518d9..9091daac3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java @@ -55,7 +55,9 @@ // typedef: query_rules.list_rulesets.Request /** - * Get all query rulesets. Get summarized information about the query rulesets. + * Get all query rulesets. + *

                                                      + * Get summarized information about the query rulesets. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java index 44b73344d7..c15073f12c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java @@ -60,8 +60,9 @@ // typedef: query_rules.put_rule.Request /** - * Create or update a query rule. Create or update a query rule within a query - * ruleset. + * Create or update a query rule. + *

                                                      + * Create or update a query rule within a query ruleset. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only pin * documents using ids or docs, but cannot use both in single rule. It is diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java index 799be64286..a53115d793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java @@ -59,9 +59,11 @@ // typedef: query_rules.put_ruleset.Request /** - * Create or update a query ruleset. There is a limit of 100 rules per ruleset. - * This limit can be increased by using the - * xpack.applications.rules.max_rules_per_ruleset cluster setting. + * Create or update a query ruleset. + *

                                                      + * There is a limit of 100 rules per ruleset. This limit can be increased by + * using the xpack.applications.rules.max_rules_per_ruleset cluster + * setting. *

                                                      * IMPORTANT: Due to limitations within pinned queries, you can only select * documents using ids or docs, but cannot use both in diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java index 4e7b47e686..f8744bfd0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java @@ -59,8 +59,10 @@ // typedef: query_rules.test.Request /** - * Test a query ruleset. Evaluate match criteria against a query ruleset to - * identify the rules that would match that criteria. + * Test a query ruleset. + *

                                                      + * Evaluate match criteria against a query ruleset to identify the rules that + * would match that criteria. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java index 45b8e75c74..daa7541fca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupAsyncClient.java @@ -159,8 +159,9 @@ public final CompletableFuture deleteJob( // ----- Endpoint: rollup.get_jobs /** - * Get rollup job information. Get the configuration, stats, and status of - * rollup jobs. + * Get rollup job information. + *

                                                      + * Get the configuration, stats, and status of rollup jobs. *

                                                      * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -180,8 +181,9 @@ public CompletableFuture getJobs(GetJobsRequest request) { } /** - * Get rollup job information. Get the configuration, stats, and status of - * rollup jobs. + * Get rollup job information. + *

                                                      + * Get the configuration, stats, and status of rollup jobs. *

                                                      * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -202,8 +204,9 @@ public final CompletableFuture getJobs( } /** - * Get rollup job information. Get the configuration, stats, and status of - * rollup jobs. + * Get rollup job information. + *

                                                      + * Get the configuration, stats, and status of rollup jobs. *

                                                      * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -223,8 +226,10 @@ public CompletableFuture getJobs() { // ----- Endpoint: rollup.get_rollup_caps /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                      + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                      * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -251,8 +256,10 @@ public CompletableFuture getRollupCaps(GetRollupCapsReque } /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                      + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                      * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -280,8 +287,10 @@ public final CompletableFuture getRollupCaps( } /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                      + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                      * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -308,10 +317,12 @@ public CompletableFuture getRollupCaps() { // ----- Endpoint: rollup.get_rollup_index_caps /** - * Get the rollup index capabilities. Get the rollup capabilities of all jobs - * inside of a rollup index. A single rollup index may store the data for - * multiple rollup jobs and may have a variety of capabilities depending on - * those jobs. This API enables you to determine: + * Get the rollup index capabilities. + *

                                                      + * Get the rollup capabilities of all jobs inside of a rollup index. A single + * rollup index may store the data for multiple rollup jobs and may have a + * variety of capabilities depending on those jobs. This API enables you to + * determine: *

                                                        *
                                                      • What jobs are stored in an index (or indices specified via a * pattern)?
                                                      • @@ -332,10 +343,12 @@ public CompletableFuture getRollupIndexCaps(GetRollu } /** - * Get the rollup index capabilities. Get the rollup capabilities of all jobs - * inside of a rollup index. A single rollup index may store the data for - * multiple rollup jobs and may have a variety of capabilities depending on - * those jobs. This API enables you to determine: + * Get the rollup index capabilities. + *

                                                        + * Get the rollup capabilities of all jobs inside of a rollup index. A single + * rollup index may store the data for multiple rollup jobs and may have a + * variety of capabilities depending on those jobs. This API enables you to + * determine: *

                                                          *
                                                        • What jobs are stored in an index (or indices specified via a * pattern)?
                                                        • @@ -424,11 +437,13 @@ public final CompletableFuture putJob( // ----- Endpoint: rollup.rollup_search /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                          + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                          * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -459,11 +474,13 @@ public CompletableFuture> rollupSear } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                          + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                          * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -513,11 +530,13 @@ public final CompletableFuture> rollupSearch( } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                          + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                          * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -548,11 +567,13 @@ public CompletableFuture> rollupSear } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                          + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                          * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -582,9 +603,10 @@ public final CompletableFuture> roll // ----- Endpoint: rollup.start_job /** - * Start rollup jobs. If you try to start a job that does not exist, an - * exception occurs. If you try to start a job that is already started, nothing - * happens. + * Start rollup jobs. + *

                                                          + * If you try to start a job that does not exist, an exception occurs. If you + * try to start a job that is already started, nothing happens. * * @see Documentation @@ -599,9 +621,10 @@ public CompletableFuture startJob(StartJobRequest request) { } /** - * Start rollup jobs. If you try to start a job that does not exist, an - * exception occurs. If you try to start a job that is already started, nothing - * happens. + * Start rollup jobs. + *

                                                          + * If you try to start a job that does not exist, an exception occurs. If you + * try to start a job that is already started, nothing happens. * * @param fn * a function that initializes a builder to create the @@ -619,8 +642,10 @@ public final CompletableFuture startJob( // ----- Endpoint: rollup.stop_job /** - * Stop rollup jobs. If you try to stop a job that does not exist, an exception - * occurs. If you try to stop a job that is already stopped, nothing happens. + * Stop rollup jobs. + *

                                                          + * If you try to stop a job that does not exist, an exception occurs. If you try + * to stop a job that is already stopped, nothing happens. *

                                                          * Since only a stopped job can be deleted, it can be useful to block the API * until the indexer has fully stopped. This is accomplished with the @@ -649,8 +674,10 @@ public CompletableFuture stopJob(StopJobRequest request) { } /** - * Stop rollup jobs. If you try to stop a job that does not exist, an exception - * occurs. If you try to stop a job that is already stopped, nothing happens. + * Stop rollup jobs. + *

                                                          + * If you try to stop a job that does not exist, an exception occurs. If you try + * to stop a job that is already stopped, nothing happens. *

                                                          * Since only a stopped job can be deleted, it can be useful to block the API * until the indexer has fully stopped. This is accomplished with the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java index 59e3f72d1d..2e1f84e39b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/ElasticsearchRollupClient.java @@ -159,8 +159,9 @@ public final DeleteJobResponse deleteJob(Function + * Get the configuration, stats, and status of rollup jobs. *

                                                          * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -180,8 +181,9 @@ public GetJobsResponse getJobs(GetJobsRequest request) throws IOException, Elast } /** - * Get rollup job information. Get the configuration, stats, and status of - * rollup jobs. + * Get rollup job information. + *

                                                          + * Get the configuration, stats, and status of rollup jobs. *

                                                          * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -202,8 +204,9 @@ public final GetJobsResponse getJobs(Function + * Get the configuration, stats, and status of rollup jobs. *

                                                          * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was @@ -223,8 +226,10 @@ public GetJobsResponse getJobs() throws IOException, ElasticsearchException { // ----- Endpoint: rollup.get_rollup_caps /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                          + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                          * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -252,8 +257,10 @@ public GetRollupCapsResponse getRollupCaps(GetRollupCapsRequest request) } /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                          + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                          * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -282,8 +289,10 @@ public final GetRollupCapsResponse getRollupCaps( } /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                          + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                          * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain @@ -310,10 +319,12 @@ public GetRollupCapsResponse getRollupCaps() throws IOException, ElasticsearchEx // ----- Endpoint: rollup.get_rollup_index_caps /** - * Get the rollup index capabilities. Get the rollup capabilities of all jobs - * inside of a rollup index. A single rollup index may store the data for - * multiple rollup jobs and may have a variety of capabilities depending on - * those jobs. This API enables you to determine: + * Get the rollup index capabilities. + *

                                                          + * Get the rollup capabilities of all jobs inside of a rollup index. A single + * rollup index may store the data for multiple rollup jobs and may have a + * variety of capabilities depending on those jobs. This API enables you to + * determine: *

                                                            *
                                                          • What jobs are stored in an index (or indices specified via a * pattern)?
                                                          • @@ -335,10 +346,12 @@ public GetRollupIndexCapsResponse getRollupIndexCaps(GetRollupIndexCapsRequest r } /** - * Get the rollup index capabilities. Get the rollup capabilities of all jobs - * inside of a rollup index. A single rollup index may store the data for - * multiple rollup jobs and may have a variety of capabilities depending on - * those jobs. This API enables you to determine: + * Get the rollup index capabilities. + *

                                                            + * Get the rollup capabilities of all jobs inside of a rollup index. A single + * rollup index may store the data for multiple rollup jobs and may have a + * variety of capabilities depending on those jobs. This API enables you to + * determine: *

                                                              *
                                                            • What jobs are stored in an index (or indices specified via a * pattern)?
                                                            • @@ -428,11 +441,13 @@ public final PutJobResponse putJob(Function + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                              * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -463,11 +478,13 @@ public RollupSearchResponse rollupSearch(RollupSearchRequ } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                              + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                              * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -519,11 +536,13 @@ public final RollupSearchResponse rollupSearch( } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                              + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                              * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -554,11 +573,13 @@ public RollupSearchResponse rollupSearch(RollupSearchRequ } /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                              + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                              * The request body supports a subset of features from the regular search API. * The following functionality is not available: @@ -589,9 +610,10 @@ public final RollupSearchResponse rollupSearch( // ----- Endpoint: rollup.start_job /** - * Start rollup jobs. If you try to start a job that does not exist, an - * exception occurs. If you try to start a job that is already started, nothing - * happens. + * Start rollup jobs. + *

                                                              + * If you try to start a job that does not exist, an exception occurs. If you + * try to start a job that is already started, nothing happens. * * @see Documentation @@ -606,9 +628,10 @@ public StartJobResponse startJob(StartJobRequest request) throws IOException, El } /** - * Start rollup jobs. If you try to start a job that does not exist, an - * exception occurs. If you try to start a job that is already started, nothing - * happens. + * Start rollup jobs. + *

                                                              + * If you try to start a job that does not exist, an exception occurs. If you + * try to start a job that is already started, nothing happens. * * @param fn * a function that initializes a builder to create the @@ -626,8 +649,10 @@ public final StartJobResponse startJob(Function + * If you try to stop a job that does not exist, an exception occurs. If you try + * to stop a job that is already stopped, nothing happens. *

                                                              * Since only a stopped job can be deleted, it can be useful to block the API * until the indexer has fully stopped. This is accomplished with the @@ -656,8 +681,10 @@ public StopJobResponse stopJob(StopJobRequest request) throws IOException, Elast } /** - * Stop rollup jobs. If you try to stop a job that does not exist, an exception - * occurs. If you try to stop a job that is already stopped, nothing happens. + * Stop rollup jobs. + *

                                                              + * If you try to stop a job that does not exist, an exception occurs. If you try + * to stop a job that is already stopped, nothing happens. *

                                                              * Since only a stopped job can be deleted, it can be useful to block the API * until the indexer has fully stopped. This is accomplished with the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java index 6769df348e..97d962d82e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java @@ -55,8 +55,9 @@ // typedef: rollup.get_jobs.Request /** - * Get rollup job information. Get the configuration, stats, and status of - * rollup jobs. + * Get rollup job information. + *

                                                              + * Get the configuration, stats, and status of rollup jobs. *

                                                              * NOTE: This API returns only active (both STARTED and * STOPPED) jobs. If a job was created, ran for a while, then was diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java index 137de339f1..f0f9ecbee9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java @@ -55,8 +55,10 @@ // typedef: rollup.get_rollup_caps.Request /** - * Get the rollup job capabilities. Get the capabilities of any rollup jobs that - * have been configured for a specific index or index pattern. + * Get the rollup job capabilities. + *

                                                              + * Get the capabilities of any rollup jobs that have been configured for a + * specific index or index pattern. *

                                                              * This API is useful because a rollup job is often configured to rollup only a * subset of fields from the source index. Furthermore, only certain diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java index a7f0ce3bc0..6411006607 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java @@ -58,10 +58,12 @@ // typedef: rollup.get_rollup_index_caps.Request /** - * Get the rollup index capabilities. Get the rollup capabilities of all jobs - * inside of a rollup index. A single rollup index may store the data for - * multiple rollup jobs and may have a variety of capabilities depending on - * those jobs. This API enables you to determine: + * Get the rollup index capabilities. + *

                                                              + * Get the rollup capabilities of all jobs inside of a rollup index. A single + * rollup index may store the data for multiple rollup jobs and may have a + * variety of capabilities depending on those jobs. This API enables you to + * determine: *

                                                                *
                                                              • What jobs are stored in an index (or indices specified via a * pattern)?
                                                              • diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java index 81ed6be8e0..68afb040de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java @@ -65,11 +65,13 @@ // typedef: rollup.rollup_search.Request /** - * Search rolled-up data. The rollup search endpoint is needed because, - * internally, rolled-up documents utilize a different document structure than - * the original data. It rewrites standard Query DSL into a format that matches - * the rollup documents then takes the response and rewrites it back to what a - * client would expect given the original query. + * Search rolled-up data. + *

                                                                + * The rollup search endpoint is needed because, internally, rolled-up documents + * utilize a different document structure than the original data. It rewrites + * standard Query DSL into a format that matches the rollup documents then takes + * the response and rewrites it back to what a client would expect given the + * original query. *

                                                                * The request body supports a subset of features from the regular search API. * The following functionality is not available: diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java index ed29d956bd..bb408d5d29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java @@ -56,9 +56,10 @@ // typedef: rollup.start_job.Request /** - * Start rollup jobs. If you try to start a job that does not exist, an - * exception occurs. If you try to start a job that is already started, nothing - * happens. + * Start rollup jobs. + *

                                                                + * If you try to start a job that does not exist, an exception occurs. If you + * try to start a job that is already started, nothing happens. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java index 0d94dee961..0eaf6dc491 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java @@ -57,8 +57,10 @@ // typedef: rollup.stop_job.Request /** - * Stop rollup jobs. If you try to stop a job that does not exist, an exception - * occurs. If you try to stop a job that is already stopped, nothing happens. + * Stop rollup jobs. + *

                                                                + * If you try to stop a job that does not exist, an exception occurs. If you try + * to stop a job that is already stopped, nothing happens. *

                                                                * Since only a stopped job can be deleted, it can be useful to block the API * until the indexer has fully stopped. This is accomplished with the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java index c39dfe1f8c..afdcdce2e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java @@ -56,8 +56,9 @@ // typedef: search_application.delete_behavioral_analytics.Request /** - * Delete a behavioral analytics collection. The associated data stream is also - * deleted. + * Delete a behavioral analytics collection. + *

                                                                + * The associated data stream is also deleted. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java index 2b6dcbbf1f..0a0470a2f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java @@ -111,8 +111,9 @@ public final CompletableFuture delete( // ----- Endpoint: search_application.delete_behavioral_analytics /** - * Delete a behavioral analytics collection. The associated data stream is also - * deleted. + * Delete a behavioral analytics collection. + *

                                                                + * The associated data stream is also deleted. * * @see Documentation @@ -128,8 +129,9 @@ public CompletableFuture deleteBehavioralAnal } /** - * Delete a behavioral analytics collection. The associated data stream is also - * deleted. + * Delete a behavioral analytics collection. + *

                                                                + * The associated data stream is also deleted. * * @param fn * a function that initializes a builder to create the @@ -227,7 +229,9 @@ public CompletableFuture getBehavioralAnalytics( // ----- Endpoint: search_application.list /** - * Get search applications. Get information about search applications. + * Get search applications. + *

                                                                + * Get information about search applications. * * @see Documentation @@ -242,7 +246,9 @@ public CompletableFuture list(ListRequest request) { } /** - * Get search applications. Get information about search applications. + * Get search applications. + *

                                                                + * Get information about search applications. * * @param fn * a function that initializes a builder to create the @@ -257,7 +263,9 @@ public final CompletableFuture list(Function + * Get information about search applications. * * @see Documentation @@ -372,13 +380,14 @@ public final CompletableFuture putBehavioralAnal // ----- Endpoint: search_application.render_query /** - * Render a search application query. Generate an Elasticsearch query using the - * specified query parameters and the search template associated with the search - * application or a default template if none is specified. If a parameter used - * in the search template is not specified in params, the - * parameter's default value will be used. The API returns the specific - * Elasticsearch query that would be generated and run by calling the search - * application search API. + * Render a search application query. + *

                                                                + * Generate an Elasticsearch query using the specified query parameters and the + * search template associated with the search application or a default template + * if none is specified. If a parameter used in the search template is not + * specified in params, the parameter's default value will be used. + * The API returns the specific Elasticsearch query that would be generated and + * run by calling the search application search API. *

                                                                * You must have read privileges on the backing alias of the search * application. @@ -396,13 +405,14 @@ public CompletableFuture renderQuery(RenderQueryRequest req } /** - * Render a search application query. Generate an Elasticsearch query using the - * specified query parameters and the search template associated with the search - * application or a default template if none is specified. If a parameter used - * in the search template is not specified in params, the - * parameter's default value will be used. The API returns the specific - * Elasticsearch query that would be generated and run by calling the search - * application search API. + * Render a search application query. + *

                                                                + * Generate an Elasticsearch query using the specified query parameters and the + * search template associated with the search application or a default template + * if none is specified. If a parameter used in the search template is not + * specified in params, the parameter's default value will be used. + * The API returns the specific Elasticsearch query that would be generated and + * run by calling the search application search API. *

                                                                * You must have read privileges on the backing alias of the search * application. @@ -423,10 +433,12 @@ public final CompletableFuture renderQuery( // ----- Endpoint: search_application.search /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @see Documentation @@ -445,10 +457,12 @@ public CompletableFuture> } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @param fn * a function that initializes a builder to create the @@ -486,10 +500,12 @@ public final CompletableFuture> search( } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @see Documentation @@ -508,10 +524,12 @@ public CompletableFuture> } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java index a6a1f3978a..a3386adfc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java @@ -114,8 +114,9 @@ public final DeleteSearchApplicationResponse delete( // ----- Endpoint: search_application.delete_behavioral_analytics /** - * Delete a behavioral analytics collection. The associated data stream is also - * deleted. + * Delete a behavioral analytics collection. + *

                                                                + * The associated data stream is also deleted. * * @see Documentation @@ -131,8 +132,9 @@ public DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics(DeleteBehavio } /** - * Delete a behavioral analytics collection. The associated data stream is also - * deleted. + * Delete a behavioral analytics collection. + *

                                                                + * The associated data stream is also deleted. * * @param fn * a function that initializes a builder to create the @@ -234,7 +236,9 @@ public GetBehavioralAnalyticsResponse getBehavioralAnalytics() throws IOExceptio // ----- Endpoint: search_application.list /** - * Get search applications. Get information about search applications. + * Get search applications. + *

                                                                + * Get information about search applications. * * @see Documentation @@ -249,7 +253,9 @@ public ListResponse list(ListRequest request) throws IOException, ElasticsearchE } /** - * Get search applications. Get information about search applications. + * Get search applications. + *

                                                                + * Get information about search applications. * * @param fn * a function that initializes a builder to create the @@ -265,7 +271,9 @@ public final ListResponse list(Function + * Get information about search applications. * * @see Documentation @@ -383,13 +391,14 @@ public final PutBehavioralAnalyticsResponse putBehavioralAnalytics( // ----- Endpoint: search_application.render_query /** - * Render a search application query. Generate an Elasticsearch query using the - * specified query parameters and the search template associated with the search - * application or a default template if none is specified. If a parameter used - * in the search template is not specified in params, the - * parameter's default value will be used. The API returns the specific - * Elasticsearch query that would be generated and run by calling the search - * application search API. + * Render a search application query. + *

                                                                + * Generate an Elasticsearch query using the specified query parameters and the + * search template associated with the search application or a default template + * if none is specified. If a parameter used in the search template is not + * specified in params, the parameter's default value will be used. + * The API returns the specific Elasticsearch query that would be generated and + * run by calling the search application search API. *

                                                                * You must have read privileges on the backing alias of the search * application. @@ -407,13 +416,14 @@ public RenderQueryResponse renderQuery(RenderQueryRequest request) throws IOExce } /** - * Render a search application query. Generate an Elasticsearch query using the - * specified query parameters and the search template associated with the search - * application or a default template if none is specified. If a parameter used - * in the search template is not specified in params, the - * parameter's default value will be used. The API returns the specific - * Elasticsearch query that would be generated and run by calling the search - * application search API. + * Render a search application query. + *

                                                                + * Generate an Elasticsearch query using the specified query parameters and the + * search template associated with the search application or a default template + * if none is specified. If a parameter used in the search template is not + * specified in params, the parameter's default value will be used. + * The API returns the specific Elasticsearch query that would be generated and + * run by calling the search application search API. *

                                                                * You must have read privileges on the backing alias of the search * application. @@ -435,10 +445,12 @@ public final RenderQueryResponse renderQuery( // ----- Endpoint: search_application.search /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @see Documentation @@ -457,10 +469,12 @@ public SearchApplicationSearchResponse search(SearchAppli } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @param fn * a function that initializes a builder to create the @@ -500,10 +514,12 @@ public final SearchApplicationSearchResponse search( } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @see Documentation @@ -522,10 +538,12 @@ public SearchApplicationSearchResponse search(SearchAppli } /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java index 66e68f1a18..f448b14d20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -56,7 +56,9 @@ // typedef: search_application.list.Request /** - * Get search applications. Get information about search applications. + * Get search applications. + *

                                                                + * Get information about search applications. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java index 8a0ec87797..329fd8b09d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java @@ -59,13 +59,14 @@ // typedef: search_application.render_query.Request /** - * Render a search application query. Generate an Elasticsearch query using the - * specified query parameters and the search template associated with the search - * application or a default template if none is specified. If a parameter used - * in the search template is not specified in params, the - * parameter's default value will be used. The API returns the specific - * Elasticsearch query that would be generated and run by calling the search - * application search API. + * Render a search application query. + *

                                                                + * Generate an Elasticsearch query using the specified query parameters and the + * search template associated with the search application or a default template + * if none is specified. If a parameter used in the search template is not + * specified in params, the parameter's default value will be used. + * The API returns the specific Elasticsearch query that would be generated and + * run by calling the search application search API. *

                                                                * You must have read privileges on the backing alias of the search * application. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java index 94832cb74f..0d1ccdcb4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -59,10 +59,12 @@ // typedef: search_application.search.Request /** - * Run a search application search. Generate and run an Elasticsearch query that - * uses the specified query parameteter and the search template associated with - * the search application or default template. Unspecified template parameters - * are assigned their default values if applicable. + * Run a search application search. + *

                                                                + * Generate and run an Elasticsearch query that uses the specified query + * parameteter and the search template associated with the search application or + * default template. Unspecified template parameters are assigned their default + * values if applicable. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java index 9967e7b678..0eb75e1d07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java @@ -58,8 +58,9 @@ // typedef: searchable_snapshots.cache_stats.Request /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java index 7582b9a06d..cc926ca02e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java @@ -59,8 +59,10 @@ // typedef: searchable_snapshots.clear_cache.Request /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @see API @@ -107,7 +109,7 @@ public final Boolean allowNoIndices() { /** * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * closed or both *

                                                                * API name: {@code expand_wildcards} */ @@ -171,7 +173,7 @@ public final Builder allowNoIndices(@Nullable Boolean value) { /** * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * closed or both *

                                                                * API name: {@code expand_wildcards} *

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

                                                                * API name: {@code expand_wildcards} *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java index 824c3bcef6..85c65302e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsAsyncClient.java @@ -71,8 +71,9 @@ public ElasticsearchSearchableSnapshotsAsyncClient withTransportOptions( // ----- Endpoint: searchable_snapshots.cache_stats /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @see Documentation @@ -87,8 +88,9 @@ public CompletableFuture cacheStats(CacheStatsRequest reques } /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @param fn * a function that initializes a builder to create the @@ -104,8 +106,9 @@ public final CompletableFuture cacheStats( } /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @see Documentation @@ -120,8 +123,10 @@ public CompletableFuture cacheStats() { // ----- Endpoint: searchable_snapshots.clear_cache /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @see Documentation @@ -136,8 +141,10 @@ public CompletableFuture clearCache(ClearCacheRequest reques } /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @param fn * a function that initializes a builder to create the @@ -153,8 +160,10 @@ public final CompletableFuture clearCache( } /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @see Documentation @@ -169,9 +178,11 @@ public CompletableFuture clearCache() { // ----- Endpoint: searchable_snapshots.mount /** - * Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use - * this API for snapshots managed by index lifecycle management (ILM). Manually - * mounting ILM-managed snapshots can interfere with ILM processes. + * Mount a snapshot. + *

                                                                + * Mount a snapshot as a searchable snapshot index. Do not use this API for + * snapshots managed by index lifecycle management (ILM). Manually mounting + * ILM-managed snapshots can interfere with ILM processes. * * @see Documentation @@ -186,9 +197,11 @@ public CompletableFuture mount(MountRequest request) { } /** - * Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use - * this API for snapshots managed by index lifecycle management (ILM). Manually - * mounting ILM-managed snapshots can interfere with ILM processes. + * Mount a snapshot. + *

                                                                + * Mount a snapshot as a searchable snapshot index. Do not use this API for + * snapshots managed by index lifecycle management (ILM). Manually mounting + * ILM-managed snapshots can interfere with ILM processes. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java index e63e96ca29..df8b43b21a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ElasticsearchSearchableSnapshotsClient.java @@ -71,8 +71,9 @@ public ElasticsearchSearchableSnapshotsClient withTransportOptions(@Nullable Tra // ----- Endpoint: searchable_snapshots.cache_stats /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @see Documentation @@ -87,8 +88,9 @@ public CacheStatsResponse cacheStats(CacheStatsRequest request) throws IOExcepti } /** - * Get cache statistics. Get statistics about the shared cache for partially - * mounted indices. + * Get cache statistics. + *

                                                                + * Get statistics about the shared cache for partially mounted indices. * * @param fn * a function that initializes a builder to create the @@ -104,8 +106,9 @@ public final CacheStatsResponse cacheStats(Function + * Get statistics about the shared cache for partially mounted indices. * * @see Documentation @@ -120,8 +123,10 @@ public CacheStatsResponse cacheStats() throws IOException, ElasticsearchExceptio // ----- Endpoint: searchable_snapshots.clear_cache /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @see Documentation @@ -136,8 +141,10 @@ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOExcepti } /** - * Clear the cache. Clear indices and data streams from the shared cache for - * partially mounted indices. + * Clear the cache. + *

                                                                + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @param fn * a function that initializes a builder to create the @@ -153,8 +160,10 @@ public final ClearCacheResponse clearCache(Function + * Clear indices and data streams from the shared cache for partially mounted + * indices. * * @see Documentation @@ -169,9 +178,11 @@ public ClearCacheResponse clearCache() throws IOException, ElasticsearchExceptio // ----- Endpoint: searchable_snapshots.mount /** - * Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use - * this API for snapshots managed by index lifecycle management (ILM). Manually - * mounting ILM-managed snapshots can interfere with ILM processes. + * Mount a snapshot. + *

                                                                + * Mount a snapshot as a searchable snapshot index. Do not use this API for + * snapshots managed by index lifecycle management (ILM). Manually mounting + * ILM-managed snapshots can interfere with ILM processes. * * @see Documentation @@ -186,9 +197,11 @@ public MountResponse mount(MountRequest request) throws IOException, Elasticsear } /** - * Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use - * this API for snapshots managed by index lifecycle management (ILM). Manually - * mounting ILM-managed snapshots can interfere with ILM processes. + * Mount a snapshot. + *

                                                                + * Mount a snapshot as a searchable snapshot index. Do not use this API for + * snapshots managed by index lifecycle management (ILM). Manually mounting + * ILM-managed snapshots can interfere with ILM processes. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java index 2975ca7697..9817759143 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java @@ -61,9 +61,11 @@ // typedef: searchable_snapshots.mount.Request /** - * Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use - * this API for snapshots managed by index lifecycle management (ILM). Manually - * mounting ILM-managed snapshots can interfere with ILM processes. + * Mount a snapshot. + *

                                                                + * Mount a snapshot as a searchable snapshot index. Do not use this API for + * snapshots managed by index lifecycle management (ILM). Manually mounting + * ILM-managed snapshots can interfere with ILM processes. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java index 5b4d2035ce..fcfaa4d4e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java @@ -60,7 +60,9 @@ // typedef: security.bulk_update_api_keys.Request /** - * Bulk update API keys. Update the attributes for multiple API keys. + * Bulk update API keys. + *

                                                                + * Update the attributes for multiple API keys. *

                                                                * IMPORTANT: It is not possible to use an API key as the authentication * credential for this API. To update API keys, the owner user's credentials are diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java index 6c7097cb41..5b0812e3da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java @@ -33,9 +33,11 @@ import java.lang.String; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -68,13 +70,13 @@ */ public class ClearCachedPrivilegesRequest extends RequestBase { - private final String application; + private final List application; // --------------------------------------------------------------------------------------------- private ClearCachedPrivilegesRequest(Builder builder) { - this.application = ApiTypeHelper.requireNonNull(builder.application, this, "application"); + this.application = ApiTypeHelper.unmodifiableRequired(builder.application, this, "application"); } @@ -89,7 +91,7 @@ public static ClearCachedPrivilegesRequest of(Function * API name: {@code application} */ - public final String application() { + public final List application() { return this.application; } @@ -102,7 +104,7 @@ public final String application() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { - private String application; + private List application; /** * Required - A comma-separated list of applications. To clear all applications, @@ -110,9 +112,25 @@ public static class Builder extends RequestBase.AbstractBuilder * patterns. *

                                                                * API name: {@code application} + *

                                                                + * Adds all elements of list to application. + */ + public final Builder application(List list) { + this.application = _listAddAll(this.application, list); + return this; + } + + /** + * Required - A comma-separated list of applications. To clear all applications, + * use an asterism (*). It does not support other wildcard + * patterns. + *

                                                                + * API name: {@code application} + *

                                                                + * Adds one or more values to application. */ - public final Builder application(String value) { - this.application = value; + public final Builder application(String value, String... values) { + this.application = _listAdd(this.application, value, values); return this; } @@ -161,7 +179,8 @@ public ClearCachedPrivilegesRequest build() { buf.append("/_security"); buf.append("/privilege"); buf.append("/"); - SimpleEndpoint.pathEncode(request.application, buf); + SimpleEndpoint.pathEncode(request.application.stream().map(v -> v).collect(Collectors.joining(",")), + buf); buf.append("/_clear_cache"); return buf.toString(); } @@ -179,7 +198,8 @@ public ClearCachedPrivilegesRequest build() { propsSet |= _application; if (propsSet == (_application)) { - params.put("application", request.application); + params.put("application", + request.application.stream().map(v -> v).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java index e5d0de7d30..e5821713fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java @@ -126,8 +126,8 @@ public final String namespace() { } /** - * If true then refresh the affected shards to make this operation - * visible to search, if wait_for (the default) then wait for a + * If true (the default) then refresh the affected shards to make + * this operation visible to search, if wait_for then wait for a * refresh to make this operation visible to search, if false then * do nothing with refreshes. *

                                                                @@ -198,8 +198,8 @@ public final Builder namespace(String value) { } /** - * If true then refresh the affected shards to make this operation - * visible to search, if wait_for (the default) then wait for a + * If true (the default) then refresh the affected shards to make + * this operation visible to search, if wait_for then wait for a * refresh to make this operation visible to search, if false then * do nothing with refreshes. *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java index c9f21e91c5..2568b64f68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java @@ -109,8 +109,8 @@ public final String namespace() { } /** - * If true then refresh the affected shards to make this operation - * visible to search, if wait_for (the default) then wait for a + * If true (the default) then refresh the affected shards to make + * this operation visible to search, if wait_for then wait for a * refresh to make this operation visible to search, if false then * do nothing with refreshes. *

                                                                @@ -169,8 +169,8 @@ public final Builder namespace(String value) { } /** - * If true then refresh the affected shards to make this operation - * visible to search, if wait_for (the default) then wait for a + * If true (the default) then refresh the affected shards to make + * this operation visible to search, if wait_for then wait for a * refresh to make this operation visible to search, if false then * do nothing with refreshes. *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java index 6c3acd783f..31a7ff21a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityAsyncClient.java @@ -253,7 +253,9 @@ public final CompletableFuture bulkPutRole( // ----- Endpoint: security.bulk_update_api_keys /** - * Bulk update API keys. Update the attributes for multiple API keys. + * Bulk update API keys. + *

                                                                + * Update the attributes for multiple API keys. *

                                                                * IMPORTANT: It is not possible to use an API key as the authentication * credential for this API. To update API keys, the owner user's credentials are @@ -293,7 +295,9 @@ public CompletableFuture bulkUpdateApiKeys(BulkUpdate } /** - * Bulk update API keys. Update the attributes for multiple API keys. + * Bulk update API keys. + *

                                                                + * Update the attributes for multiple API keys. *

                                                                * IMPORTANT: It is not possible to use an API key as the authentication * credential for this API. To update API keys, the owner user's credentials are diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java index e426522e5a..54861874d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ElasticsearchSecurityClient.java @@ -256,7 +256,9 @@ public final BulkPutRoleResponse bulkPutRole( // ----- Endpoint: security.bulk_update_api_keys /** - * Bulk update API keys. Update the attributes for multiple API keys. + * Bulk update API keys. + *

                                                                + * Update the attributes for multiple API keys. *

                                                                * IMPORTANT: It is not possible to use an API key as the authentication * credential for this API. To update API keys, the owner user's credentials are @@ -297,7 +299,9 @@ public BulkUpdateApiKeysResponse bulkUpdateApiKeys(BulkUpdateApiKeysRequest requ } /** - * Bulk update API keys. Update the attributes for multiple API keys. + * Bulk update API keys. + *

                                                                + * Update the attributes for multiple API keys. *

                                                                * IMPORTANT: It is not possible to use an API key as the authentication * credential for this API. To update API keys, the owner user's credentials are diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java index 22878e08b8..cf93788cca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java @@ -159,8 +159,10 @@ public final Integer size() { } /** - * The sort definition. You can sort on username, - * roles, or enabled. In addition, sort can also be + * The sort definition. You can sort on name, + * description, metadata, + * applications.application, applications.privileges, + * and applications.resources. In addition, sort can also be * applied to the _doc field to sort by index order. *

                                                                * API name: {@code sort} @@ -420,8 +422,10 @@ public final Builder size(@Nullable Integer value) { } /** - * The sort definition. You can sort on username, - * roles, or enabled. In addition, sort can also be + * The sort definition. You can sort on name, + * description, metadata, + * applications.application, applications.privileges, + * and applications.resources. In addition, sort can also be * applied to the _doc field to sort by index order. *

                                                                * API name: {@code sort} @@ -434,8 +438,10 @@ public final Builder sort(List list) { } /** - * The sort definition. You can sort on username, - * roles, or enabled. In addition, sort can also be + * The sort definition. You can sort on name, + * description, metadata, + * applications.application, applications.privileges, + * and applications.resources. In addition, sort can also be * applied to the _doc field to sort by index order. *

                                                                * API name: {@code sort} @@ -448,8 +454,10 @@ public final Builder sort(SortOptions value, SortOptions... values) { } /** - * The sort definition. You can sort on username, - * roles, or enabled. In addition, sort can also be + * The sort definition. You can sort on name, + * description, metadata, + * applications.application, applications.privileges, + * and applications.resources. In addition, sort can also be * applied to the _doc field to sort by index order. *

                                                                * API name: {@code sort} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java index 5cd486fbbf..8903649fa8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateResponse.java @@ -71,6 +71,9 @@ public class SamlAuthenticateResponse implements JsonpSerializable { private final String realm; + @Nullable + private final String inResponseTo; + // --------------------------------------------------------------------------------------------- private SamlAuthenticateResponse(Builder builder) { @@ -80,6 +83,7 @@ private SamlAuthenticateResponse(Builder builder) { this.expiresIn = ApiTypeHelper.requireNonNull(builder.expiresIn, this, "expiresIn", 0); this.refreshToken = ApiTypeHelper.requireNonNull(builder.refreshToken, this, "refreshToken"); this.realm = ApiTypeHelper.requireNonNull(builder.realm, this, "realm"); + this.inResponseTo = builder.inResponseTo; } @@ -132,6 +136,16 @@ public final String realm() { return this.realm; } + /** + * The id of the request that initiated the authentication process. + *

                                                                + * API name: {@code in_response_to} + */ + @Nullable + public final String inResponseTo() { + return this.inResponseTo; + } + /** * Serialize this object to JSON. */ @@ -158,6 +172,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("realm"); generator.write(this.realm); + if (this.inResponseTo != null) { + generator.writeKey("in_response_to"); + generator.write(this.inResponseTo); + + } + } @Override @@ -184,6 +204,9 @@ public static class Builder extends WithJsonObjectBuilderBase private String realm; + @Nullable + private String inResponseTo; + /** * Required - The access token that was generated by Elasticsearch. *

                                                                @@ -234,6 +257,16 @@ public final Builder realm(String value) { return this; } + /** + * The id of the request that initiated the authentication process. + *

                                                                + * API name: {@code in_response_to} + */ + public final Builder inResponseTo(@Nullable String value) { + this.inResponseTo = value; + return this; + } + @Override protected Builder self() { return this; @@ -268,6 +301,7 @@ protected static void setupSamlAuthenticateResponseDeserializer( op.add(Builder::expiresIn, JsonpDeserializer.integerDeserializer(), "expires_in"); op.add(Builder::refreshToken, JsonpDeserializer.stringDeserializer(), "refresh_token"); op.add(Builder::realm, JsonpDeserializer.stringDeserializer(), "realm"); + op.add(Builder::inResponseTo, JsonpDeserializer.stringDeserializer(), "in_response_to"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java index 5d8b23f472..42d7363c15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java @@ -56,10 +56,12 @@ // typedef: shutdown.delete_node.Request /** - * Cancel node shutdown preparations. Remove a node from the shutdown list so it - * can resume normal operations. You must explicitly clear the shutdown request - * when a node rejoins the cluster or when a node has permanently left the - * cluster. Shutdown requests are never removed automatically by Elasticsearch. + * Cancel node shutdown preparations. + *

                                                                + * Remove a node from the shutdown list so it can resume normal operations. You + * must explicitly clear the shutdown request when a node rejoins the cluster or + * when a node has permanently left the cluster. Shutdown requests are never + * removed automatically by Elasticsearch. *

                                                                * NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic * Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java index edbbbbdf3b..a5760f5a60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownAsyncClient.java @@ -70,10 +70,12 @@ public ElasticsearchShutdownAsyncClient withTransportOptions(@Nullable Transport // ----- Endpoint: shutdown.delete_node /** - * Cancel node shutdown preparations. Remove a node from the shutdown list so it - * can resume normal operations. You must explicitly clear the shutdown request - * when a node rejoins the cluster or when a node has permanently left the - * cluster. Shutdown requests are never removed automatically by Elasticsearch. + * Cancel node shutdown preparations. + *

                                                                + * Remove a node from the shutdown list so it can resume normal operations. You + * must explicitly clear the shutdown request when a node rejoins the cluster or + * when a node has permanently left the cluster. Shutdown requests are never + * removed automatically by Elasticsearch. *

                                                                * NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic * Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not @@ -95,10 +97,12 @@ public CompletableFuture deleteNode(DeleteNodeRequest reques } /** - * Cancel node shutdown preparations. Remove a node from the shutdown list so it - * can resume normal operations. You must explicitly clear the shutdown request - * when a node rejoins the cluster or when a node has permanently left the - * cluster. Shutdown requests are never removed automatically by Elasticsearch. + * Cancel node shutdown preparations. + *

                                                                + * Remove a node from the shutdown list so it can resume normal operations. You + * must explicitly clear the shutdown request when a node rejoins the cluster or + * when a node has permanently left the cluster. Shutdown requests are never + * removed automatically by Elasticsearch. *

                                                                * NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic * Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java index 03747e3f10..9c8a8f5fc8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/ElasticsearchShutdownClient.java @@ -68,10 +68,12 @@ public ElasticsearchShutdownClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: shutdown.delete_node /** - * Cancel node shutdown preparations. Remove a node from the shutdown list so it - * can resume normal operations. You must explicitly clear the shutdown request - * when a node rejoins the cluster or when a node has permanently left the - * cluster. Shutdown requests are never removed automatically by Elasticsearch. + * Cancel node shutdown preparations. + *

                                                                + * Remove a node from the shutdown list so it can resume normal operations. You + * must explicitly clear the shutdown request when a node rejoins the cluster or + * when a node has permanently left the cluster. Shutdown requests are never + * removed automatically by Elasticsearch. *

                                                                * NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic * Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not @@ -93,10 +95,12 @@ public DeleteNodeResponse deleteNode(DeleteNodeRequest request) throws IOExcepti } /** - * Cancel node shutdown preparations. Remove a node from the shutdown list so it - * can resume normal operations. You must explicitly clear the shutdown request - * when a node rejoins the cluster or when a node has permanently left the - * cluster. Shutdown requests are never removed automatically by Elasticsearch. + * Cancel node shutdown preparations. + *

                                                                + * Remove a node from the shutdown list so it can resume normal operations. You + * must explicitly clear the shutdown request when a node rejoins the cluster or + * when a node has permanently left the cluster. Shutdown requests are never + * removed automatically by Elasticsearch. *

                                                                * NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic * Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java index 737548cb07..bb3842669b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java @@ -106,7 +106,7 @@ public final Time masterTimeout() { } /** - * Which node for which to retrieve the shutdown status + * Comma-separated list of nodes for which to retrieve the shutdown status *

                                                                * API name: {@code node_id} */ @@ -149,7 +149,7 @@ public final Builder masterTimeout(Function> f } /** - * Which node for which to retrieve the shutdown status + * Comma-separated list of nodes for which to retrieve the shutdown status *

                                                                * API name: {@code node_id} *

                                                                @@ -161,7 +161,7 @@ public final Builder nodeId(List list) { } /** - * Which node for which to retrieve the shutdown status + * Comma-separated list of nodes for which to retrieve the shutdown status *

                                                                * API name: {@code node_id} *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateAsyncClient.java index 04ce2c2581..c505b60464 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateAsyncClient.java @@ -70,9 +70,10 @@ public ElasticsearchSimulateAsyncClient withTransportOptions(@Nullable Transport // ----- Endpoint: simulate.ingest /** - * Simulate data ingestion. Run ingest pipelines against a set of provided - * documents, optionally with substitute pipeline definitions, to simulate - * ingesting data into an index. + * Simulate data ingestion. + *

                                                                + * Run ingest pipelines against a set of provided documents, optionally with + * substitute pipeline definitions, to simulate ingesting data into an index. *

                                                                * This API is meant to be used for troubleshooting or pipeline development, as * it does not actually index any data into Elasticsearch. @@ -114,9 +115,10 @@ public CompletableFuture ingest(IngestRequest request) { } /** - * Simulate data ingestion. Run ingest pipelines against a set of provided - * documents, optionally with substitute pipeline definitions, to simulate - * ingesting data into an index. + * Simulate data ingestion. + *

                                                                + * Run ingest pipelines against a set of provided documents, optionally with + * substitute pipeline definitions, to simulate ingesting data into an index. *

                                                                * This API is meant to be used for troubleshooting or pipeline development, as * it does not actually index any data into Elasticsearch. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateClient.java index 34b8fe3f15..29d8aec33d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ElasticsearchSimulateClient.java @@ -68,9 +68,10 @@ public ElasticsearchSimulateClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: simulate.ingest /** - * Simulate data ingestion. Run ingest pipelines against a set of provided - * documents, optionally with substitute pipeline definitions, to simulate - * ingesting data into an index. + * Simulate data ingestion. + *

                                                                + * Run ingest pipelines against a set of provided documents, optionally with + * substitute pipeline definitions, to simulate ingesting data into an index. *

                                                                * This API is meant to be used for troubleshooting or pipeline development, as * it does not actually index any data into Elasticsearch. @@ -112,9 +113,10 @@ public IngestResponse ingest(IngestRequest request) throws IOException, Elastics } /** - * Simulate data ingestion. Run ingest pipelines against a set of provided - * documents, optionally with substitute pipeline definitions, to simulate - * ingesting data into an index. + * Simulate data ingestion. + *

                                                                + * Run ingest pipelines against a set of provided documents, optionally with + * substitute pipeline definitions, to simulate ingesting data into an index. *

                                                                * This API is meant to be used for troubleshooting or pipeline development, as * it does not actually index any data into Elasticsearch. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java index 4fe9465065..3fdb5fe944 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java @@ -64,9 +64,10 @@ // typedef: simulate.ingest.Request /** - * Simulate data ingestion. Run ingest pipelines against a set of provided - * documents, optionally with substitute pipeline definitions, to simulate - * ingesting data into an index. + * Simulate data ingestion. + *

                                                                + * Run ingest pipelines against a set of provided documents, optionally with + * substitute pipeline definitions, to simulate ingesting data into an index. *

                                                                * This API is meant to be used for troubleshooting or pipeline development, as * it does not actually index any data into Elasticsearch. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java index 7af35dfdef..d155b30623 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java @@ -56,9 +56,11 @@ // typedef: slm.delete_lifecycle.Request /** - * Delete a policy. Delete a snapshot lifecycle policy definition. This - * operation prevents any future snapshots from being taken but does not cancel - * in-progress snapshots or remove previously-taken snapshots. + * Delete a policy. + *

                                                                + * Delete a snapshot lifecycle policy definition. This operation prevents any + * future snapshots from being taken but does not cancel in-progress snapshots + * or remove previously-taken snapshots. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmAsyncClient.java index ce21ea5cbe..f72828f5be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmAsyncClient.java @@ -67,9 +67,11 @@ public ElasticsearchSlmAsyncClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: slm.delete_lifecycle /** - * Delete a policy. Delete a snapshot lifecycle policy definition. This - * operation prevents any future snapshots from being taken but does not cancel - * in-progress snapshots or remove previously-taken snapshots. + * Delete a policy. + *

                                                                + * Delete a snapshot lifecycle policy definition. This operation prevents any + * future snapshots from being taken but does not cancel in-progress snapshots + * or remove previously-taken snapshots. * * @see Documentation @@ -84,9 +86,11 @@ public CompletableFuture deleteLifecycle(DeleteLifecycl } /** - * Delete a policy. Delete a snapshot lifecycle policy definition. This - * operation prevents any future snapshots from being taken but does not cancel - * in-progress snapshots or remove previously-taken snapshots. + * Delete a policy. + *

                                                                + * Delete a snapshot lifecycle policy definition. This operation prevents any + * future snapshots from being taken but does not cancel in-progress snapshots + * or remove previously-taken snapshots. * * @param fn * a function that initializes a builder to create the @@ -104,10 +108,12 @@ public final CompletableFuture deleteLifecycle( // ----- Endpoint: slm.execute_lifecycle /** - * Run a policy. Immediately create a snapshot according to the snapshot - * lifecycle policy without waiting for the scheduled time. The snapshot policy - * is normally applied according to its schedule, but you might want to manually - * run a policy before performing an upgrade or other maintenance. + * Run a policy. + *

                                                                + * Immediately create a snapshot according to the snapshot lifecycle policy + * without waiting for the scheduled time. The snapshot policy is normally + * applied according to its schedule, but you might want to manually run a + * policy before performing an upgrade or other maintenance. * * @see Documentation @@ -122,10 +128,12 @@ public CompletableFuture executeLifecycle(ExecuteLifec } /** - * Run a policy. Immediately create a snapshot according to the snapshot - * lifecycle policy without waiting for the scheduled time. The snapshot policy - * is normally applied according to its schedule, but you might want to manually - * run a policy before performing an upgrade or other maintenance. + * Run a policy. + *

                                                                + * Immediately create a snapshot according to the snapshot lifecycle policy + * without waiting for the scheduled time. The snapshot policy is normally + * applied according to its schedule, but you might want to manually run a + * policy before performing an upgrade or other maintenance. * * @param fn * a function that initializes a builder to create the @@ -143,10 +151,11 @@ public final CompletableFuture executeLifecycle( // ----- Endpoint: slm.execute_retention /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @see Documentation @@ -161,10 +170,11 @@ public CompletableFuture executeRetention(ExecuteReten } /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @param fn * a function that initializes a builder to create the @@ -180,10 +190,11 @@ public final CompletableFuture executeRetention( } /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @see Documentation @@ -198,8 +209,10 @@ public CompletableFuture executeRetention() { // ----- Endpoint: slm.get_lifecycle /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @see Documentation @@ -214,8 +227,10 @@ public CompletableFuture getLifecycle(GetLifecycleRequest } /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @param fn * a function that initializes a builder to create the @@ -231,8 +246,10 @@ public final CompletableFuture getLifecycle( } /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @see Documentation @@ -247,8 +264,10 @@ public CompletableFuture getLifecycle() { // ----- Endpoint: slm.get_stats /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @see Documentation @@ -263,8 +282,10 @@ public CompletableFuture getStats(GetStatsRequest request) { } /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @param fn * a function that initializes a builder to create the @@ -280,8 +301,10 @@ public final CompletableFuture getStats( } /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @see Documentation @@ -342,9 +365,11 @@ public CompletableFuture getStatus() { // ----- Endpoint: slm.put_lifecycle /** - * Create or update a policy. Create or update a snapshot lifecycle policy. If - * the policy already exists, this request increments the policy version. Only - * the latest version of a policy is stored. + * Create or update a policy. + *

                                                                + * Create or update a snapshot lifecycle policy. If the policy already exists, + * this request increments the policy version. Only the latest version of a + * policy is stored. * * @see Documentation @@ -359,9 +384,11 @@ public CompletableFuture putLifecycle(PutLifecycleRequest } /** - * Create or update a policy. Create or update a snapshot lifecycle policy. If - * the policy already exists, this request increments the policy version. Only - * the latest version of a policy is stored. + * Create or update a policy. + *

                                                                + * Create or update a snapshot lifecycle policy. If the policy already exists, + * this request increments the policy version. Only the latest version of a + * policy is stored. * * @param fn * a function that initializes a builder to create the @@ -379,9 +406,11 @@ public final CompletableFuture putLifecycle( // ----- Endpoint: slm.start /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @see Documentation @@ -396,9 +425,11 @@ public CompletableFuture start(StartSlmRequest request) { } /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @param fn * a function that initializes a builder to create the @@ -414,9 +445,11 @@ public final CompletableFuture start( } /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @see Documentation @@ -431,12 +464,14 @@ public CompletableFuture start() { // ----- Endpoint: slm.stop /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can @@ -456,12 +491,14 @@ public CompletableFuture stop(StopSlmRequest request) { } /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can @@ -482,12 +519,14 @@ public final CompletableFuture stop( } /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmClient.java index 1fc0b6d9ef..b8e4ec159d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ElasticsearchSlmClient.java @@ -68,9 +68,11 @@ public ElasticsearchSlmClient withTransportOptions(@Nullable TransportOptions tr // ----- Endpoint: slm.delete_lifecycle /** - * Delete a policy. Delete a snapshot lifecycle policy definition. This - * operation prevents any future snapshots from being taken but does not cancel - * in-progress snapshots or remove previously-taken snapshots. + * Delete a policy. + *

                                                                + * Delete a snapshot lifecycle policy definition. This operation prevents any + * future snapshots from being taken but does not cancel in-progress snapshots + * or remove previously-taken snapshots. * * @see Documentation @@ -86,9 +88,11 @@ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) } /** - * Delete a policy. Delete a snapshot lifecycle policy definition. This - * operation prevents any future snapshots from being taken but does not cancel - * in-progress snapshots or remove previously-taken snapshots. + * Delete a policy. + *

                                                                + * Delete a snapshot lifecycle policy definition. This operation prevents any + * future snapshots from being taken but does not cancel in-progress snapshots + * or remove previously-taken snapshots. * * @param fn * a function that initializes a builder to create the @@ -107,10 +111,12 @@ public final DeleteLifecycleResponse deleteLifecycle( // ----- Endpoint: slm.execute_lifecycle /** - * Run a policy. Immediately create a snapshot according to the snapshot - * lifecycle policy without waiting for the scheduled time. The snapshot policy - * is normally applied according to its schedule, but you might want to manually - * run a policy before performing an upgrade or other maintenance. + * Run a policy. + *

                                                                + * Immediately create a snapshot according to the snapshot lifecycle policy + * without waiting for the scheduled time. The snapshot policy is normally + * applied according to its schedule, but you might want to manually run a + * policy before performing an upgrade or other maintenance. * * @see Documentation @@ -126,10 +132,12 @@ public ExecuteLifecycleResponse executeLifecycle(ExecuteLifecycleRequest request } /** - * Run a policy. Immediately create a snapshot according to the snapshot - * lifecycle policy without waiting for the scheduled time. The snapshot policy - * is normally applied according to its schedule, but you might want to manually - * run a policy before performing an upgrade or other maintenance. + * Run a policy. + *

                                                                + * Immediately create a snapshot according to the snapshot lifecycle policy + * without waiting for the scheduled time. The snapshot policy is normally + * applied according to its schedule, but you might want to manually run a + * policy before performing an upgrade or other maintenance. * * @param fn * a function that initializes a builder to create the @@ -148,10 +156,11 @@ public final ExecuteLifecycleResponse executeLifecycle( // ----- Endpoint: slm.execute_retention /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @see Documentation @@ -167,10 +176,11 @@ public ExecuteRetentionResponse executeRetention(ExecuteRetentionRequest request } /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @param fn * a function that initializes a builder to create the @@ -187,10 +197,11 @@ public final ExecuteRetentionResponse executeRetention( } /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @see Documentation @@ -205,8 +216,10 @@ public ExecuteRetentionResponse executeRetention() throws IOException, Elasticse // ----- Endpoint: slm.get_lifecycle /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @see Documentation @@ -221,8 +234,10 @@ public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws IOE } /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @param fn * a function that initializes a builder to create the @@ -239,8 +254,10 @@ public final GetLifecycleResponse getLifecycle( } /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @see Documentation @@ -255,8 +272,10 @@ public GetLifecycleResponse getLifecycle() throws IOException, ElasticsearchExce // ----- Endpoint: slm.get_stats /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @see Documentation @@ -271,8 +290,10 @@ public GetStatsResponse getStats(GetStatsRequest request) throws IOException, El } /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @param fn * a function that initializes a builder to create the @@ -288,8 +309,10 @@ public final GetStatsResponse getStats(Function + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @see Documentation @@ -351,9 +374,11 @@ public GetSlmStatusResponse getStatus() throws IOException, ElasticsearchExcepti // ----- Endpoint: slm.put_lifecycle /** - * Create or update a policy. Create or update a snapshot lifecycle policy. If - * the policy already exists, this request increments the policy version. Only - * the latest version of a policy is stored. + * Create or update a policy. + *

                                                                + * Create or update a snapshot lifecycle policy. If the policy already exists, + * this request increments the policy version. Only the latest version of a + * policy is stored. * * @see Documentation @@ -368,9 +393,11 @@ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOE } /** - * Create or update a policy. Create or update a snapshot lifecycle policy. If - * the policy already exists, this request increments the policy version. Only - * the latest version of a policy is stored. + * Create or update a policy. + *

                                                                + * Create or update a snapshot lifecycle policy. If the policy already exists, + * this request increments the policy version. Only the latest version of a + * policy is stored. * * @param fn * a function that initializes a builder to create the @@ -389,9 +416,11 @@ public final PutLifecycleResponse putLifecycle( // ----- Endpoint: slm.start /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @see Documentation @@ -406,9 +435,11 @@ public StartSlmResponse start(StartSlmRequest request) throws IOException, Elast } /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @param fn * a function that initializes a builder to create the @@ -424,9 +455,11 @@ public final StartSlmResponse start(Function + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @see Documentation @@ -441,12 +474,14 @@ public StartSlmResponse start() throws IOException, ElasticsearchException { // ----- Endpoint: slm.stop /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can @@ -466,12 +501,14 @@ public StopSlmResponse stop(StopSlmRequest request) throws IOException, Elastics } /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can @@ -492,12 +529,14 @@ public final StopSlmResponse stop(Function + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java index b8f9cb8853..a9a138f415 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java @@ -56,10 +56,12 @@ // typedef: slm.execute_lifecycle.Request /** - * Run a policy. Immediately create a snapshot according to the snapshot - * lifecycle policy without waiting for the scheduled time. The snapshot policy - * is normally applied according to its schedule, but you might want to manually - * run a policy before performing an upgrade or other maintenance. + * Run a policy. + *

                                                                + * Immediately create a snapshot according to the snapshot lifecycle policy + * without waiting for the scheduled time. The snapshot policy is normally + * applied according to its schedule, but you might want to manually run a + * policy before performing an upgrade or other maintenance. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java index b3c1849015..6a5fd3b0b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java @@ -55,10 +55,11 @@ // typedef: slm.execute_retention.Request /** - * Run a retention policy. Manually apply the retention policy to force - * immediate removal of snapshots that are expired according to the snapshot - * lifecycle policy retention rules. The retention policy is normally applied - * according to its schedule. + * Run a retention policy. + *

                                                                + * Manually apply the retention policy to force immediate removal of snapshots + * that are expired according to the snapshot lifecycle policy retention rules. + * The retention policy is normally applied according to its schedule. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java index dc629eb64a..217a8fb819 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java @@ -58,8 +58,10 @@ // typedef: slm.get_lifecycle.Request /** - * Get policy information. Get snapshot lifecycle policy definitions and - * information about the latest snapshot attempts. + * Get policy information. + *

                                                                + * Get snapshot lifecycle policy definitions and information about the latest + * snapshot attempts. * * @see API * specification @@ -100,7 +102,7 @@ public final Time masterTimeout() { } /** - * Comma-separated list of snapshot lifecycle policies to retrieve + * A comma-separated list of snapshot lifecycle policy identifiers. *

                                                                * API name: {@code policy_id} */ @@ -159,7 +161,7 @@ public final Builder masterTimeout(Function> f } /** - * Comma-separated list of snapshot lifecycle policies to retrieve + * A comma-separated list of snapshot lifecycle policy identifiers. *

                                                                * API name: {@code policy_id} *

                                                                @@ -171,7 +173,7 @@ public final Builder policyId(List list) { } /** - * Comma-separated list of snapshot lifecycle policies to retrieve + * A comma-separated list of snapshot lifecycle policy identifiers. *

                                                                * API name: {@code policy_id} *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java index e758a81f04..846a81ded3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java @@ -55,8 +55,10 @@ // typedef: slm.get_stats.Request /** - * Get snapshot lifecycle management statistics. Get global and policy-level - * statistics about actions taken by snapshot lifecycle management. + * Get snapshot lifecycle management statistics. + *

                                                                + * Get global and policy-level statistics about actions taken by snapshot + * lifecycle management. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java index b847e951a9..4b81cbe8cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java @@ -58,9 +58,11 @@ // typedef: slm.put_lifecycle.Request /** - * Create or update a policy. Create or update a snapshot lifecycle policy. If - * the policy already exists, this request increments the policy version. Only - * the latest version of a policy is stored. + * Create or update a policy. + *

                                                                + * Create or update a snapshot lifecycle policy. If the policy already exists, + * this request increments the policy version. Only the latest version of a + * policy is stored. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java index a6ccfcad3d..0a357c15e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java @@ -55,9 +55,11 @@ // typedef: slm.start.Request /** - * Start snapshot lifecycle management. Snapshot lifecycle management (SLM) - * starts automatically when a cluster is formed. Manually starting SLM is - * necessary only if it has been stopped using the stop SLM API. + * Start snapshot lifecycle management. + *

                                                                + * Snapshot lifecycle management (SLM) starts automatically when a cluster is + * formed. Manually starting SLM is necessary only if it has been stopped using + * the stop SLM API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java index f4c4cf24d9..45ed0cc243 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java @@ -55,12 +55,14 @@ // typedef: slm.stop.Request /** - * Stop snapshot lifecycle management. Stop all snapshot lifecycle management - * (SLM) operations and the SLM plugin. This API is useful when you are - * performing maintenance on a cluster and need to prevent SLM from performing - * any actions on your data streams or indices. Stopping SLM does not stop any - * snapshots that are in progress. You can manually trigger snapshots with the - * run snapshot lifecycle policy API even if SLM is stopped. + * Stop snapshot lifecycle management. + *

                                                                + * Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + * This API is useful when you are performing maintenance on a cluster and need + * to prevent SLM from performing any actions on your data streams or indices. + * Stopping SLM does not stop any snapshots that are in progress. You can + * manually trigger snapshots with the run snapshot lifecycle policy API even if + * SLM is stopped. *

                                                                * The API returns a response as soon as the request is acknowledged, but the * plugin might continue to run until in-progress operations complete and it can diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java index 86e9b60c0d..89c28e8b2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CleanupRepositoryRequest.java @@ -56,9 +56,10 @@ // typedef: snapshot.cleanup_repository.Request /** - * Clean up the snapshot repository. Trigger the review of the contents of a - * snapshot repository and delete any stale data not referenced by existing - * snapshots. + * Clean up the snapshot repository. + *

                                                                + * Trigger the review of the contents of a snapshot repository and delete any + * stale data not referenced by existing snapshots. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java index fee43426ab..e46546f7fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java @@ -58,8 +58,9 @@ // typedef: snapshot.clone.Request /** - * Clone a snapshot. Clone part of all of a snapshot into another snapshot in - * the same repository. + * Clone a snapshot. + *

                                                                + * Clone part of all of a snapshot into another snapshot in the same repository. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java index 7f2a3b5416..b260227788 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java @@ -60,10 +60,12 @@ // typedef: snapshot.create_repository.Request /** - * Create or update a snapshot repository. IMPORTANT: If you are migrating - * searchable snapshots, the repository name must be identical in the source and - * destination clusters. To register a snapshot repository, the cluster's global - * metadata must be writeable. Ensure there are no cluster blocks (for example, + * Create or update a snapshot repository. + *

                                                                + * IMPORTANT: If you are migrating searchable snapshots, the repository name + * must be identical in the source and destination clusters. To register a + * snapshot repository, the cluster's global metadata must be writeable. Ensure + * there are no cluster blocks (for example, * cluster.blocks.read_only and * clsuter.blocks.read_only_allow_delete settings) that prevent * write access. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java index a06531c461..bd0a8789d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java @@ -62,8 +62,9 @@ // typedef: snapshot.create.Request /** - * Create a snapshot. Take a snapshot of a cluster or of data streams and - * indices. + * Create a snapshot. + *

                                                                + * Take a snapshot of a cluster or of data streams and indices. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java index fa69f36b84..f7dccb5c53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java @@ -58,10 +58,11 @@ // typedef: snapshot.delete_repository.Request /** - * Delete snapshot repositories. When a repository is unregistered, - * Elasticsearch removes only the reference to the location where the repository - * is storing the snapshots. The snapshots themselves are left untouched and in - * place. + * Delete snapshot repositories. + *

                                                                + * When a repository is unregistered, Elasticsearch removes only the reference + * to the location where the repository is storing the snapshots. The snapshots + * themselves are left untouched and in place. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java index 36cd69e985..39fcb08782 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java @@ -34,9 +34,11 @@ import java.lang.Boolean; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -69,7 +71,7 @@ public class DeleteSnapshotRequest extends RequestBase { private final String repository; - private final String snapshot; + private final List snapshot; @Nullable private final Boolean waitForCompletion; @@ -80,7 +82,7 @@ private DeleteSnapshotRequest(Builder builder) { this.masterTimeout = builder.masterTimeout; this.repository = ApiTypeHelper.requireNonNull(builder.repository, this, "repository"); - this.snapshot = ApiTypeHelper.requireNonNull(builder.snapshot, this, "snapshot"); + this.snapshot = ApiTypeHelper.unmodifiableRequired(builder.snapshot, this, "snapshot"); this.waitForCompletion = builder.waitForCompletion; } @@ -116,7 +118,7 @@ public final String repository() { *

                                                                * API name: {@code snapshot} */ - public final String snapshot() { + public final List snapshot() { return this.snapshot; } @@ -146,7 +148,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String repository; - private String snapshot; + private List snapshot; @Nullable private Boolean waitForCompletion; @@ -189,9 +191,24 @@ public final Builder repository(String value) { * accepts wildcards (*). *

                                                                * API name: {@code snapshot} + *

                                                                + * Adds all elements of list to snapshot. + */ + public final Builder snapshot(List list) { + this.snapshot = _listAddAll(this.snapshot, list); + return this; + } + + /** + * Required - A comma-separated list of snapshot names to delete. It also + * accepts wildcards (*). + *

                                                                + * API name: {@code snapshot} + *

                                                                + * Adds one or more values to snapshot. */ - public final Builder snapshot(String value) { - this.snapshot = value; + public final Builder snapshot(String value, String... values) { + this.snapshot = _listAdd(this.snapshot, value, values); return this; } @@ -255,7 +272,8 @@ public DeleteSnapshotRequest build() { buf.append("/"); SimpleEndpoint.pathEncode(request.repository, buf); buf.append("/"); - SimpleEndpoint.pathEncode(request.snapshot, buf); + SimpleEndpoint.pathEncode(request.snapshot.stream().map(v -> v).collect(Collectors.joining(",")), + buf); return buf.toString(); } throw SimpleEndpoint.noPathTemplateFound("path"); @@ -275,7 +293,7 @@ public DeleteSnapshotRequest build() { if (propsSet == (_repository | _snapshot)) { params.put("repository", request.repository); - params.put("snapshot", request.snapshot); + params.put("snapshot", request.snapshot.stream().map(v -> v).collect(Collectors.joining(","))); } return params; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java index 609fdc8414..111c30df07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotAsyncClient.java @@ -70,9 +70,10 @@ public ElasticsearchSnapshotAsyncClient withTransportOptions(@Nullable Transport // ----- Endpoint: snapshot.cleanup_repository /** - * Clean up the snapshot repository. Trigger the review of the contents of a - * snapshot repository and delete any stale data not referenced by existing - * snapshots. + * Clean up the snapshot repository. + *

                                                                + * Trigger the review of the contents of a snapshot repository and delete any + * stale data not referenced by existing snapshots. * * @see Documentation @@ -87,9 +88,10 @@ public CompletableFuture cleanupRepository(CleanupRep } /** - * Clean up the snapshot repository. Trigger the review of the contents of a - * snapshot repository and delete any stale data not referenced by existing - * snapshots. + * Clean up the snapshot repository. + *

                                                                + * Trigger the review of the contents of a snapshot repository and delete any + * stale data not referenced by existing snapshots. * * @param fn * a function that initializes a builder to create the @@ -107,8 +109,9 @@ public final CompletableFuture cleanupRepository( // ----- Endpoint: snapshot.clone /** - * Clone a snapshot. Clone part of all of a snapshot into another snapshot in - * the same repository. + * Clone a snapshot. + *

                                                                + * Clone part of all of a snapshot into another snapshot in the same repository. * * @see Documentation @@ -123,8 +126,9 @@ public CompletableFuture clone(CloneSnapshotRequest reque } /** - * Clone a snapshot. Clone part of all of a snapshot into another snapshot in - * the same repository. + * Clone a snapshot. + *

                                                                + * Clone part of all of a snapshot into another snapshot in the same repository. * * @param fn * a function that initializes a builder to create the @@ -142,8 +146,9 @@ public final CompletableFuture clone( // ----- Endpoint: snapshot.create /** - * Create a snapshot. Take a snapshot of a cluster or of data streams and - * indices. + * Create a snapshot. + *

                                                                + * Take a snapshot of a cluster or of data streams and indices. * * @see Documentation @@ -158,8 +163,9 @@ public CompletableFuture create(CreateSnapshotRequest re } /** - * Create a snapshot. Take a snapshot of a cluster or of data streams and - * indices. + * Create a snapshot. + *

                                                                + * Take a snapshot of a cluster or of data streams and indices. * * @param fn * a function that initializes a builder to create the @@ -177,10 +183,12 @@ public final CompletableFuture create( // ----- Endpoint: snapshot.create_repository /** - * Create or update a snapshot repository. IMPORTANT: If you are migrating - * searchable snapshots, the repository name must be identical in the source and - * destination clusters. To register a snapshot repository, the cluster's global - * metadata must be writeable. Ensure there are no cluster blocks (for example, + * Create or update a snapshot repository. + *

                                                                + * IMPORTANT: If you are migrating searchable snapshots, the repository name + * must be identical in the source and destination clusters. To register a + * snapshot repository, the cluster's global metadata must be writeable. Ensure + * there are no cluster blocks (for example, * cluster.blocks.read_only and * clsuter.blocks.read_only_allow_delete settings) that prevent * write access. @@ -202,10 +210,12 @@ public CompletableFuture createRepository(CreateReposi } /** - * Create or update a snapshot repository. IMPORTANT: If you are migrating - * searchable snapshots, the repository name must be identical in the source and - * destination clusters. To register a snapshot repository, the cluster's global - * metadata must be writeable. Ensure there are no cluster blocks (for example, + * Create or update a snapshot repository. + *

                                                                + * IMPORTANT: If you are migrating searchable snapshots, the repository name + * must be identical in the source and destination clusters. To register a + * snapshot repository, the cluster's global metadata must be writeable. Ensure + * there are no cluster blocks (for example, * cluster.blocks.read_only and * clsuter.blocks.read_only_allow_delete settings) that prevent * write access. @@ -263,10 +273,11 @@ public final CompletableFuture delete( // ----- Endpoint: snapshot.delete_repository /** - * Delete snapshot repositories. When a repository is unregistered, - * Elasticsearch removes only the reference to the location where the repository - * is storing the snapshots. The snapshots themselves are left untouched and in - * place. + * Delete snapshot repositories. + *

                                                                + * When a repository is unregistered, Elasticsearch removes only the reference + * to the location where the repository is storing the snapshots. The snapshots + * themselves are left untouched and in place. * * @see Documentation @@ -281,10 +292,11 @@ public CompletableFuture deleteRepository(DeleteReposi } /** - * Delete snapshot repositories. When a repository is unregistered, - * Elasticsearch removes only the reference to the location where the repository - * is storing the snapshots. The snapshots themselves are left untouched and in - * place. + * Delete snapshot repositories. + *

                                                                + * When a repository is unregistered, Elasticsearch removes only the reference + * to the location where the repository is storing the snapshots. The snapshots + * themselves are left untouched and in place. * * @param fn * a function that initializes a builder to create the @@ -782,8 +794,9 @@ public final CompletableFuture repositoryAnalyze( // ----- Endpoint: snapshot.repository_verify_integrity /** - * Verify the repository integrity. Verify the integrity of the contents of a - * snapshot repository. + * Verify the repository integrity. + *

                                                                + * Verify the integrity of the contents of a snapshot repository. *

                                                                * This API enables you to perform a comprehensive check of the contents of a * repository, looking for any anomalies in its data or metadata which might @@ -861,8 +874,9 @@ public CompletableFuture repositoryVerifyInte } /** - * Verify the repository integrity. Verify the integrity of the contents of a - * snapshot repository. + * Verify the repository integrity. + *

                                                                + * Verify the integrity of the contents of a snapshot repository. *

                                                                * This API enables you to perform a comprehensive check of the contents of a * repository, looking for any anomalies in its data or metadata which might @@ -942,8 +956,9 @@ public final CompletableFuture repositoryVeri // ----- Endpoint: snapshot.restore /** - * Restore a snapshot. Restore a snapshot of a cluster or data streams and - * indices. + * Restore a snapshot. + *

                                                                + * Restore a snapshot of a cluster or data streams and indices. *

                                                                * You can restore a snapshot only to a running cluster with an elected master * node. The snapshot repository must be registered and available to the @@ -982,8 +997,9 @@ public CompletableFuture restore(RestoreRequest request) { } /** - * Restore a snapshot. Restore a snapshot of a cluster or data streams and - * indices. + * Restore a snapshot. + *

                                                                + * Restore a snapshot of a cluster or data streams and indices. *

                                                                * You can restore a snapshot only to a running cluster with an elected master * node. The snapshot repository must be registered and available to the @@ -1025,8 +1041,10 @@ public final CompletableFuture restore( // ----- Endpoint: snapshot.status /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1072,8 +1090,10 @@ public CompletableFuture status(SnapshotStatusRequest re } /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1120,8 +1140,10 @@ public final CompletableFuture status( } /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1167,8 +1189,9 @@ public CompletableFuture status() { // ----- Endpoint: snapshot.verify_repository /** - * Verify a snapshot repository. Check for common misconfigurations in a - * snapshot repository. + * Verify a snapshot repository. + *

                                                                + * Check for common misconfigurations in a snapshot repository. * * @see Documentation @@ -1183,8 +1206,9 @@ public CompletableFuture verifyRepository(VerifyReposi } /** - * Verify a snapshot repository. Check for common misconfigurations in a - * snapshot repository. + * Verify a snapshot repository. + *

                                                                + * Check for common misconfigurations in a snapshot repository. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java index fb7bd93eb3..ffe8d81de0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ElasticsearchSnapshotClient.java @@ -68,9 +68,10 @@ public ElasticsearchSnapshotClient withTransportOptions(@Nullable TransportOptio // ----- Endpoint: snapshot.cleanup_repository /** - * Clean up the snapshot repository. Trigger the review of the contents of a - * snapshot repository and delete any stale data not referenced by existing - * snapshots. + * Clean up the snapshot repository. + *

                                                                + * Trigger the review of the contents of a snapshot repository and delete any + * stale data not referenced by existing snapshots. * * @see Documentation @@ -86,9 +87,10 @@ public CleanupRepositoryResponse cleanupRepository(CleanupRepositoryRequest requ } /** - * Clean up the snapshot repository. Trigger the review of the contents of a - * snapshot repository and delete any stale data not referenced by existing - * snapshots. + * Clean up the snapshot repository. + *

                                                                + * Trigger the review of the contents of a snapshot repository and delete any + * stale data not referenced by existing snapshots. * * @param fn * a function that initializes a builder to create the @@ -107,8 +109,9 @@ public final CleanupRepositoryResponse cleanupRepository( // ----- Endpoint: snapshot.clone /** - * Clone a snapshot. Clone part of all of a snapshot into another snapshot in - * the same repository. + * Clone a snapshot. + *

                                                                + * Clone part of all of a snapshot into another snapshot in the same repository. * * @see Documentation @@ -123,8 +126,9 @@ public CloneSnapshotResponse clone(CloneSnapshotRequest request) throws IOExcept } /** - * Clone a snapshot. Clone part of all of a snapshot into another snapshot in - * the same repository. + * Clone a snapshot. + *

                                                                + * Clone part of all of a snapshot into another snapshot in the same repository. * * @param fn * a function that initializes a builder to create the @@ -143,8 +147,9 @@ public final CloneSnapshotResponse clone( // ----- Endpoint: snapshot.create /** - * Create a snapshot. Take a snapshot of a cluster or of data streams and - * indices. + * Create a snapshot. + *

                                                                + * Take a snapshot of a cluster or of data streams and indices. * * @see Documentation @@ -159,8 +164,9 @@ public CreateSnapshotResponse create(CreateSnapshotRequest request) throws IOExc } /** - * Create a snapshot. Take a snapshot of a cluster or of data streams and - * indices. + * Create a snapshot. + *

                                                                + * Take a snapshot of a cluster or of data streams and indices. * * @param fn * a function that initializes a builder to create the @@ -179,10 +185,12 @@ public final CreateSnapshotResponse create( // ----- Endpoint: snapshot.create_repository /** - * Create or update a snapshot repository. IMPORTANT: If you are migrating - * searchable snapshots, the repository name must be identical in the source and - * destination clusters. To register a snapshot repository, the cluster's global - * metadata must be writeable. Ensure there are no cluster blocks (for example, + * Create or update a snapshot repository. + *

                                                                + * IMPORTANT: If you are migrating searchable snapshots, the repository name + * must be identical in the source and destination clusters. To register a + * snapshot repository, the cluster's global metadata must be writeable. Ensure + * there are no cluster blocks (for example, * cluster.blocks.read_only and * clsuter.blocks.read_only_allow_delete settings) that prevent * write access. @@ -205,10 +213,12 @@ public CreateRepositoryResponse createRepository(CreateRepositoryRequest request } /** - * Create or update a snapshot repository. IMPORTANT: If you are migrating - * searchable snapshots, the repository name must be identical in the source and - * destination clusters. To register a snapshot repository, the cluster's global - * metadata must be writeable. Ensure there are no cluster blocks (for example, + * Create or update a snapshot repository. + *

                                                                + * IMPORTANT: If you are migrating searchable snapshots, the repository name + * must be identical in the source and destination clusters. To register a + * snapshot repository, the cluster's global metadata must be writeable. Ensure + * there are no cluster blocks (for example, * cluster.blocks.read_only and * clsuter.blocks.read_only_allow_delete settings) that prevent * write access. @@ -268,10 +278,11 @@ public final DeleteSnapshotResponse delete( // ----- Endpoint: snapshot.delete_repository /** - * Delete snapshot repositories. When a repository is unregistered, - * Elasticsearch removes only the reference to the location where the repository - * is storing the snapshots. The snapshots themselves are left untouched and in - * place. + * Delete snapshot repositories. + *

                                                                + * When a repository is unregistered, Elasticsearch removes only the reference + * to the location where the repository is storing the snapshots. The snapshots + * themselves are left untouched and in place. * * @see Documentation @@ -287,10 +298,11 @@ public DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request } /** - * Delete snapshot repositories. When a repository is unregistered, - * Elasticsearch removes only the reference to the location where the repository - * is storing the snapshots. The snapshots themselves are left untouched and in - * place. + * Delete snapshot repositories. + *

                                                                + * When a repository is unregistered, Elasticsearch removes only the reference + * to the location where the repository is storing the snapshots. The snapshots + * themselves are left untouched and in place. * * @param fn * a function that initializes a builder to create the @@ -793,8 +805,9 @@ public final RepositoryAnalyzeResponse repositoryAnalyze( // ----- Endpoint: snapshot.repository_verify_integrity /** - * Verify the repository integrity. Verify the integrity of the contents of a - * snapshot repository. + * Verify the repository integrity. + *

                                                                + * Verify the integrity of the contents of a snapshot repository. *

                                                                * This API enables you to perform a comprehensive check of the contents of a * repository, looking for any anomalies in its data or metadata which might @@ -872,8 +885,9 @@ public RepositoryVerifyIntegrityResponse repositoryVerifyIntegrity(RepositoryVer } /** - * Verify the repository integrity. Verify the integrity of the contents of a - * snapshot repository. + * Verify the repository integrity. + *

                                                                + * Verify the integrity of the contents of a snapshot repository. *

                                                                * This API enables you to perform a comprehensive check of the contents of a * repository, looking for any anomalies in its data or metadata which might @@ -954,8 +968,9 @@ public final RepositoryVerifyIntegrityResponse repositoryVerifyIntegrity( // ----- Endpoint: snapshot.restore /** - * Restore a snapshot. Restore a snapshot of a cluster or data streams and - * indices. + * Restore a snapshot. + *

                                                                + * Restore a snapshot of a cluster or data streams and indices. *

                                                                * You can restore a snapshot only to a running cluster with an elected master * node. The snapshot repository must be registered and available to the @@ -994,8 +1009,9 @@ public RestoreResponse restore(RestoreRequest request) throws IOException, Elast } /** - * Restore a snapshot. Restore a snapshot of a cluster or data streams and - * indices. + * Restore a snapshot. + *

                                                                + * Restore a snapshot of a cluster or data streams and indices. *

                                                                * You can restore a snapshot only to a running cluster with an elected master * node. The snapshot repository must be registered and available to the @@ -1037,8 +1053,10 @@ public final RestoreResponse restore(Function + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1084,8 +1102,10 @@ public SnapshotStatusResponse status(SnapshotStatusRequest request) throws IOExc } /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1133,8 +1153,10 @@ public final SnapshotStatusResponse status( } /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want @@ -1180,8 +1202,9 @@ public SnapshotStatusResponse status() throws IOException, ElasticsearchExceptio // ----- Endpoint: snapshot.verify_repository /** - * Verify a snapshot repository. Check for common misconfigurations in a - * snapshot repository. + * Verify a snapshot repository. + *

                                                                + * Check for common misconfigurations in a snapshot repository. * * @see Documentation @@ -1197,8 +1220,9 @@ public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest request } /** - * Verify a snapshot repository. Check for common misconfigurations in a - * snapshot repository. + * Verify a snapshot repository. + *

                                                                + * Check for common misconfigurations in a snapshot repository. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java index 854abf37df..e2754dc739 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java @@ -59,8 +59,9 @@ // typedef: snapshot.repository_verify_integrity.Request /** - * Verify the repository integrity. Verify the integrity of the contents of a - * snapshot repository. + * Verify the repository integrity. + *

                                                                + * Verify the integrity of the contents of a snapshot repository. *

                                                                * This API enables you to perform a comprehensive check of the contents of a * repository, looking for any anomalies in its data or metadata which might diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java index 877c5d012e..dc6a2bba16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java @@ -61,8 +61,9 @@ // typedef: snapshot.restore.Request /** - * Restore a snapshot. Restore a snapshot of a cluster or data streams and - * indices. + * Restore a snapshot. + *

                                                                + * Restore a snapshot of a cluster or data streams and indices. *

                                                                * You can restore a snapshot only to a running cluster with an elected master * node. The snapshot repository must be registered and available to the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java index 48b4ebb85b..edb2b28e5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java @@ -59,8 +59,10 @@ // typedef: snapshot.status.Request /** - * Get the snapshot status. Get a detailed description of the current state for - * each shard participating in the snapshot. + * Get the snapshot status. + *

                                                                + * Get a detailed description of the current state for each shard participating + * in the snapshot. *

                                                                * Note that this API should be used only to obtain detailed shard-level * information for ongoing snapshots. If this detail is not needed or you want diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java index d439ed0899..8193dc8923 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java @@ -56,8 +56,9 @@ // typedef: snapshot.verify_repository.Request /** - * Verify a snapshot repository. Check for common misconfigurations in a - * snapshot repository. + * Verify a snapshot repository. + *

                                                                + * Check for common misconfigurations in a snapshot repository. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java index 22cc8831c1..a765af9c5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -56,8 +56,10 @@ // typedef: sql.delete_async.Request /** - * Delete an async SQL search. Delete an async SQL search or a stored - * synchronous SQL search. If the search is still running, the API cancels it. + * Delete an async SQL search. + *

                                                                + * Delete an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. *

                                                                * If the Elasticsearch security features are enabled, only the following users * can use this API to delete a search: diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java index bfc2ddf168..13cd4e659f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlAsyncClient.java @@ -100,8 +100,10 @@ public final CompletableFuture clearCursor( // ----- Endpoint: sql.delete_async /** - * Delete an async SQL search. Delete an async SQL search or a stored - * synchronous SQL search. If the search is still running, the API cancels it. + * Delete an async SQL search. + *

                                                                + * Delete an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. *

                                                                * If the Elasticsearch security features are enabled, only the following users * can use this API to delete a search: @@ -123,8 +125,10 @@ public CompletableFuture deleteAsync(DeleteAsyncRequest req } /** - * Delete an async SQL search. Delete an async SQL search or a stored - * synchronous SQL search. If the search is still running, the API cancels it. + * Delete an async SQL search. + *

                                                                + * Delete an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. *

                                                                * If the Elasticsearch security features are enabled, only the following users * can use this API to delete a search: @@ -149,8 +153,10 @@ public final CompletableFuture deleteAsync( // ----- Endpoint: sql.get_async /** - * Get async SQL search results. Get the current status and available results - * for an async SQL search or stored synchronous SQL search. + * Get async SQL search results. + *

                                                                + * Get the current status and available results for an async SQL search or + * stored synchronous SQL search. *

                                                                * If the Elasticsearch security features are enabled, only the user who first * submitted the SQL search can retrieve the search using this API. @@ -168,8 +174,10 @@ public CompletableFuture getAsync(GetAsyncRequest request) { } /** - * Get async SQL search results. Get the current status and available results - * for an async SQL search or stored synchronous SQL search. + * Get async SQL search results. + *

                                                                + * Get the current status and available results for an async SQL search or + * stored synchronous SQL search. *

                                                                * If the Elasticsearch security features are enabled, only the user who first * submitted the SQL search can retrieve the search using this API. @@ -190,8 +198,10 @@ public final CompletableFuture getAsync( // ----- Endpoint: sql.get_async_status /** - * Get the async SQL search status. Get the current status of an async SQL - * search or a stored synchronous SQL search. + * Get the async SQL search status. + *

                                                                + * Get the current status of an async SQL search or a stored synchronous SQL + * search. * * @see Documentation @@ -206,8 +216,10 @@ public CompletableFuture getAsyncStatus(GetAsyncStatusRe } /** - * Get the async SQL search status. Get the current status of an async SQL - * search or a stored synchronous SQL search. + * Get the async SQL search status. + *

                                                                + * Get the current status of an async SQL search or a stored synchronous SQL + * search. * * @param fn * a function that initializes a builder to create the @@ -225,7 +237,9 @@ public final CompletableFuture getAsyncStatus( // ----- Endpoint: sql.query /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @see Documentation @@ -240,7 +254,9 @@ public CompletableFuture query(QueryRequest request) { } /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @param fn * a function that initializes a builder to create the @@ -256,7 +272,9 @@ public final CompletableFuture query( } /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @see Documentation @@ -271,9 +289,11 @@ public CompletableFuture query() { // ----- Endpoint: sql.translate /** - * Translate SQL into Elasticsearch queries. Translate an SQL search into a - * search API request containing Query DSL. It accepts the same request body - * parameters as the SQL search API, excluding cursor. + * Translate SQL into Elasticsearch queries. + *

                                                                + * Translate an SQL search into a search API request containing Query DSL. It + * accepts the same request body parameters as the SQL search API, excluding + * cursor. * * @see Documentation @@ -288,9 +308,11 @@ public CompletableFuture translate(TranslateRequest request) } /** - * Translate SQL into Elasticsearch queries. Translate an SQL search into a - * search API request containing Query DSL. It accepts the same request body - * parameters as the SQL search API, excluding cursor. + * Translate SQL into Elasticsearch queries. + *

                                                                + * Translate an SQL search into a search API request containing Query DSL. It + * accepts the same request body parameters as the SQL search API, excluding + * cursor. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java index 82f7faca14..40b0bad759 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ElasticsearchSqlClient.java @@ -102,8 +102,10 @@ public final ClearCursorResponse clearCursor( // ----- Endpoint: sql.delete_async /** - * Delete an async SQL search. Delete an async SQL search or a stored - * synchronous SQL search. If the search is still running, the API cancels it. + * Delete an async SQL search. + *

                                                                + * Delete an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. *

                                                                * If the Elasticsearch security features are enabled, only the following users * can use this API to delete a search: @@ -125,8 +127,10 @@ public DeleteAsyncResponse deleteAsync(DeleteAsyncRequest request) throws IOExce } /** - * Delete an async SQL search. Delete an async SQL search or a stored - * synchronous SQL search. If the search is still running, the API cancels it. + * Delete an async SQL search. + *

                                                                + * Delete an async SQL search or a stored synchronous SQL search. If the search + * is still running, the API cancels it. *

                                                                * If the Elasticsearch security features are enabled, only the following users * can use this API to delete a search: @@ -152,8 +156,10 @@ public final DeleteAsyncResponse deleteAsync( // ----- Endpoint: sql.get_async /** - * Get async SQL search results. Get the current status and available results - * for an async SQL search or stored synchronous SQL search. + * Get async SQL search results. + *

                                                                + * Get the current status and available results for an async SQL search or + * stored synchronous SQL search. *

                                                                * If the Elasticsearch security features are enabled, only the user who first * submitted the SQL search can retrieve the search using this API. @@ -171,8 +177,10 @@ public GetAsyncResponse getAsync(GetAsyncRequest request) throws IOException, El } /** - * Get async SQL search results. Get the current status and available results - * for an async SQL search or stored synchronous SQL search. + * Get async SQL search results. + *

                                                                + * Get the current status and available results for an async SQL search or + * stored synchronous SQL search. *

                                                                * If the Elasticsearch security features are enabled, only the user who first * submitted the SQL search can retrieve the search using this API. @@ -193,8 +201,10 @@ public final GetAsyncResponse getAsync(Function + * Get the current status of an async SQL search or a stored synchronous SQL + * search. * * @see Documentation @@ -210,8 +220,10 @@ public GetAsyncStatusResponse getAsyncStatus(GetAsyncStatusRequest request) } /** - * Get the async SQL search status. Get the current status of an async SQL - * search or a stored synchronous SQL search. + * Get the async SQL search status. + *

                                                                + * Get the current status of an async SQL search or a stored synchronous SQL + * search. * * @param fn * a function that initializes a builder to create the @@ -230,7 +242,9 @@ public final GetAsyncStatusResponse getAsyncStatus( // ----- Endpoint: sql.query /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @see Documentation @@ -245,7 +259,9 @@ public QueryResponse query(QueryRequest request) throws IOException, Elasticsear } /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @param fn * a function that initializes a builder to create the @@ -261,7 +277,9 @@ public final QueryResponse query(Function + * Run an SQL request. * * @see Documentation @@ -276,9 +294,11 @@ public QueryResponse query() throws IOException, ElasticsearchException { // ----- Endpoint: sql.translate /** - * Translate SQL into Elasticsearch queries. Translate an SQL search into a - * search API request containing Query DSL. It accepts the same request body - * parameters as the SQL search API, excluding cursor. + * Translate SQL into Elasticsearch queries. + *

                                                                + * Translate an SQL search into a search API request containing Query DSL. It + * accepts the same request body parameters as the SQL search API, excluding + * cursor. * * @see Documentation @@ -293,9 +313,11 @@ public TranslateResponse translate(TranslateRequest request) throws IOException, } /** - * Translate SQL into Elasticsearch queries. Translate an SQL search into a - * search API request containing Query DSL. It accepts the same request body - * parameters as the SQL search API, excluding cursor. + * Translate SQL into Elasticsearch queries. + *

                                                                + * Translate an SQL search into a search API request containing Query DSL. It + * accepts the same request body parameters as the SQL search API, excluding + * cursor. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java index bb1bc7fe62..542c7220bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -56,8 +56,10 @@ // typedef: sql.get_async.Request /** - * Get async SQL search results. Get the current status and available results - * for an async SQL search or stored synchronous SQL search. + * Get async SQL search results. + *

                                                                + * Get the current status and available results for an async SQL search or + * stored synchronous SQL search. *

                                                                * If the Elasticsearch security features are enabled, only the user who first * submitted the SQL search can retrieve the search using this API. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java index 1c4fd3adcd..8a60896fcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -56,8 +56,10 @@ // typedef: sql.get_async_status.Request /** - * Get the async SQL search status. Get the current status of an async SQL - * search or a stored synchronous SQL search. + * Get the async SQL search status. + *

                                                                + * Get the current status of an async SQL search or a stored synchronous SQL + * search. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java index a130e93eb0..014bd31d77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -67,7 +67,9 @@ // typedef: sql.query.Request /** - * Get SQL search results. Run an SQL request. + * Get SQL search results. + *

                                                                + * Run an SQL request. * * @see API * specification @@ -309,11 +311,10 @@ public final List params() { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

                                                                * API name: {@code project_routing} */ @@ -452,6 +453,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (this.projectRouting != null) { + generator.writeKey("project_routing"); + generator.write(this.projectRouting); + } if (this.query != null) { generator.writeKey("query"); @@ -756,11 +762,10 @@ public final Builder params(JsonData value, JsonData... values) { } /** - * Specifies a subset of projects to target for the search using project - * metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the - * _alias tag and a single value (possibly wildcarded). Examples: - * _alias:my-project _alias:_origin _alias:pr Supported in serverless - * only. + * Specifies a subset of projects to target using project metadata tags in a + * subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a + * single value (possibly wildcarded). Examples: _alias:my-project + * _alias:_origin _alias:pr Supported in serverless only. *

                                                                * API name: {@code project_routing} */ @@ -917,6 +922,7 @@ protected static void setupQueryRequestDeserializer(ObjectDeserializercursor. + * Translate SQL into Elasticsearch queries. + *

                                                                + * Translate an SQL search into a search API request containing Query DSL. It + * accepts the same request body parameters as the SQL search API, excluding + * cursor. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java index cb860e695b..82384569d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -56,7 +56,9 @@ // typedef: synonyms.delete_synonym_rule.Request /** - * Delete a synonym rule. Delete a synonym rule from a synonym set. + * Delete a synonym rule. + *

                                                                + * Delete a synonym rule from a synonym set. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java index 2b268e752b..8c9deb0352 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsAsyncClient.java @@ -145,7 +145,9 @@ public final CompletableFuture deleteSynonym( // ----- Endpoint: synonyms.delete_synonym_rule /** - * Delete a synonym rule. Delete a synonym rule from a synonym set. + * Delete a synonym rule. + *

                                                                + * Delete a synonym rule from a synonym set. * * @see Documentation @@ -160,7 +162,9 @@ public CompletableFuture deleteSynonymRule(DeleteSyno } /** - * Delete a synonym rule. Delete a synonym rule from a synonym set. + * Delete a synonym rule. + *

                                                                + * Delete a synonym rule from a synonym set. * * @param fn * a function that initializes a builder to create the @@ -211,7 +215,9 @@ public final CompletableFuture getSynonym( // ----- Endpoint: synonyms.get_synonym_rule /** - * Get a synonym rule. Get a synonym rule from a synonym set. + * Get a synonym rule. + *

                                                                + * Get a synonym rule from a synonym set. * * @see Documentation @@ -226,7 +232,9 @@ public CompletableFuture getSynonymRule(GetSynonymRuleRe } /** - * Get a synonym rule. Get a synonym rule from a synonym set. + * Get a synonym rule. + *

                                                                + * Get a synonym rule from a synonym set. * * @param fn * a function that initializes a builder to create the @@ -244,7 +252,9 @@ public final CompletableFuture getSynonymRule( // ----- Endpoint: synonyms.get_synonyms_sets /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @see Documentation @@ -259,7 +269,9 @@ public CompletableFuture getSynonymsSets(GetSynonymsSet } /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @param fn * a function that initializes a builder to create the @@ -275,7 +287,9 @@ public final CompletableFuture getSynonymsSets( } /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @see Documentation @@ -290,9 +304,10 @@ public CompletableFuture getSynonymsSets() { // ----- Endpoint: synonyms.put_synonym /** - * Create or update a synonym set. Synonyms sets are limited to a maximum of - * 10,000 synonym rules per set. If you need to manage more synonym rules, you - * can create multiple synonym sets. + * Create or update a synonym set. + *

                                                                + * Synonyms sets are limited to a maximum of 10,000 synonym rules per set. If + * you need to manage more synonym rules, you can create multiple synonym sets. *

                                                                * When an existing synonyms set is updated, the search analyzers that use the * synonyms set are reloaded automatically for all indices. This is equivalent @@ -315,9 +330,10 @@ public CompletableFuture putSynonym(PutSynonymRequest reques } /** - * Create or update a synonym set. Synonyms sets are limited to a maximum of - * 10,000 synonym rules per set. If you need to manage more synonym rules, you - * can create multiple synonym sets. + * Create or update a synonym set. + *

                                                                + * Synonyms sets are limited to a maximum of 10,000 synonym rules per set. If + * you need to manage more synonym rules, you can create multiple synonym sets. *

                                                                * When an existing synonyms set is updated, the search analyzers that use the * synonyms set are reloaded automatically for all indices. This is equivalent @@ -343,8 +359,9 @@ public final CompletableFuture putSynonym( // ----- Endpoint: synonyms.put_synonym_rule /** - * Create or update a synonym rule. Create or update a synonym rule in a synonym - * set. + * Create or update a synonym rule. + *

                                                                + * Create or update a synonym rule in a synonym set. *

                                                                * If any of the synonym rules included is invalid, the API returns an error. *

                                                                @@ -364,8 +381,9 @@ public CompletableFuture putSynonymRule(PutSynonymRuleRe } /** - * Create or update a synonym rule. Create or update a synonym rule in a synonym - * set. + * Create or update a synonym rule. + *

                                                                + * Create or update a synonym rule in a synonym set. *

                                                                * If any of the synonym rules included is invalid, the API returns an error. *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java index 09e5da3502..068ca79402 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/ElasticsearchSynonymsClient.java @@ -145,7 +145,9 @@ public final DeleteSynonymResponse deleteSynonym( // ----- Endpoint: synonyms.delete_synonym_rule /** - * Delete a synonym rule. Delete a synonym rule from a synonym set. + * Delete a synonym rule. + *

                                                                + * Delete a synonym rule from a synonym set. * * @see Documentation @@ -161,7 +163,9 @@ public DeleteSynonymRuleResponse deleteSynonymRule(DeleteSynonymRuleRequest requ } /** - * Delete a synonym rule. Delete a synonym rule from a synonym set. + * Delete a synonym rule. + *

                                                                + * Delete a synonym rule from a synonym set. * * @param fn * a function that initializes a builder to create the @@ -213,7 +217,9 @@ public final GetSynonymResponse getSynonym(Function + * Get a synonym rule from a synonym set. * * @see Documentation @@ -229,7 +235,9 @@ public GetSynonymRuleResponse getSynonymRule(GetSynonymRuleRequest request) } /** - * Get a synonym rule. Get a synonym rule from a synonym set. + * Get a synonym rule. + *

                                                                + * Get a synonym rule from a synonym set. * * @param fn * a function that initializes a builder to create the @@ -248,7 +256,9 @@ public final GetSynonymRuleResponse getSynonymRule( // ----- Endpoint: synonyms.get_synonyms_sets /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @see Documentation @@ -264,7 +274,9 @@ public GetSynonymsSetsResponse getSynonymsSets(GetSynonymsSetsRequest request) } /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @param fn * a function that initializes a builder to create the @@ -281,7 +293,9 @@ public final GetSynonymsSetsResponse getSynonymsSets( } /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @see Documentation @@ -296,9 +310,10 @@ public GetSynonymsSetsResponse getSynonymsSets() throws IOException, Elasticsear // ----- Endpoint: synonyms.put_synonym /** - * Create or update a synonym set. Synonyms sets are limited to a maximum of - * 10,000 synonym rules per set. If you need to manage more synonym rules, you - * can create multiple synonym sets. + * Create or update a synonym set. + *

                                                                + * Synonyms sets are limited to a maximum of 10,000 synonym rules per set. If + * you need to manage more synonym rules, you can create multiple synonym sets. *

                                                                * When an existing synonyms set is updated, the search analyzers that use the * synonyms set are reloaded automatically for all indices. This is equivalent @@ -321,9 +336,10 @@ public PutSynonymResponse putSynonym(PutSynonymRequest request) throws IOExcepti } /** - * Create or update a synonym set. Synonyms sets are limited to a maximum of - * 10,000 synonym rules per set. If you need to manage more synonym rules, you - * can create multiple synonym sets. + * Create or update a synonym set. + *

                                                                + * Synonyms sets are limited to a maximum of 10,000 synonym rules per set. If + * you need to manage more synonym rules, you can create multiple synonym sets. *

                                                                * When an existing synonyms set is updated, the search analyzers that use the * synonyms set are reloaded automatically for all indices. This is equivalent @@ -349,8 +365,9 @@ public final PutSynonymResponse putSynonym(Function + * Create or update a synonym rule in a synonym set. *

                                                                * If any of the synonym rules included is invalid, the API returns an error. *

                                                                @@ -371,8 +388,9 @@ public PutSynonymRuleResponse putSynonymRule(PutSynonymRuleRequest request) } /** - * Create or update a synonym rule. Create or update a synonym rule in a synonym - * set. + * Create or update a synonym rule. + *

                                                                + * Create or update a synonym rule in a synonym set. *

                                                                * If any of the synonym rules included is invalid, the API returns an error. *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java index 5484c57e0d..29789f312b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -56,7 +56,9 @@ // typedef: synonyms.get_synonym_rule.Request /** - * Get a synonym rule. Get a synonym rule from a synonym set. + * Get a synonym rule. + *

                                                                + * Get a synonym rule from a synonym set. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java index 1a2226b9ec..9a8ab0ef37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -55,7 +55,9 @@ // typedef: synonyms.get_synonyms_sets.Request /** - * Get all synonym sets. Get a summary of all defined synonym sets. + * Get all synonym sets. + *

                                                                + * Get a summary of all defined synonym sets. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java index 32e57f5bd7..70970fc19f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -59,9 +59,10 @@ // typedef: synonyms.put_synonym.Request /** - * Create or update a synonym set. Synonyms sets are limited to a maximum of - * 10,000 synonym rules per set. If you need to manage more synonym rules, you - * can create multiple synonym sets. + * Create or update a synonym set. + *

                                                                + * Synonyms sets are limited to a maximum of 10,000 synonym rules per set. If + * you need to manage more synonym rules, you can create multiple synonym sets. *

                                                                * When an existing synonyms set is updated, the search analyzers that use the * synonyms set are reloaded automatically for all indices. This is equivalent diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index aea7a0ecef..aa8d717b44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -58,8 +58,9 @@ // typedef: synonyms.put_synonym_rule.Request /** - * Create or update a synonym rule. Create or update a synonym rule in a synonym - * set. + * Create or update a synonym rule. + *

                                                                + * Create or update a synonym rule in a synonym set. *

                                                                * If any of the synonym rules included is invalid, the API returns an error. *

                                                                diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java index 5f0bed4045..620209c699 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksAsyncClient.java @@ -165,8 +165,9 @@ public CompletableFuture cancel() { // ----- Endpoint: tasks.get /** - * Get task information. Get information about a task currently running in the - * cluster. + * Get task information. + *

                                                                + * Get information about a task currently running in the cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -187,8 +188,9 @@ public CompletableFuture get(GetTasksRequest request) { } /** - * Get task information. Get information about a task currently running in the - * cluster. + * Get task information. + *

                                                                + * Get information about a task currently running in the cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -212,8 +214,10 @@ public final CompletableFuture get( // ----- Endpoint: tasks.list /** - * Get all tasks. Get information about the tasks currently running on one or - * more nodes in the cluster. + * Get all tasks. + *

                                                                + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -292,8 +296,10 @@ public CompletableFuture list(ListRequest request) { } /** - * Get all tasks. Get information about the tasks currently running on one or - * more nodes in the cluster. + * Get all tasks. + *

                                                                + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -372,8 +378,10 @@ public final CompletableFuture list(Function + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java index f884583ccb..7398254854 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ElasticsearchTasksClient.java @@ -165,8 +165,9 @@ public CancelResponse cancel() throws IOException, ElasticsearchException { // ----- Endpoint: tasks.get /** - * Get task information. Get information about a task currently running in the - * cluster. + * Get task information. + *

                                                                + * Get information about a task currently running in the cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -187,8 +188,9 @@ public GetTasksResponse get(GetTasksRequest request) throws IOException, Elastic } /** - * Get task information. Get information about a task currently running in the - * cluster. + * Get task information. + *

                                                                + * Get information about a task currently running in the cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -212,8 +214,10 @@ public final GetTasksResponse get(Function + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -292,8 +296,10 @@ public ListResponse list(ListRequest request) throws IOException, ElasticsearchE } /** - * Get all tasks. Get information about the tasks currently running on one or - * more nodes in the cluster. + * Get all tasks. + *

                                                                + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. @@ -373,8 +379,10 @@ public final ListResponse list(Function + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index bdcacc81da..a393c43c9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -57,8 +57,9 @@ // typedef: tasks.get.Request /** - * Get task information. Get information about a task currently running in the - * cluster. + * Get task information. + *

                                                                + * Get information about a task currently running in the cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java index 765be4848b..77c0c74a2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java @@ -60,8 +60,10 @@ // typedef: tasks.list.Request /** - * Get all tasks. Get information about the tasks currently running on one or - * more nodes in the cluster. + * Get all tasks. + *

                                                                + * Get information about the tasks currently running on one or more nodes in the + * cluster. *

                                                                * WARNING: The task management API is new and should still be considered a beta * feature. The API may change in ways that are not backwards compatible. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java index 1e4b025b36..7122d1a4f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureAsyncClient.java @@ -70,8 +70,9 @@ public ElasticsearchTextStructureAsyncClient withTransportOptions(@Nullable Tran // ----- Endpoint: text_structure.find_field_structure /** - * Find the structure of a text field. Find the structure of a text field in an - * Elasticsearch index. + * Find the structure of a text field. + *

                                                                + * Find the structure of a text field in an Elasticsearch index. *

                                                                * This API provides a starting point for extracting further information from * log messages already ingested into Elasticsearch. For example, if you have @@ -111,8 +112,9 @@ public CompletableFuture findFieldStructure(FindFiel } /** - * Find the structure of a text field. Find the structure of a text field in an - * Elasticsearch index. + * Find the structure of a text field. + *

                                                                + * Find the structure of a text field in an Elasticsearch index. *

                                                                * This API provides a starting point for extracting further information from * log messages already ingested into Elasticsearch. For example, if you have @@ -155,9 +157,10 @@ public final CompletableFuture findFieldStructure( // ----- Endpoint: text_structure.find_message_structure /** - * Find the structure of text messages. Find the structure of a list of text - * messages. The messages must contain data that is suitable to be ingested into - * Elasticsearch. + * Find the structure of text messages. + *

                                                                + * Find the structure of a list of text messages. The messages must contain data + * that is suitable to be ingested into Elasticsearch. *

                                                                * This API provides a starting point for ingesting data into Elasticsearch in a * format that is suitable for subsequent use with other Elastic Stack @@ -197,9 +200,10 @@ public CompletableFuture findMessageStructure(Find } /** - * Find the structure of text messages. Find the structure of a list of text - * messages. The messages must contain data that is suitable to be ingested into - * Elasticsearch. + * Find the structure of text messages. + *

                                                                + * Find the structure of a list of text messages. The messages must contain data + * that is suitable to be ingested into Elasticsearch. *

                                                                * This API provides a starting point for ingesting data into Elasticsearch in a * format that is suitable for subsequent use with other Elastic Stack @@ -242,9 +246,11 @@ public final CompletableFuture findMessageStructur // ----- Endpoint: text_structure.test_grok_pattern /** - * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The - * API indicates whether the lines match the pattern together with the offsets - * and lengths of the matched substrings. + * Test a Grok pattern. + *

                                                                + * Test a Grok pattern on one or more lines of text. The API indicates whether + * the lines match the pattern together with the offsets and lengths of the + * matched substrings. * * @see Documentation @@ -259,9 +265,11 @@ public CompletableFuture testGrokPattern(TestGrokPatter } /** - * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The - * API indicates whether the lines match the pattern together with the offsets - * and lengths of the matched substrings. + * Test a Grok pattern. + *

                                                                + * Test a Grok pattern on one or more lines of text. The API indicates whether + * the lines match the pattern together with the offsets and lengths of the + * matched substrings. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java index a44df26395..b259692f06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/ElasticsearchTextStructureClient.java @@ -71,8 +71,9 @@ public ElasticsearchTextStructureClient withTransportOptions(@Nullable Transport // ----- Endpoint: text_structure.find_field_structure /** - * Find the structure of a text field. Find the structure of a text field in an - * Elasticsearch index. + * Find the structure of a text field. + *

                                                                + * Find the structure of a text field in an Elasticsearch index. *

                                                                * This API provides a starting point for extracting further information from * log messages already ingested into Elasticsearch. For example, if you have @@ -113,8 +114,9 @@ public FindFieldStructureResponse findFieldStructure(FindFieldStructureRequest r } /** - * Find the structure of a text field. Find the structure of a text field in an - * Elasticsearch index. + * Find the structure of a text field. + *

                                                                + * Find the structure of a text field in an Elasticsearch index. *

                                                                * This API provides a starting point for extracting further information from * log messages already ingested into Elasticsearch. For example, if you have @@ -158,9 +160,10 @@ public final FindFieldStructureResponse findFieldStructure( // ----- Endpoint: text_structure.find_message_structure /** - * Find the structure of text messages. Find the structure of a list of text - * messages. The messages must contain data that is suitable to be ingested into - * Elasticsearch. + * Find the structure of text messages. + *

                                                                + * Find the structure of a list of text messages. The messages must contain data + * that is suitable to be ingested into Elasticsearch. *

                                                                * This API provides a starting point for ingesting data into Elasticsearch in a * format that is suitable for subsequent use with other Elastic Stack @@ -201,9 +204,10 @@ public FindMessageStructureResponse findMessageStructure(FindMessageStructureReq } /** - * Find the structure of text messages. Find the structure of a list of text - * messages. The messages must contain data that is suitable to be ingested into - * Elasticsearch. + * Find the structure of text messages. + *

                                                                + * Find the structure of a list of text messages. The messages must contain data + * that is suitable to be ingested into Elasticsearch. *

                                                                * This API provides a starting point for ingesting data into Elasticsearch in a * format that is suitable for subsequent use with other Elastic Stack @@ -247,9 +251,11 @@ public final FindMessageStructureResponse findMessageStructure( // ----- Endpoint: text_structure.test_grok_pattern /** - * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The - * API indicates whether the lines match the pattern together with the offsets - * and lengths of the matched substrings. + * Test a Grok pattern. + *

                                                                + * Test a Grok pattern on one or more lines of text. The API indicates whether + * the lines match the pattern together with the offsets and lengths of the + * matched substrings. * * @see Documentation @@ -265,9 +271,11 @@ public TestGrokPatternResponse testGrokPattern(TestGrokPatternRequest request) } /** - * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The - * API indicates whether the lines match the pattern together with the offsets - * and lengths of the matched substrings. + * Test a Grok pattern. + *

                                                                + * Test a Grok pattern on one or more lines of text. The API indicates whether + * the lines match the pattern together with the offsets and lengths of the + * matched substrings. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java index d9c5576043..7c3dcdb933 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java @@ -36,9 +36,11 @@ import java.lang.String; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -59,8 +61,9 @@ // typedef: text_structure.find_field_structure.Request /** - * Find the structure of a text field. Find the structure of a text field in an - * Elasticsearch index. + * Find the structure of a text field. + *

                                                                + * Find the structure of a text field in an Elasticsearch index. *

                                                                * This API provides a starting point for extracting further information from * log messages already ingested into Elasticsearch. For example, if you have @@ -93,8 +96,7 @@ */ public class FindFieldStructureRequest extends RequestBase { - @Nullable - private final String columnNames; + private final List columnNames; @Nullable private final String delimiter; @@ -137,7 +139,7 @@ public class FindFieldStructureRequest extends RequestBase { private FindFieldStructureRequest(Builder builder) { - this.columnNames = builder.columnNames; + this.columnNames = ApiTypeHelper.unmodifiable(builder.columnNames); this.delimiter = builder.delimiter; this.documentsToSample = builder.documentsToSample; this.ecsCompatibility = builder.ecsCompatibility; @@ -167,8 +169,7 @@ public static FindFieldStructureRequest of(Function * API name: {@code column_names} */ - @Nullable - public final String columnNames() { + public final List columnNames() { return this.columnNames; } @@ -408,7 +409,7 @@ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { @Nullable - private String columnNames; + private List columnNames; @Nullable private String delimiter; @@ -455,9 +456,27 @@ public static class Builder extends RequestBase.AbstractBuilder * "column1", "column2", "column3", for example. *

                                                                * API name: {@code column_names} + *

                                                                + * Adds all elements of list to columnNames. + */ + public final Builder columnNames(List list) { + this.columnNames = _listAddAll(this.columnNames, list); + return this; + } + + /** + * If format is set to delimited, you can specify the + * column names in a comma-separated list. If this parameter is not specified, + * the structure finder uses the column names from the header row of the text. + * If the text does not have a header row, columns are named + * "column1", "column2", "column3", for example. + *

                                                                + * API name: {@code column_names} + *

                                                                + * Adds one or more values to columnNames. */ - public final Builder columnNames(@Nullable String value) { - this.columnNames = value; + public final Builder columnNames(String value, String... values) { + this.columnNames = _listAdd(this.columnNames, value, values); return this; } @@ -774,8 +793,9 @@ public FindFieldStructureRequest build() { if (request.delimiter != null) { params.put("delimiter", request.delimiter); } - if (request.columnNames != null) { - params.put("column_names", request.columnNames); + if (ApiTypeHelper.isDefined(request.columnNames)) { + params.put("column_names", + request.columnNames.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.documentsToSample != null) { params.put("documents_to_sample", request.documentsToSample.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java index 1e70de4c5c..18b645d1c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java @@ -41,6 +41,7 @@ import java.util.Map; import java.util.Objects; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; //---------------------------------------------------------------- @@ -61,9 +62,10 @@ // typedef: text_structure.find_message_structure.Request /** - * Find the structure of text messages. Find the structure of a list of text - * messages. The messages must contain data that is suitable to be ingested into - * Elasticsearch. + * Find the structure of text messages. + *

                                                                + * Find the structure of a list of text messages. The messages must contain data + * that is suitable to be ingested into Elasticsearch. *

                                                                * This API provides a starting point for ingesting data into Elasticsearch in a * format that is suitable for subsequent use with other Elastic Stack @@ -96,8 +98,7 @@ */ @JsonpDeserializable public class FindMessageStructureRequest extends RequestBase implements JsonpSerializable { - @Nullable - private final String columnNames; + private final List columnNames; @Nullable private final String delimiter; @@ -135,7 +136,7 @@ public class FindMessageStructureRequest extends RequestBase implements JsonpSer private FindMessageStructureRequest(Builder builder) { - this.columnNames = builder.columnNames; + this.columnNames = ApiTypeHelper.unmodifiable(builder.columnNames); this.delimiter = builder.delimiter; this.ecsCompatibility = builder.ecsCompatibility; this.explain = builder.explain; @@ -163,8 +164,7 @@ public static FindMessageStructureRequest of(Function * API name: {@code column_names} */ - @Nullable - public final String columnNames() { + public final List columnNames() { return this.columnNames; } @@ -408,7 +408,7 @@ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { @Nullable - private String columnNames; + private List columnNames; @Nullable private String delimiter; @@ -450,9 +450,27 @@ public static class Builder extends RequestBase.AbstractBuilder * "column2", "column3", for example. *

                                                                * API name: {@code column_names} + *

                                                                + * Adds all elements of list to columnNames. + */ + public final Builder columnNames(List list) { + this.columnNames = _listAddAll(this.columnNames, list); + return this; + } + + /** + * If the format is delimited, you can specify the column names in + * a comma-separated list. If this parameter is not specified, the structure + * finder uses the column names from the header row of the text. If the text + * does not have a header role, columns are named "column1", + * "column2", "column3", for example. + *

                                                                + * API name: {@code column_names} + *

                                                                + * Adds one or more values to columnNames. */ - public final Builder columnNames(@Nullable String value) { - this.columnNames = value; + public final Builder columnNames(String value, String... values) { + this.columnNames = _listAdd(this.columnNames, value, values); return this; } @@ -770,8 +788,9 @@ protected static void setupFindMessageStructureRequestDeserializer( if (request.format != null) { params.put("format", request.format.jsonValue()); } - if (request.columnNames != null) { - params.put("column_names", request.columnNames); + if (ApiTypeHelper.isDefined(request.columnNames)) { + params.put("column_names", + request.columnNames.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.timestampField != null) { params.put("timestamp_field", request.timestampField); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java index 5ece47fbc8..dc851f1361 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java @@ -59,9 +59,11 @@ // typedef: text_structure.test_grok_pattern.Request /** - * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The - * API indicates whether the lines match the pattern together with the offsets - * and lengths of the matched substrings. + * Test a Grok pattern. + *

                                                                + * Test a Grok pattern on one or more lines of text. The API indicates whether + * the lines match the pattern together with the offsets and lengths of the + * matched substrings. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java index c44005cd85..753846c84c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java @@ -102,10 +102,28 @@ public final CompletableFuture deleteTransform( return deleteTransform(fn.apply(new DeleteTransformRequest.Builder()).build()); } + // ----- Endpoint: transform.get_node_stats + + /** + * Get node stats. + *

                                                                + * Get per-node information about transform usage. + * + * @see Documentation + * on elastic.co + */ + public CompletableFuture getNodeStats() { + return this.transport.performRequestAsync(GetNodeStatsRequest._INSTANCE, GetNodeStatsRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: transform.get_transform /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @see Documentation @@ -120,7 +138,9 @@ public CompletableFuture getTransform(GetTransformRequest } /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @param fn * a function that initializes a builder to create the @@ -136,7 +156,9 @@ public final CompletableFuture getTransform( } /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @see Documentation @@ -188,8 +210,10 @@ public final CompletableFuture getTransformStats( // ----- Endpoint: transform.preview_transform /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -213,8 +237,10 @@ public CompletableFuture> prev } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -257,8 +283,10 @@ public final CompletableFuture> previewTransform( } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -282,8 +310,10 @@ public CompletableFuture> prev } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -306,7 +336,9 @@ public final CompletableFuture // ----- Endpoint: transform.put_transform /** - * Create a transform. Creates a transform. + * Create a transform. + *

                                                                + * Creates a transform. *

                                                                * A transform copies data from source indices, transforms it, and persists it * into an entity-centric destination index. You can also think of the @@ -350,7 +382,9 @@ public CompletableFuture putTransform(PutTransformRequest } /** - * Create a transform. Creates a transform. + * Create a transform. + *

                                                                + * Creates a transform. *

                                                                * A transform copies data from source indices, transforms it, and persists it * into an entity-centric destination index. You can also think of the @@ -483,17 +517,19 @@ public final CompletableFuture scheduleNowTransfor // ----- Endpoint: transform.set_upgrade_mode /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @see Documentation @@ -508,17 +544,19 @@ public CompletableFuture setUpgradeMode(SetUpgradeModeRe } /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @param fn * a function that initializes a builder to create the @@ -534,17 +572,19 @@ public final CompletableFuture setUpgradeMode( } /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @see Documentation @@ -636,7 +676,9 @@ public final CompletableFuture startTransform( // ----- Endpoint: transform.stop_transform /** - * Stop transforms. Stops one or more transforms. + * Stop transforms. + *

                                                                + * Stops one or more transforms. * * @see Documentation @@ -651,7 +693,9 @@ public CompletableFuture stopTransform(StopTransformReque } /** - * Stop transforms. Stops one or more transforms. + * Stop transforms. + *

                                                                + * Stops one or more transforms. * * @param fn * a function that initializes a builder to create the @@ -669,7 +713,9 @@ public final CompletableFuture stopTransform( // ----- Endpoint: transform.update_transform /** - * Update a transform. Updates certain properties of a transform. + * Update a transform. + *

                                                                + * Updates certain properties of a transform. *

                                                                * All updated properties except description do not take effect * until after the transform starts the next checkpoint, thus there is data @@ -693,7 +739,9 @@ public CompletableFuture updateTransform(UpdateTransfor } /** - * Update a transform. Updates certain properties of a transform. + * Update a transform. + *

                                                                + * Updates certain properties of a transform. *

                                                                * All updated properties except description do not take effect * until after the transform starts the next checkpoint, thus there is data diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java index 6b9e2d11e8..3fd6211f61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java @@ -102,10 +102,28 @@ public final DeleteTransformResponse deleteTransform( return deleteTransform(fn.apply(new DeleteTransformRequest.Builder()).build()); } + // ----- Endpoint: transform.get_node_stats + + /** + * Get node stats. + *

                                                                + * Get per-node information about transform usage. + * + * @see Documentation + * on elastic.co + */ + public GetNodeStatsResponse getNodeStats() throws IOException, ElasticsearchException { + return this.transport.performRequest(GetNodeStatsRequest._INSTANCE, GetNodeStatsRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: transform.get_transform /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @see Documentation @@ -120,7 +138,9 @@ public GetTransformResponse getTransform(GetTransformRequest request) throws IOE } /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @param fn * a function that initializes a builder to create the @@ -137,7 +157,9 @@ public final GetTransformResponse getTransform( } /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @see Documentation @@ -191,8 +213,10 @@ public final GetTransformStatsResponse getTransformStats( // ----- Endpoint: transform.preview_transform /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -216,8 +240,10 @@ public PreviewTransformResponse previewTransform(Previe } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -262,8 +288,10 @@ public final PreviewTransformResponse previewTransform( } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -287,8 +315,10 @@ public PreviewTransformResponse previewTransform(Previe } /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and @@ -312,7 +342,9 @@ public final PreviewTransformResponse previewTransform( // ----- Endpoint: transform.put_transform /** - * Create a transform. Creates a transform. + * Create a transform. + *

                                                                + * Creates a transform. *

                                                                * A transform copies data from source indices, transforms it, and persists it * into an entity-centric destination index. You can also think of the @@ -356,7 +388,9 @@ public PutTransformResponse putTransform(PutTransformRequest request) throws IOE } /** - * Create a transform. Creates a transform. + * Create a transform. + *

                                                                + * Creates a transform. *

                                                                * A transform copies data from source indices, transforms it, and persists it * into an entity-centric destination index. You can also think of the @@ -494,17 +528,19 @@ public final ScheduleNowTransformResponse scheduleNowTransform( // ----- Endpoint: transform.set_upgrade_mode /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @see Documentation @@ -520,17 +556,19 @@ public SetUpgradeModeResponse setUpgradeMode(SetUpgradeModeRequest request) } /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @param fn * a function that initializes a builder to create the @@ -547,17 +585,19 @@ public final SetUpgradeModeResponse setUpgradeMode( } /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @see Documentation @@ -651,7 +691,9 @@ public final StartTransformResponse startTransform( // ----- Endpoint: transform.stop_transform /** - * Stop transforms. Stops one or more transforms. + * Stop transforms. + *

                                                                + * Stops one or more transforms. * * @see Documentation @@ -667,7 +709,9 @@ public StopTransformResponse stopTransform(StopTransformRequest request) } /** - * Stop transforms. Stops one or more transforms. + * Stop transforms. + *

                                                                + * Stops one or more transforms. * * @param fn * a function that initializes a builder to create the @@ -686,7 +730,9 @@ public final StopTransformResponse stopTransform( // ----- Endpoint: transform.update_transform /** - * Update a transform. Updates certain properties of a transform. + * Update a transform. + *

                                                                + * Updates certain properties of a transform. *

                                                                * All updated properties except description do not take effect * until after the transform starts the next checkpoint, thus there is data @@ -711,7 +757,9 @@ public UpdateTransformResponse updateTransform(UpdateTransformRequest request) } /** - * Update a transform. Updates certain properties of a transform. + * Update a transform. + *

                                                                + * Updates certain properties of a transform. *

                                                                * All updated properties except description do not take effect * until after the transform starts the next checkpoint, thus there is data diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsRequest.java new file mode 100644 index 0000000000..7602601139 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsRequest.java @@ -0,0 +1,101 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.transform; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; +import java.util.Objects; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: transform.get_node_stats.Request + +/** + * Get node stats. + *

                                                                + * Get per-node information about transform usage. + * + * @see API + * specification + */ + +public class GetNodeStatsRequest extends RequestBase { + public GetNodeStatsRequest() { + } + + /** + * Singleton instance for {@link GetNodeStatsRequest}. + */ + public static final GetNodeStatsRequest _INSTANCE = new GetNodeStatsRequest(); + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code transform.get_node_stats}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/transform.get_node_stats", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_transform/_node_stats"; + + }, + + // Path parameters + request -> { + return Collections.emptyMap(); + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetNodeStatsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsResponse.java new file mode 100644 index 0000000000..f9c7588b2f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetNodeStatsResponse.java @@ -0,0 +1,108 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.transform; + +import co.elastic.clients.elasticsearch.transform.get_node_stats.TransformNodeFullStats; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: transform.get_node_stats.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetNodeStatsResponse extends TransformNodeFullStats { + // --------------------------------------------------------------------------------------------- + + private GetNodeStatsResponse(Builder builder) { + super(builder); + + } + + public static GetNodeStatsResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetNodeStatsResponse}. + */ + + public static class Builder extends TransformNodeFullStats.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetNodeStatsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetNodeStatsResponse build() { + _checkSingleUse(); + + return new GetNodeStatsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetNodeStatsResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetNodeStatsResponse::setupGetNodeStatsResponseDeserializer); + + protected static void setupGetNodeStatsResponseDeserializer(ObjectDeserializer op) { + TransformNodeFullStats.setupTransformNodeFullStatsDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java index 25e379a9ea..770dd74578 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java @@ -59,7 +59,9 @@ // typedef: transform.get_transform.Request /** - * Get transforms. Get configuration information for transforms. + * Get transforms. + *

                                                                + * Get configuration information for transforms. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java index 9bf22919f6..ba2a852f30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java @@ -57,8 +57,10 @@ // typedef: transform.preview_transform.Request /** - * Preview a transform. Generates a preview of the results that you will get - * when you create a transform with the same configuration. + * Preview a transform. + *

                                                                + * Generates a preview of the results that you will get when you create a + * transform with the same configuration. *

                                                                * It returns a maximum of 100 results. The calculations are based on all the * current data in the source index. It also generates a list of mappings and diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java index 9473cd2476..4bf0570dca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java @@ -60,7 +60,9 @@ // typedef: transform.put_transform.Request /** - * Create a transform. Creates a transform. + * Create a transform. + *

                                                                + * Creates a transform. *

                                                                * A transform copies data from source indices, transforms it, and persists it * into an entity-centric destination index. You can also think of the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java index 1b9884f2e6..10a2dd7dc8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java @@ -56,17 +56,19 @@ // typedef: transform.set_upgrade_mode.Request /** - * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode - * setting that prepares transform indices for an upgrade. When upgrading your - * cluster, in some circumstances you must restart your nodes and reindex your - * transform indices. In those circumstances, there must be no transforms - * running. You can close the transforms, do the upgrade, then open all the - * transforms again. Alternatively, you can use this API to temporarily halt - * tasks associated with the transforms and prevent new transforms from opening. - * You can also use this API during upgrades that do not require you to reindex - * your transform indices, though stopping transforms is not a requirement in - * that case. You can see the current value for the upgrade_mode setting by - * using the get transform info API. + * Set upgrade_mode for transform indices. + *

                                                                + * Sets a cluster wide upgrade_mode setting that prepares transform indices for + * an upgrade. When upgrading your cluster, in some circumstances you must + * restart your nodes and reindex your transform indices. In those + * circumstances, there must be no transforms running. You can close the + * transforms, do the upgrade, then open all the transforms again. + * Alternatively, you can use this API to temporarily halt tasks associated with + * the transforms and prevent new transforms from opening. You can also use this + * API during upgrades that do not require you to reindex your transform + * indices, though stopping transforms is not a requirement in that case. You + * can see the current value for the upgrade_mode setting by using the get + * transform info API. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java index 549eb33d24..8a8b4fd2f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java @@ -57,7 +57,9 @@ // typedef: transform.stop_transform.Request /** - * Stop transforms. Stops one or more transforms. + * Stop transforms. + *

                                                                + * Stops one or more transforms. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java index f661a8f37d..6389350b7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java @@ -60,7 +60,9 @@ // typedef: transform.update_transform.Request /** - * Update a transform. Updates certain properties of a transform. + * Update a transform. + *

                                                                + * Updates certain properties of a transform. *

                                                                * All updated properties except description do not take effect * until after the transform starts the next checkpoint, thus there is data diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeFullStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeFullStats.java new file mode 100644 index 0000000000..bda823e056 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeFullStats.java @@ -0,0 +1,189 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.transform.get_node_stats; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: transform.get_node_stats.TransformNodeFullStats + +/** + * + * @see API + * specification + */ + +public abstract class TransformNodeFullStats implements JsonpSerializable { + private final Map nodes; + + private final TransformNodeStats total; + + // --------------------------------------------------------------------------------------------- + + protected TransformNodeFullStats(AbstractBuilder builder) { + + this.nodes = ApiTypeHelper.unmodifiable(builder.nodes); + + this.total = ApiTypeHelper.requireNonNull(builder.total, this, "total"); + + } + + /** + * Per node statistics + */ + public final Map nodes() { + return this.nodes; + } + + /** + * Required - API name: {@code total} + */ + public final TransformNodeStats total() { + return this.total; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + for (Map.Entry item0 : this.nodes.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + + generator.writeKey("total"); + this.total.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + @Nullable + private Map nodes = new HashMap<>(); + + /** + * Per node statistics + *

                                                                + * Adds all entries of map to nodes. + */ + public final BuilderT nodes(Map map) { + this.nodes = _mapPutAll(this.nodes, map); + return self(); + } + + /** + * Per node statistics + *

                                                                + * Adds an entry to nodes. + */ + public final BuilderT nodes(String key, TransformNodeStats value) { + this.nodes = _mapPut(this.nodes, key, value); + return self(); + } + + /** + * Per node statistics + *

                                                                + * Adds an entry to nodes using a builder lambda. + */ + public final BuilderT nodes(String key, + Function> fn) { + return nodes(key, fn.apply(new TransformNodeStats.Builder()).build()); + } + + private TransformNodeStats total; + + /** + * Required - API name: {@code total} + */ + public final BuilderT total(TransformNodeStats value) { + this.total = value; + return self(); + } + + /** + * Required - API name: {@code total} + */ + public final BuilderT total(Function> fn) { + return this.total(fn.apply(new TransformNodeStats.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupTransformNodeFullStatsDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::total, TransformNodeStats._DESERIALIZER, "total"); + + op.setUnknownFieldHandler((builder, name, parser, mapper) -> { + builder.nodes(name, TransformNodeStats._DESERIALIZER.deserialize(parser, mapper)); + }); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java new file mode 100644 index 0000000000..227bff06cb --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java @@ -0,0 +1,163 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.transform.get_node_stats; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: transform.get_node_stats.TransformNodeStats + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TransformNodeStats implements JsonpSerializable { + private final TransformSchedulerStats scheduler; + + // --------------------------------------------------------------------------------------------- + + private TransformNodeStats(Builder builder) { + + this.scheduler = ApiTypeHelper.requireNonNull(builder.scheduler, this, "scheduler"); + + } + + public static TransformNodeStats of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code scheduler} + */ + public final TransformSchedulerStats scheduler() { + return this.scheduler; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("scheduler"); + this.scheduler.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TransformNodeStats}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private TransformSchedulerStats scheduler; + + /** + * Required - API name: {@code scheduler} + */ + public final Builder scheduler(TransformSchedulerStats value) { + this.scheduler = value; + return this; + } + + /** + * Required - API name: {@code scheduler} + */ + public final Builder scheduler( + Function> fn) { + return this.scheduler(fn.apply(new TransformSchedulerStats.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TransformNodeStats}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TransformNodeStats build() { + _checkSingleUse(); + + return new TransformNodeStats(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TransformNodeStats} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TransformNodeStats::setupTransformNodeStatsDeserializer); + + protected static void setupTransformNodeStatsDeserializer(ObjectDeserializer op) { + + op.add(Builder::scheduler, TransformSchedulerStats._DESERIALIZER, "scheduler"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java new file mode 100644 index 0000000000..6062412bb3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java @@ -0,0 +1,190 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.transform.get_node_stats; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: transform.get_node_stats.TransformSchedulerStats + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TransformSchedulerStats implements JsonpSerializable { + private final int registeredTransformCount; + + @Nullable + private final String peekTransform; + + // --------------------------------------------------------------------------------------------- + + private TransformSchedulerStats(Builder builder) { + + this.registeredTransformCount = ApiTypeHelper.requireNonNull(builder.registeredTransformCount, this, + "registeredTransformCount", 0); + this.peekTransform = builder.peekTransform; + + } + + public static TransformSchedulerStats of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code registered_transform_count} + */ + public final int registeredTransformCount() { + return this.registeredTransformCount; + } + + /** + * API name: {@code peek_transform} + */ + @Nullable + public final String peekTransform() { + return this.peekTransform; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("registered_transform_count"); + generator.write(this.registeredTransformCount); + + if (this.peekTransform != null) { + generator.writeKey("peek_transform"); + generator.write(this.peekTransform); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TransformSchedulerStats}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Integer registeredTransformCount; + + @Nullable + private String peekTransform; + + /** + * Required - API name: {@code registered_transform_count} + */ + public final Builder registeredTransformCount(int value) { + this.registeredTransformCount = value; + return this; + } + + /** + * API name: {@code peek_transform} + */ + public final Builder peekTransform(@Nullable String value) { + this.peekTransform = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TransformSchedulerStats}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TransformSchedulerStats build() { + _checkSingleUse(); + + return new TransformSchedulerStats(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TransformSchedulerStats} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TransformSchedulerStats::setupTransformSchedulerStatsDeserializer); + + protected static void setupTransformSchedulerStatsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::registeredTransformCount, JsonpDeserializer.integerDeserializer(), + "registered_transform_count"); + op.add(Builder::peekTransform, JsonpDeserializer.stringDeserializer(), "peek_transform"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java index 65213d7666..6404fa5126 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java @@ -58,8 +58,10 @@ // typedef: watcher.ack_watch.Request /** - * Acknowledge a watch. Acknowledging a watch enables you to manually throttle - * the execution of the watch's actions. + * Acknowledge a watch. + *

                                                                + * Acknowledging a watch enables you to manually throttle the execution of the + * watch's actions. *

                                                                * The acknowledgement state of an action is stored in the * status.actions.<id>.ack.state structure. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java index 67d28ed300..e5c78b47f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java @@ -56,7 +56,9 @@ // typedef: watcher.activate_watch.Request /** - * Activate a watch. A watch can be either active or inactive. + * Activate a watch. + *

                                                                + * A watch can be either active or inactive. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java index e43da2a206..f488b9b596 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java @@ -56,7 +56,9 @@ // typedef: watcher.deactivate_watch.Request /** - * Deactivate a watch. A watch can be either active or inactive. + * Deactivate a watch. + *

                                                                + * A watch can be either active or inactive. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java index fc52b5e996..1b2bdc9227 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java @@ -56,9 +56,10 @@ // typedef: watcher.delete_watch.Request /** - * Delete a watch. When the watch is removed, the document representing the - * watch in the .watches index is gone and it will never be run - * again. + * Delete a watch. + *

                                                                + * When the watch is removed, the document representing the watch in the + * .watches index is gone and it will never be run again. *

                                                                * Deleting a watch does not delete any watch execution records related to this * watch from the watch history. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java index 76318fca53..f684c316cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherAsyncClient.java @@ -70,8 +70,10 @@ public ElasticsearchWatcherAsyncClient withTransportOptions(@Nullable TransportO // ----- Endpoint: watcher.ack_watch /** - * Acknowledge a watch. Acknowledging a watch enables you to manually throttle - * the execution of the watch's actions. + * Acknowledge a watch. + *

                                                                + * Acknowledging a watch enables you to manually throttle the execution of the + * watch's actions. *

                                                                * The acknowledgement state of an action is stored in the * status.actions.<id>.ack.state structure. @@ -100,8 +102,10 @@ public CompletableFuture ackWatch(AckWatchRequest request) { } /** - * Acknowledge a watch. Acknowledging a watch enables you to manually throttle - * the execution of the watch's actions. + * Acknowledge a watch. + *

                                                                + * Acknowledging a watch enables you to manually throttle the execution of the + * watch's actions. *

                                                                * The acknowledgement state of an action is stored in the * status.actions.<id>.ack.state structure. @@ -133,7 +137,9 @@ public final CompletableFuture ackWatch( // ----- Endpoint: watcher.activate_watch /** - * Activate a watch. A watch can be either active or inactive. + * Activate a watch. + *

                                                                + * A watch can be either active or inactive. * * @see Documentation @@ -148,7 +154,9 @@ public CompletableFuture activateWatch(ActivateWatchReque } /** - * Activate a watch. A watch can be either active or inactive. + * Activate a watch. + *

                                                                + * A watch can be either active or inactive. * * @param fn * a function that initializes a builder to create the @@ -166,7 +174,9 @@ public final CompletableFuture activateWatch( // ----- Endpoint: watcher.deactivate_watch /** - * Deactivate a watch. A watch can be either active or inactive. + * Deactivate a watch. + *

                                                                + * A watch can be either active or inactive. * * @see Documentation @@ -181,7 +191,9 @@ public CompletableFuture deactivateWatch(DeactivateWatc } /** - * Deactivate a watch. A watch can be either active or inactive. + * Deactivate a watch. + *

                                                                + * A watch can be either active or inactive. * * @param fn * a function that initializes a builder to create the @@ -199,9 +211,10 @@ public final CompletableFuture deactivateWatch( // ----- Endpoint: watcher.delete_watch /** - * Delete a watch. When the watch is removed, the document representing the - * watch in the .watches index is gone and it will never be run - * again. + * Delete a watch. + *

                                                                + * When the watch is removed, the document representing the watch in the + * .watches index is gone and it will never be run again. *

                                                                * Deleting a watch does not delete any watch execution records related to this * watch from the watch history. @@ -225,9 +238,10 @@ public CompletableFuture deleteWatch(DeleteWatchRequest req } /** - * Delete a watch. When the watch is removed, the document representing the - * watch in the .watches index is gone and it will never be run - * again. + * Delete a watch. + *

                                                                + * When the watch is removed, the document representing the watch in the + * .watches index is gone and it will never be run again. *

                                                                * Deleting a watch does not delete any watch execution records related to this * watch from the watch history. @@ -254,9 +268,10 @@ public final CompletableFuture deleteWatch( // ----- Endpoint: watcher.execute_watch /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -291,9 +306,10 @@ public CompletableFuture executeWatch(ExecuteWatchRequest } /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -329,9 +345,10 @@ public final CompletableFuture executeWatch( } /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -366,8 +383,10 @@ public CompletableFuture executeWatch() { // ----- Endpoint: watcher.get_settings /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -384,8 +403,10 @@ public CompletableFuture getSettings(GetWatcherSetti } /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -403,8 +424,10 @@ public final CompletableFuture getSettings( } /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -454,10 +477,12 @@ public final CompletableFuture getWatch( // ----- Endpoint: watcher.put_watch /** - * Create or update a watch. When a watch is registered, a new document that - * represents the watch is added to the .watches index and its - * trigger is immediately registered with the relevant trigger engine. Typically - * for the schedule trigger, the scheduler is the trigger engine. + * Create or update a watch. + *

                                                                + * When a watch is registered, a new document that represents the watch is added + * to the .watches index and its trigger is immediately registered + * with the relevant trigger engine. Typically for the schedule + * trigger, the scheduler is the trigger engine. *

                                                                * IMPORTANT: You must use Kibana or this API to create a watch. Do not add a * watch directly to the .watches index by using the Elasticsearch @@ -485,10 +510,12 @@ public CompletableFuture putWatch(PutWatchRequest request) { } /** - * Create or update a watch. When a watch is registered, a new document that - * represents the watch is added to the .watches index and its - * trigger is immediately registered with the relevant trigger engine. Typically - * for the schedule trigger, the scheduler is the trigger engine. + * Create or update a watch. + *

                                                                + * When a watch is registered, a new document that represents the watch is added + * to the .watches index and its trigger is immediately registered + * with the relevant trigger engine. Typically for the schedule + * trigger, the scheduler is the trigger engine. *

                                                                * IMPORTANT: You must use Kibana or this API to create a watch. Do not add a * watch directly to the .watches index by using the Elasticsearch @@ -519,8 +546,10 @@ public final CompletableFuture putWatch( // ----- Endpoint: watcher.query_watches /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -538,8 +567,10 @@ public CompletableFuture queryWatches(QueryWatchesRequest } /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -558,8 +589,10 @@ public final CompletableFuture queryWatches( } /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -577,8 +610,9 @@ public CompletableFuture queryWatches() { // ----- Endpoint: watcher.start /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @see Documentation @@ -593,8 +627,9 @@ public CompletableFuture start(StartWatcherRequest request } /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @param fn * a function that initializes a builder to create the @@ -610,8 +645,9 @@ public final CompletableFuture start( } /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @see Documentation @@ -626,8 +662,10 @@ public CompletableFuture start() { // ----- Endpoint: watcher.stats /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @see Documentation @@ -642,8 +680,10 @@ public CompletableFuture stats(WatcherStatsRequest request } /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @param fn * a function that initializes a builder to create the @@ -659,8 +699,10 @@ public final CompletableFuture stats( } /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @see Documentation @@ -675,7 +717,9 @@ public CompletableFuture stats() { // ----- Endpoint: watcher.stop /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @see Documentation @@ -690,7 +734,9 @@ public CompletableFuture stop(StopWatcherRequest request) { } /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @param fn * a function that initializes a builder to create the @@ -706,7 +752,9 @@ public final CompletableFuture stop( } /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @see Documentation @@ -721,9 +769,11 @@ public CompletableFuture stop() { // ----- Endpoint: watcher.update_settings /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and @@ -745,9 +795,11 @@ public CompletableFuture updateSettings(UpdateSettingsRe } /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and @@ -770,9 +822,11 @@ public final CompletableFuture updateSettings( } /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java index 39754b4c65..8a605b04aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ElasticsearchWatcherClient.java @@ -68,8 +68,10 @@ public ElasticsearchWatcherClient withTransportOptions(@Nullable TransportOption // ----- Endpoint: watcher.ack_watch /** - * Acknowledge a watch. Acknowledging a watch enables you to manually throttle - * the execution of the watch's actions. + * Acknowledge a watch. + *

                                                                + * Acknowledging a watch enables you to manually throttle the execution of the + * watch's actions. *

                                                                * The acknowledgement state of an action is stored in the * status.actions.<id>.ack.state structure. @@ -98,8 +100,10 @@ public AckWatchResponse ackWatch(AckWatchRequest request) throws IOException, El } /** - * Acknowledge a watch. Acknowledging a watch enables you to manually throttle - * the execution of the watch's actions. + * Acknowledge a watch. + *

                                                                + * Acknowledging a watch enables you to manually throttle the execution of the + * watch's actions. *

                                                                * The acknowledgement state of an action is stored in the * status.actions.<id>.ack.state structure. @@ -131,7 +135,9 @@ public final AckWatchResponse ackWatch(Function + * A watch can be either active or inactive. * * @see Documentation @@ -147,7 +153,9 @@ public ActivateWatchResponse activateWatch(ActivateWatchRequest request) } /** - * Activate a watch. A watch can be either active or inactive. + * Activate a watch. + *

                                                                + * A watch can be either active or inactive. * * @param fn * a function that initializes a builder to create the @@ -166,7 +174,9 @@ public final ActivateWatchResponse activateWatch( // ----- Endpoint: watcher.deactivate_watch /** - * Deactivate a watch. A watch can be either active or inactive. + * Deactivate a watch. + *

                                                                + * A watch can be either active or inactive. * * @see Documentation @@ -182,7 +192,9 @@ public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request) } /** - * Deactivate a watch. A watch can be either active or inactive. + * Deactivate a watch. + *

                                                                + * A watch can be either active or inactive. * * @param fn * a function that initializes a builder to create the @@ -201,9 +213,10 @@ public final DeactivateWatchResponse deactivateWatch( // ----- Endpoint: watcher.delete_watch /** - * Delete a watch. When the watch is removed, the document representing the - * watch in the .watches index is gone and it will never be run - * again. + * Delete a watch. + *

                                                                + * When the watch is removed, the document representing the watch in the + * .watches index is gone and it will never be run again. *

                                                                * Deleting a watch does not delete any watch execution records related to this * watch from the watch history. @@ -227,9 +240,10 @@ public DeleteWatchResponse deleteWatch(DeleteWatchRequest request) throws IOExce } /** - * Delete a watch. When the watch is removed, the document representing the - * watch in the .watches index is gone and it will never be run - * again. + * Delete a watch. + *

                                                                + * When the watch is removed, the document representing the watch in the + * .watches index is gone and it will never be run again. *

                                                                * Deleting a watch does not delete any watch execution records related to this * watch from the watch history. @@ -257,9 +271,10 @@ public final DeleteWatchResponse deleteWatch( // ----- Endpoint: watcher.execute_watch /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -294,9 +309,10 @@ public ExecuteWatchResponse executeWatch(ExecuteWatchRequest request) throws IOE } /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -333,9 +349,10 @@ public final ExecuteWatchResponse executeWatch( } /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or @@ -370,8 +387,10 @@ public ExecuteWatchResponse executeWatch() throws IOException, ElasticsearchExce // ----- Endpoint: watcher.get_settings /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -389,8 +408,10 @@ public GetWatcherSettingsResponse getSettings(GetWatcherSettingsRequest request) } /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -409,8 +430,10 @@ public final GetWatcherSettingsResponse getSettings( } /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * @@ -460,10 +483,12 @@ public final GetWatchResponse getWatch(Function.watches index and its - * trigger is immediately registered with the relevant trigger engine. Typically - * for the schedule trigger, the scheduler is the trigger engine. + * Create or update a watch. + *

                                                                + * When a watch is registered, a new document that represents the watch is added + * to the .watches index and its trigger is immediately registered + * with the relevant trigger engine. Typically for the schedule + * trigger, the scheduler is the trigger engine. *

                                                                * IMPORTANT: You must use Kibana or this API to create a watch. Do not add a * watch directly to the .watches index by using the Elasticsearch @@ -491,10 +516,12 @@ public PutWatchResponse putWatch(PutWatchRequest request) throws IOException, El } /** - * Create or update a watch. When a watch is registered, a new document that - * represents the watch is added to the .watches index and its - * trigger is immediately registered with the relevant trigger engine. Typically - * for the schedule trigger, the scheduler is the trigger engine. + * Create or update a watch. + *

                                                                + * When a watch is registered, a new document that represents the watch is added + * to the .watches index and its trigger is immediately registered + * with the relevant trigger engine. Typically for the schedule + * trigger, the scheduler is the trigger engine. *

                                                                * IMPORTANT: You must use Kibana or this API to create a watch. Do not add a * watch directly to the .watches index by using the Elasticsearch @@ -525,8 +552,10 @@ public final PutWatchResponse putWatch(Function + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -544,8 +573,10 @@ public QueryWatchesResponse queryWatches(QueryWatchesRequest request) throws IOE } /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -565,8 +596,10 @@ public final QueryWatchesResponse queryWatches( } /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. @@ -584,8 +617,9 @@ public QueryWatchesResponse queryWatches() throws IOException, ElasticsearchExce // ----- Endpoint: watcher.start /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @see Documentation @@ -600,8 +634,9 @@ public StartWatcherResponse start(StartWatcherRequest request) throws IOExceptio } /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @param fn * a function that initializes a builder to create the @@ -618,8 +653,9 @@ public final StartWatcherResponse start( } /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @see Documentation @@ -634,8 +670,10 @@ public StartWatcherResponse start() throws IOException, ElasticsearchException { // ----- Endpoint: watcher.stats /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @see Documentation @@ -650,8 +688,10 @@ public WatcherStatsResponse stats(WatcherStatsRequest request) throws IOExceptio } /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @param fn * a function that initializes a builder to create the @@ -668,8 +708,10 @@ public final WatcherStatsResponse stats( } /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @see Documentation @@ -684,7 +726,9 @@ public WatcherStatsResponse stats() throws IOException, ElasticsearchException { // ----- Endpoint: watcher.stop /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @see Documentation @@ -699,7 +743,9 @@ public StopWatcherResponse stop(StopWatcherRequest request) throws IOException, } /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @param fn * a function that initializes a builder to create the @@ -715,7 +761,9 @@ public final StopWatcherResponse stop(Function + * Stop the Watcher service if it is running. * * @see Documentation @@ -730,9 +778,11 @@ public StopWatcherResponse stop() throws IOException, ElasticsearchException { // ----- Endpoint: watcher.update_settings /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and @@ -755,9 +805,11 @@ public UpdateSettingsResponse updateSettings(UpdateSettingsRequest request) } /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and @@ -781,9 +833,11 @@ public final UpdateSettingsResponse updateSettings( } /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java index afe7007246..31d83e660b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java @@ -59,9 +59,10 @@ // typedef: watcher.execute_watch.Request /** - * Run a watch. This API can be used to force execution of the watch outside of - * its triggering logic or to simulate the watch execution for debugging - * purposes. + * Run a watch. + *

                                                                + * This API can be used to force execution of the watch outside of its + * triggering logic or to simulate the watch execution for debugging purposes. *

                                                                * For testing and debugging purposes, you also have fine-grained control on how * the watch runs. You can run the watch without running all of its actions or diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java index 77cc437143..12924ba65f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java @@ -55,8 +55,10 @@ // typedef: watcher.get_settings.Request /** - * Get Watcher index settings. Get settings for the Watcher internal index - * (.watches). Only a subset of settings are shown, for example + * Get Watcher index settings. + *

                                                                + * Get settings for the Watcher internal index (.watches). Only a + * subset of settings are shown, for example * index.auto_expand_replicas and * index.number_of_replicas. * diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java index 852219ff13..e9285b6d72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java @@ -63,10 +63,12 @@ // typedef: watcher.put_watch.Request /** - * Create or update a watch. When a watch is registered, a new document that - * represents the watch is added to the .watches index and its - * trigger is immediately registered with the relevant trigger engine. Typically - * for the schedule trigger, the scheduler is the trigger engine. + * Create or update a watch. + *

                                                                + * When a watch is registered, a new document that represents the watch is added + * to the .watches index and its trigger is immediately registered + * with the relevant trigger engine. Typically for the schedule + * trigger, the scheduler is the trigger engine. *

                                                                * IMPORTANT: You must use Kibana or this API to create a watch. Do not add a * watch directly to the .watches index by using the Elasticsearch @@ -186,7 +188,7 @@ public final String id() { } /** - * only update the watch if the last operation that has changed the watch has + * Only update the watch if the last operation that has changed the watch has * the specified primary term *

                                                                * API name: {@code if_primary_term} @@ -197,7 +199,7 @@ public final Long ifPrimaryTerm() { } /** - * only update the watch if the last operation that has changed the watch has + * Only update the watch if the last operation that has changed the watch has * the specified sequence number *

                                                                * API name: {@code if_seq_no} @@ -480,7 +482,7 @@ public final Builder id(String value) { } /** - * only update the watch if the last operation that has changed the watch has + * Only update the watch if the last operation that has changed the watch has * the specified primary term *

                                                                * API name: {@code if_primary_term} @@ -491,7 +493,7 @@ public final Builder ifPrimaryTerm(@Nullable Long value) { } /** - * only update the watch if the last operation that has changed the watch has + * Only update the watch if the last operation that has changed the watch has * the specified sequence number *

                                                                * API name: {@code if_seq_no} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java index b29edfabf4..9a40efc571 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java @@ -62,8 +62,10 @@ // typedef: watcher.query_watches.Request /** - * Query watches. Get all registered watches in a paginated manner and - * optionally filter watches by a query. + * Query watches. + *

                                                                + * Get all registered watches in a paginated manner and optionally filter + * watches by a query. *

                                                                * Note that only the _id and metadata.* fields are * queryable or sortable. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java index 99dc18c524..271afeefea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java @@ -55,8 +55,9 @@ // typedef: watcher.start.Request /** - * Start the watch service. Start the Watcher service if it is not already - * running. + * Start the watch service. + *

                                                                + * Start the Watcher service if it is not already running. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java index 5bf2b2013e..4000f71b17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java @@ -55,7 +55,9 @@ // typedef: watcher.stop.Request /** - * Stop the watch service. Stop the Watcher service if it is running. + * Stop the watch service. + *

                                                                + * Stop the Watcher service if it is running. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java index c21f09bd34..141caf2086 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java @@ -59,9 +59,11 @@ // typedef: watcher.update_settings.Request /** - * Update Watcher index settings. Update settings for the Watcher internal index - * (.watches). Only a subset of settings can be modified. This - * includes index.auto_expand_replicas, + * Update Watcher index settings. + *

                                                                + * Update settings for the Watcher internal index (.watches). Only + * a subset of settings can be modified. This includes + * index.auto_expand_replicas, * index.number_of_replicas, * index.routing.allocation.exclude.*, * index.routing.allocation.include.* and diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java index 76de0dddbc..4e2c8749e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java @@ -58,8 +58,10 @@ // typedef: watcher.stats.Request /** - * Get Watcher statistics. This API always returns basic metrics. You retrieve - * more metrics by using the metric parameter. + * Get Watcher statistics. + *

                                                                + * This API always returns basic metrics. You retrieve more metrics by using the + * metric parameter. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java index 877a92e0f2..7bd601147b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackAsyncClient.java @@ -68,7 +68,9 @@ public ElasticsearchXpackAsyncClient withTransportOptions(@Nullable TransportOpt // ----- Endpoint: xpack.info /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                + * The information provided by the API includes: *

                                                                  *
                                                                • Build information including the build number and timestamp.
                                                                • *
                                                                • License information about the currently installed license.
                                                                • @@ -89,7 +91,9 @@ public CompletableFuture info(XpackInfoRequest request) { } /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                  + * The information provided by the API includes: *

                                                                    *
                                                                  • Build information including the build number and timestamp.
                                                                  • *
                                                                  • License information about the currently installed license.
                                                                  • @@ -111,7 +115,9 @@ public final CompletableFuture info( } /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                    + * The information provided by the API includes: *

                                                                      *
                                                                    • Build information including the build number and timestamp.
                                                                    • *
                                                                    • License information about the currently installed license.
                                                                    • @@ -132,9 +138,10 @@ public CompletableFuture info() { // ----- Endpoint: xpack.usage /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                      + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @see Documentation @@ -149,9 +156,10 @@ public CompletableFuture usage(XpackUsageRequest request) { } /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                      + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @param fn * a function that initializes a builder to create the @@ -167,9 +175,10 @@ public final CompletableFuture usage( } /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                      + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java index 42e0d657b9..00f9f24734 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/ElasticsearchXpackClient.java @@ -68,7 +68,9 @@ public ElasticsearchXpackClient withTransportOptions(@Nullable TransportOptions // ----- Endpoint: xpack.info /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                      + * The information provided by the API includes: *

                                                                        *
                                                                      • Build information including the build number and timestamp.
                                                                      • *
                                                                      • License information about the currently installed license.
                                                                      • @@ -89,7 +91,9 @@ public XpackInfoResponse info(XpackInfoRequest request) throws IOException, Elas } /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                        + * The information provided by the API includes: *

                                                                          *
                                                                        • Build information including the build number and timestamp.
                                                                        • *
                                                                        • License information about the currently installed license.
                                                                        • @@ -111,7 +115,9 @@ public final XpackInfoResponse info(Function + * The information provided by the API includes: *
                                                                            *
                                                                          • Build information including the build number and timestamp.
                                                                          • *
                                                                          • License information about the currently installed license.
                                                                          • @@ -132,9 +138,10 @@ public XpackInfoResponse info() throws IOException, ElasticsearchException { // ----- Endpoint: xpack.usage /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                            + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @see Documentation @@ -149,9 +156,10 @@ public XpackUsageResponse usage(XpackUsageRequest request) throws IOException, E } /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                            + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @param fn * a function that initializes a builder to create the @@ -167,9 +175,10 @@ public final XpackUsageResponse usage(Function + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @see Documentation diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java index b945968756..a51df0fd2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java @@ -59,7 +59,9 @@ // typedef: xpack.info.Request /** - * Get information. The information provided by the API includes: + * Get information. + *

                                                                            + * The information provided by the API includes: *

                                                                              *
                                                                            • Build information including the build number and timestamp.
                                                                            • *
                                                                            • License information about the currently installed license.
                                                                            • @@ -95,10 +97,13 @@ public static XpackInfoRequest of(Function * API name: {@code accept_enterprise} + * + * @deprecated 8.0.0 Supported for backwards compatibility with 7.x */ + @Deprecated @Nullable public final Boolean acceptEnterprise() { return this.acceptEnterprise; @@ -144,10 +149,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean human; /** - * If this param is used it must be set to true + * If used, this otherwise ignored parameter must be set to true *

                                                                              * API name: {@code accept_enterprise} + * + * @deprecated 8.0.0 Supported for backwards compatibility with 7.x */ + @Deprecated public final Builder acceptEnterprise(@Nullable Boolean value) { this.acceptEnterprise = value; return this; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java index 82a20c2f1b..10640ab3a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java @@ -55,9 +55,10 @@ // typedef: xpack.usage.Request /** - * Get usage information. Get information about the features that are currently - * enabled and available under the current license. The API also provides some - * usage statistics. + * Get usage information. + *

                                                                              + * Get information about the features that are currently enabled and available + * under the current license. The API also provides some usage statistics. * * @see API * specification From 73c4f06e9c3fe02dfc737293ad8c5addea2b19b5 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 9 Jan 2026 18:21:23 +0100 Subject: [PATCH 2/3] support for routing list in bulk op --- .../_helpers/bulk/IngesterOperation.java | 18 ++++++++++++++++++ .../_helpers/bulk/BulkIngesterTest.java | 5 +++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/IngesterOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/IngesterOperation.java index b8cd7ac2c1..5467cc1124 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/IngesterOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/IngesterOperation.java @@ -30,6 +30,7 @@ import co.elastic.clients.util.BinaryData; import javax.annotation.Nullable; +import java.util.List; /** * A bulk operation whose size has been calculated and content turned to a binary blob (to compute its size). @@ -212,6 +213,23 @@ private static int size(String name, @Nullable JsonEnum value) { } } + private static int size(String name, @Nullable List value) { + if (value != null) { + if (value.isEmpty()) { + return name.length() + 6; // 6 added chars for empty array "name":[], + } + int listSize = 0; + for (String item : value) { + listSize += item.length(); + listSize += 2; // +2 quotes each item + } + listSize += value.size()-1 ; // +1 comma between each item + return name.length() + listSize + 6; // "name":["item1","item2","item3"], + } else { + return 0; + } + } + private static int basePropertiesSize(BulkOperationBase op) { return size("id", op.id()) + diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterTest.java index 08face1a20..106417b071 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterTest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterTest.java @@ -418,7 +418,7 @@ public void beforeBulk(long executionId, BulkRequest request, List context .listener(listener) .globalSettings(s -> s .index("foo") - .routing("bar") + .routing("bar","aaa") ) ); @@ -431,7 +431,8 @@ public void beforeBulk(long executionId, BulkRequest request, List context assertEquals(1, ingester.requestCount()); assertEquals("foo", storedRequest.get().index()); - assertEquals("bar", storedRequest.get().routing()); + assertEquals("bar", storedRequest.get().routing().get(0)); + assertEquals("aaa", storedRequest.get().routing().get(1)); } @Test From 3579792816c08c4bb2bf7b7f55d20ff5999847ba Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 20 Jan 2026 16:33:32 +0100 Subject: [PATCH 3/3] [codegen] update to latest spec and generator --- .../_types/BulkIndexByScrollFailure.java | 15 ++ .../elasticsearch/_types/BulkStats.java | 20 +++ .../elasticsearch/_types/CartesianPoint.java | 13 ++ .../elasticsearch/_types/ChunkRescorer.java | 13 ++ .../elasticsearch/_types/ClusterDetails.java | 17 ++ .../_types/ClusterStatistics.java | 18 +++ .../elasticsearch/_types/CompletionStats.java | 14 ++ .../elasticsearch/_types/CoordsGeoBounds.java | 15 ++ .../_types/DiversifyRetriever.java | 19 +++ .../elasticsearch/_types/DocStats.java | 15 ++ .../_types/ElasticsearchVersionInfo.java | 20 +++ .../_types/ElasticsearchVersionMinInfo.java | 15 ++ .../elasticsearch/_types/ErrorCause.java | 17 ++ .../elasticsearch/_types/ErrorResponse.java | 13 ++ .../_types/FieldMemoryUsage.java | 13 ++ .../elasticsearch/_types/FieldSizeUsage.java | 13 ++ .../elasticsearch/_types/FieldSort.java | 18 +++ .../elasticsearch/_types/FielddataStats.java | 16 ++ .../elasticsearch/_types/FlushStats.java | 15 ++ .../elasticsearch/_types/GeoDistanceSort.java | 17 ++ .../elasticsearch/_types/GeoHashLocation.java | 12 ++ .../clients/elasticsearch/_types/GeoLine.java | 13 ++ .../elasticsearch/_types/GetStats.java | 21 +++ .../_types/GlobalOrdinalFieldStats.java | 14 ++ .../_types/GlobalOrdinalsStats.java | 14 ++ .../elasticsearch/_types/IndexingStats.java | 28 ++++ .../elasticsearch/_types/IndicesOptions.java | 15 ++ .../elasticsearch/_types/InlineGet.java | 17 ++ .../elasticsearch/_types/InnerRetriever.java | 14 ++ .../elasticsearch/_types/KnnQuery.java | 20 +++ .../elasticsearch/_types/KnnRetriever.java | 19 +++ .../elasticsearch/_types/KnnSearch.java | 22 +++ .../_types/LatLonGeoLocation.java | 13 ++ .../elasticsearch/_types/LinearRetriever.java | 16 ++ .../elasticsearch/_types/MergesStats.java | 27 ++++ .../elasticsearch/_types/NestedSortValue.java | 15 ++ .../elasticsearch/_types/NodeAttributes.java | 16 ++ .../elasticsearch/_types/NodeShard.java | 21 +++ .../elasticsearch/_types/NodeStatistics.java | 15 ++ .../elasticsearch/_types/PinnedRetriever.java | 15 ++ .../elasticsearch/_types/PluginStats.java | 20 +++ .../elasticsearch/_types/QueryCacheStats.java | 19 +++ .../elasticsearch/_types/RRFRetriever.java | 16 ++ .../_types/RRFRetrieverComponent.java | 13 ++ .../elasticsearch/_types/RecoveryStats.java | 15 ++ .../elasticsearch/_types/RefreshStats.java | 17 ++ .../elasticsearch/_types/ReindexStatus.java | 26 +++ .../_types/RelocationFailureInfo.java | 12 ++ .../_types/RequestCacheStats.java | 16 ++ .../elasticsearch/_types/RescoreVector.java | 12 ++ .../_types/RescorerRetriever.java | 13 ++ .../clients/elasticsearch/_types/Retries.java | 13 ++ .../clients/elasticsearch/_types/RrfRank.java | 13 ++ .../elasticsearch/_types/RuleRetriever.java | 15 ++ .../elasticsearch/_types/ScoreSort.java | 12 ++ .../clients/elasticsearch/_types/Script.java | 16 ++ .../elasticsearch/_types/ScriptField.java | 13 ++ .../elasticsearch/_types/ScriptSort.java | 16 ++ .../elasticsearch/_types/ScriptTransform.java | 15 ++ .../elasticsearch/_types/SearchStats.java | 30 ++++ .../elasticsearch/_types/SearchTransform.java | 13 ++ .../elasticsearch/_types/SegmentsStats.java | 34 ++++ .../elasticsearch/_types/ShardFailure.java | 17 ++ .../elasticsearch/_types/ShardStatistics.java | 16 ++ .../elasticsearch/_types/SlicedScroll.java | 14 ++ .../_types/SpecifiedDocument.java | 13 ++ .../_types/StandardRetriever.java | 16 ++ .../elasticsearch/_types/StoreStats.java | 17 ++ .../elasticsearch/_types/StoredScript.java | 14 ++ .../elasticsearch/_types/TaskFailure.java | 15 ++ .../elasticsearch/_types/TextEmbedding.java | 13 ++ .../_types/TextSimilarityReranker.java | 17 ++ .../_types/TokenPruningConfig.java | 14 ++ .../_types/TopLeftBottomRightGeoBounds.java | 13 ++ .../_types/TopRightBottomLeftGeoBounds.java | 13 ++ .../elasticsearch/_types/TranslogStats.java | 18 +++ .../elasticsearch/_types/WarmerStats.java | 15 ++ .../elasticsearch/_types/WktGeoBounds.java | 12 ++ .../AdjacencyMatrixAggregate.java | 11 ++ .../AdjacencyMatrixAggregation.java | 13 ++ .../aggregations/AdjacencyMatrixBucket.java | 12 ++ .../_types/aggregations/AggregationRange.java | 14 ++ .../aggregations/ArrayPercentilesItem.java | 14 ++ .../AutoDateHistogramAggregate.java | 12 ++ .../AutoDateHistogramAggregation.java | 20 +++ .../aggregations/AverageAggregation.java | 11 ++ .../AverageBucketAggregation.java | 11 ++ .../_types/aggregations/AvgAggregate.java | 11 ++ .../_types/aggregations/BoxPlotAggregate.java | 25 +++ .../aggregations/BoxplotAggregation.java | 13 ++ .../BucketCorrelationAggregation.java | 12 ++ .../BucketCorrelationFunction.java | 12 ++ ...etCorrelationFunctionCountCorrelation.java | 12 ++ ...tionFunctionCountCorrelationIndicator.java | 14 ++ .../aggregations/BucketKsAggregation.java | 14 ++ .../BucketMetricValueAggregate.java | 12 ++ .../aggregations/BucketScriptAggregation.java | 12 ++ .../BucketSelectorAggregation.java | 12 ++ .../aggregations/BucketSortAggregation.java | 15 ++ .../aggregations/CardinalityAggregate.java | 12 ++ .../aggregations/CardinalityAggregation.java | 14 ++ .../CartesianBoundsAggregate.java | 12 ++ .../CartesianBoundsAggregation.java | 11 ++ .../CartesianCentroidAggregate.java | 13 ++ .../CartesianCentroidAggregation.java | 11 ++ .../CategorizeTextAggregation.java | 21 +++ .../aggregations/ChangePointAggregate.java | 13 ++ .../aggregations/ChangePointAggregation.java | 11 ++ .../aggregations/ChangePointBucket.java | 12 ++ .../aggregations/ChiSquareHeuristic.java | 13 ++ .../aggregations/ChildrenAggregate.java | 11 ++ .../aggregations/ChildrenAggregation.java | 12 ++ .../aggregations/CompositeAggregate.java | 12 ++ .../aggregations/CompositeAggregation.java | 14 ++ .../_types/aggregations/CompositeBucket.java | 12 ++ .../CompositeDateHistogramAggregation.java | 16 ++ .../CompositeGeoTileGridAggregation.java | 13 ++ .../CompositeHistogramAggregation.java | 12 ++ .../CompositeTermsAggregation.java | 11 ++ .../CumulativeCardinalityAggregate.java | 13 ++ .../CumulativeCardinalityAggregation.java | 11 ++ .../CumulativeSumAggregation.java | 11 ++ .../CustomCategorizeTextAnalyzer.java | 14 ++ .../aggregations/DateHistogramAggregate.java | 11 ++ .../DateHistogramAggregation.java | 26 +++ .../aggregations/DateHistogramBucket.java | 13 ++ .../aggregations/DateRangeAggregate.java | 11 ++ .../aggregations/DateRangeAggregation.java | 17 ++ .../aggregations/DateRangeExpression.java | 14 ++ .../aggregations/DerivativeAggregate.java | 13 ++ .../aggregations/DerivativeAggregation.java | 11 ++ .../_types/aggregations/Dip.java | 11 ++ .../aggregations/DistributionChange.java | 11 ++ .../DiversifiedSamplerAggregation.java | 16 ++ .../aggregations/DoubleTermsAggregate.java | 11 ++ .../aggregations/DoubleTermsBucket.java | 13 ++ .../aggregations/EwmaModelSettings.java | 12 ++ .../EwmaMovingAverageAggregation.java | 12 ++ .../_types/aggregations/ExtendedBounds.java | 13 ++ .../ExtendedStatsAggregation.java | 12 ++ .../ExtendedStatsBucketAggregate.java | 11 ++ .../ExtendedStatsBucketAggregation.java | 12 ++ .../_types/aggregations/FilterAggregate.java | 11 ++ .../_types/aggregations/FiltersAggregate.java | 11 ++ .../aggregations/FiltersAggregation.java | 15 ++ .../_types/aggregations/FiltersBucket.java | 12 ++ .../FrequentItemSetsAggregate.java | 11 ++ .../FrequentItemSetsAggregation.java | 16 ++ .../aggregations/FrequentItemSetsBucket.java | 13 ++ .../aggregations/FrequentItemSetsField.java | 14 ++ .../aggregations/GeoBoundsAggregate.java | 12 ++ .../aggregations/GeoBoundsAggregation.java | 12 ++ .../aggregations/GeoCentroidAggregate.java | 13 ++ .../aggregations/GeoCentroidAggregation.java | 13 ++ .../aggregations/GeoDistanceAggregate.java | 11 ++ .../aggregations/GeoDistanceAggregation.java | 16 ++ .../aggregations/GeoHashGridAggregate.java | 11 ++ .../aggregations/GeoHashGridAggregation.java | 16 ++ .../aggregations/GeoHashGridBucket.java | 12 ++ .../aggregations/GeoHexGridAggregate.java | 11 ++ .../_types/aggregations/GeoHexGridBucket.java | 12 ++ .../_types/aggregations/GeoLineAggregate.java | 14 ++ .../aggregations/GeoLineAggregation.java | 16 ++ .../_types/aggregations/GeoLinePoint.java | 12 ++ .../_types/aggregations/GeoLineSort.java | 12 ++ .../aggregations/GeoTileGridAggregate.java | 11 ++ .../aggregations/GeoTileGridAggregation.java | 16 ++ .../aggregations/GeoTileGridBucket.java | 12 ++ .../aggregations/GeohexGridAggregation.java | 16 ++ .../_types/aggregations/GlobalAggregate.java | 11 ++ .../GoogleNormalizedDistanceHeuristic.java | 12 ++ .../_types/aggregations/HdrMethod.java | 12 ++ .../HdrPercentileRanksAggregate.java | 11 ++ .../aggregations/HdrPercentilesAggregate.java | 11 ++ .../aggregations/HistogramAggregate.java | 11 ++ .../aggregations/HistogramAggregation.java | 22 +++ .../_types/aggregations/HistogramBucket.java | 13 ++ .../aggregations/HoltLinearModelSettings.java | 13 ++ .../HoltMovingAverageAggregation.java | 12 ++ .../HoltWintersModelSettings.java | 17 ++ .../HoltWintersMovingAverageAggregation.java | 12 ++ .../_types/aggregations/Indeterminable.java | 12 ++ .../aggregations/InferenceAggregate.java | 15 ++ .../aggregations/InferenceAggregation.java | 13 ++ .../InferenceClassImportance.java | 13 ++ .../InferenceFeatureImportance.java | 14 ++ .../aggregations/InferenceTopClassEntry.java | 14 ++ .../aggregations/IpPrefixAggregate.java | 11 ++ .../aggregations/IpPrefixAggregation.java | 17 ++ .../_types/aggregations/IpPrefixBucket.java | 15 ++ .../_types/aggregations/IpRangeAggregate.java | 11 ++ .../aggregations/IpRangeAggregation.java | 13 ++ .../aggregations/IpRangeAggregationRange.java | 14 ++ .../_types/aggregations/IpRangeBucket.java | 14 ++ .../LinearMovingAverageAggregation.java | 12 ++ .../aggregations/LongRareTermsAggregate.java | 11 ++ .../aggregations/LongRareTermsBucket.java | 13 ++ .../aggregations/LongTermsAggregate.java | 11 ++ .../_types/aggregations/LongTermsBucket.java | 13 ++ .../aggregations/MatrixStatsAggregate.java | 13 ++ .../aggregations/MatrixStatsAggregation.java | 12 ++ .../aggregations/MatrixStatsFields.java | 19 +++ .../_types/aggregations/MaxAggregate.java | 11 ++ .../_types/aggregations/MaxAggregation.java | 11 ++ .../aggregations/MaxBucketAggregation.java | 11 ++ .../MedianAbsoluteDeviationAggregate.java | 11 ++ .../MedianAbsoluteDeviationAggregation.java | 13 ++ .../_types/aggregations/MinAggregate.java | 11 ++ .../_types/aggregations/MinAggregation.java | 11 ++ .../aggregations/MinBucketAggregation.java | 11 ++ .../_types/aggregations/MissingAggregate.java | 11 ++ .../aggregations/MissingAggregation.java | 13 ++ .../MovingFunctionAggregation.java | 14 ++ .../MovingPercentilesAggregation.java | 14 ++ .../_types/aggregations/MultiTermLookup.java | 13 ++ .../aggregations/MultiTermsAggregate.java | 11 ++ .../aggregations/MultiTermsAggregation.java | 19 +++ .../_types/aggregations/MultiTermsBucket.java | 14 ++ .../MutualInformationHeuristic.java | 13 ++ .../_types/aggregations/NestedAggregate.java | 11 ++ .../aggregations/NestedAggregation.java | 12 ++ .../_types/aggregations/NonStationary.java | 14 ++ .../aggregations/NormalizeAggregation.java | 12 ++ .../_types/aggregations/PValueHeuristic.java | 13 ++ .../_types/aggregations/ParentAggregate.java | 11 ++ .../aggregations/ParentAggregation.java | 12 ++ .../PercentileRanksAggregation.java | 15 ++ .../aggregations/PercentilesAggregation.java | 15 ++ .../PercentilesBucketAggregate.java | 11 ++ .../PercentilesBucketAggregation.java | 12 ++ .../RandomSamplerAggregation.java | 14 ++ .../_types/aggregations/RangeAggregation.java | 17 ++ .../_types/aggregations/RangeBucket.java | 16 ++ .../aggregations/RareTermsAggregation.java | 18 +++ .../_types/aggregations/RateAggregate.java | 13 ++ .../_types/aggregations/RateAggregation.java | 13 ++ .../aggregations/ReverseNestedAggregate.java | 11 ++ .../ReverseNestedAggregation.java | 12 ++ .../_types/aggregations/SamplerAggregate.java | 11 ++ .../aggregations/SamplerAggregation.java | 12 ++ .../aggregations/ScriptedHeuristic.java | 12 ++ .../aggregations/ScriptedMetricAggregate.java | 12 ++ .../ScriptedMetricAggregation.java | 16 ++ .../SerialDifferencingAggregation.java | 12 ++ .../SignificantLongTermsAggregate.java | 11 ++ .../SignificantLongTermsBucket.java | 13 ++ .../SignificantStringTermsAggregate.java | 11 ++ .../SignificantStringTermsBucket.java | 12 ++ .../SignificantTermsAggregation.java | 27 ++++ .../SignificantTextAggregation.java | 28 ++++ .../SimpleMovingAverageAggregation.java | 12 ++ .../aggregations/SimpleValueAggregate.java | 11 ++ .../_types/aggregations/Spike.java | 11 ++ .../aggregations/StandardDeviationBounds.java | 17 ++ .../StandardDeviationBoundsAsString.java | 17 ++ .../_types/aggregations/StatsAggregation.java | 11 ++ .../aggregations/StatsBucketAggregate.java | 11 ++ .../aggregations/StatsBucketAggregation.java | 11 ++ .../_types/aggregations/StepChange.java | 11 ++ .../StringRareTermsAggregate.java | 11 ++ .../aggregations/StringRareTermsBucket.java | 12 ++ .../aggregations/StringStatsAggregate.java | 20 +++ .../aggregations/StringStatsAggregation.java | 12 ++ .../aggregations/StringTermsAggregate.java | 11 ++ .../aggregations/StringTermsBucket.java | 12 ++ .../_types/aggregations/SumAggregate.java | 11 ++ .../_types/aggregations/SumAggregation.java | 11 ++ .../aggregations/SumBucketAggregation.java | 11 ++ .../_types/aggregations/TDigest.java | 13 ++ .../TDigestPercentileRanksAggregate.java | 11 ++ .../TDigestPercentilesAggregate.java | 11 ++ .../_types/aggregations/TTestAggregate.java | 13 ++ .../_types/aggregations/TTestAggregation.java | 14 ++ .../_types/aggregations/TermsAggregation.java | 28 ++++ .../_types/aggregations/TermsPartition.java | 13 ++ .../_types/aggregations/TestPopulation.java | 14 ++ .../aggregations/TimeSeriesAggregate.java | 11 ++ .../aggregations/TimeSeriesAggregation.java | 13 ++ .../_types/aggregations/TimeSeriesBucket.java | 12 ++ .../_types/aggregations/TopHitsAggregate.java | 12 ++ .../aggregations/TopHitsAggregation.java | 24 +++ .../_types/aggregations/TopMetrics.java | 13 ++ .../aggregations/TopMetricsAggregate.java | 12 ++ .../aggregations/TopMetricsAggregation.java | 14 ++ .../_types/aggregations/TopMetricsValue.java | 12 ++ .../_types/aggregations/TrendChange.java | 14 ++ .../UnmappedRareTermsAggregate.java | 11 ++ .../UnmappedSamplerAggregate.java | 11 ++ .../UnmappedSignificantTermsAggregate.java | 11 ++ .../aggregations/UnmappedTermsAggregate.java | 11 ++ .../aggregations/ValueCountAggregate.java | 11 ++ .../aggregations/ValueCountAggregation.java | 11 ++ .../VariableWidthHistogramAggregate.java | 11 ++ .../VariableWidthHistogramAggregation.java | 16 ++ .../VariableWidthHistogramBucket.java | 17 ++ .../WeightedAverageAggregation.java | 15 ++ .../aggregations/WeightedAverageValue.java | 14 ++ .../aggregations/WeightedAvgAggregate.java | 11 ++ .../analysis/ApostropheTokenFilter.java | 11 ++ .../_types/analysis/ArabicAnalyzer.java | 14 ++ .../ArabicNormalizationTokenFilter.java | 11 ++ .../analysis/ArabicStemTokenFilter.java | 11 ++ .../_types/analysis/ArmenianAnalyzer.java | 14 ++ .../analysis/AsciiFoldingTokenFilter.java | 12 ++ .../_types/analysis/BasqueAnalyzer.java | 14 ++ .../_types/analysis/BengaliAnalyzer.java | 14 ++ .../BengaliNormalizationTokenFilter.java | 11 ++ .../_types/analysis/BrazilianAnalyzer.java | 13 ++ .../analysis/BrazilianStemTokenFilter.java | 11 ++ .../_types/analysis/BulgarianAnalyzer.java | 14 ++ .../_types/analysis/CatalanAnalyzer.java | 14 ++ .../_types/analysis/CharGroupTokenizer.java | 13 ++ .../_types/analysis/ChineseAnalyzer.java | 13 ++ .../_types/analysis/CjkAnalyzer.java | 13 ++ .../_types/analysis/CjkBigramTokenFilter.java | 13 ++ .../_types/analysis/CjkWidthTokenFilter.java | 11 ++ .../_types/analysis/ClassicTokenFilter.java | 11 ++ .../_types/analysis/ClassicTokenizer.java | 12 ++ .../analysis/CommonGramsTokenFilter.java | 15 ++ .../_types/analysis/ConditionTokenFilter.java | 13 ++ .../_types/analysis/CustomAnalyzer.java | 16 ++ .../_types/analysis/CustomNormalizer.java | 13 ++ .../_types/analysis/CzechAnalyzer.java | 14 ++ .../_types/analysis/CzechStemTokenFilter.java | 11 ++ .../_types/analysis/DanishAnalyzer.java | 13 ++ .../analysis/DecimalDigitTokenFilter.java | 11 ++ .../analysis/DelimitedPayloadTokenFilter.java | 13 ++ .../DictionaryDecompounderTokenFilter.java | 11 ++ .../_types/analysis/DutchAnalyzer.java | 14 ++ .../_types/analysis/DutchStemTokenFilter.java | 11 ++ .../_types/analysis/EdgeNGramTokenFilter.java | 15 ++ .../_types/analysis/EdgeNGramTokenizer.java | 15 ++ .../_types/analysis/ElisionTokenFilter.java | 14 ++ .../_types/analysis/EnglishAnalyzer.java | 14 ++ .../_types/analysis/EstonianAnalyzer.java | 13 ++ .../_types/analysis/FingerprintAnalyzer.java | 16 ++ .../analysis/FingerprintTokenFilter.java | 13 ++ .../_types/analysis/FinnishAnalyzer.java | 14 ++ .../analysis/FlattenGraphTokenFilter.java | 11 ++ .../_types/analysis/FrenchAnalyzer.java | 14 ++ .../analysis/FrenchStemTokenFilter.java | 11 ++ .../_types/analysis/GalicianAnalyzer.java | 14 ++ .../_types/analysis/GermanAnalyzer.java | 14 ++ .../GermanNormalizationTokenFilter.java | 11 ++ .../analysis/GermanStemTokenFilter.java | 11 ++ .../_types/analysis/GreekAnalyzer.java | 13 ++ .../_types/analysis/HindiAnalyzer.java | 14 ++ .../HindiNormalizationTokenFilter.java | 11 ++ .../_types/analysis/HtmlStripCharFilter.java | 12 ++ .../_types/analysis/HungarianAnalyzer.java | 14 ++ .../_types/analysis/HunspellTokenFilter.java | 15 ++ .../HyphenationDecompounderTokenFilter.java | 14 ++ .../_types/analysis/IcuAnalyzer.java | 13 ++ .../analysis/IcuCollationTokenFilter.java | 23 +++ .../analysis/IcuFoldingTokenFilter.java | 12 ++ .../analysis/IcuNormalizationCharFilter.java | 14 ++ .../analysis/IcuNormalizationTokenFilter.java | 12 ++ .../_types/analysis/IcuTokenizer.java | 12 ++ .../analysis/IcuTransformTokenFilter.java | 13 ++ .../IndicNormalizationTokenFilter.java | 11 ++ .../_types/analysis/IndonesianAnalyzer.java | 14 ++ .../_types/analysis/IrishAnalyzer.java | 14 ++ .../_types/analysis/ItalianAnalyzer.java | 14 ++ .../_types/analysis/JaStopTokenFilter.java | 12 ++ .../_types/analysis/KStemTokenFilter.java | 11 ++ .../_types/analysis/KeepTypesTokenFilter.java | 13 ++ .../_types/analysis/KeepWordsTokenFilter.java | 14 ++ .../_types/analysis/KeywordAnalyzer.java | 12 ++ .../analysis/KeywordMarkerTokenFilter.java | 15 ++ .../analysis/KeywordRepeatTokenFilter.java | 11 ++ .../_types/analysis/KeywordTokenizer.java | 12 ++ .../_types/analysis/KuromojiAnalyzer.java | 13 ++ .../KuromojiIterationMarkCharFilter.java | 13 ++ .../KuromojiPartOfSpeechTokenFilter.java | 12 ++ .../KuromojiReadingFormTokenFilter.java | 12 ++ .../analysis/KuromojiStemmerTokenFilter.java | 12 ++ .../_types/analysis/KuromojiTokenizer.java | 18 +++ .../_types/analysis/LatvianAnalyzer.java | 14 ++ .../_types/analysis/LengthTokenFilter.java | 13 ++ .../_types/analysis/LetterTokenizer.java | 11 ++ .../analysis/LimitTokenCountTokenFilter.java | 13 ++ .../_types/analysis/LithuanianAnalyzer.java | 14 ++ .../_types/analysis/LowercaseNormalizer.java | 11 ++ .../_types/analysis/LowercaseTokenFilter.java | 12 ++ .../_types/analysis/LowercaseTokenizer.java | 11 ++ .../_types/analysis/MappingCharFilter.java | 13 ++ .../_types/analysis/MinHashTokenFilter.java | 15 ++ .../analysis/MultiplexerTokenFilter.java | 13 ++ .../_types/analysis/NGramTokenFilter.java | 14 ++ .../_types/analysis/NGramTokenizer.java | 15 ++ .../_types/analysis/NoriAnalyzer.java | 15 ++ .../analysis/NoriPartOfSpeechTokenFilter.java | 12 ++ .../_types/analysis/NoriTokenizer.java | 15 ++ .../_types/analysis/NorwegianAnalyzer.java | 14 ++ .../analysis/PathHierarchyTokenizer.java | 16 ++ .../_types/analysis/PatternAnalyzer.java | 17 ++ .../analysis/PatternCaptureTokenFilter.java | 13 ++ .../analysis/PatternReplaceCharFilter.java | 14 ++ .../analysis/PatternReplaceTokenFilter.java | 15 ++ .../_types/analysis/PatternTokenizer.java | 14 ++ .../_types/analysis/PersianAnalyzer.java | 13 ++ .../PersianNormalizationTokenFilter.java | 11 ++ .../analysis/PersianStemTokenFilter.java | 11 ++ .../_types/analysis/PhoneticTokenFilter.java | 17 ++ .../analysis/PorterStemTokenFilter.java | 11 ++ .../_types/analysis/PortugueseAnalyzer.java | 14 ++ .../_types/analysis/PredicateTokenFilter.java | 12 ++ .../analysis/RemoveDuplicatesTokenFilter.java | 11 ++ .../_types/analysis/ReverseTokenFilter.java | 11 ++ .../_types/analysis/RomanianAnalyzer.java | 14 ++ .../_types/analysis/RussianAnalyzer.java | 14 ++ .../analysis/RussianStemTokenFilter.java | 11 ++ .../ScandinavianFoldingTokenFilter.java | 11 ++ .../ScandinavianNormalizationTokenFilter.java | 11 ++ .../_types/analysis/SerbianAnalyzer.java | 14 ++ .../SerbianNormalizationTokenFilter.java | 11 ++ .../_types/analysis/ShingleTokenFilter.java | 17 ++ .../_types/analysis/SimpleAnalyzer.java | 12 ++ .../analysis/SimplePatternSplitTokenizer.java | 12 ++ .../analysis/SimplePatternTokenizer.java | 12 ++ .../_types/analysis/SnowballAnalyzer.java | 14 ++ .../_types/analysis/SnowballTokenFilter.java | 12 ++ .../_types/analysis/SoraniAnalyzer.java | 14 ++ .../SoraniNormalizationTokenFilter.java | 11 ++ .../_types/analysis/SpanishAnalyzer.java | 14 ++ .../_types/analysis/StandardAnalyzer.java | 14 ++ .../_types/analysis/StandardTokenizer.java | 12 ++ .../analysis/StemmerOverrideTokenFilter.java | 13 ++ .../_types/analysis/StemmerTokenFilter.java | 12 ++ .../_types/analysis/StopAnalyzer.java | 14 ++ .../_types/analysis/StopTokenFilter.java | 15 ++ .../_types/analysis/SwedishAnalyzer.java | 14 ++ .../analysis/SynonymGraphTokenFilter.java | 11 ++ .../_types/analysis/SynonymTokenFilter.java | 11 ++ .../_types/analysis/ThaiAnalyzer.java | 13 ++ .../_types/analysis/ThaiTokenizer.java | 11 ++ .../_types/analysis/TrimTokenFilter.java | 11 ++ .../_types/analysis/TruncateTokenFilter.java | 12 ++ .../_types/analysis/TurkishAnalyzer.java | 14 ++ .../_types/analysis/UaxEmailUrlTokenizer.java | 12 ++ .../_types/analysis/UniqueTokenFilter.java | 12 ++ .../_types/analysis/UppercaseTokenFilter.java | 11 ++ .../_types/analysis/WhitespaceAnalyzer.java | 12 ++ .../_types/analysis/WhitespaceTokenizer.java | 12 ++ .../WordDelimiterGraphTokenFilter.java | 13 ++ .../analysis/WordDelimiterTokenFilter.java | 11 ++ .../AggregateMetricDoubleProperty.java | 15 ++ .../_types/mapping/AllField.java | 21 +++ .../_types/mapping/BinaryProperty.java | 11 ++ .../_types/mapping/BooleanProperty.java | 19 +++ .../_types/mapping/ByteNumberProperty.java | 12 ++ .../ChunkRescorerChunkingSettings.java | 17 ++ .../_types/mapping/ChunkingSettings.java | 17 ++ .../_types/mapping/CompletionProperty.java | 17 ++ .../_types/mapping/CompositeSubField.java | 12 ++ .../mapping/ConstantKeywordProperty.java | 12 ++ .../mapping/CountedKeywordProperty.java | 12 ++ .../_types/mapping/DataStreamTimestamp.java | 12 ++ .../_types/mapping/DateNanosProperty.java | 19 +++ .../_types/mapping/DateProperty.java | 21 +++ .../_types/mapping/DateRangeProperty.java | 12 ++ .../mapping/DenseVectorIndexOptions.java | 17 ++ .../DenseVectorIndexOptionsRescoreVector.java | 12 ++ .../_types/mapping/DenseVectorProperty.java | 16 ++ .../_types/mapping/DoubleNumberProperty.java | 12 ++ .../_types/mapping/DoubleRangeProperty.java | 11 ++ .../_types/mapping/DynamicProperty.java | 33 ++++ .../mapping/ExponentialHistogramProperty.java | 12 ++ .../_types/mapping/FieldAliasProperty.java | 12 ++ .../_types/mapping/FieldMapping.java | 13 ++ .../_types/mapping/FieldNamesField.java | 12 ++ .../_types/mapping/FlattenedProperty.java | 21 +++ .../_types/mapping/FloatNumberProperty.java | 12 ++ .../_types/mapping/FloatRangeProperty.java | 11 ++ .../_types/mapping/GeoPointProperty.java | 18 +++ .../_types/mapping/GeoShapeProperty.java | 17 ++ .../mapping/HalfFloatNumberProperty.java | 12 ++ .../_types/mapping/HistogramProperty.java | 13 ++ .../_types/mapping/IcuCollationProperty.java | 27 ++++ .../_types/mapping/IndexField.java | 12 ++ .../_types/mapping/IntegerNumberProperty.java | 12 ++ .../_types/mapping/IntegerRangeProperty.java | 11 ++ .../_types/mapping/IpProperty.java | 18 +++ .../_types/mapping/IpRangeProperty.java | 11 ++ .../_types/mapping/JoinProperty.java | 13 ++ .../_types/mapping/KeywordProperty.java | 23 +++ .../_types/mapping/LongNumberProperty.java | 12 ++ .../_types/mapping/LongRangeProperty.java | 11 ++ .../_types/mapping/MatchOnlyTextProperty.java | 14 ++ .../_types/mapping/Murmur3HashProperty.java | 11 ++ .../_types/mapping/NestedProperty.java | 14 ++ .../_types/mapping/ObjectProperty.java | 13 ++ .../mapping/PassthroughObjectProperty.java | 14 ++ .../_types/mapping/PercolatorProperty.java | 11 ++ .../_types/mapping/PointProperty.java | 14 ++ .../_types/mapping/RankFeatureProperty.java | 12 ++ .../_types/mapping/RankFeaturesProperty.java | 12 ++ .../_types/mapping/RankVectorProperty.java | 13 ++ .../_types/mapping/RoutingField.java | 12 ++ .../_types/mapping/RuntimeField.java | 19 +++ .../mapping/RuntimeFieldFetchFields.java | 13 ++ .../mapping/ScaledFloatNumberProperty.java | 13 ++ .../mapping/SearchAsYouTypeProperty.java | 20 +++ .../mapping/SemanticTextIndexOptions.java | 13 ++ .../_types/mapping/SemanticTextProperty.java | 17 ++ .../_types/mapping/ShapeProperty.java | 15 ++ .../_types/mapping/ShortNumberProperty.java | 12 ++ .../_types/mapping/SizeField.java | 12 ++ .../_types/mapping/SourceField.java | 17 ++ .../mapping/SparseVectorIndexOptions.java | 13 ++ .../_types/mapping/SparseVectorProperty.java | 13 ++ .../_types/mapping/SuggestContext.java | 15 ++ .../_types/mapping/TextIndexPrefixes.java | 13 ++ .../_types/mapping/TextProperty.java | 26 +++ .../_types/mapping/TokenCountProperty.java | 16 ++ .../_types/mapping/TypeMapping.java | 28 ++++ .../mapping/UnsignedLongNumberProperty.java | 12 ++ .../_types/mapping/VersionProperty.java | 11 ++ .../_types/mapping/WildcardProperty.java | 12 ++ .../_types/query_dsl/BoolQuery.java | 16 ++ .../_types/query_dsl/BoostingQuery.java | 14 ++ .../_types/query_dsl/CombinedFieldsQuery.java | 17 ++ .../_types/query_dsl/CommonTermsQuery.java | 17 ++ .../_types/query_dsl/ConstantScoreQuery.java | 12 ++ .../_types/query_dsl/DateDecayFunction.java | 11 ++ .../query_dsl/DateDistanceFeatureQuery.java | 11 ++ .../_types/query_dsl/DateRangeQuery.java | 13 ++ .../_types/query_dsl/DecayPlacement.java | 15 ++ .../_types/query_dsl/DisMaxQuery.java | 13 ++ .../_types/query_dsl/ExistsQuery.java | 12 ++ .../_types/query_dsl/FieldAndFormat.java | 14 ++ .../_types/query_dsl/FieldLookup.java | 15 ++ .../FieldValueFactorScoreFunction.java | 15 ++ .../_types/query_dsl/FunctionScoreQuery.java | 17 ++ .../_types/query_dsl/FuzzyQuery.java | 17 ++ .../_types/query_dsl/GeoBoundingBoxQuery.java | 14 ++ .../_types/query_dsl/GeoDecayFunction.java | 11 ++ .../query_dsl/GeoDistanceFeatureQuery.java | 11 ++ .../_types/query_dsl/GeoDistanceQuery.java | 15 ++ .../_types/query_dsl/GeoPolygonPoints.java | 12 ++ .../_types/query_dsl/GeoPolygonQuery.java | 13 ++ .../_types/query_dsl/GeoShapeFieldQuery.java | 14 ++ .../_types/query_dsl/GeoShapeQuery.java | 12 ++ .../_types/query_dsl/HasChildQuery.java | 18 +++ .../_types/query_dsl/HasParentQuery.java | 16 ++ .../_types/query_dsl/IdsQuery.java | 12 ++ .../_types/query_dsl/IntervalsAllOf.java | 15 ++ .../_types/query_dsl/IntervalsAnyOf.java | 13 ++ .../_types/query_dsl/IntervalsFuzzy.java | 17 ++ .../_types/query_dsl/IntervalsMatch.java | 17 ++ .../_types/query_dsl/IntervalsPrefix.java | 14 ++ .../_types/query_dsl/IntervalsRange.java | 17 ++ .../_types/query_dsl/IntervalsRegexp.java | 14 ++ .../_types/query_dsl/IntervalsWildcard.java | 14 ++ .../_types/query_dsl/LikeDocument.java | 19 +++ .../_types/query_dsl/MatchAllQuery.java | 11 ++ .../query_dsl/MatchBoolPrefixQuery.java | 20 +++ .../_types/query_dsl/MatchNoneQuery.java | 11 ++ .../query_dsl/MatchPhrasePrefixQuery.java | 16 ++ .../_types/query_dsl/MatchPhraseQuery.java | 15 ++ .../_types/query_dsl/MatchQuery.java | 24 +++ .../_types/query_dsl/MoreLikeThisQuery.java | 29 ++++ .../_types/query_dsl/MultiMatchQuery.java | 28 ++++ .../_types/query_dsl/NestedQuery.java | 16 ++ .../_types/query_dsl/NumberRangeQuery.java | 11 ++ .../query_dsl/NumericDecayFunction.java | 11 ++ .../_types/query_dsl/ParentIdQuery.java | 14 ++ .../_types/query_dsl/PercolateQuery.java | 20 +++ .../_types/query_dsl/PinnedDoc.java | 13 ++ .../_types/query_dsl/PrefixQuery.java | 14 ++ .../_types/query_dsl/QueryStringQuery.java | 36 +++++ .../_types/query_dsl/RandomScoreFunction.java | 13 ++ .../RankFeatureFunctionLogarithm.java | 12 ++ .../RankFeatureFunctionSaturation.java | 12 ++ .../query_dsl/RankFeatureFunctionSigmoid.java | 13 ++ .../_types/query_dsl/RankFeatureQuery.java | 16 ++ .../_types/query_dsl/RegexpQuery.java | 16 ++ .../_types/query_dsl/RuleQuery.java | 15 ++ .../_types/query_dsl/ScriptQuery.java | 12 ++ .../_types/query_dsl/ScriptScoreFunction.java | 12 ++ .../_types/query_dsl/ScriptScoreQuery.java | 14 ++ .../_types/query_dsl/SemanticQuery.java | 13 ++ .../_types/query_dsl/ShapeFieldQuery.java | 14 ++ .../_types/query_dsl/ShapeQuery.java | 12 ++ .../query_dsl/SimpleQueryStringQuery.java | 24 +++ .../_types/query_dsl/SpanContainingQuery.java | 13 ++ .../query_dsl/SpanFieldMaskingQuery.java | 13 ++ .../_types/query_dsl/SpanFirstQuery.java | 13 ++ .../_types/query_dsl/SpanMultiTermQuery.java | 12 ++ .../_types/query_dsl/SpanNearQuery.java | 14 ++ .../_types/query_dsl/SpanNotQuery.java | 16 ++ .../_types/query_dsl/SpanOrQuery.java | 12 ++ .../_types/query_dsl/SpanTermQuery.java | 12 ++ .../_types/query_dsl/SpanWithinQuery.java | 13 ++ .../_types/query_dsl/TermQuery.java | 13 ++ .../_types/query_dsl/TermRangeQuery.java | 11 ++ .../_types/query_dsl/TermsLookup.java | 15 ++ .../_types/query_dsl/TermsQuery.java | 11 ++ .../_types/query_dsl/TermsSetQuery.java | 15 ++ .../_types/query_dsl/TextExpansionQuery.java | 14 ++ .../_types/query_dsl/TypeQuery.java | 12 ++ .../query_dsl/UntypedDecayFunction.java | 11 ++ .../UntypedDistanceFeatureQuery.java | 11 ++ .../_types/query_dsl/UntypedRangeQuery.java | 13 ++ .../_types/query_dsl/WeightedTokensQuery.java | 13 ++ .../_types/query_dsl/WildcardQuery.java | 15 ++ .../_types/query_dsl/WrapperQuery.java | 12 ++ .../async_search/AsyncSearch.java | 25 +++ .../AsyncSearchStatusRequest.java | 13 ++ .../DeleteAsyncSearchRequest.java | 12 ++ .../async_search/GetAsyncSearchRequest.java | 14 ++ .../async_search/SubmitRequest.java | 66 ++++++++ .../DeleteAutoscalingPolicyRequest.java | 14 ++ .../GetAutoscalingCapacityRequest.java | 12 ++ .../GetAutoscalingPolicyRequest.java | 13 ++ .../PutAutoscalingPolicyRequest.java | 15 ++ .../AutoscalingCapacity.java | 13 ++ .../AutoscalingDecider.java | 14 ++ .../AutoscalingDeciders.java | 15 ++ .../AutoscalingNode.java | 12 ++ .../AutoscalingResources.java | 13 ++ .../elasticsearch/cat/AliasesRequest.java | 18 +++ .../elasticsearch/cat/AllocationRequest.java | 18 +++ .../cat/ComponentTemplatesRequest.java | 18 +++ .../elasticsearch/cat/CountRequest.java | 17 ++ .../cat/ElasticsearchCatAsyncClient.java | 2 + .../cat/ElasticsearchCatClient.java | 2 + .../elasticsearch/cat/FielddataRequest.java | 16 ++ .../elasticsearch/cat/HealthRequest.java | 16 ++ .../elasticsearch/cat/HelpRequest.java | 13 +- .../elasticsearch/cat/IndicesRequest.java | 21 +++ .../elasticsearch/cat/MasterRequest.java | 17 ++ .../cat/MlDataFrameAnalyticsRequest.java | 17 ++ .../elasticsearch/cat/MlDatafeedsRequest.java | 17 ++ .../elasticsearch/cat/MlJobsRequest.java | 17 ++ .../cat/MlTrainedModelsRequest.java | 19 +++ .../elasticsearch/cat/NodeattrsRequest.java | 17 ++ .../elasticsearch/cat/NodesRequest.java | 18 +++ .../cat/PendingTasksRequest.java | 17 ++ .../elasticsearch/cat/PluginsRequest.java | 18 +++ .../elasticsearch/cat/RecoveryRequest.java | 18 +++ .../cat/RepositoriesRequest.java | 17 ++ .../elasticsearch/cat/SegmentsRequest.java | 23 +++ .../elasticsearch/cat/ShardsRequest.java | 17 ++ .../elasticsearch/cat/SnapshotsRequest.java | 18 +++ .../elasticsearch/cat/TasksRequest.java | 21 +++ .../elasticsearch/cat/TemplatesRequest.java | 18 +++ .../elasticsearch/cat/ThreadPoolRequest.java | 18 +++ .../elasticsearch/cat/TransformsRequest.java | 19 +++ .../cat/aliases/AliasesRecord.java | 17 ++ .../cat/allocation/AllocationRecord.java | 24 +++ .../ComponentTemplate.java | 18 +++ .../elasticsearch/cat/count/CountRecord.java | 14 ++ .../cat/fielddata/FielddataRecord.java | 17 ++ .../cat/health/HealthRecord.java | 26 +++ .../cat/indices/IndicesRecord.java | 153 ++++++++++++++++++ .../cat/master/MasterRecord.java | 15 ++ .../DataFrameAnalyticsRecord.java | 27 ++++ .../cat/ml_datafeeds/DatafeedsRecord.java | 23 +++ .../elasticsearch/cat/ml_jobs/JobsRecord.java | 71 ++++++++ .../TrainedModelsRecord.java | 29 ++++ .../cat/nodeattrs/NodeAttributesRecord.java | 19 +++ .../elasticsearch/cat/nodes/NodesRecord.java | 108 +++++++++++++ .../cat/pending_tasks/PendingTasksRecord.java | 15 ++ .../cat/plugins/PluginsRecord.java | 17 ++ .../cat/recovery/RecoveryRecord.java | 37 +++++ .../cat/repositories/RepositoriesRecord.java | 13 ++ .../cat/segments/SegmentsRecord.java | 26 +++ .../cat/shards/ShardsRecord.java | 88 ++++++++++ .../cat/snapshots/SnapshotsRecord.java | 24 +++ .../elasticsearch/cat/tasks/TasksRecord.java | 27 ++++ .../cat/templates/TemplatesRecord.java | 16 ++ .../cat/thread_pool/ThreadPoolRecord.java | 31 ++++ .../cat/transforms/TransformsRecord.java | 44 +++++ .../elasticsearch/ccr/CcrStatsRequest.java | 13 ++ .../ccr/DeleteAutoFollowPatternRequest.java | 13 ++ .../elasticsearch/ccr/FollowIndexStats.java | 13 ++ .../elasticsearch/ccr/FollowInfoRequest.java | 13 ++ .../elasticsearch/ccr/FollowRequest.java | 28 ++++ .../elasticsearch/ccr/FollowStatsRequest.java | 13 ++ .../ccr/ForgetFollowerRequest.java | 17 ++ .../ccr/GetAutoFollowPatternRequest.java | 13 ++ .../ccr/PauseAutoFollowPatternRequest.java | 13 ++ .../elasticsearch/ccr/PauseFollowRequest.java | 13 ++ .../ccr/PutAutoFollowPatternRequest.java | 28 ++++ .../elasticsearch/ccr/ReadException.java | 14 ++ .../ccr/ResumeAutoFollowPatternRequest.java | 13 ++ .../ccr/ResumeFollowRequest.java | 23 +++ .../clients/elasticsearch/ccr/ShardStats.java | 44 +++++ .../elasticsearch/ccr/UnfollowRequest.java | 13 ++ .../ccr/follow_info/FollowerIndex.java | 16 ++ .../follow_info/FollowerIndexParameters.java | 21 +++ .../AutoFollowPattern.java | 13 ++ .../AutoFollowPatternSummary.java | 17 ++ .../ccr/stats/AutoFollowStats.java | 16 ++ .../ccr/stats/AutoFollowedCluster.java | 14 ++ .../elasticsearch/ccr/stats/FollowStats.java | 12 ++ .../cluster/AllocationExplainRequest.java | 18 +++ .../cluster/ClusterInfoRequest.java | 12 ++ .../cluster/ClusterStatsRequest.java | 14 ++ .../cluster/ComponentTemplate.java | 13 ++ .../cluster/ComponentTemplateNode.java | 19 +++ .../cluster/ComponentTemplateSummary.java | 18 +++ .../DeleteComponentTemplateRequest.java | 14 ++ .../DeleteVotingConfigExclusionsRequest.java | 13 ++ .../ExistsComponentTemplateRequest.java | 14 ++ .../cluster/GetClusterSettingsRequest.java | 15 ++ .../cluster/GetComponentTemplateRequest.java | 17 ++ .../elasticsearch/cluster/HealthRequest.java | 23 +++ .../cluster/PendingTasksRequest.java | 13 ++ .../PostVotingConfigExclusionsRequest.java | 15 ++ .../cluster/PutClusterSettingsRequest.java | 16 ++ .../cluster/PutComponentTemplateRequest.java | 19 +++ .../elasticsearch/cluster/RerouteRequest.java | 18 +++ .../elasticsearch/cluster/StateRequest.java | 21 +++ .../AllocationDecision.java | 14 ++ .../allocation_explain/AllocationStore.java | 17 ++ .../allocation_explain/ClusterInfo.java | 16 ++ .../allocation_explain/CurrentNode.java | 17 ++ .../cluster/allocation_explain/DiskUsage.java | 17 ++ .../NodeAllocationExplanation.java | 20 +++ .../allocation_explain/NodeDiskUsage.java | 14 ++ .../allocation_explain/ReservedSize.java | 15 ++ .../UnassignedInformation.java | 18 +++ .../cluster/health/IndexHealthStats.java | 21 +++ .../cluster/health/ShardHealthStats.java | 18 +++ .../cluster/pending_tasks/PendingTask.java | 17 ++ .../remote_info/ClusterRemoteProxyInfo.java | 19 +++ .../remote_info/ClusterRemoteSniffInfo.java | 17 ++ .../cluster/reroute/Command.java | 16 ++ .../reroute/CommandAllocatePrimaryAction.java | 15 ++ .../reroute/CommandAllocateReplicaAction.java | 14 ++ .../cluster/reroute/CommandCancelAction.java | 15 ++ .../cluster/reroute/CommandMoveAction.java | 15 ++ .../cluster/reroute/RerouteDecision.java | 14 ++ .../cluster/reroute/RerouteExplanation.java | 14 ++ .../cluster/reroute/RerouteParameters.java | 17 ++ .../elasticsearch/cluster/stats/CCSStats.java | 14 ++ .../cluster/stats/CCSUsageClusterStats.java | 14 ++ .../cluster/stats/CCSUsageStats.java | 23 +++ .../cluster/stats/CCSUsageTimeValue.java | 14 ++ .../cluster/stats/CharFilterTypes.java | 20 +++ .../cluster/stats/ClusterFileSystem.java | 28 ++++ .../cluster/stats/ClusterIndices.java | 25 +++ .../cluster/stats/ClusterIndicesShards.java | 15 ++ .../stats/ClusterIndicesShardsIndex.java | 14 ++ .../cluster/stats/ClusterIngest.java | 13 ++ .../cluster/stats/ClusterJvm.java | 16 ++ .../cluster/stats/ClusterJvmMemory.java | 15 ++ .../cluster/stats/ClusterJvmVersion.java | 18 +++ .../cluster/stats/ClusterNetworkTypes.java | 13 ++ .../cluster/stats/ClusterNodeCount.java | 27 ++++ .../cluster/stats/ClusterNodes.java | 23 +++ .../cluster/stats/ClusterOperatingSystem.java | 17 ++ .../ClusterOperatingSystemArchitecture.java | 13 ++ .../stats/ClusterOperatingSystemName.java | 13 ++ .../ClusterOperatingSystemPrettyName.java | 13 ++ .../cluster/stats/ClusterProcess.java | 13 ++ .../cluster/stats/ClusterProcessCpu.java | 12 ++ .../ClusterProcessOpenFileDescriptors.java | 14 ++ .../cluster/stats/ClusterProcessor.java | 16 ++ .../cluster/stats/ClusterShardMetrics.java | 14 ++ .../cluster/stats/ClusterSnapshotStats.java | 13 ++ .../stats/DenseVectorOffHeapStats.java | 26 +++ .../cluster/stats/DenseVectorStats.java | 13 ++ .../stats/ExtendedRetrieversSearchUsage.java | 12 ++ .../cluster/stats/ExtendedSearchUsage.java | 12 ++ .../ExtendedTextSimilarityRetrieverUsage.java | 12 ++ .../cluster/stats/FieldTypes.java | 21 +++ .../cluster/stats/FieldTypesMappings.java | 18 +++ .../cluster/stats/IndexingPressure.java | 12 ++ .../cluster/stats/IndicesVersions.java | 16 ++ .../cluster/stats/NodePackagingType.java | 14 ++ .../stats/OperatingSystemMemoryInfo.java | 21 +++ .../cluster/stats/PerRepositoryStats.java | 15 ++ .../cluster/stats/RemoteClusterInfo.java | 26 +++ .../stats/RepositoryStatsCurrentCounts.java | 18 +++ .../cluster/stats/RepositoryStatsShards.java | 15 ++ .../cluster/stats/RuntimeFieldTypes.java | 25 +++ .../cluster/stats/SearchUsageStats.java | 17 ++ .../cluster/stats/SnapshotCurrentCounts.java | 16 ++ .../cluster/stats/SparseVectorStats.java | 12 ++ .../cluster/stats/SynonymsStats.java | 13 ++ .../connector/CheckInRequest.java | 12 ++ .../connector/ConnectorConfigProperties.java | 26 +++ .../connector/ConnectorFeatures.java | 15 ++ .../connector/ConnectorScheduling.java | 13 ++ .../connector/CustomScheduling.java | 16 ++ ...ustomSchedulingConfigurationOverrides.java | 16 ++ .../connector/DeleteConnectorRequest.java | 14 ++ .../elasticsearch/connector/Dependency.java | 13 ++ .../connector/FeatureEnabled.java | 12 ++ .../connector/FilteringAdvancedSnippet.java | 14 ++ .../connector/FilteringConfig.java | 14 ++ .../connector/FilteringRule.java | 19 +++ .../connector/FilteringRules.java | 14 ++ .../connector/FilteringRulesValidation.java | 13 ++ .../connector/FilteringValidation.java | 13 ++ .../connector/GetConnectorRequest.java | 13 ++ .../connector/GreaterThanValidation.java | 12 ++ .../connector/IncludedInValidation.java | 12 ++ .../connector/IngestPipelineParams.java | 15 ++ .../connector/LessThanValidation.java | 12 ++ .../elasticsearch/connector/ListRequest.java | 18 +++ .../connector/ListTypeValidation.java | 12 ++ .../elasticsearch/connector/PostRequest.java | 17 ++ .../elasticsearch/connector/PutRequest.java | 18 +++ .../connector/RegexValidation.java | 12 ++ .../connector/SchedulingConfiguration.java | 14 ++ .../elasticsearch/connector/SelectOption.java | 13 ++ .../connector/SyncJobCancelRequest.java | 12 ++ .../connector/SyncJobCheckInRequest.java | 12 ++ .../connector/SyncJobClaimRequest.java | 14 ++ .../connector/SyncJobConnectorReference.java | 19 +++ .../connector/SyncJobDeleteRequest.java | 12 ++ .../connector/SyncJobErrorRequest.java | 13 ++ .../connector/SyncJobGetRequest.java | 12 ++ .../connector/SyncJobListRequest.java | 16 ++ .../connector/SyncJobPostRequest.java | 14 ++ .../connector/SyncJobUpdateStatsRequest.java | 18 +++ .../connector/SyncRulesFeature.java | 13 ++ .../UpdateActiveFilteringRequest.java | 12 ++ .../connector/UpdateApiKeyIdRequest.java | 14 ++ .../connector/UpdateConfigurationRequest.java | 14 ++ .../connector/UpdateErrorRequest.java | 13 ++ .../connector/UpdateFeaturesRequest.java | 13 ++ .../connector/UpdateFilteringRequest.java | 15 ++ .../UpdateFilteringValidationRequest.java | 13 ++ .../connector/UpdateIndexNameRequest.java | 13 ++ .../connector/UpdateNameRequest.java | 14 ++ .../connector/UpdateNativeRequest.java | 13 ++ .../connector/UpdatePipelineRequest.java | 13 ++ .../connector/UpdateSchedulingRequest.java | 13 ++ .../connector/UpdateServiceTypeRequest.java | 13 ++ .../connector/UpdateStatusRequest.java | 13 ++ .../elasticsearch/core/BulkRequest.java | 25 +++ .../core/ClearScrollRequest.java | 12 ++ .../core/ClosePointInTimeRequest.java | 12 ++ .../elasticsearch/core/CountRequest.java | 28 ++++ .../elasticsearch/core/CreateRequest.java | 24 +++ .../core/DeleteByQueryRequest.java | 43 +++++ .../core/DeleteByQueryRethrottleRequest.java | 13 ++ .../elasticsearch/core/DeleteRequest.java | 21 +++ .../core/DeleteScriptRequest.java | 14 ++ .../elasticsearch/core/ExistsRequest.java | 23 +++ .../core/ExistsSourceRequest.java | 22 +++ .../elasticsearch/core/ExplainRequest.java | 26 +++ .../elasticsearch/core/FieldCapsRequest.java | 23 +++ .../elasticsearch/core/GetRequest.java | 25 +++ .../elasticsearch/core/GetScriptRequest.java | 13 ++ .../elasticsearch/core/GetSourceRequest.java | 22 +++ .../core/HealthReportRequest.java | 15 ++ .../elasticsearch/core/IndexRequest.java | 27 ++++ .../elasticsearch/core/MgetRequest.java | 23 +++ .../elasticsearch/core/MsearchRequest.java | 25 +++ .../core/MsearchTemplateRequest.java | 17 ++ .../core/MtermvectorsRequest.java | 25 +++ .../core/OpenPointInTimeRequest.java | 21 +++ .../elasticsearch/core/PutScriptRequest.java | 16 ++ .../elasticsearch/core/RankEvalRequest.java | 18 +++ .../elasticsearch/core/ReindexRequest.java | 24 +++ .../core/ReindexRethrottleRequest.java | 13 ++ .../core/RenderSearchTemplateRequest.java | 15 ++ .../core/ScriptsPainlessExecuteRequest.java | 14 ++ .../elasticsearch/core/ScrollRequest.java | 13 ++ .../elasticsearch/core/SearchMvtRequest.java | 31 ++++ .../elasticsearch/core/SearchRequest.java | 69 ++++++++ .../core/SearchShardsRequest.java | 19 +++ .../core/SearchTemplateRequest.java | 27 ++++ .../elasticsearch/core/TermsEnumRequest.java | 19 +++ .../core/TermvectorsRequest.java | 27 ++++ .../core/UpdateByQueryRequest.java | 46 ++++++ .../core/UpdateByQueryRethrottleRequest.java | 13 ++ .../elasticsearch/core/UpdateRequest.java | 30 ++++ .../core/bulk/BulkResponseItem.java | 23 +++ .../core/bulk/CreateOperation.java | 11 ++ .../core/bulk/DeleteOperation.java | 11 ++ .../core/bulk/IndexOperation.java | 11 ++ .../elasticsearch/core/bulk/UpdateAction.java | 18 +++ .../core/bulk/UpdateOperation.java | 13 ++ .../core/explain/Explanation.java | 14 ++ .../core/explain/ExplanationDetail.java | 14 ++ .../core/field_caps/FieldCapability.java | 23 +++ .../core/get_script_context/Context.java | 13 ++ .../get_script_context/ContextMethod.java | 14 ++ .../ContextMethodParam.java | 13 ++ .../get_script_languages/LanguageContext.java | 13 ++ .../DataStreamLifecycleDetails.java | 14 ++ .../DataStreamLifecycleIndicator.java | 12 ++ .../core/health_report/Diagnosis.java | 16 ++ .../DiagnosisAffectedResources.java | 16 ++ .../core/health_report/DiskIndicator.java | 12 ++ .../health_report/DiskIndicatorDetails.java | 16 ++ .../health_report/FileSettingsIndicator.java | 12 ++ .../FileSettingsIndicatorDetails.java | 13 ++ .../core/health_report/IlmIndicator.java | 12 ++ .../health_report/IlmIndicatorDetails.java | 14 ++ .../core/health_report/Impact.java | 15 ++ .../core/health_report/IndicatorNode.java | 13 ++ .../core/health_report/Indicators.java | 20 +++ .../MasterIsStableIndicator.java | 12 ++ ...IsStableIndicatorClusterFormationNode.java | 14 ++ .../MasterIsStableIndicatorDetails.java | 15 ++ ...ableIndicatorExceptionFetchingHistory.java | 13 ++ .../RepositoryIntegrityIndicator.java | 12 ++ .../RepositoryIntegrityIndicatorDetails.java | 14 ++ .../ShardsAvailabilityIndicator.java | 12 ++ .../ShardsAvailabilityIndicatorDetails.java | 21 +++ .../ShardsCapacityIndicator.java | 12 ++ .../ShardsCapacityIndicatorDetails.java | 13 ++ .../ShardsCapacityIndicatorTierDetail.java | 13 ++ .../core/health_report/SlmIndicator.java | 12 ++ .../health_report/SlmIndicatorDetails.java | 14 ++ .../SlmIndicatorUnhealthyPolicies.java | 13 ++ .../StagnatingBackingIndices.java | 14 ++ .../core/mget/MultiGetError.java | 14 ++ .../core/mget/MultiGetOperation.java | 18 +++ .../core/msearch/MultiSearchItem.java | 12 ++ .../core/msearch/MultisearchHeader.java | 23 +++ .../core/msearch/RequestItem.java | 13 ++ .../core/msearch_template/RequestItem.java | 13 ++ .../core/msearch_template/TemplateConfig.java | 16 ++ .../MultiTermVectorsOperation.java | 24 +++ .../mtermvectors/MultiTermVectorsResult.java | 18 +++ .../core/rank_eval/DocumentRating.java | 14 ++ .../core/rank_eval/RankEvalHit.java | 14 ++ .../core/rank_eval/RankEvalHitItem.java | 13 ++ .../core/rank_eval/RankEvalMetric.java | 16 ++ .../core/rank_eval/RankEvalMetricDetail.java | 15 ++ ...ankEvalMetricDiscountedCumulativeGain.java | 12 ++ .../RankEvalMetricExpectedReciprocalRank.java | 12 ++ .../RankEvalMetricMeanReciprocalRank.java | 11 ++ .../rank_eval/RankEvalMetricPrecision.java | 12 ++ .../core/rank_eval/RankEvalMetricRecall.java | 11 ++ .../core/rank_eval/RankEvalQuery.java | 13 ++ .../core/rank_eval/RankEvalRequestItem.java | 16 ++ .../core/rank_eval/UnratedDocument.java | 13 ++ .../core/reindex/Destination.java | 16 ++ .../core/reindex/RemoteSource.java | 18 +++ .../elasticsearch/core/reindex/Source.java | 19 +++ .../core/reindex_rethrottle/ReindexNode.java | 12 ++ .../core/reindex_rethrottle/ReindexTask.java | 22 +++ .../PainlessContextSetup.java | 14 ++ .../core/search/AggregationBreakdown.java | 23 +++ .../core/search/AggregationProfile.java | 17 ++ .../core/search/AggregationProfileDebug.java | 43 +++++ ...AggregationProfileDelegateDebugFilter.java | 15 ++ .../elasticsearch/core/search/Collector.java | 15 ++ .../core/search/CompletionContext.java | 16 ++ .../core/search/CompletionSuggest.java | 12 ++ .../core/search/CompletionSuggestOption.java | 20 +++ .../core/search/CompletionSuggester.java | 15 ++ .../core/search/DfsKnnProfile.java | 15 ++ .../elasticsearch/core/search/DfsProfile.java | 13 ++ .../core/search/DfsStatisticsBreakdown.java | 19 +++ .../core/search/DfsStatisticsProfile.java | 18 +++ .../core/search/DirectGenerator.java | 22 +++ .../core/search/FetchProfile.java | 17 ++ .../core/search/FetchProfileBreakdown.java | 19 +++ .../core/search/FetchProfileDebug.java | 13 ++ .../core/search/FieldCollapse.java | 15 ++ .../elasticsearch/core/search/Highlight.java | 13 ++ .../core/search/HighlightField.java | 13 ++ .../elasticsearch/core/search/Hit.java | 31 ++++ .../core/search/HitsMetadata.java | 14 ++ .../elasticsearch/core/search/InnerHits.java | 27 ++++ .../core/search/InnerHitsResult.java | 12 ++ .../core/search/KnnCollectorResult.java | 16 ++ .../core/search/KnnQueryProfileBreakdown.java | 31 ++++ .../core/search/KnnQueryProfileResult.java | 18 +++ .../core/search/LaplaceSmoothingModel.java | 12 ++ .../core/search/LearningToRank.java | 13 ++ .../LinearInterpolationSmoothingModel.java | 14 ++ .../core/search/NestedIdentity.java | 14 ++ .../core/search/PhraseSuggest.java | 12 ++ .../core/search/PhraseSuggestCollate.java | 14 ++ .../search/PhraseSuggestCollateQuery.java | 13 ++ .../core/search/PhraseSuggestHighlight.java | 13 ++ .../core/search/PhraseSuggestOption.java | 15 ++ .../core/search/PhraseSuggester.java | 24 +++ .../core/search/PointInTimeReference.java | 13 ++ .../elasticsearch/core/search/Profile.java | 12 ++ .../core/search/QueryBreakdown.java | 31 ++++ .../core/search/QueryProfile.java | 16 ++ .../core/search/RegexOptions.java | 13 ++ .../core/search/RescoreQuery.java | 15 ++ .../core/search/ScriptRescore.java | 12 ++ .../core/search/SearchProfile.java | 14 ++ .../core/search/SearchRequestBody.java | 45 ++++++ .../core/search/ShardProfile.java | 20 +++ .../core/search/SourceFilter.java | 14 ++ .../search/StupidBackoffSmoothingModel.java | 12 ++ .../core/search/SuggestFuzziness.java | 16 ++ .../elasticsearch/core/search/Suggester.java | 12 ++ .../core/search/TermSuggest.java | 12 ++ .../core/search/TermSuggestOption.java | 16 ++ .../core/search/TermSuggester.java | 23 +++ .../elasticsearch/core/search/TotalHits.java | 13 ++ .../SearchShardsNodeAttributes.java | 20 +++ .../core/search_shards/ShardStoreIndex.java | 13 ++ .../core/termvectors/FieldStatistics.java | 14 ++ .../core/termvectors/Filter.java | 18 +++ .../elasticsearch/core/termvectors/Term.java | 16 ++ .../core/termvectors/TermVector.java | 13 ++ .../elasticsearch/core/termvectors/Token.java | 15 ++ .../UpdateByQueryRethrottleNode.java | 12 ++ .../DeleteDanglingIndexRequest.java | 15 ++ .../ImportDanglingIndexRequest.java | 15 ++ .../list_dangling_indices/DanglingIndex.java | 15 ++ .../elasticsearch/doc-files/api-spec.html | 45 +++--- .../enrich/DeletePolicyRequest.java | 13 ++ .../elasticsearch/enrich/EnrichPolicy.java | 17 ++ .../enrich/EnrichStatsRequest.java | 12 ++ .../elasticsearch/enrich/EnrichSummary.java | 12 ++ .../enrich/ExecutePolicyRequest.java | 14 ++ .../enrich/GetPolicyRequest.java | 13 ++ .../enrich/PutPolicyRequest.java | 16 ++ .../ExecuteEnrichPolicyStatus.java | 13 ++ .../enrich/stats/CacheStats.java | 19 +++ .../enrich/stats/CoordinatorStats.java | 16 ++ .../enrich/stats/ExecutingPolicy.java | 13 ++ .../elasticsearch/eql/EqlDeleteRequest.java | 12 ++ .../elasticsearch/eql/EqlGetRequest.java | 14 ++ .../clients/elasticsearch/eql/EqlHits.java | 14 ++ .../elasticsearch/eql/EqlSearchRequest.java | 34 ++++ .../eql/GetEqlStatusRequest.java | 12 ++ .../clients/elasticsearch/eql/HitsEvent.java | 16 ++ .../elasticsearch/eql/HitsSequence.java | 13 ++ .../elasticsearch/esql/DeleteViewRequest.java | 12 ++ .../clients/elasticsearch/esql/ESQLView.java | 13 ++ .../elasticsearch/esql/GetQueryRequest.java | 12 ++ .../elasticsearch/esql/GetViewRequest.java | 12 ++ .../elasticsearch/esql/PutViewRequest.java | 13 ++ .../elasticsearch/esql/QueryRequest.java | 24 +++ .../elasticsearch/esql/list_queries/Body.java | 16 ++ .../elasticsearch/features/Feature.java | 13 ++ .../features/GetFeaturesRequest.java | 12 ++ .../features/ResetFeaturesRequest.java | 12 ++ .../fleet/FleetSearchRequest.java | 64 ++++++++ .../elasticsearch/graph/Connection.java | 15 ++ .../elasticsearch/graph/ExploreControls.java | 15 ++ .../elasticsearch/graph/ExploreRequest.java | 18 +++ .../clients/elasticsearch/graph/Hop.java | 14 ++ .../elasticsearch/graph/SampleDiversity.java | 13 ++ .../clients/elasticsearch/graph/Vertex.java | 15 ++ .../elasticsearch/graph/VertexDefinition.java | 17 ++ .../elasticsearch/graph/VertexInclude.java | 13 ++ .../clients/elasticsearch/ilm/Actions.java | 24 +++ .../elasticsearch/ilm/AllocateAction.java | 16 ++ .../elasticsearch/ilm/DeleteAction.java | 12 ++ .../ilm/DeleteLifecycleRequest.java | 14 ++ .../elasticsearch/ilm/DownsampleAction.java | 13 ++ .../ilm/ExplainLifecycleRequest.java | 15 ++ .../elasticsearch/ilm/ForceMergeAction.java | 13 ++ .../ilm/GetLifecycleRequest.java | 14 ++ .../clients/elasticsearch/ilm/IlmPolicy.java | 13 ++ .../elasticsearch/ilm/MigrateAction.java | 12 ++ .../ilm/MigrateToDataTiersRequest.java | 15 ++ .../elasticsearch/ilm/MoveToStepRequest.java | 14 ++ .../clients/elasticsearch/ilm/Phase.java | 13 ++ .../clients/elasticsearch/ilm/Phases.java | 16 ++ .../ilm/PutLifecycleRequest.java | 15 ++ .../ilm/RemovePolicyRequest.java | 12 ++ .../elasticsearch/ilm/RetryRequest.java | 12 ++ .../elasticsearch/ilm/RolloverAction.java | 21 +++ .../ilm/SearchableSnapshotAction.java | 13 ++ .../elasticsearch/ilm/SetPriorityAction.java | 12 ++ .../elasticsearch/ilm/ShrinkAction.java | 14 ++ .../elasticsearch/ilm/StartIlmRequest.java | 13 ++ .../elasticsearch/ilm/StopIlmRequest.java | 13 ++ .../ilm/WaitForSnapshotAction.java | 12 ++ .../LifecycleExplainManaged.java | 39 +++++ .../LifecycleExplainPhaseExecution.java | 15 ++ .../LifecycleExplainUnmanaged.java | 12 ++ .../ilm/get_lifecycle/Lifecycle.java | 14 ++ .../ilm/move_to_step/StepKey.java | 14 ++ .../indices/AddBlockRequest.java | 18 +++ .../clients/elasticsearch/indices/Alias.java | 17 ++ .../indices/AliasDefinition.java | 17 ++ .../elasticsearch/indices/AnalyzeRequest.java | 21 +++ .../elasticsearch/indices/CacheQueries.java | 12 ++ .../indices/CancelMigrateReindexRequest.java | 12 ++ .../indices/ClearCacheRequest.java | 19 +++ .../indices/CloneIndexRequest.java | 18 +++ .../indices/CloseIndexRequest.java | 18 +++ .../indices/CreateDataStreamRequest.java | 14 ++ .../indices/CreateFromRequest.java | 14 ++ .../indices/CreateIndexRequest.java | 18 +++ .../elasticsearch/indices/DataStream.java | 31 ++++ .../indices/DataStreamFailureStore.java | 13 ++ .../DataStreamFailureStoreTemplate.java | 13 ++ .../indices/DataStreamIndex.java | 17 ++ ...DataStreamLifecycleRolloverConditions.java | 21 +++ .../DataStreamLifecycleWithRollover.java | 12 ++ .../indices/DataStreamOptions.java | 12 ++ .../indices/DataStreamOptionsTemplate.java | 12 ++ .../indices/DataStreamTimestampField.java | 12 ++ .../indices/DataStreamVisibility.java | 13 ++ .../indices/DataStreamsStatsRequest.java | 13 ++ .../indices/DeleteAliasRequest.java | 15 ++ .../indices/DeleteDataLifecycleRequest.java | 15 ++ .../DeleteDataStreamOptionsRequest.java | 15 ++ .../indices/DeleteDataStreamRequest.java | 14 ++ .../indices/DeleteIndexRequest.java | 17 ++ .../indices/DeleteIndexTemplateRequest.java | 14 ++ .../DeleteSampleConfigurationRequest.java | 14 ++ .../indices/DeleteTemplateRequest.java | 14 ++ .../indices/DiskUsageRequest.java | 17 ++ .../indices/DownsampleConfig.java | 13 ++ .../indices/DownsampleRequest.java | 14 ++ .../indices/DownsamplingRound.java | 13 ++ .../indices/ExistsAliasRequest.java | 17 ++ .../indices/ExistsIndexTemplateRequest.java | 15 ++ .../elasticsearch/indices/ExistsRequest.java | 18 +++ .../indices/ExistsTemplateRequest.java | 15 ++ .../indices/ExplainDataLifecycleRequest.java | 14 ++ .../elasticsearch/indices/FailureStore.java | 14 ++ .../indices/FailureStoreLifecycle.java | 13 ++ .../FailureStoreLifecycleTemplate.java | 13 ++ .../indices/FieldUsageStatsRequest.java | 16 ++ .../indices/FielddataFrequencyFilter.java | 14 ++ .../elasticsearch/indices/FlushRequest.java | 17 ++ .../indices/ForcemergeRequest.java | 19 +++ .../indices/GetAliasRequest.java | 17 ++ .../GetAllSampleConfigurationRequest.java | 12 ++ .../indices/GetDataLifecycleRequest.java | 15 ++ .../indices/GetDataStreamMappingsRequest.java | 13 ++ .../indices/GetDataStreamOptionsRequest.java | 14 ++ .../indices/GetDataStreamRequest.java | 16 ++ .../indices/GetDataStreamSettingsRequest.java | 13 ++ .../indices/GetFieldMappingRequest.java | 17 ++ .../indices/GetIndexRequest.java | 20 +++ .../indices/GetIndexTemplateRequest.java | 16 ++ .../indices/GetIndicesSettingsRequest.java | 20 +++ .../indices/GetMappingRequest.java | 17 ++ .../GetMigrateReindexStatusRequest.java | 12 ++ .../GetSampleConfigurationRequest.java | 13 ++ .../indices/GetSampleRequest.java | 12 ++ .../indices/GetSampleStatsRequest.java | 12 ++ .../indices/GetTemplateRequest.java | 15 ++ .../elasticsearch/indices/IndexRouting.java | 13 ++ .../indices/IndexRoutingAllocation.java | 15 ++ .../indices/IndexRoutingAllocationDisk.java | 12 ++ .../IndexRoutingAllocationInclude.java | 13 ++ ...IndexRoutingAllocationInitialRecovery.java | 12 ++ .../indices/IndexRoutingRebalance.java | 12 ++ .../indices/IndexSegmentSort.java | 15 ++ .../indices/IndexSettingBlocks.java | 16 ++ .../elasticsearch/indices/IndexSettings.java | 67 ++++++++ .../indices/IndexSettingsAnalysis.java | 16 ++ .../indices/IndexSettingsLifecycle.java | 18 +++ .../indices/IndexSettingsLifecycleStep.java | 12 ++ .../indices/IndexSettingsTimeSeries.java | 13 ++ .../elasticsearch/indices/IndexState.java | 17 ++ .../elasticsearch/indices/IndexTemplate.java | 34 +++- .../IndexTemplateDataStreamConfiguration.java | 13 ++ .../indices/IndexTemplateSummary.java | 16 ++ .../indices/IndexVersioning.java | 13 ++ .../indices/IndexingPressure.java | 12 ++ .../indices/IndexingPressureMemory.java | 12 ++ .../indices/IndexingSlowlogSettings.java | 15 ++ .../indices/IndexingSlowlogTresholds.java | 12 ++ .../indices/IndicesStatsRequest.java | 22 +++ .../indices/MappingLimitSettings.java | 20 +++ .../indices/MappingLimitSettingsDepth.java | 12 ++ .../MappingLimitSettingsDimensionFields.java | 12 ++ .../MappingLimitSettingsFieldNameLength.java | 12 ++ .../MappingLimitSettingsNestedFields.java | 12 ++ .../MappingLimitSettingsNestedObjects.java | 12 ++ .../MappingLimitSettingsSourceFields.java | 12 ++ .../MappingLimitSettingsTotalFields.java | 13 ++ .../clients/elasticsearch/indices/Merge.java | 12 ++ .../elasticsearch/indices/MergeScheduler.java | 13 ++ .../indices/MigrateReindexRequest.java | 12 ++ .../indices/MigrateToDataStreamRequest.java | 14 ++ .../indices/ModifyDataStreamRequest.java | 12 ++ .../indices/NumericFielddata.java | 12 ++ .../elasticsearch/indices/OpenRequest.java | 18 +++ .../indices/PromoteDataStreamRequest.java | 13 ++ .../indices/PutAliasRequest.java | 20 +++ .../indices/PutDataLifecycleRequest.java | 19 +++ .../indices/PutDataStreamMappingsRequest.java | 16 ++ .../indices/PutDataStreamOptionsRequest.java | 16 ++ .../indices/PutDataStreamSettingsRequest.java | 16 ++ .../indices/PutIndexTemplateRequest.java | 34 +++- .../indices/PutIndicesSettingsRequest.java | 21 +++ .../indices/PutMappingRequest.java | 29 ++++ .../PutSampleConfigurationRequest.java | 19 +++ .../indices/PutTemplateRequest.java | 21 +++ .../elasticsearch/indices/Queries.java | 12 ++ .../indices/RecoveryRequest.java | 17 ++ .../elasticsearch/indices/RefreshRequest.java | 15 ++ .../indices/ReloadSearchAnalyzersRequest.java | 16 ++ .../indices/RemoveBlockRequest.java | 18 +++ .../indices/ResolveClusterRequest.java | 17 ++ .../indices/ResolveIndexRequest.java | 17 ++ .../elasticsearch/indices/RetentionLease.java | 12 ++ .../indices/RolloverRequest.java | 22 +++ .../indices/SamplingConfiguration.java | 20 +++ .../elasticsearch/indices/SearchIdle.java | 12 ++ .../indices/SegmentsRequest.java | 15 ++ .../indices/SettingsAnalyze.java | 12 ++ .../indices/SettingsHighlight.java | 12 ++ .../indices/SettingsQueryString.java | 12 ++ .../elasticsearch/indices/SettingsSearch.java | 13 ++ .../indices/SettingsSimilarityBm25.java | 14 ++ .../indices/SettingsSimilarityBoolean.java | 11 ++ .../indices/SettingsSimilarityDfi.java | 12 ++ .../indices/SettingsSimilarityDfr.java | 14 ++ .../indices/SettingsSimilarityIb.java | 14 ++ .../indices/SettingsSimilarityLmd.java | 12 ++ .../indices/SettingsSimilarityLmj.java | 12 ++ .../indices/SettingsSimilarityScripted.java | 13 ++ .../indices/ShardStoresRequest.java | 16 ++ .../elasticsearch/indices/ShrinkRequest.java | 18 +++ .../indices/SimulateIndexTemplateRequest.java | 17 ++ .../indices/SimulateTemplateRequest.java | 26 +++ .../indices/SlowlogSettings.java | 15 ++ .../indices/SlowlogTresholdLevels.java | 15 ++ .../indices/SlowlogTresholds.java | 13 ++ .../elasticsearch/indices/SoftDeletes.java | 13 ++ .../elasticsearch/indices/SplitRequest.java | 18 +++ .../elasticsearch/indices/Storage.java | 14 ++ .../indices/TemplateMapping.java | 17 ++ .../elasticsearch/indices/Translog.java | 15 ++ .../indices/TranslogRetention.java | 13 ++ .../indices/UpdateAliasesRequest.java | 14 ++ .../indices/ValidateQueryRequest.java | 25 +++ .../add_block/AddIndicesBlockStatus.java | 13 ++ .../indices/analyze/AnalyzeDetail.java | 16 ++ .../indices/analyze/AnalyzeToken.java | 17 ++ .../indices/analyze/AnalyzerDetail.java | 13 ++ .../indices/analyze/CharFilterDetail.java | 13 ++ .../indices/analyze/ExplainAnalyzeToken.java | 20 +++ .../indices/analyze/TokenDetail.java | 13 ++ .../indices/close/CloseIndexResult.java | 13 ++ .../indices/close/CloseShardResult.java | 12 ++ .../indices/create_from/CreateFrom.java | 14 ++ .../DataStreamsStatsItem.java | 16 ++ .../DataStreamLifecycleExplain.java | 20 +++ .../field_usage_stats/FieldSummary.java | 19 +++ .../field_usage_stats/InvertedIndex.java | 18 +++ .../field_usage_stats/ShardsStats.java | 13 ++ .../field_usage_stats/UsageStatsIndex.java | 12 ++ .../field_usage_stats/UsageStatsShards.java | 15 ++ .../indices/get_alias/IndexAliases.java | 12 ++ .../IndexSamplingConfiguration.java | 13 ++ .../DataStreamWithLifecycle.java | 13 ++ .../DataStreamStats.java | 14 ++ .../DataStreamMappings.java | 14 ++ .../DataStreamWithOptions.java | 13 ++ .../DataStreamSettings.java | 14 ++ .../get_field_mapping/TypeFieldMappings.java | 12 ++ .../get_index_template/IndexTemplateItem.java | 13 ++ .../get_mapping/IndexMappingRecord.java | 13 ++ .../StatusError.java | 13 ++ .../StatusInProgress.java | 14 ++ .../indices/get_sample/RawDocument.java | 13 ++ .../migrate_reindex/MigrateReindex.java | 13 ++ .../indices/migrate_reindex/SourceIndex.java | 12 ++ .../IndexAndDataStreamAction.java | 13 ++ .../UpdatedDataStreamMappings.java | 16 ++ .../DataStreamSettingsError.java | 13 ++ .../IndexSettingResults.java | 14 ++ .../UpdatedDataStreamSettings.java | 17 ++ .../IndexTemplateMapping.java | 16 ++ .../indices/recovery/FileDetails.java | 14 ++ .../indices/recovery/RecoveryBytes.java | 20 +++ .../indices/recovery/RecoveryFiles.java | 16 ++ .../indices/recovery/RecoveryIndexStatus.java | 20 +++ .../indices/recovery/RecoveryOrigin.java | 23 +++ .../indices/recovery/RecoveryStartStatus.java | 15 ++ .../indices/recovery/RecoveryStatus.java | 12 ++ .../indices/recovery/ShardRecovery.java | 27 ++++ .../indices/recovery/TranslogStatus.java | 17 ++ .../indices/recovery/VerifyIndex.java | 15 ++ .../ReloadDetails.java | 14 ++ .../RemoveIndicesBlockStatus.java | 14 ++ .../resolve_cluster/ResolveClusterInfo.java | 16 ++ .../resolve_index/ResolveIndexAliasItem.java | 13 ++ .../ResolveIndexDataStreamsItem.java | 14 ++ .../resolve_index/ResolveIndexItem.java | 16 ++ .../indices/rollover/RolloverConditions.java | 26 +++ .../indices/segments/IndexSegment.java | 12 ++ .../indices/segments/Segment.java | 20 +++ .../indices/segments/ShardSegmentRouting.java | 14 ++ .../indices/segments/ShardsSegment.java | 15 ++ .../shard_stores/IndicesShardStores.java | 12 ++ .../indices/shard_stores/ShardStore.java | 14 ++ .../shard_stores/ShardStoreException.java | 13 ++ .../indices/shard_stores/ShardStoreNode.java | 17 ++ .../shard_stores/ShardStoreWrapper.java | 12 ++ .../simulate_template/Overlapping.java | 13 ++ .../indices/simulate_template/Template.java | 14 ++ .../indices/stats/IndexStats.java | 30 ++++ .../indices/stats/IndicesStats.java | 17 ++ .../indices/stats/MappingStats.java | 14 ++ .../indices/stats/ShardCommit.java | 15 ++ .../indices/stats/ShardFileSizeInfo.java | 17 ++ .../indices/stats/ShardLease.java | 15 ++ .../indices/stats/ShardPath.java | 14 ++ .../indices/stats/ShardQueryCache.java | 18 +++ .../indices/stats/ShardRetentionLeases.java | 14 ++ .../indices/stats/ShardRouting.java | 15 ++ .../indices/stats/ShardSequenceNumber.java | 14 ++ .../indices/stats/ShardStats.java | 37 +++++ .../indices/stats/ShardsTotalStats.java | 12 ++ .../indices/update_aliases/AddAction.java | 22 +++ .../indices/update_aliases/RemoveAction.java | 16 ++ .../update_aliases/RemoveIndexAction.java | 14 ++ .../IndicesValidationExplanation.java | 15 ++ .../inference/AdaptiveAllocations.java | 14 ++ .../inference/Ai21ServiceSettings.java | 14 ++ .../AlibabaCloudServiceSettings.java | 16 ++ .../inference/AlibabaCloudTaskSettings.java | 13 ++ .../AmazonBedrockServiceSettings.java | 17 ++ .../inference/AmazonBedrockTaskSettings.java | 15 ++ .../AmazonSageMakerServiceSettings.java | 21 +++ .../AmazonSageMakerTaskSettings.java | 16 ++ .../inference/AnthropicServiceSettings.java | 14 ++ .../inference/AnthropicTaskSettings.java | 15 ++ .../AzureAiStudioServiceSettings.java | 16 ++ .../inference/AzureAiStudioTaskSettings.java | 18 +++ .../inference/AzureOpenAIServiceSettings.java | 17 ++ .../inference/AzureOpenAITaskSettings.java | 12 ++ .../ChatCompletionUnifiedRequest.java | 14 ++ .../inference/CohereServiceSettings.java | 16 ++ .../inference/CohereTaskSettings.java | 15 ++ .../inference/CompletionRequest.java | 15 ++ .../inference/CompletionResult.java | 12 ++ .../inference/CompletionTool.java | 13 ++ .../inference/CompletionToolChoice.java | 13 ++ .../CompletionToolChoiceFunction.java | 12 ++ .../inference/CompletionToolFunction.java | 15 ++ .../inference/ContentObject.java | 13 ++ .../ContextualAIServiceSettings.java | 14 ++ .../inference/ContextualAITaskSettings.java | 14 ++ .../inference/CustomRequestParams.java | 12 ++ .../inference/CustomResponseParams.java | 12 ++ .../inference/CustomServiceSettings.java | 19 +++ .../inference/CustomTaskSettings.java | 12 ++ .../inference/DeepSeekServiceSettings.java | 14 ++ .../inference/DeleteInferenceRequest.java | 15 ++ .../ElasticsearchServiceSettings.java | 18 +++ .../inference/ElasticsearchTaskSettings.java | 12 ++ .../inference/ElserServiceSettings.java | 14 ++ .../inference/GetInferenceRequest.java | 13 ++ .../GoogleAiStudioServiceSettings.java | 14 ++ .../GoogleVertexAIServiceSettings.java | 20 +++ .../inference/GoogleVertexAITaskSettings.java | 15 ++ .../inference/GroqServiceSettings.java | 14 ++ .../inference/HuggingFaceServiceSettings.java | 15 ++ .../inference/HuggingFaceTaskSettings.java | 13 ++ .../inference/InferenceChunkingSettings.java | 17 ++ .../inference/InferenceRequest.java | 18 +++ .../inference/JinaAIServiceSettings.java | 15 ++ .../inference/JinaAITaskSettings.java | 14 ++ .../inference/LlamaServiceSettings.java | 16 ++ .../elasticsearch/inference/Message.java | 15 ++ .../inference/MistralServiceSettings.java | 15 ++ .../inference/NvidiaServiceSettings.java | 17 ++ .../inference/NvidiaTaskSettings.java | 13 ++ .../inference/OpenAIServiceSettings.java | 52 ++++++ .../inference/OpenAISimilarityType.java | 69 ++++++++ .../inference/OpenAITaskSettings.java | 13 ++ .../inference/OpenShiftAiServiceSettings.java | 17 ++ .../inference/OpenShiftAiTaskSettings.java | 13 ++ .../inference/PutAi21Request.java | 16 ++ .../inference/PutAlibabacloudRequest.java | 18 +++ .../inference/PutAmazonbedrockRequest.java | 18 +++ .../inference/PutAmazonsagemakerRequest.java | 18 +++ .../inference/PutAnthropicRequest.java | 17 ++ .../inference/PutAzureaistudioRequest.java | 18 +++ .../inference/PutAzureopenaiRequest.java | 18 +++ .../inference/PutCohereRequest.java | 18 +++ .../inference/PutContextualaiRequest.java | 17 ++ .../inference/PutCustomRequest.java | 17 ++ .../inference/PutDeepseekRequest.java | 16 ++ .../inference/PutElasticsearchRequest.java | 18 +++ .../inference/PutElserRequest.java | 17 ++ .../inference/PutGoogleaistudioRequest.java | 17 ++ .../inference/PutGooglevertexaiRequest.java | 18 +++ .../inference/PutGroqRequest.java | 16 ++ .../inference/PutHuggingFaceRequest.java | 18 +++ .../inference/PutJinaaiRequest.java | 18 +++ .../inference/PutLlamaRequest.java | 17 ++ .../inference/PutMistralRequest.java | 17 ++ .../inference/PutNvidiaRequest.java | 18 +++ .../inference/PutOpenaiRequest.java | 18 +++ .../inference/PutOpenshiftAiRequest.java | 18 +++ .../elasticsearch/inference/PutRequest.java | 15 ++ .../inference/PutVoyageaiRequest.java | 18 +++ .../inference/PutWatsonxRequest.java | 17 ++ .../inference/RankedDocument.java | 14 ++ .../inference/RateLimitSetting.java | 12 ++ .../inference/RequestChatCompletion.java | 19 +++ .../inference/RerankRequest.java | 18 +++ .../inference/SparseEmbeddingRequest.java | 15 ++ .../inference/SparseEmbeddingResult.java | 12 ++ .../inference/StreamCompletionRequest.java | 15 ++ .../inference/TextEmbeddingByteResult.java | 12 ++ .../inference/TextEmbeddingRequest.java | 16 ++ .../inference/TextEmbeddingResult.java | 12 ++ .../inference/ThinkingConfig.java | 12 ++ .../elasticsearch/inference/ToolCall.java | 14 ++ .../inference/ToolCallFunction.java | 13 ++ .../inference/UpdateInferenceRequest.java | 14 ++ .../inference/VoyageAIServiceSettings.java | 15 ++ .../inference/VoyageAITaskSettings.java | 15 ++ .../inference/WatsonxServiceSettings.java | 17 ++ .../elasticsearch/ingest/AppendProcessor.java | 17 ++ .../ingest/AttachmentProcessor.java | 19 +++ .../elasticsearch/ingest/BytesProcessor.java | 14 ++ .../elasticsearch/ingest/CefProcessor.java | 16 ++ .../elasticsearch/ingest/CircleProcessor.java | 16 ++ .../ingest/CommunityIDProcessor.java | 22 +++ .../ingest/ConvertProcessor.java | 15 ++ .../elasticsearch/ingest/CsvProcessor.java | 18 +++ .../ingest/DateIndexNameProcessor.java | 18 +++ .../elasticsearch/ingest/DateProcessor.java | 17 ++ .../ingest/DeleteGeoipDatabaseRequest.java | 14 ++ .../DeleteIpLocationDatabaseRequest.java | 14 ++ .../ingest/DeletePipelineRequest.java | 14 ++ .../ingest/DissectProcessor.java | 15 ++ .../elasticsearch/ingest/Document.java | 14 ++ .../ingest/DocumentSimulation.java | 18 +++ .../ingest/DotExpanderProcessor.java | 14 ++ .../elasticsearch/ingest/DropProcessor.java | 11 ++ .../elasticsearch/ingest/EnrichProcessor.java | 18 +++ .../elasticsearch/ingest/FailProcessor.java | 12 ++ .../ingest/FingerprintProcessor.java | 16 ++ .../ingest/ForeachProcessor.java | 14 ++ .../ingest/GeoGridProcessor.java | 20 +++ .../elasticsearch/ingest/GeoIpProcessor.java | 18 +++ .../ingest/GetGeoipDatabaseRequest.java | 12 ++ .../ingest/GetIpLocationDatabaseRequest.java | 12 ++ .../ingest/GetPipelineRequest.java | 14 ++ .../elasticsearch/ingest/GrokProcessor.java | 17 ++ .../elasticsearch/ingest/GsubProcessor.java | 16 ++ .../ingest/HtmlStripProcessor.java | 14 ++ .../ingest/InferenceConfigClassification.java | 16 ++ .../ingest/InferenceConfigRegression.java | 13 ++ .../ingest/InferenceProcessor.java | 17 ++ .../clients/elasticsearch/ingest/Ingest.java | 14 ++ .../elasticsearch/ingest/InputConfig.java | 13 ++ .../ingest/IpLocationProcessor.java | 18 +++ .../elasticsearch/ingest/JoinProcessor.java | 14 ++ .../elasticsearch/ingest/JsonProcessor.java | 16 ++ .../ingest/KeyValueProcessor.java | 22 +++ .../clients/elasticsearch/ingest/Local.java | 12 ++ .../ingest/LowercaseProcessor.java | 14 ++ .../clients/elasticsearch/ingest/Maxmind.java | 12 ++ .../ingest/NetworkDirectionProcessor.java | 17 ++ .../elasticsearch/ingest/Pipeline.java | 22 +++ .../elasticsearch/ingest/PipelineConfig.java | 14 ++ .../ingest/PipelineProcessor.java | 13 ++ .../ingest/PipelineProcessorResult.java | 18 +++ .../ingest/PutGeoipDatabaseRequest.java | 16 ++ .../ingest/PutIpLocationDatabaseRequest.java | 15 ++ .../ingest/PutPipelineRequest.java | 22 +++ .../clients/elasticsearch/ingest/Redact.java | 12 ++ .../elasticsearch/ingest/RedactProcessor.java | 19 +++ .../ingest/RegisteredDomainProcessor.java | 14 ++ .../elasticsearch/ingest/RemoveProcessor.java | 14 ++ .../elasticsearch/ingest/RenameProcessor.java | 14 ++ .../ingest/RerouteProcessor.java | 14 ++ .../elasticsearch/ingest/ScriptProcessor.java | 15 ++ .../elasticsearch/ingest/SetProcessor.java | 17 ++ .../ingest/SetSecurityUserProcessor.java | 13 ++ .../ingest/SimulateDocumentResult.java | 14 ++ .../elasticsearch/ingest/SimulateRequest.java | 15 ++ .../elasticsearch/ingest/SortProcessor.java | 14 ++ .../elasticsearch/ingest/SplitProcessor.java | 16 ++ .../ingest/TerminateProcessor.java | 11 ++ .../elasticsearch/ingest/TrimProcessor.java | 14 ++ .../ingest/UppercaseProcessor.java | 14 ++ .../ingest/UriPartsProcessor.java | 16 ++ .../ingest/UrlDecodeProcessor.java | 14 ++ .../ingest/UserAgentProcessor.java | 17 ++ .../geo_ip_stats/GeoIpDownloadStatistics.java | 17 ++ .../geo_ip_stats/GeoIpNodeDatabaseName.java | 12 ++ .../geo_ip_stats/GeoIpNodeDatabases.java | 13 ++ .../DatabaseConfigurationMetadata.java | 15 ++ .../DatabaseConfigurationMetadata.java | 16 ++ .../license/DeleteLicenseRequest.java | 13 ++ .../license/GetLicenseRequest.java | 13 ++ .../elasticsearch/license/License.java | 21 +++ .../elasticsearch/license/PostRequest.java | 16 ++ .../license/PostStartBasicRequest.java | 14 ++ .../license/PostStartTrialRequest.java | 14 ++ .../license/get/LicenseInformation.java | 23 +++ .../license/post/Acknowledgement.java | 13 ++ .../logstash/DeletePipelineRequest.java | 12 ++ .../logstash/GetPipelineRequest.java | 12 ++ .../elasticsearch/logstash/Pipeline.java | 17 ++ .../logstash/PipelineMetadata.java | 13 ++ .../logstash/PipelineSettings.java | 17 ++ .../logstash/PutPipelineRequest.java | 13 ++ .../migration/DeprecationsRequest.java | 12 ++ .../migration/deprecations/Deprecation.java | 17 ++ .../MigrationFeature.java | 15 ++ .../MigrationFeatureIndexInfo.java | 14 ++ .../MigrationFeature.java | 12 ++ .../ml/AdaptiveAllocationsSettings.java | 14 ++ .../elasticsearch/ml/AnalysisConfig.java | 22 +++ .../elasticsearch/ml/AnalysisConfigRead.java | 22 +++ .../elasticsearch/ml/AnalysisLimits.java | 13 ++ .../elasticsearch/ml/AnalysisMemoryLimit.java | 12 ++ .../clients/elasticsearch/ml/Anomaly.java | 35 ++++ .../elasticsearch/ml/AnomalyCause.java | 26 +++ .../elasticsearch/ml/AnomalyExplanation.java | 21 +++ .../elasticsearch/ml/ApiKeyAuthorization.java | 13 ++ .../elasticsearch/ml/BucketInfluencer.java | 22 +++ .../elasticsearch/ml/BucketSummary.java | 22 +++ .../elasticsearch/ml/CalendarEvent.java | 19 +++ .../ml/CategorizationAnalyzerDefinition.java | 14 ++ .../clients/elasticsearch/ml/Category.java | 25 +++ .../elasticsearch/ml/ChunkingConfig.java | 13 ++ .../ml/ClassificationInferenceOptions.java | 16 ++ ...earTrainedModelDeploymentCacheRequest.java | 12 ++ .../elasticsearch/ml/CloseJobRequest.java | 15 ++ .../clients/elasticsearch/ml/DataCounts.java | 30 ++++ .../elasticsearch/ml/DataDescription.java | 15 ++ .../clients/elasticsearch/ml/Datafeed.java | 27 ++++ .../ml/DatafeedAuthorization.java | 14 ++ .../elasticsearch/ml/DatafeedConfig.java | 25 +++ .../ml/DatafeedRunningState.java | 14 ++ .../elasticsearch/ml/DatafeedStats.java | 17 ++ .../elasticsearch/ml/DatafeedTimingStats.java | 18 +++ .../ml/DataframeAnalysisAnalyzedFields.java | 13 ++ .../ml/DataframeAnalysisClassification.java | 13 ++ ...ysisFeatureProcessorFrequencyEncoding.java | 14 ++ ...AnalysisFeatureProcessorMultiEncoding.java | 12 ++ ...AnalysisFeatureProcessorNGramEncoding.java | 17 ++ ...nalysisFeatureProcessorOneHotEncoding.java | 13 ++ ...sisFeatureProcessorTargetMeanEncoding.java | 15 ++ .../ml/DataframeAnalysisOutlierDetection.java | 17 ++ .../ml/DataframeAnalysisRegression.java | 13 ++ .../elasticsearch/ml/DataframeAnalytics.java | 19 +++ .../ml/DataframeAnalyticsAuthorization.java | 14 ++ .../ml/DataframeAnalyticsDestination.java | 13 ++ .../ml/DataframeAnalyticsFieldSelection.java | 17 ++ .../DataframeAnalyticsMemoryEstimation.java | 13 ++ .../ml/DataframeAnalyticsSource.java | 15 ++ .../ml/DataframeAnalyticsStatsDataCounts.java | 14 ++ ...ataframeAnalyticsStatsHyperparameters.java | 16 ++ .../DataframeAnalyticsStatsMemoryUsage.java | 15 ++ ...taframeAnalyticsStatsOutlierDetection.java | 14 ++ .../ml/DataframeAnalyticsStatsProgress.java | 13 ++ .../ml/DataframeAnalyticsSummary.java | 24 +++ .../ml/DataframeEvaluationClassification.java | 15 ++ ...aframeEvaluationClassificationMetrics.java | 13 ++ ...EvaluationClassificationMetricsAucRoc.java | 13 ++ .../DataframeEvaluationOutlierDetection.java | 14 ++ ...rameEvaluationOutlierDetectionMetrics.java | 12 ++ .../ml/DataframeEvaluationRegression.java | 14 ++ .../DataframeEvaluationRegressionMetrics.java | 15 ++ ...frameEvaluationRegressionMetricsHuber.java | 12 ++ ...aframeEvaluationRegressionMetricsMsle.java | 12 ++ .../ml/DelayedDataCheckConfig.java | 13 ++ .../ml/DeleteCalendarEventRequest.java | 13 ++ .../ml/DeleteCalendarJobRequest.java | 13 ++ .../ml/DeleteCalendarRequest.java | 12 ++ .../ml/DeleteDataFrameAnalyticsRequest.java | 14 ++ .../ml/DeleteDatafeedRequest.java | 13 ++ .../ml/DeleteExpiredDataRequest.java | 14 ++ .../elasticsearch/ml/DeleteFilterRequest.java | 12 ++ .../ml/DeleteForecastRequest.java | 15 ++ .../elasticsearch/ml/DeleteJobRequest.java | 15 ++ .../ml/DeleteModelSnapshotRequest.java | 13 ++ .../ml/DeleteTrainedModelAliasRequest.java | 13 ++ .../ml/DeleteTrainedModelRequest.java | 14 ++ .../elasticsearch/ml/DetectionRule.java | 14 ++ .../clients/elasticsearch/ml/Detector.java | 21 +++ .../elasticsearch/ml/DetectorRead.java | 21 +++ .../elasticsearch/ml/DetectorUpdate.java | 14 ++ .../ml/DiscoveryNodeCompact.java | 16 ++ .../ml/DiscoveryNodeContent.java | 20 +++ .../ml/EstimateModelMemoryRequest.java | 14 ++ .../ml/EvaluateDataFrameRequest.java | 14 ++ .../ml/ExplainDataFrameAnalyticsRequest.java | 20 +++ .../ExponentialAverageCalculationContext.java | 14 ++ .../ml/FillMaskInferenceOptions.java | 16 ++ .../ml/FillMaskInferenceUpdateOptions.java | 14 ++ .../clients/elasticsearch/ml/Filter.java | 14 ++ .../clients/elasticsearch/ml/FilterRef.java | 13 ++ .../elasticsearch/ml/FlushJobRequest.java | 17 ++ .../elasticsearch/ml/ForecastRequest.java | 15 ++ .../clients/elasticsearch/ml/GeoResults.java | 13 ++ .../elasticsearch/ml/GetBucketsRequest.java | 23 +++ .../ml/GetCalendarEventsRequest.java | 17 ++ .../elasticsearch/ml/GetCalendarsRequest.java | 15 ++ .../ml/GetCategoriesRequest.java | 17 ++ .../ml/GetDataFrameAnalyticsRequest.java | 16 ++ .../ml/GetDataFrameAnalyticsStatsRequest.java | 16 ++ .../ml/GetDatafeedStatsRequest.java | 13 ++ .../elasticsearch/ml/GetDatafeedsRequest.java | 14 ++ .../elasticsearch/ml/GetFiltersRequest.java | 14 ++ .../ml/GetInfluencersRequest.java | 21 +++ .../elasticsearch/ml/GetJobStatsRequest.java | 13 ++ .../elasticsearch/ml/GetJobsRequest.java | 14 ++ .../ml/GetMemoryStatsRequest.java | 14 ++ .../GetModelSnapshotUpgradeStatsRequest.java | 14 ++ .../ml/GetModelSnapshotsRequest.java | 20 +++ .../ml/GetOverallBucketsRequest.java | 19 +++ .../elasticsearch/ml/GetRecordsRequest.java | 21 +++ .../ml/GetTrainedModelsRequest.java | 19 +++ .../ml/GetTrainedModelsStatsRequest.java | 15 ++ .../elasticsearch/ml/Hyperparameter.java | 16 ++ .../elasticsearch/ml/Hyperparameters.java | 25 +++ .../ml/InferTrainedModelRequest.java | 15 ++ .../ml/InferenceResponseResult.java | 20 +++ .../clients/elasticsearch/ml/Influence.java | 13 ++ .../clients/elasticsearch/ml/Influencer.java | 22 +++ .../elastic/clients/elasticsearch/ml/Job.java | 34 ++++ .../clients/elasticsearch/ml/JobBlocked.java | 13 ++ .../clients/elasticsearch/ml/JobConfig.java | 28 ++++ .../ml/JobForecastStatistics.java | 17 ++ .../elasticsearch/ml/JobStatistics.java | 15 ++ .../clients/elasticsearch/ml/JobStats.java | 21 +++ .../elasticsearch/ml/JobTimingStats.java | 19 +++ .../ml/LearningToRankConfig.java | 14 ++ .../elasticsearch/ml/ModelPackageConfig.java | 25 +++ .../elasticsearch/ml/ModelPlotConfig.java | 14 ++ .../elasticsearch/ml/ModelSizeStats.java | 33 ++++ .../elasticsearch/ml/ModelSnapshot.java | 21 +++ .../ml/ModelSnapshotUpgrade.java | 16 ++ .../elasticsearch/ml/NerInferenceOptions.java | 15 ++ .../ml/NerInferenceUpdateOptions.java | 13 ++ .../ml/NlpBertTokenizationConfig.java | 11 ++ .../ml/NlpRobertaTokenizationConfig.java | 12 ++ .../ml/NlpTokenizationUpdateOptions.java | 13 ++ .../elasticsearch/ml/OpenJobRequest.java | 13 ++ .../ml/OutlierDetectionParameters.java | 17 ++ .../elasticsearch/ml/OverallBucket.java | 18 +++ .../elasticsearch/ml/OverallBucketJob.java | 13 ++ .../clients/elasticsearch/ml/Page.java | 13 ++ .../ml/PassThroughInferenceOptions.java | 14 ++ .../ml/PassThroughInferenceUpdateOptions.java | 13 ++ .../ml/PerPartitionCategorization.java | 13 ++ .../ml/PostCalendarEventsRequest.java | 13 ++ .../elasticsearch/ml/PostDataRequest.java | 15 ++ .../ml/PreviewDataFrameAnalyticsRequest.java | 13 ++ .../ml/PreviewDatafeedRequest.java | 16 ++ .../ml/PutCalendarJobRequest.java | 13 ++ .../elasticsearch/ml/PutCalendarRequest.java | 14 ++ .../ml/PutDataFrameAnalyticsRequest.java | 23 +++ .../elasticsearch/ml/PutDatafeedRequest.java | 30 ++++ .../elasticsearch/ml/PutFilterRequest.java | 14 ++ .../elasticsearch/ml/PutJobRequest.java | 31 ++++ .../ml/PutTrainedModelAliasRequest.java | 14 ++ .../PutTrainedModelDefinitionPartRequest.java | 16 ++ .../ml/PutTrainedModelRequest.java | 25 +++ .../ml/PutTrainedModelVocabularyRequest.java | 15 ++ .../ml/QueryFeatureExtractor.java | 14 ++ .../ml/QuestionAnsweringInferenceOptions.java | 15 ++ ...estionAnsweringInferenceUpdateOptions.java | 16 ++ .../ml/RegressionInferenceOptions.java | 13 ++ .../elasticsearch/ml/ResetJobRequest.java | 14 ++ .../ml/RevertModelSnapshotRequest.java | 14 ++ .../elasticsearch/ml/RuleCondition.java | 14 ++ .../ml/RunningStateSearchInterval.java | 15 ++ .../ml/SetUpgradeModeRequest.java | 13 ++ .../ml/StartDataFrameAnalyticsRequest.java | 13 ++ .../ml/StartDatafeedRequest.java | 15 ++ .../StartTrainedModelDeploymentRequest.java | 21 +++ .../ml/StopDataFrameAnalyticsRequest.java | 15 ++ .../elasticsearch/ml/StopDatafeedRequest.java | 16 ++ .../ml/StopTrainedModelDeploymentRequest.java | 15 ++ .../TextClassificationInferenceOptions.java | 16 ++ ...tClassificationInferenceUpdateOptions.java | 15 ++ .../ml/TextEmbeddingInferenceOptions.java | 15 ++ .../TextEmbeddingInferenceUpdateOptions.java | 13 ++ .../ml/TextExpansionInferenceOptions.java | 14 ++ .../TextExpansionInferenceUpdateOptions.java | 13 ++ .../clients/elasticsearch/ml/TimingStats.java | 13 ++ .../elasticsearch/ml/TopClassEntry.java | 14 ++ .../ml/TotalFeatureImportance.java | 14 ++ .../ml/TotalFeatureImportanceClass.java | 13 ++ .../ml/TotalFeatureImportanceStatistics.java | 14 ++ .../ml/TrainedModelAssignment.java | 18 +++ ...dModelAssignmentRoutingStateAndReason.java | 13 ++ .../TrainedModelAssignmentRoutingTable.java | 15 ++ .../TrainedModelAssignmentTaskParameters.java | 21 +++ .../ml/TrainedModelConfigInput.java | 12 ++ .../ml/TrainedModelConfigMetadata.java | 15 ++ ...rainedModelDeploymentAllocationStatus.java | 14 ++ .../ml/TrainedModelDeploymentNodesStats.java | 29 ++++ .../ml/TrainedModelDeploymentStats.java | 29 ++++ .../ml/TrainedModelEntities.java | 16 ++ .../TrainedModelInferenceClassImportance.java | 13 ++ ...rainedModelInferenceFeatureImportance.java | 14 ++ .../ml/TrainedModelInferenceStats.java | 16 ++ .../ml/TrainedModelLocation.java | 12 ++ .../ml/TrainedModelLocationIndex.java | 12 ++ .../ml/TrainedModelPrefixStrings.java | 13 ++ .../ml/TrainedModelSizeStats.java | 13 ++ .../elasticsearch/ml/TrainedModelStats.java | 17 ++ .../ml/TransformAuthorization.java | 14 ++ .../ml/UpdateDataFrameAnalyticsRequest.java | 16 ++ .../ml/UpdateDatafeedRequest.java | 29 ++++ .../elasticsearch/ml/UpdateFilterRequest.java | 15 ++ .../elasticsearch/ml/UpdateJobRequest.java | 27 ++++ .../ml/UpdateModelSnapshotRequest.java | 15 ++ .../UpdateTrainedModelDeploymentRequest.java | 14 ++ .../ml/UpgradeJobSnapshotRequest.java | 15 ++ .../ml/ValidateDetectorRequest.java | 12 ++ .../elasticsearch/ml/ValidateRequest.java | 20 +++ .../elasticsearch/ml/ValidationLoss.java | 13 ++ .../clients/elasticsearch/ml/Vocabulary.java | 12 ++ .../ml/XlmRobertaTokenizationConfig.java | 11 ++ ...eroShotClassificationInferenceOptions.java | 17 ++ ...tClassificationInferenceUpdateOptions.java | 15 ++ .../ConfusionMatrixItem.java | 15 ++ .../ConfusionMatrixPrediction.java | 13 ++ .../ConfusionMatrixThreshold.java | 15 ++ .../DataframeClassificationSummary.java | 16 ++ ...ataframeClassificationSummaryAccuracy.java | 13 ++ ...ationSummaryMulticlassConfusionMatrix.java | 13 ++ ...taframeClassificationSummaryPrecision.java | 13 ++ .../DataframeClassificationSummaryRecall.java | 13 ++ .../DataframeEvaluationClass.java | 12 ++ .../DataframeEvaluationSummaryAucRoc.java | 12 ++ ...frameEvaluationSummaryAucRocCurveItem.java | 14 ++ .../DataframeOutlierDetectionSummary.java | 15 ++ .../DataframeRegressionSummary.java | 15 ++ .../ml/get_calendars/Calendar.java | 14 ++ .../ml/get_memory_stats/JvmStats.java | 17 ++ .../ml/get_memory_stats/MemMlStats.java | 21 +++ .../ml/get_memory_stats/MemStats.java | 16 ++ .../ml/get_memory_stats/Memory.java | 18 +++ .../ml/info/AnomalyDetectors.java | 16 ++ .../elasticsearch/ml/info/Datafeeds.java | 12 ++ .../elasticsearch/ml/info/Defaults.java | 13 ++ .../clients/elasticsearch/ml/info/Limits.java | 16 ++ .../elasticsearch/ml/info/NativeCode.java | 13 ++ .../DataframePreviewConfig.java | 16 ++ .../ml/put_trained_model/AggregateOutput.java | 15 ++ .../ml/put_trained_model/Definition.java | 13 ++ .../ml/put_trained_model/Ensemble.java | 16 ++ .../FrequencyEncodingPreprocessor.java | 14 ++ .../ml/put_trained_model/Input.java | 12 ++ .../OneHotEncodingPreprocessor.java | 13 ++ .../TargetMeanEncodingPreprocessor.java | 15 ++ .../ml/put_trained_model/TrainedModel.java | 14 ++ .../put_trained_model/TrainedModelTree.java | 15 ++ .../TrainedModelTreeNode.java | 20 +++ .../ml/put_trained_model/Weights.java | 12 ++ .../elasticsearch/monitoring/BulkRequest.java | 15 ++ .../nodes/AdaptiveSelection.java | 18 +++ .../clients/elasticsearch/nodes/Breaker.java | 17 ++ .../clients/elasticsearch/nodes/Cgroup.java | 14 ++ .../elasticsearch/nodes/CgroupCpu.java | 15 ++ .../elasticsearch/nodes/CgroupCpuStat.java | 14 ++ .../elasticsearch/nodes/CgroupMemory.java | 14 ++ ...earRepositoriesMeteringArchiveRequest.java | 13 ++ .../clients/elasticsearch/nodes/Client.java | 22 +++ .../nodes/ClusterAppliedStats.java | 12 ++ .../nodes/ClusterStateQueue.java | 14 ++ .../nodes/ClusterStateUpdate.java | 26 +++ .../clients/elasticsearch/nodes/Context.java | 15 ++ .../clients/elasticsearch/nodes/Cpu.java | 19 +++ .../clients/elasticsearch/nodes/CpuAcct.java | 13 ++ .../elasticsearch/nodes/DataPathStats.java | 27 ++++ .../elasticsearch/nodes/Discovery.java | 16 ++ .../nodes/ElasticsearchNodesAsyncClient.java | 1 + .../nodes/ElasticsearchNodesClient.java | 1 + .../nodes/ExtendedMemoryStats.java | 13 ++ .../elasticsearch/nodes/FileSystem.java | 15 ++ .../elasticsearch/nodes/FileSystemTotal.java | 17 ++ .../elasticsearch/nodes/GarbageCollector.java | 12 ++ .../nodes/GarbageCollectorTotal.java | 14 ++ .../GetRepositoriesMeteringInfoRequest.java | 12 ++ .../nodes/HotThreadsRequest.java | 28 +++- .../clients/elasticsearch/nodes/Http.java | 15 ++ .../elasticsearch/nodes/HttpRoute.java | 13 ++ .../nodes/HttpRouteRequests.java | 14 ++ .../nodes/HttpRouteResponses.java | 15 ++ .../elasticsearch/nodes/IndexingPressure.java | 12 ++ .../nodes/IndexingPressureMemory.java | 15 ++ .../clients/elasticsearch/nodes/Ingest.java | 13 ++ .../elasticsearch/nodes/IngestStats.java | 18 +++ .../elasticsearch/nodes/IngestTotal.java | 15 ++ .../elasticsearch/nodes/IoStatDevice.java | 17 ++ .../clients/elasticsearch/nodes/IoStats.java | 13 ++ .../clients/elasticsearch/nodes/Jvm.java | 19 +++ .../elasticsearch/nodes/JvmClasses.java | 14 ++ .../elasticsearch/nodes/JvmMemoryStats.java | 19 +++ .../elasticsearch/nodes/JvmThreads.java | 13 ++ .../elasticsearch/nodes/KeyedProcessor.java | 13 ++ .../elasticsearch/nodes/NodeBufferPool.java | 16 ++ .../elasticsearch/nodes/NodeReloadResult.java | 17 ++ .../elasticsearch/nodes/NodesInfoRequest.java | 15 ++ .../nodes/NodesStatsRequest.java | 23 +++ .../nodes/NodesUsageRequest.java | 14 ++ .../elasticsearch/nodes/OperatingSystem.java | 16 ++ .../clients/elasticsearch/nodes/Pool.java | 15 ++ .../elasticsearch/nodes/PressureMemory.java | 26 +++ .../clients/elasticsearch/nodes/Process.java | 16 ++ .../elasticsearch/nodes/Processor.java | 15 ++ .../nodes/PublishedClusterStates.java | 14 ++ .../elasticsearch/nodes/Recording.java | 15 ++ .../nodes/ReloadSecureSettingsRequest.java | 14 ++ .../nodes/RepositoryLocation.java | 14 ++ .../nodes/RepositoryMeteringInformation.java | 20 +++ .../elasticsearch/nodes/RequestCounts.java | 22 +++ .../elasticsearch/nodes/ScriptCache.java | 15 ++ .../elasticsearch/nodes/Scripting.java | 16 ++ .../nodes/SerializedClusterState.java | 13 ++ .../nodes/SerializedClusterStateDetail.java | 16 ++ .../nodes/SizeHttpHistogram.java | 14 ++ .../clients/elasticsearch/nodes/Stats.java | 33 ++++ .../elasticsearch/nodes/ThreadCount.java | 17 ++ .../nodes/TimeHttpHistogram.java | 14 ++ .../elasticsearch/nodes/Transport.java | 21 +++ .../nodes/TransportHistogram.java | 14 ++ .../nodes/info/DeprecationIndexing.java | 12 ++ .../elasticsearch/nodes/info/NodeInfo.java | 38 +++++ .../nodes/info/NodeInfoAction.java | 12 ++ .../nodes/info/NodeInfoAggregation.java | 12 ++ .../nodes/info/NodeInfoBootstrap.java | 12 ++ .../nodes/info/NodeInfoClient.java | 12 ++ .../nodes/info/NodeInfoDiscover.java | 14 ++ .../nodes/info/NodeInfoHttp.java | 15 ++ .../nodes/info/NodeInfoIngest.java | 12 ++ .../nodes/info/NodeInfoIngestDownloader.java | 12 ++ .../nodes/info/NodeInfoIngestInfo.java | 12 ++ .../nodes/info/NodeInfoIngestProcessor.java | 12 ++ .../nodes/info/NodeInfoJvmMemory.java | 21 +++ .../nodes/info/NodeInfoMemory.java | 13 ++ .../nodes/info/NodeInfoOSCPU.java | 19 +++ .../nodes/info/NodeInfoPath.java | 15 ++ .../nodes/info/NodeInfoRepositories.java | 12 ++ .../nodes/info/NodeInfoRepositoriesUrl.java | 12 ++ .../nodes/info/NodeInfoScript.java | 13 ++ .../nodes/info/NodeInfoSearch.java | 12 ++ .../nodes/info/NodeInfoSearchRemote.java | 12 ++ .../nodes/info/NodeInfoSettings.java | 26 +++ .../nodes/info/NodeInfoSettingsCluster.java | 16 ++ .../info/NodeInfoSettingsClusterElection.java | 12 ++ .../nodes/info/NodeInfoSettingsHttp.java | 15 ++ .../nodes/info/NodeInfoSettingsHttpType.java | 12 ++ .../nodes/info/NodeInfoSettingsIngest.java | 45 ++++++ .../nodes/info/NodeInfoSettingsNetwork.java | 12 ++ .../nodes/info/NodeInfoSettingsNode.java | 14 ++ .../nodes/info/NodeInfoSettingsTransport.java | 15 ++ .../NodeInfoSettingsTransportFeatures.java | 12 ++ .../info/NodeInfoSettingsTransportType.java | 12 ++ .../nodes/info/NodeInfoTransport.java | 14 ++ .../nodes/info/NodeInfoXpack.java | 15 ++ .../nodes/info/NodeInfoXpackLicense.java | 12 ++ .../nodes/info/NodeInfoXpackLicenseType.java | 12 ++ .../nodes/info/NodeInfoXpackMl.java | 12 ++ .../nodes/info/NodeInfoXpackSecurity.java | 15 ++ .../info/NodeInfoXpackSecurityAuthc.java | 13 ++ .../NodeInfoXpackSecurityAuthcRealms.java | 14 ++ ...odeInfoXpackSecurityAuthcRealmsStatus.java | 13 ++ .../info/NodeInfoXpackSecurityAuthcToken.java | 12 ++ .../nodes/info/NodeInfoXpackSecuritySsl.java | 12 ++ .../elasticsearch/nodes/info/NodeJvmInfo.java | 23 +++ .../nodes/info/NodeOperatingSystemInfo.java | 21 +++ .../nodes/info/NodeProcessInfo.java | 14 ++ .../nodes/info/NodeThreadPoolInfo.java | 17 ++ .../nodes/info/RemoveClusterServer.java | 13 ++ .../elasticsearch/nodes/usage/NodeUsage.java | 15 ++ .../elasticsearch/project/TagsRequest.java | 12 ++ .../elasticsearch/project/tags/Tags.java | 15 ++ .../query_rules/DeleteRuleRequest.java | 13 ++ .../query_rules/DeleteRulesetRequest.java | 12 ++ .../query_rules/GetRuleRequest.java | 13 ++ .../query_rules/GetRulesetRequest.java | 12 ++ .../query_rules/ListRulesetsRequest.java | 13 ++ .../query_rules/PutRuleRequest.java | 17 ++ .../query_rules/PutRulesetRequest.java | 13 ++ .../query_rules/QueryRuleActions.java | 13 ++ .../query_rules/QueryRuleCriteria.java | 14 ++ .../query_rules/TestRequest.java | 13 ++ .../list_rulesets/QueryRulesetListItem.java | 15 ++ .../test/QueryRulesetMatchedRule.java | 13 ++ .../rollup/DateHistogramGrouping.java | 18 +++ .../rollup/DeleteJobRequest.java | 12 ++ .../elasticsearch/rollup/FieldMetric.java | 13 ++ .../elasticsearch/rollup/GetJobsRequest.java | 12 ++ .../rollup/GetRollupCapsRequest.java | 12 ++ .../rollup/GetRollupIndexCapsRequest.java | 12 ++ .../elasticsearch/rollup/Groupings.java | 14 ++ .../rollup/HistogramGrouping.java | 13 ++ .../elasticsearch/rollup/PutJobRequest.java | 20 +++ .../rollup/RollupSearchRequest.java | 15 ++ .../elasticsearch/rollup/StartJobRequest.java | 12 ++ .../elasticsearch/rollup/StopJobRequest.java | 14 ++ .../elasticsearch/rollup/TermsGrouping.java | 12 ++ .../rollup/get_jobs/RollupJob.java | 14 ++ .../get_jobs/RollupJobConfiguration.java | 19 +++ .../rollup/get_jobs/RollupJobStats.java | 23 +++ .../rollup/get_jobs/RollupJobStatus.java | 14 ++ .../get_rollup_caps/RollupCapabilities.java | 12 ++ .../RollupCapabilitySummary.java | 15 ++ .../get_rollup_caps/RollupFieldSummary.java | 14 ++ .../IndexCapabilities.java | 12 ++ .../RollupJobSummary.java | 15 ++ .../RollupJobSummaryField.java | 14 ++ .../AnalyticsCollection.java | 12 ++ .../DeleteBehavioralAnalyticsRequest.java | 12 ++ .../DeleteSearchApplicationRequest.java | 12 ++ .../search_application/EventDataStream.java | 12 ++ .../GetBehavioralAnalyticsRequest.java | 12 ++ .../GetSearchApplicationRequest.java | 12 ++ .../search_application/ListRequest.java | 14 ++ .../PostBehavioralAnalyticsEventRequest.java | 15 ++ .../PutBehavioralAnalyticsRequest.java | 12 ++ .../search_application/PutRequest.java | 14 ++ .../RenderQueryRequest.java | 13 ++ .../SearchApplicationSearchRequest.java | 13 ++ .../SearchApplicationTemplate.java | 12 ++ .../CacheStatsRequest.java | 13 ++ .../ClearCacheRequest.java | 15 ++ .../searchable_snapshots/MountRequest.java | 20 +++ .../SearchableSnapshotsStatsRequest.java | 13 ++ .../cache_stats/Node.java | 12 ++ .../cache_stats/Shared.java | 19 +++ .../mount/MountedSnapshot.java | 14 ++ .../elasticsearch/security/Access.java | 13 ++ .../security/ActivateUserProfileRequest.java | 15 ++ .../elasticsearch/security/ApiKey.java | 28 ++++ .../ApplicationGlobalUserPrivileges.java | 12 ++ .../security/ApplicationPrivileges.java | 14 ++ .../security/BulkDeleteRoleRequest.java | 13 ++ .../elasticsearch/security/BulkError.java | 13 ++ .../security/BulkPutRoleRequest.java | 13 ++ .../security/BulkUpdateApiKeysRequest.java | 15 ++ .../security/ChangePasswordRequest.java | 15 ++ .../security/ClearApiKeyCacheRequest.java | 12 ++ .../ClearCachedPrivilegesRequest.java | 12 ++ .../security/ClearCachedRealmsRequest.java | 13 ++ .../security/ClearCachedRolesRequest.java | 12 ++ .../ClearCachedServiceTokensRequest.java | 14 ++ .../elasticsearch/security/ClusterNode.java | 12 ++ .../security/CreateApiKeyRequest.java | 16 ++ .../CreateCrossClusterApiKeyRequest.java | 16 ++ .../security/CreateServiceTokenRequest.java | 15 ++ .../elasticsearch/security/CreatedStatus.java | 12 ++ .../security/DelegatePkiRequest.java | 12 ++ .../security/DeletePrivilegesRequest.java | 14 ++ .../security/DeleteRoleMappingRequest.java | 13 ++ .../security/DeleteRoleRequest.java | 13 ++ .../security/DeleteServiceTokenRequest.java | 15 ++ .../security/DeleteUserRequest.java | 13 ++ .../security/DisableUserProfileRequest.java | 13 ++ .../security/DisableUserRequest.java | 13 ++ .../security/EnableUserProfileRequest.java | 13 ++ .../security/EnableUserRequest.java | 13 ++ .../elasticsearch/security/FieldSecurity.java | 13 ++ .../security/GetApiKeyRequest.java | 19 +++ .../security/GetPrivilegesRequest.java | 13 ++ .../security/GetRoleMappingRequest.java | 12 ++ .../security/GetRoleRequest.java | 12 ++ .../security/GetSecuritySettingsRequest.java | 12 ++ .../security/GetServiceAccountsRequest.java | 13 ++ .../GetServiceCredentialsRequest.java | 13 ++ .../security/GetTokenRequest.java | 17 ++ .../security/GetUserProfileRequest.java | 13 ++ .../security/GetUserRequest.java | 13 ++ .../security/GlobalPrivilege.java | 12 ++ .../security/GrantApiKeyRequest.java | 18 +++ .../security/HasPrivilegesRequest.java | 15 ++ .../HasPrivilegesUserProfileRequest.java | 13 ++ .../security/IndicesPrivileges.java | 16 ++ .../security/InvalidateApiKeyRequest.java | 17 ++ .../security/InvalidateTokenRequest.java | 15 ++ .../security/ManageUserPrivileges.java | 12 ++ .../security/NodeSecurityStats.java | 12 ++ .../security/OidcAuthenticateRequest.java | 15 ++ .../security/OidcLogoutRequest.java | 13 ++ .../OidcPrepareAuthenticationRequest.java | 16 ++ .../security/PutPrivilegesRequest.java | 13 ++ .../security/PutRoleMappingRequest.java | 19 +++ .../security/PutRoleRequest.java | 23 +++ .../security/PutUserRequest.java | 20 +++ .../security/QueryApiKeysRequest.java | 19 +++ .../security/QueryRoleRequest.java | 16 ++ .../security/QueryUserRequest.java | 17 ++ .../elasticsearch/security/RealmInfo.java | 13 ++ .../security/RemoteClusterPrivileges.java | 13 ++ .../security/RemoteIndicesPrivileges.java | 17 ++ .../security/RemoteUserIndicesPrivileges.java | 17 ++ .../security/ReplicationAccess.java | 13 ++ .../elasticsearch/security/Restriction.java | 12 ++ .../security/RoleDescriptorRead.java | 22 +++ .../elasticsearch/security/RoleMapping.java | 16 ++ .../elasticsearch/security/RoleTemplate.java | 13 ++ .../security/RoleTemplateQuery.java | 12 ++ .../security/RoleTemplateScript.java | 16 ++ .../elasticsearch/security/RolesStats.java | 12 ++ .../security/SamlAuthenticateRequest.java | 14 ++ .../security/SamlCompleteLogoutRequest.java | 15 ++ .../security/SamlInvalidateRequest.java | 14 ++ .../security/SamlLogoutRequest.java | 13 ++ .../SamlPrepareAuthenticationRequest.java | 14 ++ .../SamlServiceProviderMetadataRequest.java | 12 ++ .../elasticsearch/security/SearchAccess.java | 15 ++ .../security/SecuritySettings.java | 12 ++ .../security/SuggestUserProfilesRequest.java | 15 ++ .../security/UpdateApiKeyRequest.java | 15 ++ .../UpdateCrossClusterApiKeyRequest.java | 16 ++ .../security/UpdateSettingsRequest.java | 16 ++ .../UpdateUserProfileDataRequest.java | 17 ++ .../security/UserIndicesPrivileges.java | 16 ++ .../security/UserProfileHitMetadata.java | 13 ++ .../security/UserProfileUser.java | 17 ++ .../authenticate/AuthenticateApiKey.java | 15 ++ .../security/authenticate/ServiceToken.java | 13 ++ .../security/create_service_token/Token.java | 13 ++ .../security/delegate_pki/Authentication.java | 22 +++ .../delegate_pki/AuthenticationRealm.java | 14 ++ .../delete_privileges/FoundStatus.java | 12 ++ .../security/enroll_kibana/Token.java | 13 ++ .../elasticsearch/security/get_role/Role.java | 22 +++ .../RoleDescriptorWrapper.java | 12 ++ .../NodesCredentials.java | 13 ++ .../NodesCredentialsFileToken.java | 12 ++ .../security/get_token/AuthenticatedUser.java | 15 ++ .../get_token/AuthenticationProvider.java | 13 ++ .../security/get_token/UserRealm.java | 13 ++ .../GetUserProfileErrors.java | 13 ++ .../security/grant_api_key/GrantApiKey.java | 15 ++ .../ApplicationPrivilegesCheck.java | 14 ++ .../has_privileges/IndexPrivilegesCheck.java | 14 ++ .../HasPrivilegesUserProfileErrors.java | 13 ++ .../PrivilegesCheck.java | 14 ++ .../security/put_privileges/Actions.java | 15 ++ .../ApiKeyFiltersAggregation.java | 15 ++ .../security/query_role/QueryRole.java | 13 ++ .../security/query_user/QueryUser.java | 12 ++ .../security/suggest_user_profiles/Hint.java | 13 ++ .../TotalUserProfiles.java | 13 ++ .../shutdown/DeleteNodeRequest.java | 14 ++ .../shutdown/GetNodeRequest.java | 13 ++ .../shutdown/PutNodeRequest.java | 18 +++ .../shutdown/get_node/NodeShutdownStatus.java | 19 +++ .../get_node/PersistentTaskStatus.java | 12 ++ .../shutdown/get_node/PluginsStatus.java | 12 ++ .../get_node/ShardMigrationStatus.java | 12 ++ .../elasticsearch/simulate/IngestRequest.java | 19 +++ .../ingest/IngestDocumentSimulation.java | 19 +++ .../ingest/SimulateIngestDocumentResult.java | 12 ++ .../slm/DeleteLifecycleRequest.java | 14 ++ .../slm/ExecuteLifecycleRequest.java | 14 ++ .../slm/ExecuteRetentionRequest.java | 13 ++ .../slm/GetLifecycleRequest.java | 14 ++ .../slm/GetSlmStatusRequest.java | 13 ++ .../elasticsearch/slm/GetStatsRequest.java | 13 ++ .../clients/elasticsearch/slm/InProgress.java | 15 ++ .../clients/elasticsearch/slm/Invocation.java | 13 ++ .../slm/PutLifecycleRequest.java | 19 +++ .../clients/elasticsearch/slm/Retention.java | 14 ++ .../elasticsearch/slm/SlmConfiguration.java | 17 ++ .../clients/elasticsearch/slm/SlmPolicy.java | 16 ++ .../elasticsearch/slm/SnapshotLifecycle.java | 21 +++ .../slm/SnapshotPolicyStats.java | 16 ++ .../elasticsearch/slm/StartSlmRequest.java | 13 ++ .../clients/elasticsearch/slm/Statistics.java | 21 +++ .../elasticsearch/slm/StopSlmRequest.java | 13 ++ .../snapshot/AzureRepository.java | 12 ++ .../snapshot/AzureRepositorySettings.java | 18 +++ .../snapshot/CleanupRepositoryRequest.java | 14 ++ .../snapshot/CloneSnapshotRequest.java | 16 ++ .../snapshot/CreateRepositoryRequest.java | 16 ++ .../snapshot/CreateSnapshotRequest.java | 22 +++ .../snapshot/DeleteRepositoryRequest.java | 14 ++ .../snapshot/DeleteSnapshotRequest.java | 15 ++ .../snapshot/FileCountSnapshotStats.java | 13 ++ .../elasticsearch/snapshot/GcsRepository.java | 12 ++ .../snapshot/GcsRepositorySettings.java | 16 ++ .../snapshot/GetRepositoryRequest.java | 14 ++ .../snapshot/GetSnapshotRequest.java | 27 ++++ .../elasticsearch/snapshot/IndexDetails.java | 15 ++ .../snapshot/InfoFeatureState.java | 13 ++ .../snapshot/ReadOnlyUrlRepository.java | 12 ++ .../ReadOnlyUrlRepositorySettings.java | 15 ++ .../snapshot/RepositoryAnalyzeRequest.java | 24 +++ .../RepositoryVerifyIntegrityRequest.java | 20 +++ .../snapshot/RestoreRequest.java | 25 +++ .../elasticsearch/snapshot/S3Repository.java | 12 ++ .../snapshot/S3RepositorySettings.java | 26 +++ .../elasticsearch/snapshot/ShardsStats.java | 17 ++ .../snapshot/ShardsStatsSummary.java | 16 ++ .../snapshot/ShardsStatsSummaryItem.java | 13 ++ .../snapshot/SharedFileSystemRepository.java | 12 ++ .../SharedFileSystemRepositorySettings.java | 14 ++ .../snapshot/SnapshotIndexStats.java | 14 ++ .../elasticsearch/snapshot/SnapshotInfo.java | 32 ++++ .../snapshot/SnapshotShardFailure.java | 17 ++ .../snapshot/SnapshotShardsStatus.java | 13 ++ .../elasticsearch/snapshot/SnapshotStats.java | 16 ++ .../snapshot/SnapshotStatusRequest.java | 15 ++ .../snapshot/SourceOnlyRepository.java | 12 ++ .../SourceOnlyRepositorySettings.java | 14 ++ .../elasticsearch/snapshot/Status.java | 19 +++ .../snapshot/VerifyRepositoryRequest.java | 14 ++ .../CleanupRepositoryResults.java | 13 ++ .../snapshot/get/SnapshotResponseItem.java | 14 ++ .../repository_analyze/BlobDetails.java | 19 +++ .../repository_analyze/DetailsInfo.java | 19 +++ .../repository_analyze/ReadBlobDetails.java | 20 +++ .../repository_analyze/ReadSummaryInfo.java | 22 +++ .../repository_analyze/SnapshotNodeInfo.java | 13 ++ .../repository_analyze/SummaryInfo.java | 13 ++ .../repository_analyze/WriteSummaryInfo.java | 18 +++ .../snapshot/restore/SnapshotRestore.java | 14 ++ .../verify_repository/CompactNodeInfo.java | 12 ++ .../elasticsearch/sql/ClearCursorRequest.java | 12 ++ .../clients/elasticsearch/sql/Column.java | 13 ++ .../elasticsearch/sql/DeleteAsyncRequest.java | 12 ++ .../elasticsearch/sql/GetAsyncRequest.java | 16 ++ .../sql/GetAsyncStatusRequest.java | 12 ++ .../elasticsearch/sql/QueryRequest.java | 30 ++++ .../elasticsearch/sql/TranslateRequest.java | 15 ++ .../certificates/CertificateInformation.java | 19 +++ .../streams/LogsDisableRequest.java | 13 ++ .../streams/LogsEnableRequest.java | 13 ++ .../streams/StreamsStatusRequest.java | 12 ++ .../streams/status/LogsStatus.java | 12 ++ .../synonyms/DeleteSynonymRequest.java | 12 ++ .../synonyms/DeleteSynonymRuleRequest.java | 14 ++ .../synonyms/GetSynonymRequest.java | 14 ++ .../synonyms/GetSynonymRuleRequest.java | 13 ++ .../synonyms/GetSynonymsSetsRequest.java | 13 ++ .../synonyms/PutSynonymRequest.java | 14 ++ .../synonyms/PutSynonymRuleRequest.java | 15 ++ .../elasticsearch/synonyms/SynonymRule.java | 13 ++ .../get_synonyms_sets/SynonymsSetItem.java | 13 ++ .../elasticsearch/tasks/CancelRequest.java | 16 ++ .../elasticsearch/tasks/GetTasksRequest.java | 14 ++ .../elasticsearch/tasks/ListRequest.java | 18 +++ .../elasticsearch/tasks/NodeTasks.java | 18 +++ .../elasticsearch/tasks/ParentTaskInfo.java | 12 ++ .../text_structure/FieldStat.java | 20 +++ .../FindFieldStructureRequest.java | 25 +++ .../FindMessageStructureRequest.java | 23 +++ .../TestGrokPatternRequest.java | 14 ++ .../elasticsearch/text_structure/TopHit.java | 13 ++ .../test_grok_pattern/MatchedField.java | 14 ++ .../test_grok_pattern/MatchedText.java | 13 ++ .../transform/DeleteTransformRequest.java | 15 ++ .../elasticsearch/transform/Destination.java | 13 ++ .../transform/GetTransformRequest.java | 16 ++ .../transform/GetTransformStatsRequest.java | 16 ++ .../elasticsearch/transform/Latest.java | 13 ++ .../elasticsearch/transform/Pivot.java | 13 ++ .../transform/PreviewTransformRequest.java | 22 +++ .../transform/PutTransformRequest.java | 24 +++ .../transform/ResetTransformRequest.java | 14 ++ .../ScheduleNowTransformRequest.java | 13 ++ .../transform/SetUpgradeModeRequest.java | 13 ++ .../elasticsearch/transform/Settings.java | 18 +++ .../elasticsearch/transform/Source.java | 14 ++ .../transform/StartTransformRequest.java | 14 ++ .../transform/StopTransformRequest.java | 17 ++ .../transform/TimeRetentionPolicy.java | 13 ++ .../elasticsearch/transform/TimeSync.java | 13 ++ .../transform/UpdateTransformRequest.java | 22 +++ .../transform/UpgradeTransformsRequest.java | 13 ++ .../get_node_stats/TransformNodeStats.java | 12 ++ .../TransformSchedulerStats.java | 13 ++ .../get_transform/TransformSummary.java | 26 +++ .../get_transform_stats/CheckpointStats.java | 17 ++ .../get_transform_stats/Checkpointing.java | 18 +++ .../TransformHealthIssue.java | 17 ++ .../TransformIndexerStats.java | 28 ++++ .../TransformProgress.java | 16 ++ .../get_transform_stats/TransformStats.java | 18 +++ .../TransformStatsHealth.java | 13 ++ .../watcher/AckWatchRequest.java | 13 ++ .../watcher/AcknowledgeState.java | 13 ++ .../clients/elasticsearch/watcher/Action.java | 25 +++ .../elasticsearch/watcher/ActionStatus.java | 15 ++ .../watcher/ActivateWatchRequest.java | 12 ++ .../watcher/ActivationState.java | 13 ++ .../watcher/ActivationStatus.java | 14 ++ .../watcher/ArrayCompareCondition.java | 12 ++ .../watcher/ArrayCompareOpParams.java | 13 ++ .../elasticsearch/watcher/ChainInput.java | 12 ++ .../elasticsearch/watcher/DailySchedule.java | 12 ++ .../watcher/DataEmailAttachment.java | 12 ++ .../watcher/DeactivateWatchRequest.java | 12 ++ .../watcher/DeleteWatchRequest.java | 12 ++ .../elasticsearch/watcher/EmailAction.java | 11 ++ .../elasticsearch/watcher/EmailBody.java | 13 ++ .../elasticsearch/watcher/EmailResult.java | 14 ++ .../watcher/ExecuteWatchRequest.java | 20 +++ .../watcher/ExecutionResult.java | 16 ++ .../watcher/ExecutionResultAction.java | 22 +++ .../watcher/ExecutionResultCondition.java | 14 ++ .../watcher/ExecutionResultInput.java | 14 ++ .../elasticsearch/watcher/ExecutionState.java | 14 ++ .../watcher/ExecutionThreadPool.java | 13 ++ .../watcher/GetWatchRequest.java | 12 ++ .../watcher/GetWatcherSettingsRequest.java | 12 ++ .../elasticsearch/watcher/HourAndMinute.java | 13 ++ .../elasticsearch/watcher/HourlySchedule.java | 12 ++ .../watcher/HttpEmailAttachment.java | 14 ++ .../elasticsearch/watcher/HttpInput.java | 14 ++ .../watcher/HttpInputAuthentication.java | 12 ++ .../watcher/HttpInputBasicAuthentication.java | 13 ++ .../elasticsearch/watcher/HttpInputProxy.java | 13 ++ .../watcher/HttpInputRequestResult.java | 11 ++ .../watcher/HttpInputResponseResult.java | 14 ++ .../elasticsearch/watcher/IndexAction.java | 17 ++ .../elasticsearch/watcher/IndexResult.java | 12 ++ .../watcher/IndexResultSummary.java | 16 ++ .../elasticsearch/watcher/LoggingAction.java | 14 ++ .../elasticsearch/watcher/LoggingResult.java | 12 ++ .../watcher/PagerDutyAction.java | 11 ++ .../watcher/PagerDutyContext.java | 14 ++ .../watcher/PagerDutyEventProxy.java | 13 ++ .../watcher/PagerDutyResult.java | 15 ++ .../watcher/PutWatchRequest.java | 24 +++ .../elasticsearch/watcher/QueryWatch.java | 16 ++ .../watcher/QueryWatchesRequest.java | 16 ++ .../watcher/ReportingEmailAttachment.java | 16 ++ .../watcher/ScheduleTriggerEvent.java | 13 ++ .../watcher/ScriptCondition.java | 15 ++ .../elasticsearch/watcher/SearchInput.java | 14 ++ .../watcher/SearchInputRequestBody.java | 12 ++ .../watcher/SearchInputRequestDefinition.java | 17 ++ .../watcher/SearchTemplateRequestBody.java | 16 ++ .../watcher/SimulatedActions.java | 14 ++ .../elasticsearch/watcher/SlackAction.java | 13 ++ .../watcher/SlackAttachment.java | 26 +++ .../watcher/SlackAttachmentField.java | 14 ++ .../watcher/SlackDynamicAttachment.java | 13 ++ .../elasticsearch/watcher/SlackMessage.java | 17 ++ .../elasticsearch/watcher/SlackResult.java | 13 ++ .../watcher/StartWatcherRequest.java | 12 ++ .../watcher/StopWatcherRequest.java | 12 ++ .../elasticsearch/watcher/ThrottleState.java | 13 ++ .../elasticsearch/watcher/TimeOfMonth.java | 13 ++ .../elasticsearch/watcher/TimeOfWeek.java | 13 ++ .../elasticsearch/watcher/TimeOfYear.java | 14 ++ .../watcher/TriggerEventResult.java | 14 ++ .../watcher/UpdateSettingsRequest.java | 15 ++ .../clients/elasticsearch/watcher/Watch.java | 20 +++ .../elasticsearch/watcher/WatchStatus.java | 17 ++ .../watcher/WatcherStatsRequest.java | 13 ++ .../elasticsearch/watcher/WebhookAction.java | 11 ++ .../elasticsearch/watcher/WebhookResult.java | 13 ++ .../watcher/execute_watch/WatchRecord.java | 22 +++ .../watcher/stats/WatchRecordStats.java | 16 ++ .../watcher/stats/WatcherNodeStats.java | 17 ++ .../elasticsearch/xpack/XpackInfoRequest.java | 14 ++ .../xpack/XpackUsageRequest.java | 12 ++ .../xpack/info/BuildInformation.java | 13 ++ .../elasticsearch/xpack/info/Feature.java | 15 ++ .../elasticsearch/xpack/info/Features.java | 38 +++++ .../xpack/info/MinimalLicenseInformation.java | 16 ++ .../xpack/info/NativeCodeInformation.java | 13 ++ .../elasticsearch/xpack/usage/Analytics.java | 12 ++ .../xpack/usage/AnalyticsStatistics.java | 20 +++ .../elasticsearch/xpack/usage/Archive.java | 12 ++ .../elasticsearch/xpack/usage/Audit.java | 12 ++ .../elasticsearch/xpack/usage/Ccr.java | 13 ++ .../xpack/usage/DataStreams.java | 13 ++ .../xpack/usage/DataTierPhaseStatistics.java | 21 +++ .../elasticsearch/xpack/usage/DataTiers.java | 16 ++ .../elasticsearch/xpack/usage/Datafeed.java | 12 ++ .../elasticsearch/xpack/usage/Eql.java | 13 ++ .../xpack/usage/EqlFeatures.java | 18 +++ .../xpack/usage/EqlFeaturesJoin.java | 16 ++ .../xpack/usage/EqlFeaturesKeys.java | 16 ++ .../xpack/usage/EqlFeaturesPipes.java | 13 ++ .../xpack/usage/EqlFeaturesSequences.java | 17 ++ .../elasticsearch/xpack/usage/Flattened.java | 12 ++ .../xpack/usage/HealthStatistics.java | 12 ++ .../elasticsearch/xpack/usage/Ilm.java | 13 ++ .../xpack/usage/IlmPolicyStatistics.java | 13 ++ .../xpack/usage/Invocations.java | 12 ++ .../elasticsearch/xpack/usage/IpFilter.java | 13 ++ .../elasticsearch/xpack/usage/JobUsage.java | 16 ++ .../xpack/usage/MachineLearning.java | 16 ++ .../elasticsearch/xpack/usage/MlCounter.java | 12 ++ .../xpack/usage/MlDataFrameAnalyticsJobs.java | 15 ++ .../MlDataFrameAnalyticsJobsAnalysis.java | 14 ++ .../usage/MlDataFrameAnalyticsJobsCount.java | 12 ++ .../usage/MlDataFrameAnalyticsJobsMemory.java | 12 ++ .../xpack/usage/MlInference.java | 14 ++ .../xpack/usage/MlInferenceDeployments.java | 15 ++ .../usage/MlInferenceDeploymentsTimeMs.java | 12 ++ .../usage/MlInferenceIngestProcessor.java | 15 ++ .../MlInferenceIngestProcessorCount.java | 14 ++ .../xpack/usage/MlInferenceTrainedModels.java | 16 ++ .../usage/MlInferenceTrainedModelsCount.java | 19 +++ .../xpack/usage/MlJobForecasts.java | 13 ++ .../elasticsearch/xpack/usage/Monitoring.java | 13 ++ .../elasticsearch/xpack/usage/Phase.java | 13 ++ .../elasticsearch/xpack/usage/Phases.java | 16 ++ .../elasticsearch/xpack/usage/Realm.java | 19 +++ .../elasticsearch/xpack/usage/RealmCache.java | 12 ++ .../xpack/usage/RoleMapping.java | 13 ++ .../xpack/usage/RuntimeFieldTypes.java | 12 ++ .../xpack/usage/RuntimeFieldsType.java | 25 +++ .../xpack/usage/SearchableSnapshots.java | 14 ++ .../elasticsearch/xpack/usage/Security.java | 23 +++ .../xpack/usage/SecurityRoles.java | 14 ++ .../xpack/usage/SecurityRolesDls.java | 12 ++ .../usage/SecurityRolesDlsBitSetCache.java | 19 +++ .../xpack/usage/SecurityRolesFile.java | 14 ++ .../xpack/usage/SecurityRolesNative.java | 14 ++ .../elasticsearch/xpack/usage/Slm.java | 13 ++ .../elasticsearch/xpack/usage/Sql.java | 13 ++ .../elasticsearch/xpack/usage/Ssl.java | 13 ++ .../elasticsearch/xpack/usage/Vector.java | 14 ++ .../elasticsearch/xpack/usage/Watcher.java | 14 ++ .../xpack/usage/WatcherActionTotals.java | 13 ++ .../xpack/usage/WatcherActions.java | 12 ++ .../xpack/usage/WatcherWatch.java | 15 ++ .../xpack/usage/WatcherWatchTrigger.java | 13 ++ .../usage/WatcherWatchTriggerSchedule.java | 13 ++ .../xpack/usage/XpackUsageQuery.java | 15 ++ 2319 files changed, 35860 insertions(+), 38 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAISimilarityType.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java index 69f7f70340..21ce5a12a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java @@ -158,6 +158,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer status; + public Builder() { + } + private Builder(BulkIndexByScrollFailure instance) { + this.cause = instance.cause; + this.id = instance.id; + this.index = instance.index; + this.status = instance.status; + + } /** * Required - API name: {@code cause} */ @@ -215,6 +224,12 @@ public BulkIndexByScrollFailure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java index 3bf9906f57..cd946d1241 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java @@ -251,6 +251,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long avgSizeInBytes; + public Builder() { + } + private Builder(BulkStats instance) { + this.totalOperations = instance.totalOperations; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + this.totalSize = instance.totalSize; + this.totalSizeInBytes = instance.totalSizeInBytes; + this.avgTime = instance.avgTime; + this.avgTimeInMillis = instance.avgTimeInMillis; + this.avgSize = instance.avgSize; + this.avgSizeInBytes = instance.avgSizeInBytes; + + } /** * Required - API name: {@code total_operations} */ @@ -355,6 +369,12 @@ public BulkStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CartesianPoint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CartesianPoint.java index 740b72635f..1c5e955292 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CartesianPoint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CartesianPoint.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double y; + public Builder() { + } + private Builder(CartesianPoint instance) { + this.x = instance.x; + this.y = instance.y; + + } /** * Required - API name: {@code x} */ @@ -158,6 +165,12 @@ public CartesianPoint build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChunkRescorer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChunkRescorer.java index ce66bbdaed..5f75510997 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChunkRescorer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChunkRescorer.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ChunkRescorerChunkingSettings chunkingSettings; + public Builder() { + } + private Builder(ChunkRescorer instance) { + this.size = instance.size; + this.chunkingSettings = instance.chunkingSettings; + + } /** * The number of chunks per document to evaluate for reranking. *

                                                                              @@ -188,6 +195,12 @@ public ChunkRescorer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java index ae618f3530..c3fffa049e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterDetails.java @@ -206,6 +206,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List failures; + public Builder() { + } + private Builder(ClusterDetails instance) { + this.status = instance.status; + this.indices = instance.indices; + this.took = instance.took; + this.timedOut = instance.timedOut; + this.shards = instance.shards; + this.failures = instance.failures; + + } /** * Required - API name: {@code status} */ @@ -300,6 +311,12 @@ public ClusterDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java index d9c99e9d75..2c1fda4704 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java @@ -212,6 +212,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map details; + public Builder() { + } + private Builder(ClusterStatistics instance) { + this.skipped = instance.skipped; + this.successful = instance.successful; + this.total = instance.total; + this.running = instance.running; + this.partial = instance.partial; + this.failed = instance.failed; + this.details = instance.details; + + } /** * Required - API name: {@code skipped} */ @@ -307,6 +319,12 @@ public ClusterStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java index 3cb4a3345f..b0284cbea5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map fields; + public Builder() { + } + private Builder(CompletionStats instance) { + this.sizeInBytes = instance.sizeInBytes; + this.size = instance.size; + this.fields = instance.fields; + + } /** * Required - Total amount, in bytes, of memory used for completion across all * shards assigned to selected nodes. @@ -232,6 +240,12 @@ public CompletionStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java index f569afdd21..5f545d1c0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java @@ -154,6 +154,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double right; + public Builder() { + } + private Builder(CoordsGeoBounds instance) { + this.top = instance.top; + this.bottom = instance.bottom; + this.left = instance.left; + this.right = instance.right; + + } /** * Required - API name: {@code top} */ @@ -204,6 +213,12 @@ public CoordsGeoBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java index 59f2f494a3..ab55059f2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DiversifyRetriever.java @@ -260,6 +260,19 @@ public static class Builder extends RetrieverBase.AbstractBuilder @Nullable private Float lambda; + public Builder() { + } + private Builder(DiversifyRetriever instance) { + this.type = instance.type; + this.field = instance.field; + this.retriever = instance.retriever; + this.size = instance.size; + this.rankWindowSize = instance.rankWindowSize; + this.queryVector = instance.queryVector; + this.queryVectorBuilder = instance.queryVectorBuilder; + this.lambda = instance.lambda; + + } /** * Required - The diversification strategy to apply. *

                                                                              @@ -414,6 +427,12 @@ public DiversifyRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java index a2d873d022..ad2aa00f30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java @@ -182,6 +182,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String totalSize; + public Builder() { + } + private Builder(DocStats instance) { + this.count = instance.count; + this.deleted = instance.deleted; + this.totalSizeInBytes = instance.totalSizeInBytes; + this.totalSize = instance.totalSize; + + } /** * Required - Total number of non-deleted documents across all primary shards * assigned to selected nodes. This number is based on documents in Lucene @@ -247,6 +256,12 @@ public DocStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java index 7c4a66b875..433aa0ebeb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java @@ -263,6 +263,20 @@ public static class Builder extends WithJsonObjectBuilderBase private String number; + public Builder() { + } + private Builder(ElasticsearchVersionInfo instance) { + this.buildDate = instance.buildDate; + this.buildFlavor = instance.buildFlavor; + this.buildHash = instance.buildHash; + this.buildSnapshot = instance.buildSnapshot; + this.buildType = instance.buildType; + this.luceneVersion = instance.luceneVersion; + this.minimumIndexCompatibilityVersion = instance.minimumIndexCompatibilityVersion; + this.minimumWireCompatibilityVersion = instance.minimumWireCompatibilityVersion; + this.number = instance.number; + + } /** * Required - The Elasticsearch Git commit's date. *

                                                                              @@ -381,6 +395,12 @@ public ElasticsearchVersionInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java index 8b4f7ece47..90f2d515fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionMinInfo.java @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase private String number; + public Builder() { + } + private Builder(ElasticsearchVersionMinInfo instance) { + this.buildFlavor = instance.buildFlavor; + this.minimumIndexCompatibilityVersion = instance.minimumIndexCompatibilityVersion; + this.minimumWireCompatibilityVersion = instance.minimumWireCompatibilityVersion; + this.number = instance.number; + + } /** * Required - API name: {@code build_flavor} */ @@ -211,6 +220,12 @@ public ElasticsearchVersionMinInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java index 7bd4d85490..c9351e2a42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java @@ -276,6 +276,17 @@ public final Builder metadata(String key, JsonData value) { @Nullable private List suppressed; + public Builder() { + } + private Builder(ErrorCause instance) { + this.type = instance.type; + this.reason = instance.reason; + this.stackTrace = instance.stackTrace; + this.causedBy = instance.causedBy; + this.rootCause = instance.rootCause; + this.suppressed = instance.suppressed; + + } /** * The type of error *

                                                                              @@ -398,6 +409,12 @@ public ErrorCause build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java index 64d6a8e68b..36be6cdd19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer status; + public Builder() { + } + private Builder(ErrorResponse instance) { + this.error = instance.error; + this.status = instance.status; + + } /** * Required - API name: {@code error} */ @@ -168,6 +175,12 @@ public ErrorResponse build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java index 5017561013..2212513c59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long memorySizeInBytes; + public Builder() { + } + private Builder(FieldMemoryUsage instance) { + this.memorySize = instance.memorySize; + this.memorySizeInBytes = instance.memorySizeInBytes; + + } /** * API name: {@code memory_size} */ @@ -165,6 +172,12 @@ public FieldMemoryUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java index af8ab8d1df..fc0ed4f0a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sizeInBytes; + public Builder() { + } + private Builder(FieldSizeUsage instance) { + this.size = instance.size; + this.sizeInBytes = instance.sizeInBytes; + + } /** * API name: {@code size} */ @@ -165,6 +172,12 @@ public FieldSizeUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java index a0b377a027..0c9005849a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java @@ -258,6 +258,18 @@ public final Builder field(String value) { @Nullable private String format; + public Builder() { + } + private Builder(FieldSort instance) { + this.missing = instance.missing; + this.mode = instance.mode; + this.nested = instance.nested; + this.order = instance.order; + this.unmappedType = instance.unmappedType; + this.numericType = instance.numericType; + this.format = instance.format; + + } /** * API name: {@code missing} */ @@ -378,6 +390,12 @@ public FieldSort build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java index 9daf2e9190..aa3764a3c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java @@ -191,6 +191,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private GlobalOrdinalsStats globalOrdinals; + public Builder() { + } + private Builder(FielddataStats instance) { + this.evictions = instance.evictions; + this.memorySize = instance.memorySize; + this.memorySizeInBytes = instance.memorySizeInBytes; + this.fields = instance.fields; + this.globalOrdinals = instance.globalOrdinals; + + } /** * API name: {@code evictions} */ @@ -279,6 +289,12 @@ public FielddataStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java index 86869e4894..6eb63872d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java @@ -160,6 +160,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(FlushStats instance) { + this.periodic = instance.periodic; + this.total = instance.total; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * Required - API name: {@code periodic} */ @@ -217,6 +226,12 @@ public FlushStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java index 88626e8cfc..b2be31d88b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java @@ -285,6 +285,17 @@ public final Builder location(Function implements ObjectBuilder { private String geohash; + public Builder() { + } + private Builder(GeoHashLocation instance) { + this.geohash = instance.geohash; + + } /** * Required - API name: {@code geohash} */ @@ -136,6 +142,12 @@ public GeoHashLocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java index 9c5f892ba2..5204947cb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java @@ -147,6 +147,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List> coordinates; + public Builder() { + } + private Builder(GeoLine instance) { + this.type = instance.type; + this.coordinates = instance.coordinates; + + } /** * Required - Always "LineString" *

                                                                              @@ -199,6 +206,12 @@ public GeoLine build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java index f286105007..bba8341dc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java @@ -262,6 +262,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long total; + public Builder() { + } + private Builder(GetStats instance) { + this.current = instance.current; + this.existsTime = instance.existsTime; + this.existsTimeInMillis = instance.existsTimeInMillis; + this.existsTotal = instance.existsTotal; + this.missingTime = instance.missingTime; + this.missingTimeInMillis = instance.missingTimeInMillis; + this.missingTotal = instance.missingTotal; + this.time = instance.time; + this.timeInMillis = instance.timeInMillis; + this.total = instance.total; + + } /** * Required - API name: {@code current} */ @@ -381,6 +396,12 @@ public GetStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalFieldStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalFieldStats.java index fb643b6091..c35cecdc83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalFieldStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalFieldStats.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long shardMaxValueCount; + public Builder() { + } + private Builder(GlobalOrdinalFieldStats instance) { + this.buildTimeInMillis = instance.buildTimeInMillis; + this.buildTime = instance.buildTime; + this.shardMaxValueCount = instance.shardMaxValueCount; + + } /** * Required - API name: {@code build_time_in_millis} */ @@ -191,6 +199,12 @@ public GlobalOrdinalFieldStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalsStats.java index 4de1e609ab..d287c56750 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GlobalOrdinalsStats.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map fields; + public Builder() { + } + private Builder(GlobalOrdinalsStats instance) { + this.buildTimeInMillis = instance.buildTimeInMillis; + this.buildTime = instance.buildTime; + this.fields = instance.fields; + + } /** * Required - API name: {@code build_time_in_millis} */ @@ -223,6 +231,12 @@ public GlobalOrdinalsStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java index de7012484b..8cb45e94ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndexingStats.java @@ -396,6 +396,28 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Double peakWriteLoad; + public Builder() { + } + private Builder(IndexingStats instance) { + this.indexCurrent = instance.indexCurrent; + this.deleteCurrent = instance.deleteCurrent; + this.deleteTime = instance.deleteTime; + this.deleteTimeInMillis = instance.deleteTimeInMillis; + this.deleteTotal = instance.deleteTotal; + this.isThrottled = instance.isThrottled; + this.noopUpdateTotal = instance.noopUpdateTotal; + this.throttleTime = instance.throttleTime; + this.throttleTimeInMillis = instance.throttleTimeInMillis; + this.indexTime = instance.indexTime; + this.indexTimeInMillis = instance.indexTimeInMillis; + this.indexTotal = instance.indexTotal; + this.indexFailed = instance.indexFailed; + this.types = instance.types; + this.writeLoad = instance.writeLoad; + this.recentWriteLoad = instance.recentWriteLoad; + this.peakWriteLoad = instance.peakWriteLoad; + + } /** * Required - API name: {@code index_current} */ @@ -592,6 +614,12 @@ public IndexingStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java index 1bb5d1a6b9..87716f5e18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/IndicesOptions.java @@ -198,6 +198,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean ignoreThrottled; + public Builder() { + } + private Builder(IndicesOptions instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.ignoreThrottled = instance.ignoreThrottled; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. @@ -280,6 +289,12 @@ public IndicesOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java index 8fa96c354e..26b38cff4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java @@ -277,6 +277,17 @@ public final Builder metadata(String key, JsonData value) { @Nullable private JsonpSerializer tDocumentSerializer; + public Builder() { + } + private Builder(InlineGet instance) { + this.fields = instance.fields; + this.found = instance.found; + this.seqNo = instance.seqNo; + this.primaryTerm = instance.primaryTerm; + this.routing = instance.routing; + this.source = instance.source; + + } /** * API name: {@code fields} *

                                                                              @@ -376,6 +387,12 @@ public InlineGet build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InnerRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InnerRetriever.java index 494c55d969..40c4c7067d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InnerRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InnerRetriever.java @@ -140,6 +140,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ScoreNormalizer normalizer; + public Builder() { + } + private Builder(InnerRetriever instance) { + this.retriever = instance.retriever; + this.weight = instance.weight; + this.normalizer = instance.normalizer; + + } /** * Required - API name: {@code retriever} */ @@ -197,6 +205,12 @@ public InnerRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index 250637b8ea..940afd953c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -296,6 +296,20 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private RescoreVector rescoreVector; + public Builder() { + } + private Builder(KnnQuery instance) { + this.field = instance.field; + this.queryVector = instance.queryVector; + this.queryVectorBuilder = instance.queryVectorBuilder; + this.numCandidates = instance.numCandidates; + this.visitPercentage = instance.visitPercentage; + this.k = instance.k; + this.filter = instance.filter; + this.similarity = instance.similarity; + this.rescoreVector = instance.rescoreVector; + + } /** * Required - The name of the vector field to search against *

                                                                              @@ -491,6 +505,12 @@ public KnnQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java index f39b543dd6..5dfb7d454a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnRetriever.java @@ -259,6 +259,19 @@ public static class Builder extends RetrieverBase.AbstractBuilder imple @Nullable private RescoreVector rescoreVector; + public Builder() { + } + private Builder(KnnRetriever instance) { + this.field = instance.field; + this.queryVector = instance.queryVector; + this.queryVectorBuilder = instance.queryVectorBuilder; + this.k = instance.k; + this.numCandidates = instance.numCandidates; + this.visitPercentage = instance.visitPercentage; + this.similarity = instance.similarity; + this.rescoreVector = instance.rescoreVector; + + } /** * Required - The name of the vector field to search against. *

                                                                              @@ -405,6 +418,12 @@ public KnnRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java index ec096102d1..c799064526 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnSearch.java @@ -347,6 +347,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RescoreVector rescoreVector; + public Builder() { + } + private Builder(KnnSearch instance) { + this.field = instance.field; + this.queryVector = instance.queryVector; + this.queryVectorBuilder = instance.queryVectorBuilder; + this.k = instance.k; + this.numCandidates = instance.numCandidates; + this.visitPercentage = instance.visitPercentage; + this.boost = instance.boost; + this.filter = instance.filter; + this.similarity = instance.similarity; + this.innerHits = instance.innerHits; + this.rescoreVector = instance.rescoreVector; + + } /** * Required - The name of the vector field to search against *

                                                                              @@ -571,6 +587,12 @@ public KnnSearch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java index 2506a9b838..22e89aa794 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LatLonGeoLocation.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double lon; + public Builder() { + } + private Builder(LatLonGeoLocation instance) { + this.lat = instance.lat; + this.lon = instance.lon; + + } /** * Required - Latitude *

                                                                              @@ -166,6 +173,12 @@ public LatLonGeoLocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LinearRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LinearRetriever.java index b4cf0541fb..d729ff4a36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LinearRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/LinearRetriever.java @@ -200,6 +200,16 @@ public static class Builder extends RetrieverBase.AbstractBuilder @Nullable private ScoreNormalizer normalizer; + public Builder() { + } + private Builder(LinearRetriever instance) { + this.retrievers = instance.retrievers; + this.rankWindowSize = instance.rankWindowSize; + this.query = instance.query; + this.fields = instance.fields; + this.normalizer = instance.normalizer; + + } /** * Inner retrievers. *

                                                                              @@ -297,6 +307,12 @@ public LinearRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java index c5bb85a697..422b84de86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MergesStats.java @@ -370,6 +370,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(MergesStats instance) { + this.current = instance.current; + this.currentDocs = instance.currentDocs; + this.currentSize = instance.currentSize; + this.currentSizeInBytes = instance.currentSizeInBytes; + this.total = instance.total; + this.totalAutoThrottle = instance.totalAutoThrottle; + this.totalAutoThrottleInBytes = instance.totalAutoThrottleInBytes; + this.totalDocs = instance.totalDocs; + this.totalSize = instance.totalSize; + this.totalSizeInBytes = instance.totalSizeInBytes; + this.totalStoppedTime = instance.totalStoppedTime; + this.totalStoppedTimeInMillis = instance.totalStoppedTimeInMillis; + this.totalThrottledTime = instance.totalThrottledTime; + this.totalThrottledTimeInMillis = instance.totalThrottledTimeInMillis; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * Required - API name: {@code current} */ @@ -537,6 +558,12 @@ public MergesStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java index 6167946f57..1e8f75a3b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NestedSortValue.java @@ -173,6 +173,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String path; + public Builder() { + } + private Builder(NestedSortValue instance) { + this.filter = instance.filter; + this.maxChildren = instance.maxChildren; + this.nested = instance.nested; + this.path = instance.path; + + } /** * API name: {@code filter} */ @@ -245,6 +254,12 @@ public NestedSortValue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java index 8b0e711dbb..c797ffe05c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String transportAddress; + public Builder() { + } + private Builder(NodeAttributes instance) { + this.attributes = instance.attributes; + this.ephemeralId = instance.ephemeralId; + this.id = instance.id; + this.name = instance.name; + this.transportAddress = instance.transportAddress; + + } /** * Required - Lists node attributes. *

                                                                              @@ -276,6 +286,12 @@ public NodeAttributes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java index 5572444166..e0e9e51db0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeShard.java @@ -288,6 +288,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RelocationFailureInfo relocationFailureInfo; + public Builder() { + } + private Builder(NodeShard instance) { + this.state = instance.state; + this.primary = instance.primary; + this.node = instance.node; + this.shard = instance.shard; + this.index = instance.index; + this.allocationId = instance.allocationId; + this.recoverySource = instance.recoverySource; + this.unassignedInfo = instance.unassignedInfo; + this.relocatingNode = instance.relocatingNode; + this.relocationFailureInfo = instance.relocationFailureInfo; + + } /** * Required - API name: {@code state} */ @@ -426,6 +441,12 @@ public NodeShard build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java index 75eb14bb76..5eee112301 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java @@ -173,6 +173,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer failed; + public Builder() { + } + private Builder(NodeStatistics instance) { + this.failures = instance.failures; + this.total = instance.total; + this.successful = instance.successful; + this.failed = instance.failed; + + } /** * API name: {@code failures} *

                                                                              @@ -252,6 +261,12 @@ public NodeStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PinnedRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PinnedRetriever.java index e792585364..edaa45242f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PinnedRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PinnedRetriever.java @@ -176,6 +176,15 @@ public static class Builder extends RetrieverBase.AbstractBuilder @Nullable private Integer rankWindowSize; + public Builder() { + } + private Builder(PinnedRetriever instance) { + this.retriever = instance.retriever; + this.ids = instance.ids; + this.docs = instance.docs; + this.rankWindowSize = instance.rankWindowSize; + + } /** * Required - Inner retriever. *

                                                                              @@ -280,6 +289,12 @@ public PinnedRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java index 723a7dac6e..27f5e1d058 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/PluginStats.java @@ -241,6 +241,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean licensed; + public Builder() { + } + private Builder(PluginStats instance) { + this.classname = instance.classname; + this.description = instance.description; + this.elasticsearchVersion = instance.elasticsearchVersion; + this.extendedPlugins = instance.extendedPlugins; + this.hasNativeController = instance.hasNativeController; + this.javaVersion = instance.javaVersion; + this.name = instance.name; + this.version = instance.version; + this.licensed = instance.licensed; + + } /** * Required - API name: {@code classname} */ @@ -343,6 +357,12 @@ public PluginStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java index d1a541d69f..d4603df8f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java @@ -245,6 +245,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalCount; + public Builder() { + } + private Builder(QueryCacheStats instance) { + this.cacheCount = instance.cacheCount; + this.cacheSize = instance.cacheSize; + this.evictions = instance.evictions; + this.hitCount = instance.hitCount; + this.memorySize = instance.memorySize; + this.memorySizeInBytes = instance.memorySizeInBytes; + this.missCount = instance.missCount; + this.totalCount = instance.totalCount; + + } /** * Required - Total number of entries added to the query cache across all shards * assigned to selected nodes. This number includes current and evicted entries. @@ -351,6 +364,12 @@ public QueryCacheStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetriever.java index 8ffd1909f0..80a6400b5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetriever.java @@ -205,6 +205,16 @@ public static class Builder extends RetrieverBase.AbstractBuilder imple @Nullable private List fields; + public Builder() { + } + private Builder(RRFRetriever instance) { + this.retrievers = instance.retrievers; + this.rankConstant = instance.rankConstant; + this.rankWindowSize = instance.rankWindowSize; + this.query = instance.query; + this.fields = instance.fields; + + } /** * Required - A list of child retrievers to specify which sets of returned top * documents will have the RRF formula applied to them. Each retriever can @@ -313,6 +323,12 @@ public RRFRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java index d9dbe4ad07..facdc4f27e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RRFRetrieverComponent.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float weight; + public Builder() { + } + private Builder(RRFRetrieverComponent instance) { + this.retriever = instance.retriever; + this.weight = instance.weight; + + } /** * Required - The nested retriever configuration. *

                                                                              @@ -199,6 +206,12 @@ public RRFRetrieverComponent build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java index 78f4d20f0a..721f08a4e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RecoveryStats.java @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long throttleTimeInMillis; + public Builder() { + } + private Builder(RecoveryStats instance) { + this.currentAsSource = instance.currentAsSource; + this.currentAsTarget = instance.currentAsTarget; + this.throttleTime = instance.throttleTime; + this.throttleTimeInMillis = instance.throttleTimeInMillis; + + } /** * Required - API name: {@code current_as_source} */ @@ -218,6 +227,12 @@ public RecoveryStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java index a1ec76d74a..740c554694 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RefreshStats.java @@ -191,6 +191,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(RefreshStats instance) { + this.externalTotal = instance.externalTotal; + this.externalTotalTimeInMillis = instance.externalTotalTimeInMillis; + this.listeners = instance.listeners; + this.total = instance.total; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * Required - API name: {@code external_total} */ @@ -264,6 +275,12 @@ public RefreshStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java index b0ad752efb..e3b704a8e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ReindexStatus.java @@ -391,6 +391,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String cancelled; + public Builder() { + } + private Builder(ReindexStatus instance) { + this.sliceId = instance.sliceId; + this.batches = instance.batches; + this.created = instance.created; + this.deleted = instance.deleted; + this.noops = instance.noops; + this.requestsPerSecond = instance.requestsPerSecond; + this.retries = instance.retries; + this.throttled = instance.throttled; + this.throttledMillis = instance.throttledMillis; + this.throttledUntil = instance.throttledUntil; + this.throttledUntilMillis = instance.throttledUntilMillis; + this.total = instance.total; + this.updated = instance.updated; + this.versionConflicts = instance.versionConflicts; + this.cancelled = instance.cancelled; + + } /** * The slice ID *

                                                                              @@ -590,6 +610,12 @@ public ReindexStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java index 7a6f5b08b2..50020be624 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RelocationFailureInfo.java @@ -111,6 +111,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Integer failedAttempts; + public Builder() { + } + private Builder(RelocationFailureInfo instance) { + this.failedAttempts = instance.failedAttempts; + + } /** * Required - API name: {@code failed_attempts} */ @@ -137,6 +143,12 @@ public RelocationFailureInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java index 582422d170..c469eb2bf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestCacheStats.java @@ -176,6 +176,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long missCount; + public Builder() { + } + private Builder(RequestCacheStats instance) { + this.evictions = instance.evictions; + this.hitCount = instance.hitCount; + this.memorySize = instance.memorySize; + this.memorySizeInBytes = instance.memorySizeInBytes; + this.missCount = instance.missCount; + + } /** * Required - API name: {@code evictions} */ @@ -234,6 +244,12 @@ public RequestCacheStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescoreVector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescoreVector.java index f15068f505..93cb01bc21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescoreVector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescoreVector.java @@ -112,6 +112,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Float oversample; + public Builder() { + } + private Builder(RescoreVector instance) { + this.oversample = instance.oversample; + + } /** * Required - Applies the specified oversample factor to k on the approximate * kNN search @@ -141,6 +147,12 @@ public RescoreVector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescorerRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescorerRetriever.java index 92fca56737..f469a2d85d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescorerRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RescorerRetriever.java @@ -132,6 +132,13 @@ public static class Builder extends RetrieverBase.AbstractBuilder private List rescore; + public Builder() { + } + private Builder(RescorerRetriever instance) { + this.retriever = instance.retriever; + this.rescore = instance.rescore; + + } /** * Required - Inner retriever. *

                                                                              @@ -221,6 +228,12 @@ public RescorerRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java index 495b5e56a7..55bca3d771 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Retries.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long search; + public Builder() { + } + private Builder(Retries instance) { + this.bulk = instance.bulk; + this.search = instance.search; + + } /** * Required - The number of bulk actions retried. *

                                                                              @@ -166,6 +173,12 @@ public Retries build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java index 16fcd137cb..76df57fcd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java @@ -147,6 +147,13 @@ public static class Builder extends RankBase.AbstractBuilder implements @Nullable private Long rankWindowSize; + public Builder() { + } + private Builder(RrfRank instance) { + this.rankConstant = instance.rankConstant; + this.rankWindowSize = instance.rankWindowSize; + + } /** * How much influence documents in individual result sets per query have over * the final ranked result set @@ -186,6 +193,12 @@ public RrfRank build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RuleRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RuleRetriever.java index df6e8046db..1e198f3e49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RuleRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RuleRetriever.java @@ -174,6 +174,15 @@ public static class Builder extends RetrieverBase.AbstractBuilder imple @Nullable private Integer rankWindowSize; + public Builder() { + } + private Builder(RuleRetriever instance) { + this.rulesetIds = instance.rulesetIds; + this.matchCriteria = instance.matchCriteria; + this.retriever = instance.retriever; + this.rankWindowSize = instance.rankWindowSize; + + } /** * Required - The ruleset IDs containing the rules this retriever is evaluating * against. @@ -268,6 +277,12 @@ public RuleRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java index d5f8567b92..ff2c9aaedc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java @@ -121,6 +121,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SortOrder order; + public Builder() { + } + private Builder(ScoreSort instance) { + this.order = instance.order; + + } /** * API name: {@code order} */ @@ -147,6 +153,12 @@ public ScoreSort build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java index ab6635864a..382ca63fd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java @@ -224,6 +224,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map options; + public Builder() { + } + private Builder(Script instance) { + this.source = instance.source; + this.id = instance.id; + this.params = instance.params; + this.lang = instance.lang; + this.options = instance.options; + + } /** * The script source. *

                                                                              @@ -337,6 +347,12 @@ public Script build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java index 5473d38b14..666e25796a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptField.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean ignoreFailure; + public Builder() { + } + private Builder(ScriptField instance) { + this.script = instance.script; + this.ignoreFailure = instance.ignoreFailure; + + } /** * Required - API name: {@code script} */ @@ -172,6 +179,12 @@ public ScriptField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java index a83149ef20..2ed770bd8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptSort.java @@ -195,6 +195,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private NestedSortValue nested; + public Builder() { + } + private Builder(ScriptSort instance) { + this.order = instance.order; + this.script = instance.script; + this.type = instance.type; + this.mode = instance.mode; + this.nested = instance.nested; + + } /** * API name: {@code order} */ @@ -267,6 +277,12 @@ public ScriptSort build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java index 243e8392cb..cad5e080ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScriptTransform.java @@ -190,6 +190,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String id; + public Builder() { + } + private Builder(ScriptTransform instance) { + this.lang = instance.lang; + this.params = instance.params; + this.source = instance.source; + this.id = instance.id; + + } /** * API name: {@code lang} */ @@ -259,6 +268,12 @@ public ScriptTransform build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java index 1ba442e69b..31abd3d056 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchStats.java @@ -425,6 +425,30 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map groups; + public Builder() { + } + private Builder(SearchStats instance) { + this.fetchCurrent = instance.fetchCurrent; + this.fetchTime = instance.fetchTime; + this.fetchTimeInMillis = instance.fetchTimeInMillis; + this.fetchTotal = instance.fetchTotal; + this.openContexts = instance.openContexts; + this.queryCurrent = instance.queryCurrent; + this.queryTime = instance.queryTime; + this.queryTimeInMillis = instance.queryTimeInMillis; + this.queryTotal = instance.queryTotal; + this.scrollCurrent = instance.scrollCurrent; + this.scrollTime = instance.scrollTime; + this.scrollTimeInMillis = instance.scrollTimeInMillis; + this.scrollTotal = instance.scrollTotal; + this.suggestCurrent = instance.suggestCurrent; + this.suggestTime = instance.suggestTime; + this.suggestTimeInMillis = instance.suggestTimeInMillis; + this.suggestTotal = instance.suggestTotal; + this.recentSearchLoad = instance.recentSearchLoad; + this.groups = instance.groups; + + } /** * Required - API name: {@code fetch_current} */ @@ -644,6 +668,12 @@ public SearchStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java index 0e357d8479..b19860b11a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SearchTransform.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Time timeout; + public Builder() { + } + private Builder(SearchTransform instance) { + this.request = instance.request; + this.timeout = instance.timeout; + + } /** * Required - API name: {@code request} */ @@ -182,6 +189,12 @@ public SearchTransform build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java index 0ba1deb6a0..241430fad6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java @@ -582,6 +582,34 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long versionMapMemoryInBytes; + public Builder() { + } + private Builder(SegmentsStats instance) { + this.count = instance.count; + this.docValuesMemory = instance.docValuesMemory; + this.docValuesMemoryInBytes = instance.docValuesMemoryInBytes; + this.fileSizes = instance.fileSizes; + this.fixedBitSet = instance.fixedBitSet; + this.fixedBitSetMemoryInBytes = instance.fixedBitSetMemoryInBytes; + this.indexWriterMemory = instance.indexWriterMemory; + this.indexWriterMemoryInBytes = instance.indexWriterMemoryInBytes; + this.maxUnsafeAutoIdTimestamp = instance.maxUnsafeAutoIdTimestamp; + this.memory = instance.memory; + this.memoryInBytes = instance.memoryInBytes; + this.normsMemory = instance.normsMemory; + this.normsMemoryInBytes = instance.normsMemoryInBytes; + this.pointsMemory = instance.pointsMemory; + this.pointsMemoryInBytes = instance.pointsMemoryInBytes; + this.storedFieldsMemoryInBytes = instance.storedFieldsMemoryInBytes; + this.storedFieldsMemory = instance.storedFieldsMemory; + this.termsMemoryInBytes = instance.termsMemoryInBytes; + this.termsMemory = instance.termsMemory; + this.termVectorsMemory = instance.termVectorsMemory; + this.termVectorsMemoryInBytes = instance.termVectorsMemoryInBytes; + this.versionMapMemory = instance.versionMapMemory; + this.versionMapMemoryInBytes = instance.versionMapMemoryInBytes; + + } /** * Required - Total number of segments across all shards assigned to selected * nodes. @@ -882,6 +910,12 @@ public SegmentsStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java index 7bedf6ad21..d68072e7e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardFailure.java @@ -213,6 +213,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean primary; + public Builder() { + } + private Builder(ShardFailure instance) { + this.index = instance.index; + this.node = instance.node; + this.reason = instance.reason; + this.shard = instance.shard; + this.status = instance.status; + this.primary = instance.primary; + + } /** * API name: {@code index} */ @@ -286,6 +297,12 @@ public ShardFailure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java index 59ab1ff628..dcb7525bc5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ShardStatistics.java @@ -192,6 +192,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Number skipped; + public Builder() { + } + private Builder(ShardStatistics instance) { + this.failed = instance.failed; + this.successful = instance.successful; + this.total = instance.total; + this.failures = instance.failures; + this.skipped = instance.skipped; + + } /** * Required - The number of shards the operation or search attempted to run on * but failed. @@ -278,6 +288,12 @@ public ShardStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java index 749e24bff8..4af559126c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SlicedScroll.java @@ -146,6 +146,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer max; + public Builder() { + } + private Builder(SlicedScroll instance) { + this.field = instance.field; + this.id = instance.id; + this.max = instance.max; + + } /** * API name: {@code field} */ @@ -188,6 +196,12 @@ public SlicedScroll build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SpecifiedDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SpecifiedDocument.java index 84f98d5127..2574926958 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SpecifiedDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SpecifiedDocument.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String id; + public Builder() { + } + private Builder(SpecifiedDocument instance) { + this.index = instance.index; + this.id = instance.id; + + } /** * API name: {@code index} */ @@ -164,6 +171,12 @@ public SpecifiedDocument build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StandardRetriever.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StandardRetriever.java index 2c7dae95f8..1fcfd84145 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StandardRetriever.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StandardRetriever.java @@ -213,6 +213,16 @@ public static class Builder extends RetrieverBase.AbstractBuilder @Nullable private FieldCollapse collapse; + public Builder() { + } + private Builder(StandardRetriever instance) { + this.query = instance.query; + this.searchAfter = instance.searchAfter; + this.terminateAfter = instance.terminateAfter; + this.sort = instance.sort; + this.collapse = instance.collapse; + + } /** * Defines a query to retrieve a set of top documents. *

                                                                              @@ -421,6 +431,12 @@ public StandardRetriever build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java index 45c2105c48..b6fa0bf3ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java @@ -226,6 +226,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalDataSetSizeInBytes; + public Builder() { + } + private Builder(StoreStats instance) { + this.size = instance.size; + this.sizeInBytes = instance.sizeInBytes; + this.reserved = instance.reserved; + this.reservedInBytes = instance.reservedInBytes; + this.totalDataSetSize = instance.totalDataSetSize; + this.totalDataSetSizeInBytes = instance.totalDataSetSizeInBytes; + + } /** * Total size of all shards assigned to selected nodes. *

                                                                              @@ -311,6 +322,12 @@ public StoreStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java index 221079b8c7..010046a56f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoredScript.java @@ -156,6 +156,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ScriptSource source; + public Builder() { + } + private Builder(StoredScript instance) { + this.lang = instance.lang; + this.options = instance.options; + this.source = instance.source; + + } /** * Required - The language the script is written in. For search templates, use * mustache. @@ -237,6 +245,12 @@ public StoredScript build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java index cbcb3c3f4f..ed865cabbf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TaskFailure.java @@ -156,6 +156,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ErrorCause reason; + public Builder() { + } + private Builder(TaskFailure instance) { + this.taskId = instance.taskId; + this.nodeId = instance.nodeId; + this.status = instance.status; + this.reason = instance.reason; + + } /** * Required - API name: {@code task_id} */ @@ -213,6 +222,12 @@ public TaskFailure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java index 12d10d182d..6dbaa8b969 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String modelText; + public Builder() { + } + private Builder(TextEmbedding instance) { + this.modelId = instance.modelId; + this.modelText = instance.modelText; + + } /** * Model ID is required for all dense_vector fields but may be inferred for * semantic_text fields @@ -178,6 +185,12 @@ public TextEmbedding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextSimilarityReranker.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextSimilarityReranker.java index dbff5167f0..1b256d2904 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextSimilarityReranker.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextSimilarityReranker.java @@ -213,6 +213,17 @@ public static class Builder extends RetrieverBase.AbstractBuilder @Nullable private ChunkRescorer chunkRescorer; + public Builder() { + } + private Builder(TextSimilarityReranker instance) { + this.retriever = instance.retriever; + this.rankWindowSize = instance.rankWindowSize; + this.inferenceId = instance.inferenceId; + this.inferenceText = instance.inferenceText; + this.field = instance.field; + this.chunkRescorer = instance.chunkRescorer; + + } /** * Required - The nested retriever which will produce the first-level results, * that will later be used for reranking. @@ -325,6 +336,12 @@ public TextSimilarityReranker build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TokenPruningConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TokenPruningConfig.java index da3455cf19..900b22399e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TokenPruningConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TokenPruningConfig.java @@ -168,6 +168,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean onlyScorePrunedTokens; + public Builder() { + } + private Builder(TokenPruningConfig instance) { + this.tokensFreqRatioThreshold = instance.tokensFreqRatioThreshold; + this.tokensWeightThreshold = instance.tokensWeightThreshold; + this.onlyScorePrunedTokens = instance.onlyScorePrunedTokens; + + } /** * Tokens whose frequency is more than this threshold times the average * frequency of all tokens in the specified field are considered outliers and @@ -219,6 +227,12 @@ public TokenPruningConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java index ebbd8e63b6..cb01047673 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopLeftBottomRightGeoBounds.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private GeoLocation bottomRight; + public Builder() { + } + private Builder(TopLeftBottomRightGeoBounds instance) { + this.topLeft = instance.topLeft; + this.bottomRight = instance.bottomRight; + + } /** * Required - API name: {@code top_left} */ @@ -175,6 +182,12 @@ public TopLeftBottomRightGeoBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java index 60c2463c27..4f64f20da2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TopRightBottomLeftGeoBounds.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private GeoLocation bottomLeft; + public Builder() { + } + private Builder(TopRightBottomLeftGeoBounds instance) { + this.topRight = instance.topRight; + this.bottomLeft = instance.bottomLeft; + + } /** * Required - API name: {@code top_right} */ @@ -175,6 +182,12 @@ public TopRightBottomLeftGeoBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java index edc216fb27..32df48ffbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TranslogStats.java @@ -215,6 +215,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long uncommittedSizeInBytes; + public Builder() { + } + private Builder(TranslogStats instance) { + this.earliestLastModifiedAge = instance.earliestLastModifiedAge; + this.operations = instance.operations; + this.size = instance.size; + this.sizeInBytes = instance.sizeInBytes; + this.uncommittedOperations = instance.uncommittedOperations; + this.uncommittedSize = instance.uncommittedSize; + this.uncommittedSizeInBytes = instance.uncommittedSizeInBytes; + + } /** * Required - API name: {@code earliest_last_modified_age} */ @@ -289,6 +301,12 @@ public TranslogStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java index 9ff5f73af0..07cc297ae4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WarmerStats.java @@ -160,6 +160,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(WarmerStats instance) { + this.current = instance.current; + this.total = instance.total; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * Required - API name: {@code current} */ @@ -217,6 +226,12 @@ public WarmerStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java index 7992ed7069..43dd781d78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WktGeoBounds.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String wkt; + public Builder() { + } + private Builder(WktGeoBounds instance) { + this.wkt = instance.wkt; + + } /** * Required - API name: {@code wkt} */ @@ -136,6 +142,12 @@ public WktGeoBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java index 75c73a4e0d..1ddbd267c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregate.java @@ -83,6 +83,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(AdjacencyMatrixAggregate instance) { + + } @Override protected Builder self() { return this; @@ -102,6 +107,12 @@ public AdjacencyMatrixAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java index a175cf9793..ed0f920a8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixAggregation.java @@ -157,6 +157,13 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -232,6 +239,12 @@ public AdjacencyMatrixAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java index 0a95047d50..b15caefa3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AdjacencyMatrixBucket.java @@ -98,6 +98,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private String key; + public Builder() { + } + private Builder(AdjacencyMatrixBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public AdjacencyMatrixBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java index 0a1ff795e3..cbff2f5725 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationRange.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Double to; + public Builder() { + } + private Builder(AggregationRange instance) { + this.from = instance.from; + this.key = instance.key; + this.to = instance.to; + + } /** * Start of the range (inclusive). *

                                                                              @@ -211,6 +219,12 @@ public AggregationRange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java index be77e44937..4bdffef9d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ArrayPercentilesItem.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String valueAsString; + public Builder() { + } + private Builder(ArrayPercentilesItem instance) { + this.key = instance.key; + this.value = instance.value; + this.valueAsString = instance.valueAsString; + + } /** * Required - API name: {@code key} */ @@ -197,6 +205,12 @@ public ArrayPercentilesItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java index 3d9e1bf02b..5e2925151b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregate.java @@ -108,6 +108,12 @@ public static class Builder extends MultiBucketAggregateBase.AbstractBuilder { private Time interval; + public Builder() { + } + private Builder(AutoDateHistogramAggregate instance) { + this.interval = instance.interval; + + } /** * Required - API name: {@code interval} */ @@ -142,6 +148,12 @@ public AutoDateHistogramAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java index dee2d20f15..b2ecaba4f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AutoDateHistogramAggregation.java @@ -315,6 +315,20 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -443,6 +457,12 @@ public AutoDateHistogramAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java index 4c122cb80d..ef6c6041df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends FormatMetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(AverageAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public AverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java index f03ecb6ac2..9617dfac49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AverageBucketAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(AverageBucketAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public AverageBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java index 90c2b94704..7d06696092 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AvgAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(AvgAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public AvgAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java index 507b0fefd9..58315b5ed9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxPlotAggregate.java @@ -338,6 +338,25 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private String upperAsString; + public Builder() { + } + private Builder(BoxPlotAggregate instance) { + this.min = instance.min; + this.max = instance.max; + this.q1 = instance.q1; + this.q2 = instance.q2; + this.q3 = instance.q3; + this.lower = instance.lower; + this.upper = instance.upper; + this.minAsString = instance.minAsString; + this.maxAsString = instance.maxAsString; + this.q1AsString = instance.q1AsString; + this.q2AsString = instance.q2AsString; + this.q3AsString = instance.q3AsString; + this.lowerAsString = instance.lowerAsString; + this.upperAsString = instance.upperAsString; + + } /** * Required - API name: {@code min} */ @@ -468,6 +487,12 @@ public BoxPlotAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java index 6a0c49e94b..98f24d40fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BoxplotAggregation.java @@ -140,6 +140,13 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder20 * compression, enabling control of memory usage and @@ -184,6 +191,12 @@ public BoxplotAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java index 656e63e80c..467fe9550a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationAggregation.java @@ -109,6 +109,12 @@ public static class Builder extends BucketPathAggregation.AbstractBuilder { private BucketCorrelationFunction function; + public Builder() { + } + private Builder(BucketCorrelationAggregation instance) { + this.function = instance.function; + + } /** * Required - The correlation function to execute. *

                                                                              @@ -147,6 +153,12 @@ public BucketCorrelationAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java index 63914d9825..400044bc8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunction.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private BucketCorrelationFunctionCountCorrelation countCorrelation; + public Builder() { + } + private Builder(BucketCorrelationFunction instance) { + this.countCorrelation = instance.countCorrelation; + + } /** * Required - The configuration to calculate a count correlation. This function * is designed for determining the correlation of a term value and a given @@ -158,6 +164,12 @@ public BucketCorrelationFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java index e01217af72..6bc81eea3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelation.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private BucketCorrelationFunctionCountCorrelationIndicator indicator; + public Builder() { + } + private Builder(BucketCorrelationFunctionCountCorrelation instance) { + this.indicator = instance.indicator; + + } /** * Required - The indicator with which to correlate the configured * bucket_path values. @@ -156,6 +162,12 @@ public BucketCorrelationFunctionCountCorrelation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java index c4dbab77f4..7e4641e25d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketCorrelationFunctionCountCorrelationIndicator.java @@ -175,6 +175,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List fractions; + public Builder() { + } + private Builder(BucketCorrelationFunctionCountCorrelationIndicator instance) { + this.docCount = instance.docCount; + this.expectations = instance.expectations; + this.fractions = instance.fractions; + + } /** * Required - The total number of documents that initially created the * expectations. It’s required to be greater than or equal to the sum of all @@ -262,6 +270,12 @@ public BucketCorrelationFunctionCountCorrelationIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java index 5b2d3d29dc..7fe951d0c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketKsAggregation.java @@ -192,6 +192,14 @@ public static class Builder extends BucketPathAggregation.AbstractBuilder { private List keys; + public Builder() { + } + private Builder(BucketMetricValueAggregate instance) { + this.keys = instance.keys; + + } /** * Required - API name: {@code keys} *

                                                                              @@ -153,6 +159,12 @@ public BucketMetricValueAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java index 82ece1fa08..e878a2c6e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketScriptAggregation.java @@ -113,6 +113,12 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -150,6 +156,12 @@ public BucketScriptAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java index 9b2896be1c..3911507b6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSelectorAggregation.java @@ -113,6 +113,12 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -150,6 +156,12 @@ public BucketSelectorAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java index b8d1d7bff3..ced76df02b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/BucketSortAggregation.java @@ -199,6 +199,15 @@ public static class Builder extends AggregationBase.AbstractBuilder @Nullable private List sort; + public Builder() { + } + private Builder(BucketSortAggregation instance) { + this.from = instance.from; + this.gapPolicy = instance.gapPolicy; + this.size = instance.size; + this.sort = instance.sort; + + } /** * Buckets in positions prior to from will be truncated. *

                                                                              @@ -283,6 +292,12 @@ public BucketSortAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java index f4bcdb905f..7bb52a5ae6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregate.java @@ -115,6 +115,12 @@ public static class Builder extends AggregateBase.AbstractBuilder ObjectBuilder { private Long value; + public Builder() { + } + private Builder(CardinalityAggregate instance) { + this.value = instance.value; + + } /** * Required - API name: {@code value} */ @@ -141,6 +147,12 @@ public CardinalityAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java index 93dbffd56f..3586f7eb76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CardinalityAggregation.java @@ -169,6 +169,14 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder @Nullable private TopLeftBottomRightGeoBounds bounds; + public Builder() { + } + private Builder(CartesianBoundsAggregate instance) { + this.bounds = instance.bounds; + + } /** * API name: {@code bounds} */ @@ -145,6 +151,12 @@ public CartesianBoundsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianBoundsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianBoundsAggregation.java index c65f96a277..c3cc3945d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianBoundsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianBoundsAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends MetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CartesianBoundsAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public CartesianBoundsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregate.java index a0a8390bb9..3b72142e24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregate.java @@ -128,6 +128,13 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private CartesianPoint location; + public Builder() { + } + private Builder(CartesianCentroidAggregate instance) { + this.count = instance.count; + this.location = instance.location; + + } /** * Required - API name: {@code count} */ @@ -169,6 +176,12 @@ public CartesianCentroidAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregation.java index 7ab3ab1c34..6b1affbbcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CartesianCentroidAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends MetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CartesianCentroidAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public CartesianCentroidAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java index efd85b71e8..2a4b690a61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CategorizeTextAggregation.java @@ -354,6 +354,21 @@ public static class Builder extends AggregationBase.AbstractBuilder @Nullable private Integer shardMinDocCount; + public Builder() { + } + private Builder(CategorizeTextAggregation instance) { + this.field = instance.field; + this.maxUniqueTokens = instance.maxUniqueTokens; + this.maxMatchedTokens = instance.maxMatchedTokens; + this.similarityThreshold = instance.similarityThreshold; + this.categorizationFilters = instance.categorizationFilters; + this.categorizationAnalyzer = instance.categorizationAnalyzer; + this.shardSize = instance.shardSize; + this.size = instance.size; + this.minDocCount = instance.minDocCount; + this.shardMinDocCount = instance.shardMinDocCount; + + } /** * Required - The semi-structured text field to categorize. *

                                                                              @@ -532,6 +547,12 @@ public CategorizeTextAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregate.java index 8737b74e38..9b36cf7a6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregate.java @@ -126,6 +126,13 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private ChangePointBucket bucket; + public Builder() { + } + private Builder(ChangePointAggregate instance) { + this.type = instance.type; + this.bucket = instance.bucket; + + } /** * Required - API name: {@code type} */ @@ -182,6 +189,12 @@ public ChangePointAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregation.java index 10da795927..97b811e898 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ChangePointAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public ChangePointAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointBucket.java index af7b53e5fe..0d49d234eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChangePointBucket.java @@ -99,6 +99,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private FieldValue key; + public Builder() { + } + private Builder(ChangePointBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -164,6 +170,12 @@ public ChangePointBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java index 9fa0cf83ef..d7de815f92 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChiSquareHeuristic.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean includeNegatives; + public Builder() { + } + private Builder(ChiSquareHeuristic instance) { + this.backgroundIsSuperset = instance.backgroundIsSuperset; + this.includeNegatives = instance.includeNegatives; + + } /** * Required - Set to false if you defined a custom background * filter that represents a different set of documents that you want to compare @@ -176,6 +183,12 @@ public ChiSquareHeuristic build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java index 14d18b02bc..d9b0f6773c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ChildrenAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public ChildrenAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java index c15142d057..2874836d63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ChildrenAggregation.java @@ -127,6 +127,12 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -155,6 +161,12 @@ public ChildrenAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java index ee6fc9b3b4..501c325462 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregate.java @@ -131,6 +131,12 @@ public static class Builder extends MultiBucketAggregateBase.AbstractBuilder afterKey; + public Builder() { + } + private Builder(CompositeAggregate instance) { + this.afterKey = instance.afterKey; + + } /** * API name: {@code after_key} *

                                                                              @@ -219,6 +225,12 @@ public CompositeAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java index d6ad944b4e..dd2269d65a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeAggregation.java @@ -204,6 +204,14 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder> sources; + public Builder() { + } + private Builder(CompositeAggregation instance) { + this.after = instance.after; + this.size = instance.size; + this.sources = instance.sources; + + } /** * When paginating, use the after_key value returned in the * previous response to retrieve the next page. @@ -350,6 +358,12 @@ public CompositeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java index 32bcfacf42..c692cf91e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeBucket.java @@ -109,6 +109,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private Map key; + public Builder() { + } + private Builder(CompositeBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} *

                                                                              @@ -196,6 +202,12 @@ public CompositeBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java index 9093165d46..77a2c64fa0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeDateHistogramAggregation.java @@ -201,6 +201,16 @@ public static class Builder extends CompositeAggregationBase.AbstractBuilder { private Double interval; + public Builder() { + } + private Builder(CompositeHistogramAggregation instance) { + this.interval = instance.interval; + + } /** * Required - API name: {@code interval} */ @@ -133,6 +139,12 @@ public CompositeHistogramAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java index 6ccfa45048..3b31acb3f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CompositeTermsAggregation.java @@ -81,6 +81,11 @@ public CompositeAggregationSource.Kind _compositeAggregationSourceKind() { public static class Builder extends CompositeAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CompositeTermsAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public CompositeTermsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java index 831230458a..7dd89635e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregate.java @@ -130,6 +130,13 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private String valueAsString; + public Builder() { + } + private Builder(CumulativeCardinalityAggregate instance) { + this.value = instance.value; + this.valueAsString = instance.valueAsString; + + } /** * Required - API name: {@code value} */ @@ -164,6 +171,12 @@ public CumulativeCardinalityAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java index 3bbfa9360c..5beb6e1f05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeCardinalityAggregation.java @@ -82,6 +82,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CumulativeCardinalityAggregation instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public CumulativeCardinalityAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java index 9dada9a72d..3a280131cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CumulativeSumAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CumulativeSumAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public CumulativeSumAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java index d8f4ef9eb9..3f94b5889f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/CustomCategorizeTextAnalyzer.java @@ -166,6 +166,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List filter; + public Builder() { + } + private Builder(CustomCategorizeTextAnalyzer instance) { + this.charFilter = instance.charFilter; + this.tokenizer = instance.tokenizer; + this.filter = instance.filter; + + } /** * API name: {@code char_filter} *

                                                                              @@ -232,6 +240,12 @@ public CustomCategorizeTextAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java index 8a6401a0c1..35beba8514 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DateHistogramAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public DateHistogramAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java index 17b3cd7adb..9c1371d176 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java @@ -476,6 +476,26 @@ public static class Builder extends BucketAggregationBase.AbstractBuildermonth, or as a single unit quantity, such as 1M. @@ -737,6 +757,12 @@ public DateHistogramAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java index 82e321b1f6..81de27a927 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramBucket.java @@ -119,6 +119,13 @@ public static class Builder extends MultiBucketBase.AbstractBuilder private Long key; + public Builder() { + } + private Builder(DateHistogramBucket instance) { + this.keyAsString = instance.keyAsString; + this.key = instance.key; + + } /** * API name: {@code key_as_string} */ @@ -153,6 +160,12 @@ public DateHistogramBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java index 6e059c5ffb..36c1f73322 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregate.java @@ -95,6 +95,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends RangeAggregate.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DateRangeAggregate instance) { + + } @Override protected Builder self() { return this; @@ -113,6 +118,12 @@ public DateRangeAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java index 479b649ffd..7b58e3adfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeAggregation.java @@ -261,6 +261,17 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -421,6 +432,12 @@ public DateRangeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java index f6e6a82355..3400f6e403 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateRangeExpression.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private FieldDateMath to; + public Builder() { + } + private Builder(DateRangeExpression instance) { + this.from = instance.from; + this.key = instance.key; + this.to = instance.to; + + } /** * Start of the range (inclusive). *

                                                                              @@ -230,6 +238,12 @@ public DateRangeExpression build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java index 168f4dff5e..654a9e83c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DerivativeAggregate.java @@ -132,6 +132,13 @@ public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DerivativeAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public DerivativeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Dip.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Dip.java index 483a46260a..28b1218347 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Dip.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Dip.java @@ -78,6 +78,11 @@ public ChangeType.Kind _changeTypeKind() { */ public static class Builder extends AbstractChangePoint.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(Dip instance) { + + } @Override protected Builder self() { return this; @@ -96,6 +101,12 @@ public Dip build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DistributionChange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DistributionChange.java index 5611e24f31..4cd431f70b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DistributionChange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DistributionChange.java @@ -81,6 +81,11 @@ public ChangeType.Kind _changeTypeKind() { public static class Builder extends AbstractChangePoint.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DistributionChange instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public DistributionChange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java index bb25276cd4..8eb8821f65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DiversifiedSamplerAggregation.java @@ -218,6 +218,16 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -292,6 +302,12 @@ public DiversifiedSamplerAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java index a63a9778f8..243307dfda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsAggregate.java @@ -96,6 +96,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends TermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DoubleTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -115,6 +120,12 @@ public DoubleTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java index 5ca5fbfb1e..9312b16d1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DoubleTermsBucket.java @@ -120,6 +120,13 @@ public static class Builder extends TermsBucketBase.AbstractBuilder @Nullable private String keyAsString; + public Builder() { + } + private Builder(DoubleTermsBucket instance) { + this.key = instance.key; + this.keyAsString = instance.keyAsString; + + } /** * Required - API name: {@code key} */ @@ -154,6 +161,12 @@ public DoubleTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java index b8be5e5da3..4f2f0feeba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaModelSettings.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Float alpha; + public Builder() { + } + private Builder(EwmaModelSettings instance) { + this.alpha = instance.alpha; + + } /** * API name: {@code alpha} */ @@ -142,6 +148,12 @@ public EwmaModelSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java index 5350f8f8f8..c017ada1b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/EwmaMovingAverageAggregation.java @@ -108,6 +108,12 @@ public static class Builder extends MovingAverageAggregationBase.AbstractBuilder ObjectBuilder { private EwmaModelSettings settings; + public Builder() { + } + private Builder(EwmaMovingAverageAggregation instance) { + this.settings = instance.settings; + + } /** * Required - API name: {@code settings} */ @@ -141,6 +147,12 @@ public EwmaMovingAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java index 37c04be85b..95eaaef7a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase> @Nullable private JsonpSerializer tSerializer; + public Builder() { + } + private Builder(ExtendedBounds instance) { + this.max = instance.max; + this.min = instance.min; + + } /** * Maximum value for the bound. *

                                                                              @@ -198,6 +205,12 @@ public ExtendedBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java index a3e957afbf..b98f924595 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsAggregation.java @@ -113,6 +113,12 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< @Nullable private Double sigma; + public Builder() { + } + private Builder(ExtendedStatsAggregation instance) { + this.sigma = instance.sigma; + + } /** * The number of standard deviations above/below the mean to display. *

                                                                              @@ -141,6 +147,12 @@ public ExtendedStatsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java index 9e2f75ecef..49c1b32c86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends ExtendedStatsAggregate.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ExtendedStatsBucketAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public ExtendedStatsBucketAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java index 6257c90afe..4d14da746b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedStatsBucketAggregation.java @@ -114,6 +114,12 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -142,6 +148,12 @@ public ExtendedStatsBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java index 981e04d975..75c6531e5f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FilterAggregate.java @@ -91,6 +91,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FilterAggregate instance) { + + } @Override protected Builder self() { return this; @@ -109,6 +114,12 @@ public FilterAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java index 7e91f9e371..07fcf125a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregate.java @@ -94,6 +94,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FiltersAggregate instance) { + + } @Override protected Builder self() { return this; @@ -113,6 +118,12 @@ public FiltersAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java index 4dca403e0f..508b2a6d98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersAggregation.java @@ -197,6 +197,15 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -266,6 +275,12 @@ public FiltersAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java index f178f5e129..54539975c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FiltersBucket.java @@ -103,6 +103,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private String key; + public Builder() { + } + private Builder(FiltersBucket instance) { + this.key = instance.key; + + } /** * API name: {@code key} */ @@ -129,6 +135,12 @@ public FiltersBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java index 2d72276ee5..cbf3d88611 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java @@ -83,6 +83,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FrequentItemSetsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -102,6 +107,12 @@ public FrequentItemSetsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java index 1fbf4f3bd8..b7cae66422 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java @@ -223,6 +223,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Query filter; + public Builder() { + } + private Builder(FrequentItemSetsAggregation instance) { + this.fields = instance.fields; + this.minimumSetSize = instance.minimumSetSize; + this.minimumSupport = instance.minimumSupport; + this.size = instance.size; + this.filter = instance.filter; + + } /** * Required - Fields to analyze. *

                                                                              @@ -335,6 +345,12 @@ public FrequentItemSetsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java index 4ded3daafe..f80e1a6657 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java @@ -131,6 +131,13 @@ public static class Builder extends MultiBucketBase.AbstractBuilder private Double support; + public Builder() { + } + private Builder(FrequentItemSetsBucket instance) { + this.key = instance.key; + this.support = instance.support; + + } /** * Required - API name: {@code key} *

                                                                              @@ -177,6 +184,12 @@ public FrequentItemSetsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java index fd444596d9..0cbc6f9b39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private TermsInclude include; + public Builder() { + } + private Builder(FrequentItemSetsField instance) { + this.field = instance.field; + this.exclude = instance.exclude; + this.include = instance.include; + + } /** * Required - API name: {@code field} */ @@ -228,6 +236,12 @@ public FrequentItemSetsField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregate.java index f671820154..a2b0a0be5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregate.java @@ -111,6 +111,12 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private GeoBounds bounds; + public Builder() { + } + private Builder(GeoBoundsAggregate instance) { + this.bounds = instance.bounds; + + } /** * API name: {@code bounds} */ @@ -144,6 +150,12 @@ public GeoBoundsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregation.java index 6f3505e03a..d899b61089 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoBoundsAggregation.java @@ -114,6 +114,12 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder @Nullable private GeoLocation location; + public Builder() { + } + private Builder(GeoCentroidAggregate instance) { + this.count = instance.count; + this.location = instance.location; + + } /** * Required - API name: {@code count} */ @@ -169,6 +176,12 @@ public GeoCentroidAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoCentroidAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoCentroidAggregation.java index f703221861..3770dc76a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoCentroidAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoCentroidAggregation.java @@ -132,6 +132,13 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GeoDistanceAggregate instance) { + + } @Override protected Builder self() { return this; @@ -101,6 +106,12 @@ public GeoDistanceAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java index e736db73aa..a2ce50a289 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoDistanceAggregation.java @@ -221,6 +221,16 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -323,6 +333,12 @@ public GeoDistanceAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java index fec05a5943..f33cfd60f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GeoHashGridAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public GeoHashGridAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java index 41a1b6d32e..b201353c88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridAggregation.java @@ -223,6 +223,16 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -315,6 +325,12 @@ public GeoHashGridAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java index 46c4dff006..6363cfd294 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHashGridBucket.java @@ -98,6 +98,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private String key; + public Builder() { + } + private Builder(GeoHashGridBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public GeoHashGridBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java index a292da840a..209bdcbd2d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GeoHexGridAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public GeoHexGridAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java index c2b71d43cf..45d88753e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoHexGridBucket.java @@ -98,6 +98,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private String key; + public Builder() { + } + private Builder(GeoHexGridBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public GeoHexGridBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java index 5e864022b4..05a87a30ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregate.java @@ -138,6 +138,14 @@ public static class Builder extends AggregateBase.AbstractBuilder private JsonData properties; + public Builder() { + } + private Builder(GeoLineAggregate instance) { + this.type = instance.type; + this.geometry = instance.geometry; + this.properties = instance.properties; + + } /** * Required - API name: {@code type} */ @@ -187,6 +195,12 @@ public GeoLineAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java index ba1f5cef6c..b6df4416c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineAggregation.java @@ -218,6 +218,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer size; + public Builder() { + } + private Builder(GeoLineAggregation instance) { + this.point = instance.point; + this.sort = instance.sort; + this.includeSort = instance.includeSort; + this.sortOrder = instance.sortOrder; + this.size = instance.size; + + } /** * Required - The name of the geo_point field. *

                                                                              @@ -312,6 +322,12 @@ public GeoLineAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java index 2fcbaa446b..68545d77f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLinePoint.java @@ -113,6 +113,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String field; + public Builder() { + } + private Builder(GeoLinePoint instance) { + this.field = instance.field; + + } /** * Required - The name of the geo_point field. *

                                                                              @@ -141,6 +147,12 @@ public GeoLinePoint build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java index d73ddae47c..b7e2db3677 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoLineSort.java @@ -114,6 +114,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String field; + public Builder() { + } + private Builder(GeoLineSort instance) { + this.field = instance.field; + + } /** * Required - The name of the numeric field to use as the sort key for ordering * the points. @@ -143,6 +149,12 @@ public GeoLineSort build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java index a266f6967e..952c1f9e50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GeoTileGridAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public GeoTileGridAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java index ad42320a8e..4825432ecd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridAggregation.java @@ -236,6 +236,16 @@ public static class Builder extends BucketAggregationBase.AbstractBuildergeo_point or geo_shape * values. If the field contains an array, geotile_grid aggregates @@ -318,6 +328,12 @@ public GeoTileGridAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java index 2711f7090a..2156a12ba6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeoTileGridBucket.java @@ -98,6 +98,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private String key; + public Builder() { + } + private Builder(GeoTileGridBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public GeoTileGridBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java index 6b03f013a0..6be044a244 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GeohexGridAggregation.java @@ -216,6 +216,16 @@ public static class Builder extends BucketAggregationBase.AbstractBuildergeo_point or * geo_shape values. If the field contains an array, @@ -296,6 +306,12 @@ public GeohexGridAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java index 73507e6705..579423d3a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GlobalAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GlobalAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public GlobalAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java index 917b6e71e7..17c5fb8d49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/GoogleNormalizedDistanceHeuristic.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean backgroundIsSuperset; + public Builder() { + } + private Builder(GoogleNormalizedDistanceHeuristic instance) { + this.backgroundIsSuperset = instance.backgroundIsSuperset; + + } /** * Set to false if you defined a custom background filter that * represents a different set of documents that you want to compare to. @@ -151,6 +157,12 @@ public GoogleNormalizedDistanceHeuristic build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java index b36e969ebd..875f710308 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrMethod.java @@ -119,6 +119,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer numberOfSignificantValueDigits; + public Builder() { + } + private Builder(HdrMethod instance) { + this.numberOfSignificantValueDigits = instance.numberOfSignificantValueDigits; + + } /** * Specifies the resolution of values for the histogram in number of significant * digits. @@ -148,6 +154,12 @@ public HdrMethod build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java index 65c8795f8b..316620af2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentileRanksAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends PercentilesAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(HdrPercentileRanksAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public HdrPercentileRanksAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java index 04ebe47cfa..2eebdb3059 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HdrPercentilesAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends PercentilesAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(HdrPercentilesAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public HdrPercentilesAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java index bfee929bbe..0e2a17f7dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(HistogramAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public HistogramAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java index 31775e72e5..e06dfdec01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramAggregation.java @@ -380,6 +380,22 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -558,6 +574,12 @@ public HistogramAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java index de773fa318..706b9c5634 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HistogramBucket.java @@ -119,6 +119,13 @@ public static class Builder extends MultiBucketBase.AbstractBuilder private Double key; + public Builder() { + } + private Builder(HistogramBucket instance) { + this.keyAsString = instance.keyAsString; + this.key = instance.key; + + } /** * API name: {@code key_as_string} */ @@ -153,6 +160,12 @@ public HistogramBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java index 9acc5cb3b8..8e2b2eac8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltLinearModelSettings.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float beta; + public Builder() { + } + private Builder(HoltLinearModelSettings instance) { + this.alpha = instance.alpha; + this.beta = instance.beta; + + } /** * API name: {@code alpha} */ @@ -172,6 +179,12 @@ public HoltLinearModelSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java index d2ab74623d..5f2d7a56a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltMovingAverageAggregation.java @@ -108,6 +108,12 @@ public static class Builder extends MovingAverageAggregationBase.AbstractBuilder ObjectBuilder { private HoltLinearModelSettings settings; + public Builder() { + } + private Builder(HoltMovingAverageAggregation instance) { + this.settings = instance.settings; + + } /** * Required - API name: {@code settings} */ @@ -142,6 +148,12 @@ public HoltMovingAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java index 1294e118e7..0bf6631cba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersModelSettings.java @@ -219,6 +219,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private HoltWintersType type; + public Builder() { + } + private Builder(HoltWintersModelSettings instance) { + this.alpha = instance.alpha; + this.beta = instance.beta; + this.gamma = instance.gamma; + this.pad = instance.pad; + this.period = instance.period; + this.type = instance.type; + + } /** * API name: {@code alpha} */ @@ -285,6 +296,12 @@ public HoltWintersModelSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java index 6c5566dc89..8a9f7c8cd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/HoltWintersMovingAverageAggregation.java @@ -109,6 +109,12 @@ public static class Builder extends MovingAverageAggregationBase.AbstractBuilder ObjectBuilder { private HoltWintersModelSettings settings; + public Builder() { + } + private Builder(HoltWintersMovingAverageAggregation instance) { + this.settings = instance.settings; + + } /** * Required - API name: {@code settings} */ @@ -143,6 +149,12 @@ public HoltWintersMovingAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Indeterminable.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Indeterminable.java index eeb97f2490..6979ea5cf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Indeterminable.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Indeterminable.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String reason; + public Builder() { + } + private Builder(Indeterminable instance) { + this.reason = instance.reason; + + } /** * Required - API name: {@code reason} */ @@ -145,6 +151,12 @@ public Indeterminable build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregate.java index 846558f3ad..cd108f1a53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregate.java @@ -222,6 +222,15 @@ public final Builder data(String key, JsonData value) { @Nullable private String warning; + public Builder() { + } + private Builder(InferenceAggregate instance) { + this.value = instance.value; + this.featureImportance = instance.featureImportance; + this.topClasses = instance.topClasses; + this.warning = instance.warning; + + } /** * API name: {@code value} */ @@ -355,6 +364,12 @@ public InferenceAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregation.java index 7aafc221d0..33780ae94d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceAggregation.java @@ -131,6 +131,13 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -188,6 +195,12 @@ public InferenceAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceClassImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceClassImportance.java index c015811f27..e960a82e10 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceClassImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceClassImportance.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Double importance; + public Builder() { + } + private Builder(InferenceClassImportance instance) { + this.className = instance.className; + this.importance = instance.importance; + + } /** * Required - API name: {@code class_name} */ @@ -163,6 +170,12 @@ public InferenceClassImportance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceFeatureImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceFeatureImportance.java index e01cf9b8ed..367881054a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceFeatureImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceFeatureImportance.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List classes; + public Builder() { + } + private Builder(InferenceFeatureImportance instance) { + this.featureName = instance.featureName; + this.importance = instance.importance; + this.classes = instance.classes; + + } /** * Required - API name: {@code feature_name} */ @@ -223,6 +231,12 @@ public InferenceFeatureImportance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceTopClassEntry.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceTopClassEntry.java index d1614af94d..9b6f3c3b70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceTopClassEntry.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceTopClassEntry.java @@ -145,6 +145,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Double classScore; + public Builder() { + } + private Builder(InferenceTopClassEntry instance) { + this.className = instance.className; + this.classProbability = instance.classProbability; + this.classScore = instance.classScore; + + } /** * Required - API name: {@code class_name} */ @@ -226,6 +234,12 @@ public InferenceTopClassEntry build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregate.java index e7fe4c4e25..e26166e846 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(IpPrefixAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public IpPrefixAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java index 1fefc1ba8a..7b2728582c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixAggregation.java @@ -236,6 +236,17 @@ public static class Builder extends BucketAggregationBase.AbstractBuilderip. @@ -319,6 +330,12 @@ public IpPrefixAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java index b034297fb4..5b3e334cef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpPrefixBucket.java @@ -151,6 +151,15 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private String netmask; + public Builder() { + } + private Builder(IpPrefixBucket instance) { + this.isIpv6 = instance.isIpv6; + this.key = instance.key; + this.prefixLength = instance.prefixLength; + this.netmask = instance.netmask; + + } /** * Required - API name: {@code is_ipv6} */ @@ -201,6 +210,12 @@ public IpPrefixBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java index 7c7ee9c881..c559cd85f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(IpRangeAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public IpRangeAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java index 71fbcf0d54..b603fe86ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregation.java @@ -154,6 +154,13 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder ranges; + public Builder() { + } + private Builder(IpRangeAggregation instance) { + this.field = instance.field; + this.ranges = instance.ranges; + + } /** * The date field whose values are used to build ranges. *

                                                                              @@ -218,6 +225,12 @@ public IpRangeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java index 38b8dfff7c..59ab1722ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeAggregationRange.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String to; + public Builder() { + } + private Builder(IpRangeAggregationRange instance) { + this.from = instance.from; + this.mask = instance.mask; + this.to = instance.to; + + } /** * Start of the range. *

                                                                              @@ -212,6 +220,12 @@ public IpRangeAggregationRange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java index 0e8580458e..14eddc5b71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/IpRangeBucket.java @@ -143,6 +143,14 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private String to; + public Builder() { + } + private Builder(IpRangeBucket instance) { + this.key = instance.key; + this.from = instance.from; + this.to = instance.to; + + } /** * API name: {@code key} */ @@ -185,6 +193,12 @@ public IpRangeBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java index 3a3b3ef32a..2a2395d31e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LinearMovingAverageAggregation.java @@ -110,6 +110,12 @@ public static class Builder extends MovingAverageAggregationBase.AbstractBuilder ObjectBuilder { private EmptyObject settings; + public Builder() { + } + private Builder(LinearMovingAverageAggregation instance) { + this.settings = instance.settings; + + } /** * Required - API name: {@code settings} */ @@ -143,6 +149,12 @@ public LinearMovingAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java index a217744cbe..7d6bf4c23a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsAggregate.java @@ -83,6 +83,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(LongRareTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -102,6 +107,12 @@ public LongRareTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java index eb9d7aa9c2..bf2f88cfcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongRareTermsBucket.java @@ -120,6 +120,13 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private String keyAsString; + public Builder() { + } + private Builder(LongRareTermsBucket instance) { + this.key = instance.key; + this.keyAsString = instance.keyAsString; + + } /** * Required - API name: {@code key} */ @@ -154,6 +161,12 @@ public LongRareTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java index 2c23f2e9a7..3d4fb3f05b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsAggregate.java @@ -96,6 +96,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends TermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(LongTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -115,6 +120,12 @@ public LongTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java index 4c03244556..14e713609c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/LongTermsBucket.java @@ -120,6 +120,13 @@ public static class Builder extends TermsBucketBase.AbstractBuilder @Nullable private String keyAsString; + public Builder() { + } + private Builder(LongTermsBucket instance) { + this.key = instance.key; + this.keyAsString = instance.keyAsString; + + } /** * Required - API name: {@code key} */ @@ -154,6 +161,12 @@ public LongTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java index 1a68fbcbf2..b578ea21b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregate.java @@ -131,6 +131,13 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private List fields; + public Builder() { + } + private Builder(MatrixStatsAggregate instance) { + this.docCount = instance.docCount; + this.fields = instance.fields; + + } /** * Required - API name: {@code doc_count} */ @@ -186,6 +193,12 @@ public MatrixStatsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java index 19c315c4b8..caf6bb83b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsAggregation.java @@ -112,6 +112,12 @@ public static class Builder extends MatrixAggregation.AbstractBuilder @Nullable private SortMode mode; + public Builder() { + } + private Builder(MatrixStatsAggregation instance) { + this.mode = instance.mode; + + } /** * Array value the aggregation will use for array or multi-valued fields. *

                                                                              @@ -140,6 +146,12 @@ public MatrixStatsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java index 9ecbb68f3f..d1de8b7bf4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MatrixStatsFields.java @@ -236,6 +236,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map correlation; + public Builder() { + } + private Builder(MatrixStatsFields instance) { + this.name = instance.name; + this.count = instance.count; + this.mean = instance.mean; + this.variance = instance.variance; + this.skewness = instance.skewness; + this.kurtosis = instance.kurtosis; + this.covariance = instance.covariance; + this.correlation = instance.correlation; + + } /** * Required - API name: {@code name} */ @@ -342,6 +355,12 @@ public MatrixStatsFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java index 07e40096a4..19b0640873 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MaxAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MaxAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java index 46384b33a4..7fb3857fd4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends FormatMetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MaxAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MaxAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java index b8604b0801..7e90549d39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MaxBucketAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MaxBucketAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MaxBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java index fea88f2989..98e47a1959 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregate.java @@ -82,6 +82,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MedianAbsoluteDeviationAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public MedianAbsoluteDeviationAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java index 5703ba8fed..35548be659 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MedianAbsoluteDeviationAggregation.java @@ -141,6 +141,13 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< @Nullable private TDigestExecutionHint executionHint; + public Builder() { + } + private Builder(MedianAbsoluteDeviationAggregation instance) { + this.compression = instance.compression; + this.executionHint = instance.executionHint; + + } /** * Limits the maximum number of nodes used by the underlying TDigest algorithm * to 20 * compression, enabling control of memory usage and @@ -185,6 +192,12 @@ public MedianAbsoluteDeviationAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java index 72c388bf86..c60afb7776 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MinAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MinAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java index 4de4283975..a31380846e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends FormatMetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MinAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MinAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java index 1f305b279b..d5e56c92e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MinBucketAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MinBucketAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public MinBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java index 5843bfd58a..2f89e87cd2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregate.java @@ -91,6 +91,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MissingAggregate instance) { + + } @Override protected Builder self() { return this; @@ -109,6 +114,12 @@ public MissingAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java index ded342969a..c4f6804a7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MissingAggregation.java @@ -162,6 +162,13 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -237,6 +244,12 @@ public MissingAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingFunctionAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingFunctionAggregation.java index 9f09ddebd5..f51b265576 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingFunctionAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingFunctionAggregation.java @@ -160,6 +160,14 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -210,6 +218,12 @@ public MovingFunctionAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingPercentilesAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingPercentilesAggregation.java index 1788191194..c66635c2d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingPercentilesAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MovingPercentilesAggregation.java @@ -158,6 +158,14 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -206,6 +214,12 @@ public MovingPercentilesAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermLookup.java index fc73fad30a..679b4f3f84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermLookup.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FieldValue missing; + public Builder() { + } + private Builder(MultiTermLookup instance) { + this.field = instance.field; + this.missing = instance.missing; + + } /** * Required - A fields from which to retrieve terms. *

                                                                              @@ -231,6 +238,12 @@ public MultiTermLookup build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java index 195a8a1897..bae916ad39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregate.java @@ -94,6 +94,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends TermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MultiTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -113,6 +118,12 @@ public MultiTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java index 5d0a75a673..8638ec614c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsAggregation.java @@ -298,6 +298,19 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder terms; + public Builder() { + } + private Builder(MultiTermsAggregation instance) { + this.collectMode = instance.collectMode; + this.order = instance.order; + this.minDocCount = instance.minDocCount; + this.shardMinDocCount = instance.shardMinDocCount; + this.shardSize = instance.shardSize; + this.showTermDocCountError = instance.showTermDocCountError; + this.size = instance.size; + this.terms = instance.terms; + + } /** * Specifies the strategy for data collection. *

                                                                              @@ -441,6 +454,12 @@ public MultiTermsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java index d30021d429..9261b554c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MultiTermsBucket.java @@ -149,6 +149,14 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private Long docCountErrorUpperBound; + public Builder() { + } + private Builder(MultiTermsBucket instance) { + this.key = instance.key; + this.keyAsString = instance.keyAsString; + this.docCountErrorUpperBound = instance.docCountErrorUpperBound; + + } /** * Required - API name: {@code key} *

                                                                              @@ -264,6 +272,12 @@ public MultiTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java index 170de8c9ce..0cf0823050 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/MutualInformationHeuristic.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean includeNegatives; + public Builder() { + } + private Builder(MutualInformationHeuristic instance) { + this.backgroundIsSuperset = instance.backgroundIsSuperset; + this.includeNegatives = instance.includeNegatives; + + } /** * Set to false if you defined a custom background filter that * represents a different set of documents that you want to compare to. @@ -184,6 +191,12 @@ public MutualInformationHeuristic build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java index 7bdc085567..b8b25824a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(NestedAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public NestedAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java index 1a9044d689..7a4f596684 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NestedAggregation.java @@ -127,6 +127,12 @@ public static class Builder extends BucketAggregationBase.AbstractBuildernested. *

                                                                              @@ -155,6 +161,12 @@ public NestedAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NonStationary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NonStationary.java index 32d39dc2ad..78c9c90e1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NonStationary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NonStationary.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String trend; + public Builder() { + } + private Builder(NonStationary instance) { + this.pValue = instance.pValue; + this.rValue = instance.rValue; + this.trend = instance.trend; + + } /** * Required - API name: {@code p_value} */ @@ -192,6 +200,12 @@ public NonStationary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java index 0bfb8a2d61..5851a2c8a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/NormalizeAggregation.java @@ -111,6 +111,12 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder @@ -139,6 +145,12 @@ public NormalizeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PValueHeuristic.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PValueHeuristic.java index 0affca20d9..73b8bea763 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PValueHeuristic.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PValueHeuristic.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long normalizeAbove; + public Builder() { + } + private Builder(PValueHeuristic instance) { + this.backgroundIsSuperset = instance.backgroundIsSuperset; + this.normalizeAbove = instance.normalizeAbove; + + } /** * API name: {@code background_is_superset} */ @@ -179,6 +186,12 @@ public PValueHeuristic build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregate.java index 3832399cf4..70d3a2ed59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ParentAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public ParentAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java index 7ab7d4e8d6..581f5336ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ParentAggregation.java @@ -127,6 +127,12 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -155,6 +161,12 @@ public ParentAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentileRanksAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentileRanksAggregation.java index f3a92570bf..39d15737e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentileRanksAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentileRanksAggregation.java @@ -189,6 +189,15 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< @Nullable private TDigest tdigest; + public Builder() { + } + private Builder(PercentileRanksAggregation instance) { + this.keyed = instance.keyed; + this.values = instance.values; + this.hdr = instance.hdr; + this.tdigest = instance.tdigest; + + } /** * By default, the aggregation associates a unique string key with each bucket * and returns the ranges as a hash rather than an array. Set to @@ -285,6 +294,12 @@ public PercentileRanksAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesAggregation.java index 24ccb2f228..d7c997ee0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesAggregation.java @@ -189,6 +189,15 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< @Nullable private TDigest tdigest; + public Builder() { + } + private Builder(PercentilesAggregation instance) { + this.keyed = instance.keyed; + this.percents = instance.percents; + this.hdr = instance.hdr; + this.tdigest = instance.tdigest; + + } /** * By default, the aggregation associates a unique string key with each bucket * and returns the ranges as a hash rather than an array. Set to @@ -285,6 +294,12 @@ public PercentilesAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregate.java index 0ae8239615..d6fde35bb3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends PercentilesAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(PercentilesBucketAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public PercentilesBucketAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregation.java index b8756560ed..c858b670ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/PercentilesBucketAggregation.java @@ -118,6 +118,12 @@ public static class Builder extends PipelineAggregationBase.AbstractBuilder percents; + public Builder() { + } + private Builder(PercentilesBucketAggregation instance) { + this.percents = instance.percents; + + } /** * The list of percentiles to calculate. *

                                                                              @@ -160,6 +166,12 @@ public PercentilesBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RandomSamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RandomSamplerAggregation.java index 634155bbb1..07258536f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RandomSamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RandomSamplerAggregation.java @@ -172,6 +172,14 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -365,6 +376,12 @@ public RangeAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java index 36d36113b4..b0696804e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RangeBucket.java @@ -184,6 +184,16 @@ public static class Builder extends MultiBucketBase.AbstractBuilder imp @Nullable private String key; + public Builder() { + } + private Builder(RangeBucket instance) { + this.from = instance.from; + this.to = instance.to; + this.fromAsString = instance.fromAsString; + this.toAsString = instance.toAsString; + this.key = instance.key; + + } /** * API name: {@code from} */ @@ -244,6 +254,12 @@ public RangeBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java index 02fd0d7701..78437636b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RareTermsAggregation.java @@ -262,6 +262,18 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -422,6 +434,12 @@ public RareTermsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java index 4839810203..92ebaf8b88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregate.java @@ -126,6 +126,13 @@ public static class Builder extends AggregateBase.AbstractBuilder imple @Nullable private String valueAsString; + public Builder() { + } + private Builder(RateAggregate instance) { + this.value = instance.value; + this.valueAsString = instance.valueAsString; + + } /** * Required - API name: {@code value} */ @@ -160,6 +167,12 @@ public RateAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java index 45c0d609db..fe429c946a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RateAggregation.java @@ -133,6 +133,13 @@ public static class Builder extends FormatMetricAggregationBase.AbstractBuilder< @Nullable private RateMode mode; + public Builder() { + } + private Builder(RateAggregation instance) { + this.unit = instance.unit; + this.mode = instance.mode; + + } /** * The interval used to calculate the rate. By default, the interval of the * date_histogram is used. @@ -172,6 +179,12 @@ public RateAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java index 6df35fae6e..b2699f7bda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ReverseNestedAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public ReverseNestedAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java index c4de764ceb..a1f9ed989d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ReverseNestedAggregation.java @@ -128,6 +128,12 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SamplerAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public SamplerAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java index 4c730a6c2f..262012e1ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SamplerAggregation.java @@ -128,6 +128,12 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder implements ObjectBuilder { private Script script; + public Builder() { + } + private Builder(ScriptedHeuristic instance) { + this.script = instance.script; + + } /** * Required - API name: {@code script} */ @@ -144,6 +150,12 @@ public ScriptedHeuristic build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregate.java index 732e5e088c..545f55b988 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregate.java @@ -106,6 +106,12 @@ public static class Builder extends AggregateBase.AbstractBuilder ObjectBuilder { private JsonData value; + public Builder() { + } + private Builder(ScriptedMetricAggregate instance) { + this.value = instance.value; + + } /** * Required - API name: {@code value} */ @@ -132,6 +138,12 @@ public ScriptedMetricAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregation.java index a4849c496f..f5d9b11ada 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ScriptedMetricAggregation.java @@ -218,6 +218,16 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SignificantLongTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -104,6 +109,12 @@ public SignificantLongTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantLongTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantLongTermsBucket.java index ea4a55023c..0cfe0f59b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantLongTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantLongTermsBucket.java @@ -120,6 +120,13 @@ public static class Builder extends SignificantTermsBucketBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SignificantStringTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -105,6 +110,12 @@ public SignificantStringTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantStringTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantStringTermsBucket.java index cb692705a7..27dbf2c722 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantStringTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantStringTermsBucket.java @@ -98,6 +98,12 @@ public static class Builder extends SignificantTermsBucketBase.AbstractBuilder { private String key; + public Builder() { + } + private Builder(SignificantStringTermsBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public SignificantStringTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java index c11d811d06..9874bd8d49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SignificantTermsAggregation.java @@ -484,6 +484,27 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder sourceFields; + public Builder() { + } + private Builder(SignificantTextAggregation instance) { + this.backgroundFilter = instance.backgroundFilter; + this.chiSquare = instance.chiSquare; + this.exclude = instance.exclude; + this.executionHint = instance.executionHint; + this.field = instance.field; + this.filterDuplicateText = instance.filterDuplicateText; + this.gnd = instance.gnd; + this.include = instance.include; + this.jlh = instance.jlh; + this.minDocCount = instance.minDocCount; + this.mutualInformation = instance.mutualInformation; + this.percentage = instance.percentage; + this.scriptHeuristic = instance.scriptHeuristic; + this.shardMinDocCount = instance.shardMinDocCount; + this.shardSize = instance.shardSize; + this.size = instance.size; + this.sourceFields = instance.sourceFields; + + } /** * A background filter that can be used to focus in on significant terms within * a narrower context, instead of the entire index. @@ -818,6 +840,12 @@ public SignificantTextAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java index b870a76bac..967c515241 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleMovingAverageAggregation.java @@ -110,6 +110,12 @@ public static class Builder extends MovingAverageAggregationBase.AbstractBuilder ObjectBuilder { private EmptyObject settings; + public Builder() { + } + private Builder(SimpleMovingAverageAggregation instance) { + this.settings = instance.settings; + + } /** * Required - API name: {@code settings} */ @@ -143,6 +149,12 @@ public SimpleMovingAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java index ef748e9473..9bc275b2ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SimpleValueAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SimpleValueAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public SimpleValueAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Spike.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Spike.java index 3722c7c204..34350a023c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Spike.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Spike.java @@ -78,6 +78,11 @@ public ChangeType.Kind _changeTypeKind() { */ public static class Builder extends AbstractChangePoint.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(Spike instance) { + + } @Override protected Builder self() { return this; @@ -96,6 +101,12 @@ public Spike build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java index 3f738512d8..cd52932564 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBounds.java @@ -218,6 +218,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double lowerSampling; + public Builder() { + } + private Builder(StandardDeviationBounds instance) { + this.upper = instance.upper; + this.lower = instance.lower; + this.upperPopulation = instance.upperPopulation; + this.lowerPopulation = instance.lowerPopulation; + this.upperSampling = instance.upperSampling; + this.lowerSampling = instance.lowerSampling; + + } /** * API name: {@code upper} */ @@ -284,6 +295,12 @@ public StandardDeviationBounds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java index b6d34c3d9f..76c657336e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StandardDeviationBoundsAsString.java @@ -189,6 +189,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String lowerSampling; + public Builder() { + } + private Builder(StandardDeviationBoundsAsString instance) { + this.upper = instance.upper; + this.lower = instance.lower; + this.upperPopulation = instance.upperPopulation; + this.lowerPopulation = instance.lowerPopulation; + this.upperSampling = instance.upperSampling; + this.lowerSampling = instance.lowerSampling; + + } /** * Required - API name: {@code upper} */ @@ -255,6 +266,12 @@ public StandardDeviationBoundsAsString build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java index 5f300140e7..9414254632 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends FormatMetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StatsAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public StatsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java index 06f98a03d3..650869ff56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends StatsAggregate.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StatsBucketAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public StatsBucketAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java index a1f061f07f..96caf8d130 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StatsBucketAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StatsBucketAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public StatsBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StepChange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StepChange.java index d17659f63e..48cf56f0e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StepChange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StepChange.java @@ -81,6 +81,11 @@ public ChangeType.Kind _changeTypeKind() { public static class Builder extends AbstractChangePoint.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StepChange instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public StepChange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java index 8e3c749456..a643d3f658 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsAggregate.java @@ -84,6 +84,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StringRareTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -103,6 +108,12 @@ public StringRareTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java index 7dca9897cf..4c9aea037c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringRareTermsBucket.java @@ -98,6 +98,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private String key; + public Builder() { + } + private Builder(StringRareTermsBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -124,6 +130,12 @@ public StringRareTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java index 1174d0a495..99b2ae0d0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java @@ -275,6 +275,20 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private String avgLengthAsString; + public Builder() { + } + private Builder(StringStatsAggregate instance) { + this.count = instance.count; + this.minLength = instance.minLength; + this.maxLength = instance.maxLength; + this.avgLength = instance.avgLength; + this.entropy = instance.entropy; + this.distribution = instance.distribution; + this.minLengthAsString = instance.minLengthAsString; + this.maxLengthAsString = instance.maxLengthAsString; + this.avgLengthAsString = instance.avgLengthAsString; + + } /** * Required - API name: {@code count} */ @@ -377,6 +391,12 @@ public StringStatsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java index e7e296cb29..cda47d3968 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregation.java @@ -113,6 +113,12 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder @@ -141,6 +147,12 @@ public StringStatsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java index 09df0144f6..3b38aafc78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsAggregate.java @@ -95,6 +95,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends TermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(StringTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -114,6 +119,12 @@ public StringTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java index c762300694..5e82c23975 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringTermsBucket.java @@ -99,6 +99,12 @@ public static class Builder extends TermsBucketBase.AbstractBuilder ObjectBuilder { private FieldValue key; + public Builder() { + } + private Builder(StringTermsBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} */ @@ -164,6 +170,12 @@ public StringTermsBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java index 44df5dd0ec..cd15c5aeb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregate.java @@ -83,6 +83,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SumAggregate instance) { + + } @Override protected Builder self() { return this; @@ -101,6 +106,12 @@ public SumAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java index accede1ec7..7b604e8ac9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends FormatMetricAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SumAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public SumAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java index b49bd77765..9b77af0338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/SumBucketAggregation.java @@ -81,6 +81,11 @@ public Aggregation.Kind _aggregationKind() { public static class Builder extends PipelineAggregationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SumBucketAggregation instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public SumBucketAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java index a1a3da2c12..e263500641 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigest.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private TDigestExecutionHint executionHint; + public Builder() { + } + private Builder(TDigest instance) { + this.compression = instance.compression; + this.executionHint = instance.executionHint; + + } /** * Limits the maximum number of nodes used by the underlying TDigest algorithm * to 20 * compression, enabling control of memory usage and @@ -188,6 +195,12 @@ public TDigest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java index 4711d34a5b..903e21bbf1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentileRanksAggregate.java @@ -82,6 +82,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends PercentilesAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(TDigestPercentileRanksAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public TDigestPercentileRanksAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java index e8fc25abb0..930b5452e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TDigestPercentilesAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends PercentilesAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(TDigestPercentilesAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public TDigestPercentilesAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java index f2aff846ef..be441f0b4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregate.java @@ -132,6 +132,13 @@ public static class Builder extends AggregateBase.AbstractBuilder @Nullable private String valueAsString; + public Builder() { + } + private Builder(TTestAggregate instance) { + this.value = instance.value; + this.valueAsString = instance.valueAsString; + + } /** * API name: {@code value} */ @@ -166,6 +173,12 @@ public TTestAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java index 3a2e2dbade..16e00fd7c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TTestAggregation.java @@ -169,6 +169,14 @@ public static class Builder extends AggregationBase.AbstractBuilder @Nullable private TTestType type; + public Builder() { + } + private Builder(TTestAggregation instance) { + this.a = instance.a; + this.b = instance.b; + this.type = instance.type; + + } /** * Test population A. *

                                                                              @@ -235,6 +243,12 @@ public TTestAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java index 2d3b47d8d3..24ce093766 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TermsAggregation.java @@ -520,6 +520,28 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder implement private Long partition; + public Builder() { + } + private Builder(TermsPartition instance) { + this.numPartitions = instance.numPartitions; + this.partition = instance.partition; + + } /** * Required - The number of partitions. *

                                                                              @@ -167,6 +174,12 @@ public TermsPartition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java index f6acc0ce9f..b7690a5273 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TestPopulation.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Query filter; + public Builder() { + } + private Builder(TestPopulation instance) { + this.field = instance.field; + this.script = instance.script; + this.filter = instance.filter; + + } /** * Required - The field to aggregate. *

                                                                              @@ -231,6 +239,12 @@ public TestPopulation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregate.java index aede053142..722c20de20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(TimeSeriesAggregate instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public TimeSeriesAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregation.java index 25dbfb3081..82338ec58e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesAggregation.java @@ -151,6 +151,13 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -190,6 +197,12 @@ public TimeSeriesAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java index 7b4158d98f..7376628cea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TimeSeriesBucket.java @@ -109,6 +109,12 @@ public static class Builder extends MultiBucketBase.AbstractBuilder ObjectBuilder { private Map key; + public Builder() { + } + private Builder(TimeSeriesBucket instance) { + this.key = instance.key; + + } /** * Required - API name: {@code key} *

                                                                              @@ -196,6 +202,12 @@ public TimeSeriesBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java index 0a86676b3c..9efd6987b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregate.java @@ -107,6 +107,12 @@ public static class Builder extends AggregateBase.AbstractBuilder ObjectBuilder { private HitsMetadata hits; + public Builder() { + } + private Builder(TopHitsAggregate instance) { + this.hits = instance.hits; + + } /** * Required - API name: {@code hits} */ @@ -140,6 +146,12 @@ public TopHitsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java index e839a45a66..1aff3a6258 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopHitsAggregation.java @@ -410,6 +410,24 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder @@ -703,6 +721,12 @@ public TopHitsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java index fa5c89b528..efe0136c72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetrics.java @@ -145,6 +145,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map metrics; + public Builder() { + } + private Builder(TopMetrics instance) { + this.sort = instance.sort; + this.metrics = instance.metrics; + + } /** * Required - API name: {@code sort} *

                                                                              @@ -313,6 +320,12 @@ public TopMetrics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java index 4c76b89585..fde59a6e97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregate.java @@ -114,6 +114,12 @@ public static class Builder extends AggregateBase.AbstractBuilder ObjectBuilder { private List top; + public Builder() { + } + private Builder(TopMetricsAggregate instance) { + this.top = instance.top; + + } /** * Required - API name: {@code top} *

                                                                              @@ -161,6 +167,12 @@ public TopMetricsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java index e83c3c05c1..36312e9be5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsAggregation.java @@ -166,6 +166,14 @@ public static class Builder extends MetricAggregationBase.AbstractBuilder sort; + public Builder() { + } + private Builder(TopMetricsAggregation instance) { + this.metrics = instance.metrics; + this.size = instance.size; + this.sort = instance.sort; + + } /** * The fields of the top document to return. *

                                                                              @@ -264,6 +272,12 @@ public TopMetricsAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java index 31ab70f105..29f6ddcf37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TopMetricsValue.java @@ -113,6 +113,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String field; + public Builder() { + } + private Builder(TopMetricsValue instance) { + this.field = instance.field; + + } /** * Required - A field to return as a metric. *

                                                                              @@ -141,6 +147,12 @@ public TopMetricsValue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TrendChange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TrendChange.java index 3e3fd5a7b4..57cac3e5a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TrendChange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/TrendChange.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer changePoint; + public Builder() { + } + private Builder(TrendChange instance) { + this.pValue = instance.pValue; + this.rValue = instance.rValue; + this.changePoint = instance.changePoint; + + } /** * Required - API name: {@code p_value} */ @@ -191,6 +199,12 @@ public TrendChange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java index 221f09193d..de7b97d625 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedRareTermsAggregate.java @@ -84,6 +84,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UnmappedRareTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -103,6 +108,12 @@ public UnmappedRareTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java index 4ab95e3825..95e4996048 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSamplerAggregate.java @@ -81,6 +81,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UnmappedSamplerAggregate instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public UnmappedSamplerAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java index 6bded6bc0f..0d3e34922e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedSignificantTermsAggregate.java @@ -85,6 +85,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SignificantTermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UnmappedSignificantTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -104,6 +109,12 @@ public UnmappedSignificantTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java index e7f95a30d3..234ecfb08e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/UnmappedTermsAggregate.java @@ -97,6 +97,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends TermsAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UnmappedTermsAggregate instance) { + + } @Override protected Builder self() { return this; @@ -116,6 +121,12 @@ public UnmappedTermsAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java index c7bed70e65..5fd092af36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregate.java @@ -92,6 +92,11 @@ public ApiKeyAggregate.Kind _apiKeyAggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ValueCountAggregate instance) { + + } @Override protected Builder self() { return this; @@ -110,6 +115,12 @@ public ValueCountAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java index 79c67d0dda..1e0d5f25a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ValueCountAggregation.java @@ -94,6 +94,11 @@ public ApiKeyAggregation.Kind _apiKeyAggregationKind() { public static class Builder extends FormattableMetricAggregation.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ValueCountAggregation instance) { + + } @Override protected Builder self() { return this; @@ -112,6 +117,12 @@ public ValueCountAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregate.java index 24b0f36454..a95de87ff2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregate.java @@ -84,6 +84,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends MultiBucketAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(VariableWidthHistogramAggregate instance) { + + } @Override protected Builder self() { return this; @@ -103,6 +108,12 @@ public VariableWidthHistogramAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java index 09341d5393..6302d84d48 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java @@ -220,6 +220,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Script script; + public Builder() { + } + private Builder(VariableWidthHistogramAggregation instance) { + this.field = instance.field; + this.buckets = instance.buckets; + this.shardSize = instance.shardSize; + this.initialBuffer = instance.initialBuffer; + this.script = instance.script; + + } /** * The name of the field. *

                                                                              @@ -296,6 +306,12 @@ public VariableWidthHistogramAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java index a868181f2e..14ed1145e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramBucket.java @@ -190,6 +190,17 @@ public static class Builder extends MultiBucketBase.AbstractBuilder @Nullable private String maxAsString; + public Builder() { + } + private Builder(VariableWidthHistogramBucket instance) { + this.min = instance.min; + this.key = instance.key; + this.max = instance.max; + this.minAsString = instance.minAsString; + this.keyAsString = instance.keyAsString; + this.maxAsString = instance.maxAsString; + + } /** * Required - API name: {@code min} */ @@ -256,6 +267,12 @@ public VariableWidthHistogramBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java index e61ef1625a..d8d11abe69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageAggregation.java @@ -190,6 +190,15 @@ public static class Builder extends AggregationBase.AbstractBuilder @Nullable private WeightedAverageValue weight; + public Builder() { + } + private Builder(WeightedAverageAggregation instance) { + this.format = instance.format; + this.value = instance.value; + this.valueType = instance.valueType; + this.weight = instance.weight; + + } /** * A numeric response formatter. *

                                                                              @@ -264,6 +273,12 @@ public WeightedAverageAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java index e005ad5a3c..f8c97e17ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAverageValue.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Script script; + public Builder() { + } + private Builder(WeightedAverageValue instance) { + this.field = instance.field; + this.missing = instance.missing; + this.script = instance.script; + + } /** * The field from which to extract the values or weights. *

                                                                              @@ -217,6 +225,12 @@ public WeightedAverageValue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java index 7e0a8ec605..b4a606f5d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/WeightedAvgAggregate.java @@ -83,6 +83,11 @@ public Aggregate.Kind _aggregateKind() { public static class Builder extends SingleMetricAggregateBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(WeightedAvgAggregate instance) { + + } @Override protected Builder self() { return this; @@ -101,6 +106,12 @@ public WeightedAvgAggregate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ApostropheTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ApostropheTokenFilter.java index 6d94182164..d9e03c2100 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ApostropheTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ApostropheTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ApostropheTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public ApostropheTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicAnalyzer.java index ea64986f3a..2c620a56c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(ArabicAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public ArabicAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicNormalizationTokenFilter.java index ff46d20577..6b3c6c68c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ArabicNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public ArabicNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicStemTokenFilter.java index 6fa45eed50..797b4aa7ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArabicStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ArabicStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public ArabicStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArmenianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArmenianAnalyzer.java index 3e4da7101a..e57e9b1f40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArmenianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ArmenianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(ArmenianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public ArmenianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java index 30fbbfc59c..3ae26ae40e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/AsciiFoldingTokenFilter.java @@ -115,6 +115,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean preserveOriginal; + public Builder() { + } + private Builder(AsciiFoldingTokenFilter instance) { + this.preserveOriginal = instance.preserveOriginal; + + } /** * If true, emit both original tokens and folded tokens. Defaults * to false. @@ -144,6 +150,12 @@ public AsciiFoldingTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BasqueAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BasqueAnalyzer.java index 6e9685bb47..05d401d146 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BasqueAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BasqueAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(BasqueAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public BasqueAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliAnalyzer.java index ff8e26057f..8fba35650d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(BengaliAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public BengaliAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliNormalizationTokenFilter.java index 85828f89fa..974717657c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BengaliNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(BengaliNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public BengaliNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianAnalyzer.java index b3ff95083f..36ddf132e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(BrazilianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public BrazilianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianStemTokenFilter.java index a882a4ddb5..2c16e81131 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BrazilianStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(BrazilianStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public BrazilianStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BulgarianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BulgarianAnalyzer.java index bce4548fe9..38d933a5dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BulgarianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/BulgarianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(BulgarianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public BulgarianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CatalanAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CatalanAnalyzer.java index be3608b7ec..1f8f361d2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CatalanAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CatalanAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(CatalanAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public CatalanAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java index 0c44bd1eac..9fc7ced1b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CharGroupTokenizer.java @@ -137,6 +137,13 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer maxTokenLength; + public Builder() { + } + private Builder(CharGroupTokenizer instance) { + this.tokenizeOnChars = instance.tokenizeOnChars; + this.maxTokenLength = instance.maxTokenLength; + + } /** * Required - API name: {@code tokenize_on_chars} *

                                                                              @@ -183,6 +190,12 @@ public CharGroupTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ChineseAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ChineseAnalyzer.java index 23af634684..10cfe3cb9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ChineseAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ChineseAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(ChineseAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public ChineseAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkAnalyzer.java index bf48d0fe79..d10d16f1f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkAnalyzer.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(CjkAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -196,6 +203,12 @@ public CjkAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkBigramTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkBigramTokenFilter.java index 52dd48db67..4f71eb4b41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkBigramTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkBigramTokenFilter.java @@ -142,6 +142,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean outputUnigrams; + public Builder() { + } + private Builder(CjkBigramTokenFilter instance) { + this.ignoredScripts = instance.ignoredScripts; + this.outputUnigrams = instance.outputUnigrams; + + } /** * Array of character scripts for which to disable bigrams. *

                                                                              @@ -196,6 +203,12 @@ public CjkBigramTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkWidthTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkWidthTokenFilter.java index f39b983b5b..f6268aaca3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkWidthTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CjkWidthTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CjkWidthTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public CjkWidthTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenFilter.java index 71254b63b4..e8c44bd22f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ClassicTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public ClassicTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenizer.java index 4d47b9061c..14ca8ebfdf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ClassicTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer maxTokenLength; + public Builder() { + } + private Builder(ClassicTokenizer instance) { + this.maxTokenLength = instance.maxTokenLength; + + } /** * API name: {@code max_token_length} */ @@ -138,6 +144,12 @@ public ClassicTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java index 2416013897..31a9776f9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CommonGramsTokenFilter.java @@ -199,6 +199,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean queryMode; + public Builder() { + } + private Builder(CommonGramsTokenFilter instance) { + this.commonWords = instance.commonWords; + this.commonWordsPath = instance.commonWordsPath; + this.ignoreCase = instance.ignoreCase; + this.queryMode = instance.queryMode; + + } /** * A list of tokens. The filter generates bigrams for these tokens. Either this * or the common_words_path parameter is required. @@ -285,6 +294,12 @@ public CommonGramsTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java index 498e53fdad..94ea67406f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ConditionTokenFilter.java @@ -139,6 +139,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder private Script script; + public Builder() { + } + private Builder(ConditionTokenFilter instance) { + this.filter = instance.filter; + this.script = instance.script; + + } /** * Required - Array of token filters. If a token matches the predicate script in * the script parameter, these filters are applied to the token in @@ -208,6 +215,12 @@ public ConditionTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java index c92cfdf6cb..35e64fa4f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomAnalyzer.java @@ -209,6 +209,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String tokenizer; + public Builder() { + } + private Builder(CustomAnalyzer instance) { + this.charFilter = instance.charFilter; + this.filter = instance.filter; + this.positionIncrementGap = instance.positionIncrementGap; + this.positionOffsetGap = instance.positionOffsetGap; + this.tokenizer = instance.tokenizer; + + } /** * API name: {@code char_filter} *

                                                                              @@ -291,6 +301,12 @@ public CustomAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java index ba2b6c4fc1..210b1a2bd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CustomNormalizer.java @@ -154,6 +154,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List filter; + public Builder() { + } + private Builder(CustomNormalizer instance) { + this.charFilter = instance.charFilter; + this.filter = instance.filter; + + } /** * API name: {@code char_filter} *

                                                                              @@ -212,6 +219,12 @@ public CustomNormalizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechAnalyzer.java index 9f6ba9e736..32b912884e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(CzechAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public CzechAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechStemTokenFilter.java index a3987359e8..5f5d8be7ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/CzechStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(CzechStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public CzechStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DanishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DanishAnalyzer.java index c8f6d91371..0cfa0ff3cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DanishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DanishAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(DanishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public DanishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DecimalDigitTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DecimalDigitTokenFilter.java index 2b48a9bc42..56466d98a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DecimalDigitTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DecimalDigitTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DecimalDigitTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public DecimalDigitTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadTokenFilter.java index 60052318bb..5f4617d20c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DelimitedPayloadTokenFilter.java @@ -135,6 +135,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private DelimitedPayloadEncoding encoding; + public Builder() { + } + private Builder(DelimitedPayloadTokenFilter instance) { + this.delimiter = instance.delimiter; + this.encoding = instance.encoding; + + } /** * Character used to separate tokens from payloads. Defaults to |. *

                                                                              @@ -173,6 +180,12 @@ public DelimitedPayloadTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DictionaryDecompounderTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DictionaryDecompounderTokenFilter.java index e48ac01ea6..3b25f575ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DictionaryDecompounderTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DictionaryDecompounderTokenFilter.java @@ -92,6 +92,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends CompoundWordTokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DictionaryDecompounderTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -110,6 +115,12 @@ public DictionaryDecompounderTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchAnalyzer.java index 7148de8c1a..d3b5d69d58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(DutchAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public DutchAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchStemTokenFilter.java index 54a5da79ac..c75cc704d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/DutchStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DutchStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public DutchStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenFilter.java index 0b4943305e..53968ee247 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenFilter.java @@ -184,6 +184,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean preserveOriginal; + public Builder() { + } + private Builder(EdgeNGramTokenFilter instance) { + this.maxGram = instance.maxGram; + this.minGram = instance.minGram; + this.side = instance.side; + this.preserveOriginal = instance.preserveOriginal; + + } /** * Maximum character length of a gram. For custom token filters, defaults to * 2. For the built-in edge_ngram filter, defaults to @@ -246,6 +255,12 @@ public EdgeNGramTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenizer.java index 7b587e7ddc..ce4c3a08df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EdgeNGramTokenizer.java @@ -177,6 +177,15 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private List tokenChars; + public Builder() { + } + private Builder(EdgeNGramTokenizer instance) { + this.customTokenChars = instance.customTokenChars; + this.maxGram = instance.maxGram; + this.minGram = instance.minGram; + this.tokenChars = instance.tokenChars; + + } /** * API name: {@code custom_token_chars} */ @@ -239,6 +248,12 @@ public EdgeNGramTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ElisionTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ElisionTokenFilter.java index a66985bb35..362b934a09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ElisionTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ElisionTokenFilter.java @@ -175,6 +175,14 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean articlesCase; + public Builder() { + } + private Builder(ElisionTokenFilter instance) { + this.articles = instance.articles; + this.articlesPath = instance.articlesPath; + this.articlesCase = instance.articlesCase; + + } /** * List of elisions to remove. To be removed, the elision must be at the * beginning of a token and be immediately followed by an apostrophe. Both the @@ -251,6 +259,12 @@ public ElisionTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EnglishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EnglishAnalyzer.java index 5981c60b3f..18b620d642 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EnglishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EnglishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(EnglishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public EnglishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EstonianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EstonianAnalyzer.java index 85227ec6d0..5c9636242c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EstonianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/EstonianAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(EstonianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public EstonianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintAnalyzer.java index 17ba99af40..9be1e6f7b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintAnalyzer.java @@ -227,6 +227,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(FingerprintAnalyzer instance) { + this.version = instance.version; + this.maxOutputSize = instance.maxOutputSize; + this.separator = instance.separator; + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code version} * @@ -313,6 +323,12 @@ public FingerprintAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintTokenFilter.java index 565c58ce81..3bf74127aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FingerprintTokenFilter.java @@ -139,6 +139,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String separator; + public Builder() { + } + private Builder(FingerprintTokenFilter instance) { + this.maxOutputSize = instance.maxOutputSize; + this.separator = instance.separator; + + } /** * Maximum character length, including whitespace, of the output token. Defaults * to 255. Concatenated tokens longer than this will result in no @@ -179,6 +186,12 @@ public FingerprintTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FinnishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FinnishAnalyzer.java index 1a50822281..a79a59b66d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FinnishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FinnishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(FinnishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public FinnishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FlattenGraphTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FlattenGraphTokenFilter.java index 758c24fd2f..a3c62bb941 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FlattenGraphTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FlattenGraphTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FlattenGraphTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public FlattenGraphTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchAnalyzer.java index 2101cf9bb4..85a12a6832 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(FrenchAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public FrenchAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchStemTokenFilter.java index 5357234134..05f9872430 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/FrenchStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FrenchStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public FrenchStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GalicianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GalicianAnalyzer.java index 68444dfb02..f9d84e0d72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GalicianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GalicianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(GalicianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public GalicianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanAnalyzer.java index d55757c1c6..2c8a7361c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(GermanAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public GermanAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanNormalizationTokenFilter.java index d0296f9558..4a7e01c38c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GermanNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public GermanNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanStemTokenFilter.java index 6dd3fffd3c..957fd4d13c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GermanStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GermanStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public GermanStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GreekAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GreekAnalyzer.java index d6bc8132d6..7693904c3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GreekAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/GreekAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(GreekAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public GreekAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiAnalyzer.java index 0c0d2ae59f..62cb6aec02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(HindiAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public HindiAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiNormalizationTokenFilter.java index 0a4009729f..0578de29da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HindiNormalizationTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(HindiNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public HindiNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java index d8a97a5a35..01c0d0f53b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java @@ -117,6 +117,12 @@ public static class Builder extends CharFilterBase.AbstractBuilder @Nullable private List escapedTags; + public Builder() { + } + private Builder(HtmlStripCharFilter instance) { + this.escapedTags = instance.escapedTags; + + } /** * API name: {@code escaped_tags} *

                                                                              @@ -155,6 +161,12 @@ public HtmlStripCharFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HungarianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HungarianAnalyzer.java index bfafdc917d..646fd54982 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HungarianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HungarianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(HungarianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public HungarianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java index 4475fa93aa..2693f20cbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HunspellTokenFilter.java @@ -186,6 +186,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean longestOnly; + public Builder() { + } + private Builder(HunspellTokenFilter instance) { + this.dedup = instance.dedup; + this.dictionary = instance.dictionary; + this.locale = instance.locale; + this.longestOnly = instance.longestOnly; + + } /** * If true, duplicate tokens are removed from the filter’s output. * Defaults to true. @@ -253,6 +262,12 @@ public HunspellTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java index 12b1d5576c..fce9b9fd31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HyphenationDecompounderTokenFilter.java @@ -163,6 +163,14 @@ public static class Builder extends CompoundWordTokenFilterBase.AbstractBuilder< @Nullable private Boolean noOverlappingMatches; + public Builder() { + } + private Builder(HyphenationDecompounderTokenFilter instance) { + this.hyphenationPatternsPath = instance.hyphenationPatternsPath; + this.noSubMatches = instance.noSubMatches; + this.noOverlappingMatches = instance.noOverlappingMatches; + + } /** * Required - Path to an Apache FOP (Formatting Objects Processor) XML * hyphenation pattern file. This path must be absolute or relative to the @@ -215,6 +223,12 @@ public HyphenationDecompounderTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java index 595d6fad6d..7bcaafda4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuAnalyzer.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IcuNormalizationMode mode; + public Builder() { + } + private Builder(IcuAnalyzer instance) { + this.method = instance.method; + this.mode = instance.mode; + + } /** * Required - API name: {@code method} */ @@ -167,6 +174,12 @@ public IcuAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationTokenFilter.java index 36f9aabcad..f81ef365f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuCollationTokenFilter.java @@ -329,6 +329,23 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String variant; + public Builder() { + } + private Builder(IcuCollationTokenFilter instance) { + this.alternate = instance.alternate; + this.casefirst = instance.casefirst; + this.caselevel = instance.caselevel; + this.country = instance.country; + this.decomposition = instance.decomposition; + this.hiraganaquaternarymode = instance.hiraganaquaternarymode; + this.language = instance.language; + this.numeric = instance.numeric; + this.rules = instance.rules; + this.strength = instance.strength; + this.variabletop = instance.variabletop; + this.variant = instance.variant; + + } /** * API name: {@code alternate} */ @@ -443,6 +460,12 @@ public IcuCollationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuFoldingTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuFoldingTokenFilter.java index bae89d9a71..8a3012ad4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuFoldingTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuFoldingTokenFilter.java @@ -107,6 +107,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private String unicodeSetFilter; + public Builder() { + } + private Builder(IcuFoldingTokenFilter instance) { + this.unicodeSetFilter = instance.unicodeSetFilter; + + } /** * Required - API name: {@code unicode_set_filter} */ @@ -133,6 +139,12 @@ public IcuFoldingTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationCharFilter.java index 57ad404b35..d5e3c82bc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationCharFilter.java @@ -150,6 +150,14 @@ public static class Builder extends CharFilterBase.AbstractBuilder @Nullable private String unicodeSetFilter; + public Builder() { + } + private Builder(IcuNormalizationCharFilter instance) { + this.mode = instance.mode; + this.name = instance.name; + this.unicodeSetFilter = instance.unicodeSetFilter; + + } /** * API name: {@code mode} */ @@ -192,6 +200,12 @@ public IcuNormalizationCharFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationTokenFilter.java index f9315c43c2..947ef0ce7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationTokenFilter.java @@ -106,6 +106,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private IcuNormalizationType name; + public Builder() { + } + private Builder(IcuNormalizationTokenFilter instance) { + this.name = instance.name; + + } /** * Required - API name: {@code name} */ @@ -132,6 +138,12 @@ public IcuNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTokenizer.java index 73c56560c0..00f14fffb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTokenizer.java @@ -104,6 +104,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenizerBase.AbstractBuilder implements ObjectBuilder { private String ruleFiles; + public Builder() { + } + private Builder(IcuTokenizer instance) { + this.ruleFiles = instance.ruleFiles; + + } /** * Required - API name: {@code rule_files} */ @@ -130,6 +136,12 @@ public IcuTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformTokenFilter.java index b384696970..a86eda4707 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuTransformTokenFilter.java @@ -126,6 +126,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder private String id; + public Builder() { + } + private Builder(IcuTransformTokenFilter instance) { + this.dir = instance.dir; + this.id = instance.id; + + } /** * API name: {@code dir} */ @@ -160,6 +167,12 @@ public IcuTransformTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndicNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndicNormalizationTokenFilter.java index 0da96e8fd2..a4cde58f7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndicNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndicNormalizationTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(IndicNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public IndicNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndonesianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndonesianAnalyzer.java index 1d8bba61b8..08ec77c647 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndonesianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IndonesianAnalyzer.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List stemExclusion; + public Builder() { + } + private Builder(IndonesianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -242,6 +250,12 @@ public IndonesianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IrishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IrishAnalyzer.java index d7305fc8d2..469c4bc28c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IrishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IrishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(IrishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public IrishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ItalianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ItalianAnalyzer.java index c6b1f8aa20..dc7f097e96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ItalianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ItalianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(ItalianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public ItalianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/JaStopTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/JaStopTokenFilter.java index 62be6a67fc..c977bda994 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/JaStopTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/JaStopTokenFilter.java @@ -117,6 +117,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private List stopwords; + public Builder() { + } + private Builder(JaStopTokenFilter instance) { + this.stopwords = instance.stopwords; + + } /** * API name: {@code stopwords} *

                                                                              @@ -155,6 +161,12 @@ public JaStopTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KStemTokenFilter.java index cbb13bb435..39d82aab91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(KStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public KStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepTypesTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepTypesTokenFilter.java index f3e6e2b6a9..e66fffac0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepTypesTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepTypesTokenFilter.java @@ -139,6 +139,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder private List types; + public Builder() { + } + private Builder(KeepTypesTokenFilter instance) { + this.mode = instance.mode; + this.types = instance.types; + + } /** * Indicates whether to keep or remove the specified token types. *

                                                                              @@ -191,6 +198,12 @@ public KeepTypesTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepWordsTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepWordsTokenFilter.java index f298f35425..12bd965baa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepWordsTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeepWordsTokenFilter.java @@ -171,6 +171,14 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String keepWordsPath; + public Builder() { + } + private Builder(KeepWordsTokenFilter instance) { + this.keepWords = instance.keepWords; + this.keepWordsCase = instance.keepWordsCase; + this.keepWordsPath = instance.keepWordsPath; + + } /** * List of words to keep. Only tokens that match words in this list are included * in the output. Either this parameter or keep_words_path must be @@ -242,6 +250,12 @@ public KeepWordsTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordAnalyzer.java index 4c77dd27af..9e710dedc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordAnalyzer.java @@ -129,6 +129,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String version; + public Builder() { + } + private Builder(KeywordAnalyzer instance) { + this.version = instance.version; + + } /** * API name: {@code version} * @@ -158,6 +164,12 @@ public KeywordAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordMarkerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordMarkerTokenFilter.java index 11027ae1d9..da24a25b14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordMarkerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordMarkerTokenFilter.java @@ -200,6 +200,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String keywordsPattern; + public Builder() { + } + private Builder(KeywordMarkerTokenFilter instance) { + this.ignoreCase = instance.ignoreCase; + this.keywords = instance.keywords; + this.keywordsPath = instance.keywordsPath; + this.keywordsPattern = instance.keywordsPattern; + + } /** * If true, matching for the keywords and * keywords_path parameters ignores letter case. Defaults to @@ -289,6 +298,12 @@ public KeywordMarkerTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordRepeatTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordRepeatTokenFilter.java index df8bf776d6..24c3452ec9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordRepeatTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordRepeatTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(KeywordRepeatTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public KeywordRepeatTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordTokenizer.java index 55cb231526..8faf35db4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KeywordTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer bufferSize; + public Builder() { + } + private Builder(KeywordTokenizer instance) { + this.bufferSize = instance.bufferSize; + + } /** * API name: {@code buffer_size} */ @@ -138,6 +144,12 @@ public KeywordTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiAnalyzer.java index 8ff279cbde..1d995f25f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiAnalyzer.java @@ -145,6 +145,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String userDictionary; + public Builder() { + } + private Builder(KuromojiAnalyzer instance) { + this.mode = instance.mode; + this.userDictionary = instance.userDictionary; + + } /** * API name: {@code mode} */ @@ -179,6 +186,12 @@ public KuromojiAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiIterationMarkCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiIterationMarkCharFilter.java index 5050951132..0104e80706 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiIterationMarkCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiIterationMarkCharFilter.java @@ -122,6 +122,13 @@ public static class Builder extends CharFilterBase.AbstractBuilder private Boolean normalizeKanji; + public Builder() { + } + private Builder(KuromojiIterationMarkCharFilter instance) { + this.normalizeKana = instance.normalizeKana; + this.normalizeKanji = instance.normalizeKanji; + + } /** * Required - API name: {@code normalize_kana} */ @@ -156,6 +163,12 @@ public KuromojiIterationMarkCharFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiPartOfSpeechTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiPartOfSpeechTokenFilter.java index 54c3f25674..ff241ea1d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiPartOfSpeechTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiPartOfSpeechTokenFilter.java @@ -117,6 +117,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private List stoptags; + public Builder() { + } + private Builder(KuromojiPartOfSpeechTokenFilter instance) { + this.stoptags = instance.stoptags; + + } /** * Required - API name: {@code stoptags} *

                                                                              @@ -155,6 +161,12 @@ public KuromojiPartOfSpeechTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiReadingFormTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiReadingFormTokenFilter.java index e6c3736b14..2618cc38eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiReadingFormTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiReadingFormTokenFilter.java @@ -107,6 +107,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private Boolean useRomaji; + public Builder() { + } + private Builder(KuromojiReadingFormTokenFilter instance) { + this.useRomaji = instance.useRomaji; + + } /** * Required - API name: {@code use_romaji} */ @@ -133,6 +139,12 @@ public KuromojiReadingFormTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiStemmerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiStemmerTokenFilter.java index 6446d044db..0d46e77d91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiStemmerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiStemmerTokenFilter.java @@ -106,6 +106,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private Integer minimumLength; + public Builder() { + } + private Builder(KuromojiStemmerTokenFilter instance) { + this.minimumLength = instance.minimumLength; + + } /** * Required - API name: {@code minimum_length} */ @@ -132,6 +138,12 @@ public KuromojiStemmerTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiTokenizer.java index 65cbac9164..280c6cd01e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/KuromojiTokenizer.java @@ -233,6 +233,18 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Boolean discardCompoundToken; + public Builder() { + } + private Builder(KuromojiTokenizer instance) { + this.discardPunctuation = instance.discardPunctuation; + this.mode = instance.mode; + this.nbestCost = instance.nbestCost; + this.nbestExamples = instance.nbestExamples; + this.userDictionary = instance.userDictionary; + this.userDictionaryRules = instance.userDictionaryRules; + this.discardCompoundToken = instance.discardCompoundToken; + + } /** * API name: {@code discard_punctuation} */ @@ -319,6 +331,12 @@ public KuromojiTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LatvianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LatvianAnalyzer.java index d9704dc344..a10c7c021d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LatvianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LatvianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(LatvianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public LatvianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java index 5204de7042..fc4fbc4ea0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LengthTokenFilter.java @@ -139,6 +139,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Integer min; + public Builder() { + } + private Builder(LengthTokenFilter instance) { + this.max = instance.max; + this.min = instance.min; + + } /** * Maximum character length of a token. Longer tokens are excluded from the * output. Defaults to Integer.MAX_VALUE, which is @@ -180,6 +187,12 @@ public LengthTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java index 6169a79d6a..bdff5cfd52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LetterTokenizer.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenizerBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(LetterTokenizer instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public LetterTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java index 92f4538fd0..93003d9281 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LimitTokenCountTokenFilter.java @@ -140,6 +140,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Integer maxTokenCount; + public Builder() { + } + private Builder(LimitTokenCountTokenFilter instance) { + this.consumeAllTokens = instance.consumeAllTokens; + this.maxTokenCount = instance.maxTokenCount; + + } /** * If true, the limit filter exhausts the token stream, even if the * max_token_count has already been reached. Defaults to @@ -181,6 +188,12 @@ public LimitTokenCountTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LithuanianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LithuanianAnalyzer.java index 9456659107..74b79b0db5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LithuanianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LithuanianAnalyzer.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List stemExclusion; + public Builder() { + } + private Builder(LithuanianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -242,6 +250,12 @@ public LithuanianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java index fa11286038..3a404f5b24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseNormalizer.java @@ -104,6 +104,11 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + public Builder() { + } + private Builder(LowercaseNormalizer instance) { + + } @Override protected Builder self() { return this; @@ -122,6 +127,12 @@ public LowercaseNormalizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java index 984c25cd73..5e651b1476 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenFilter.java @@ -112,6 +112,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private LowercaseTokenFilterLanguages language; + public Builder() { + } + private Builder(LowercaseTokenFilter instance) { + this.language = instance.language; + + } /** * Language-specific lowercase token filter to use. *

                                                                              @@ -140,6 +146,12 @@ public LowercaseTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java index cd05605061..6a5869f3a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/LowercaseTokenizer.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenizerBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(LowercaseTokenizer instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public LowercaseTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java index 8b622f27a6..1627ae0023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MappingCharFilter.java @@ -137,6 +137,13 @@ public static class Builder extends CharFilterBase.AbstractBuilder @Nullable private String mappingsPath; + public Builder() { + } + private Builder(MappingCharFilter instance) { + this.mappings = instance.mappings; + this.mappingsPath = instance.mappingsPath; + + } /** * API name: {@code mappings} *

                                                                              @@ -183,6 +190,12 @@ public MappingCharFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MinHashTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MinHashTokenFilter.java index 23bcddfe88..27a4dbde2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MinHashTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MinHashTokenFilter.java @@ -188,6 +188,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean withRotation; + public Builder() { + } + private Builder(MinHashTokenFilter instance) { + this.bucketCount = instance.bucketCount; + this.hashCount = instance.hashCount; + this.hashSetSize = instance.hashSetSize; + this.withRotation = instance.withRotation; + + } /** * Number of buckets to which hashes are assigned. Defaults to 512. *

                                                                              @@ -253,6 +262,12 @@ public MinHashTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java index a29ee93d94..0778e0953e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/MultiplexerTokenFilter.java @@ -142,6 +142,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean preserveOriginal; + public Builder() { + } + private Builder(MultiplexerTokenFilter instance) { + this.filters = instance.filters; + this.preserveOriginal = instance.preserveOriginal; + + } /** * Required - A list of token filters to apply to incoming tokens. *

                                                                              @@ -195,6 +202,12 @@ public MultiplexerTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java index a92aea188c..d2e6ab1534 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenFilter.java @@ -160,6 +160,14 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean preserveOriginal; + public Builder() { + } + private Builder(NGramTokenFilter instance) { + this.maxGram = instance.maxGram; + this.minGram = instance.minGram; + this.preserveOriginal = instance.preserveOriginal; + + } /** * Maximum length of characters in a gram. Defaults to 2. *

                                                                              @@ -209,6 +217,12 @@ public NGramTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java index 182048458f..e087f7c1a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NGramTokenizer.java @@ -177,6 +177,15 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private List tokenChars; + public Builder() { + } + private Builder(NGramTokenizer instance) { + this.customTokenChars = instance.customTokenChars; + this.maxGram = instance.maxGram; + this.minGram = instance.minGram; + this.tokenChars = instance.tokenChars; + + } /** * API name: {@code custom_token_chars} */ @@ -239,6 +248,12 @@ public NGramTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java index 443930cb71..3ed4075513 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriAnalyzer.java @@ -192,6 +192,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String userDictionary; + public Builder() { + } + private Builder(NoriAnalyzer instance) { + this.version = instance.version; + this.decompoundMode = instance.decompoundMode; + this.stoptags = instance.stoptags; + this.userDictionary = instance.userDictionary; + + } /** * API name: {@code version} * @@ -257,6 +266,12 @@ public NoriAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriPartOfSpeechTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriPartOfSpeechTokenFilter.java index a2b9d30ad0..0ae6a34fff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriPartOfSpeechTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriPartOfSpeechTokenFilter.java @@ -119,6 +119,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private List stoptags; + public Builder() { + } + private Builder(NoriPartOfSpeechTokenFilter instance) { + this.stoptags = instance.stoptags; + + } /** * An array of part-of-speech tags that should be removed. *

                                                                              @@ -161,6 +167,12 @@ public NoriPartOfSpeechTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriTokenizer.java index 1e83c8664a..3a3cda7cd2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NoriTokenizer.java @@ -175,6 +175,15 @@ public static class Builder extends TokenizerBase.AbstractBuilder imple @Nullable private List userDictionaryRules; + public Builder() { + } + private Builder(NoriTokenizer instance) { + this.decompoundMode = instance.decompoundMode; + this.discardPunctuation = instance.discardPunctuation; + this.userDictionary = instance.userDictionary; + this.userDictionaryRules = instance.userDictionaryRules; + + } /** * API name: {@code decompound_mode} */ @@ -237,6 +246,12 @@ public NoriTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NorwegianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NorwegianAnalyzer.java index a769cb1530..3be049d4b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NorwegianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/NorwegianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(NorwegianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public NorwegianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java index d6df934e00..f8138abd5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PathHierarchyTokenizer.java @@ -194,6 +194,16 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer skip; + public Builder() { + } + private Builder(PathHierarchyTokenizer instance) { + this.bufferSize = instance.bufferSize; + this.delimiter = instance.delimiter; + this.replacement = instance.replacement; + this.reverse = instance.reverse; + this.skip = instance.skip; + + } /** * API name: {@code buffer_size} */ @@ -252,6 +262,12 @@ public PathHierarchyTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java index 6a13663398..cb107fd10b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternAnalyzer.java @@ -247,6 +247,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(PatternAnalyzer instance) { + this.version = instance.version; + this.flags = instance.flags; + this.lowercase = instance.lowercase; + this.pattern = instance.pattern; + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code version} * @@ -343,6 +354,12 @@ public PatternAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java index c93c8e79cd..8a401748c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternCaptureTokenFilter.java @@ -141,6 +141,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean preserveOriginal; + public Builder() { + } + private Builder(PatternCaptureTokenFilter instance) { + this.patterns = instance.patterns; + this.preserveOriginal = instance.preserveOriginal; + + } /** * Required - A list of regular expressions to match. *

                                                                              @@ -193,6 +200,12 @@ public PatternCaptureTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java index 32af830bc4..310e3ca8ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceCharFilter.java @@ -148,6 +148,14 @@ public static class Builder extends CharFilterBase.AbstractBuilder @Nullable private String replacement; + public Builder() { + } + private Builder(PatternReplaceCharFilter instance) { + this.flags = instance.flags; + this.pattern = instance.pattern; + this.replacement = instance.replacement; + + } /** * API name: {@code flags} */ @@ -190,6 +198,12 @@ public PatternReplaceCharFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java index d22dc277bf..ac994af5ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternReplaceTokenFilter.java @@ -180,6 +180,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String replacement; + public Builder() { + } + private Builder(PatternReplaceTokenFilter instance) { + this.all = instance.all; + this.flags = instance.flags; + this.pattern = instance.pattern; + this.replacement = instance.replacement; + + } /** * If true, all substrings matching the pattern parameter’s regular * expression are replaced. If false, the filter replaces only the @@ -241,6 +250,12 @@ public PatternReplaceTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java index 8199d1a5bb..bd8e052c14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PatternTokenizer.java @@ -153,6 +153,14 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private String pattern; + public Builder() { + } + private Builder(PatternTokenizer instance) { + this.flags = instance.flags; + this.group = instance.group; + this.pattern = instance.pattern; + + } /** * API name: {@code flags} */ @@ -195,6 +203,12 @@ public PatternTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianAnalyzer.java index 7f6fcfb2f0..cddbb4555b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianAnalyzer.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(PersianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -197,6 +204,12 @@ public PersianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianNormalizationTokenFilter.java index 4a96e123a3..2617e04d71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(PersianNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public PersianNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianStemTokenFilter.java index d889075bb4..b07d8101e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PersianStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(PersianStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public PersianStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticTokenFilter.java index 019fc839c0..733c5d716c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PhoneticTokenFilter.java @@ -209,6 +209,17 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private PhoneticRuleType ruleType; + public Builder() { + } + private Builder(PhoneticTokenFilter instance) { + this.encoder = instance.encoder; + this.languageset = instance.languageset; + this.maxCodeLen = instance.maxCodeLen; + this.nameType = instance.nameType; + this.replace = instance.replace; + this.ruleType = instance.ruleType; + + } /** * Required - API name: {@code encoder} */ @@ -287,6 +298,12 @@ public PhoneticTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PorterStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PorterStemTokenFilter.java index 6ae8826408..bb65510ab0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PorterStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PorterStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(PorterStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public PorterStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PortugueseAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PortugueseAnalyzer.java index 27c85d66af..ab46a1b5d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PortugueseAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PortugueseAnalyzer.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List stemExclusion; + public Builder() { + } + private Builder(PortugueseAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -242,6 +250,12 @@ public PortugueseAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PredicateTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PredicateTokenFilter.java index 50d5a874c9..d725c47a3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PredicateTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/PredicateTokenFilter.java @@ -110,6 +110,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder ObjectBuilder { private Script script; + public Builder() { + } + private Builder(PredicateTokenFilter instance) { + this.script = instance.script; + + } /** * Required - Script containing a condition used to filter incoming tokens. Only * tokens that match this script are included in the output. @@ -149,6 +155,12 @@ public PredicateTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RemoveDuplicatesTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RemoveDuplicatesTokenFilter.java index 45edb3e01b..37e060f571 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RemoveDuplicatesTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RemoveDuplicatesTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(RemoveDuplicatesTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public RemoveDuplicatesTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ReverseTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ReverseTokenFilter.java index 5f5386d672..d885671d9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ReverseTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ReverseTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ReverseTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public ReverseTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RomanianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RomanianAnalyzer.java index 84a074457e..9cc753f594 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RomanianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RomanianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(RomanianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public RomanianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianAnalyzer.java index 5e872ec829..a9c9f1d870 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(RussianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public RussianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianStemTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianStemTokenFilter.java index 19e578f833..f56cf260ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianStemTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/RussianStemTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(RussianStemTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public RussianStemTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianFoldingTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianFoldingTokenFilter.java index eaa5e34c3a..0b977186cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianFoldingTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianFoldingTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ScandinavianFoldingTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public ScandinavianFoldingTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianNormalizationTokenFilter.java index 775fc55c7a..e12cd0ac71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ScandinavianNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ScandinavianNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public ScandinavianNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianAnalyzer.java index 42012a3a5b..9062adb906 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(SerbianAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public SerbianAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianNormalizationTokenFilter.java index 173b03594a..fa03934651 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SerbianNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SerbianNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public SerbianNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ShingleTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ShingleTokenFilter.java index 1fd390114c..4daf6f7c5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ShingleTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ShingleTokenFilter.java @@ -235,6 +235,17 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String tokenSeparator; + public Builder() { + } + private Builder(ShingleTokenFilter instance) { + this.fillerToken = instance.fillerToken; + this.maxShingleSize = instance.maxShingleSize; + this.minShingleSize = instance.minShingleSize; + this.outputUnigrams = instance.outputUnigrams; + this.outputUnigramsIfNoShingles = instance.outputUnigramsIfNoShingles; + this.tokenSeparator = instance.tokenSeparator; + + } /** * String used in shingles as a replacement for empty positions that do not * contain a token. This filler token is only used in shingles, not original @@ -322,6 +333,12 @@ public ShingleTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimpleAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimpleAnalyzer.java index 73cdb542e7..149bc0a237 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimpleAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimpleAnalyzer.java @@ -129,6 +129,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String version; + public Builder() { + } + private Builder(SimpleAnalyzer instance) { + this.version = instance.version; + + } /** * API name: {@code version} * @@ -158,6 +164,12 @@ public SimpleAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternSplitTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternSplitTokenizer.java index 9543b03951..002c12371b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternSplitTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternSplitTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private String pattern; + public Builder() { + } + private Builder(SimplePatternSplitTokenizer instance) { + this.pattern = instance.pattern; + + } /** * API name: {@code pattern} */ @@ -138,6 +144,12 @@ public SimplePatternSplitTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternTokenizer.java index 255e56e082..9782ba74ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SimplePatternTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private String pattern; + public Builder() { + } + private Builder(SimplePatternTokenizer instance) { + this.pattern = instance.pattern; + + } /** * API name: {@code pattern} */ @@ -138,6 +144,12 @@ public SimplePatternTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballAnalyzer.java index 846e1589e1..4e5fa9ee35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballAnalyzer.java @@ -168,6 +168,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stopwords; + public Builder() { + } + private Builder(SnowballAnalyzer instance) { + this.version = instance.version; + this.language = instance.language; + this.stopwords = instance.stopwords; + + } /** * API name: {@code version} * @@ -225,6 +233,12 @@ public SnowballAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballTokenFilter.java index ef027e6159..b0b8097969 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SnowballTokenFilter.java @@ -112,6 +112,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private SnowballLanguage language; + public Builder() { + } + private Builder(SnowballTokenFilter instance) { + this.language = instance.language; + + } /** * Controls the language used by the stemmer. *

                                                                              @@ -140,6 +146,12 @@ public SnowballTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniAnalyzer.java index a56c6f5819..ce0484fcae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(SoraniAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public SoraniAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniNormalizationTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniNormalizationTokenFilter.java index d5026cf474..87af7da300 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniNormalizationTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SoraniNormalizationTokenFilter.java @@ -90,6 +90,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SoraniNormalizationTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -108,6 +113,12 @@ public SoraniNormalizationTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SpanishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SpanishAnalyzer.java index aa3db52d68..a97f9c86f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SpanishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SpanishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(SpanishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public SpanishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardAnalyzer.java index c51d4f77d7..770c9e7f81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardAnalyzer.java @@ -181,6 +181,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(StandardAnalyzer instance) { + this.maxTokenLength = instance.maxTokenLength; + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * The maximum token length. If a token is seen that exceeds this length then it * is split at max_token_length intervals. Defaults to @@ -247,6 +255,12 @@ public StandardAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardTokenizer.java index fdd9e766b9..f446a91272 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StandardTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer maxTokenLength; + public Builder() { + } + private Builder(StandardTokenizer instance) { + this.maxTokenLength = instance.maxTokenLength; + + } /** * API name: {@code max_token_length} */ @@ -138,6 +144,12 @@ public StandardTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerOverrideTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerOverrideTokenFilter.java index 1c8e057cc1..740169c281 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerOverrideTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerOverrideTokenFilter.java @@ -142,6 +142,13 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String rulesPath; + public Builder() { + } + private Builder(StemmerOverrideTokenFilter instance) { + this.rules = instance.rules; + this.rulesPath = instance.rulesPath; + + } /** * A list of mapping rules to use. *

                                                                              @@ -195,6 +202,12 @@ public StemmerOverrideTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java index b3422eb6fd..a89bc9a789 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java @@ -112,6 +112,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String language; + public Builder() { + } + private Builder(StemmerTokenFilter instance) { + this.language = instance.language; + + } /** * API name: {@code language} */ @@ -138,6 +144,12 @@ public StemmerTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopAnalyzer.java index 50bcda900d..fec7b7b7ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopAnalyzer.java @@ -178,6 +178,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(StopAnalyzer instance) { + this.version = instance.version; + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code version} * @@ -243,6 +251,12 @@ public StopAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopTokenFilter.java index 4868a309f1..fd156ed764 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StopTokenFilter.java @@ -193,6 +193,15 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(StopTokenFilter instance) { + this.ignoreCase = instance.ignoreCase; + this.removeTrailing = instance.removeTrailing; + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * If true, stop word matching is case insensitive. For example, if * true, a stop word of the matches and removes The, @@ -273,6 +282,12 @@ public StopTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SwedishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SwedishAnalyzer.java index 230c906ae6..f7898c3129 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SwedishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SwedishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(SwedishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public SwedishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymGraphTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymGraphTokenFilter.java index 9c0dda614e..de41160f5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymGraphTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymGraphTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends SynonymTokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SynonymGraphTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public SynonymGraphTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymTokenFilter.java index 3023dd599a..4c8f319421 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/SynonymTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends SynonymTokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(SynonymTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public SynonymTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiAnalyzer.java index 429fa14aad..a7fd465878 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiAnalyzer.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String stopwordsPath; + public Builder() { + } + private Builder(ThaiAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + + } /** * API name: {@code stopwords} *

                                                                              @@ -196,6 +203,12 @@ public ThaiAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiTokenizer.java index 2c7d1ee7a4..c7e4c902cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/ThaiTokenizer.java @@ -87,6 +87,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends TokenizerBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(ThaiTokenizer instance) { + + } @Override protected Builder self() { return this; @@ -105,6 +110,12 @@ public ThaiTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java index 71cc227385..350603044b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TrimTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(TrimTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public TrimTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java index 892d2b3f4c..4e3a3f14bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TruncateTokenFilter.java @@ -115,6 +115,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Integer length; + public Builder() { + } + private Builder(TruncateTokenFilter instance) { + this.length = instance.length; + + } /** * Character limit for each token. Tokens exceeding this limit are truncated. * Defaults to 10. @@ -144,6 +150,12 @@ public TruncateTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TurkishAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TurkishAnalyzer.java index 64b0832ad5..5742cfa1a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TurkishAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/TurkishAnalyzer.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stemExclusion; + public Builder() { + } + private Builder(TurkishAnalyzer instance) { + this.stopwords = instance.stopwords; + this.stopwordsPath = instance.stopwordsPath; + this.stemExclusion = instance.stemExclusion; + + } /** * API name: {@code stopwords} *

                                                                              @@ -240,6 +248,12 @@ public TurkishAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java index 3781e52e75..9f08fb70f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UaxEmailUrlTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer maxTokenLength; + public Builder() { + } + private Builder(UaxEmailUrlTokenizer instance) { + this.maxTokenLength = instance.maxTokenLength; + + } /** * API name: {@code max_token_length} */ @@ -138,6 +144,12 @@ public UaxEmailUrlTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java index e84beac685..dc387e289b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UniqueTokenFilter.java @@ -115,6 +115,12 @@ public static class Builder extends TokenFilterBase.AbstractBuilder @Nullable private Boolean onlyOnSamePosition; + public Builder() { + } + private Builder(UniqueTokenFilter instance) { + this.onlyOnSamePosition = instance.onlyOnSamePosition; + + } /** * If true, only remove duplicate tokens in the same position. * Defaults to false. @@ -144,6 +150,12 @@ public UniqueTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java index 7e64d0ba71..cd237173fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/UppercaseTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UppercaseTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public UppercaseTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java index 6a62df8c7e..1190656938 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceAnalyzer.java @@ -131,6 +131,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String version; + public Builder() { + } + private Builder(WhitespaceAnalyzer instance) { + this.version = instance.version; + + } /** * API name: {@code version} * @@ -160,6 +166,12 @@ public WhitespaceAnalyzer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java index 997a15eee6..959c6cafb6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WhitespaceTokenizer.java @@ -112,6 +112,12 @@ public static class Builder extends TokenizerBase.AbstractBuilder @Nullable private Integer maxTokenLength; + public Builder() { + } + private Builder(WhitespaceTokenizer instance) { + this.maxTokenLength = instance.maxTokenLength; + + } /** * API name: {@code max_token_length} */ @@ -138,6 +144,12 @@ public WhitespaceTokenizer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java index a8aa497897..abc897b6bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterGraphTokenFilter.java @@ -141,6 +141,13 @@ public static class Builder extends WordDelimiterTokenFilterBase.AbstractBuilder @Nullable private Boolean ignoreKeywords; + public Builder() { + } + private Builder(WordDelimiterGraphTokenFilter instance) { + this.adjustOffsets = instance.adjustOffsets; + this.ignoreKeywords = instance.ignoreKeywords; + + } /** * If true, the filter adjusts the offsets of split or catenated * tokens to better reflect their actual position in the token stream. Defaults @@ -182,6 +189,12 @@ public WordDelimiterGraphTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java index dd90e7b828..17ba3b5918 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/WordDelimiterTokenFilter.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends WordDelimiterTokenFilterBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(WordDelimiterTokenFilter instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public WordDelimiterTokenFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java index f5eb3dc37e..4348b6366f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AggregateMetricDoubleProperty.java @@ -171,6 +171,15 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private TimeSeriesMetricType timeSeriesMetric; + public Builder() { + } + private Builder(AggregateMetricDoubleProperty instance) { + this.defaultMetric = instance.defaultMetric; + this.ignoreMalformed = instance.ignoreMalformed; + this.metrics = instance.metrics; + this.timeSeriesMetric = instance.timeSeriesMetric; + + } /** * Required - API name: {@code default_metric} */ @@ -233,6 +242,12 @@ public AggregateMetricDoubleProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java index 3a77f73724..74c5850a0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/AllField.java @@ -249,6 +249,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean storeTermVectors; + public Builder() { + } + private Builder(AllField instance) { + this.analyzer = instance.analyzer; + this.enabled = instance.enabled; + this.omitNorms = instance.omitNorms; + this.searchAnalyzer = instance.searchAnalyzer; + this.similarity = instance.similarity; + this.store = instance.store; + this.storeTermVectorOffsets = instance.storeTermVectorOffsets; + this.storeTermVectorPayloads = instance.storeTermVectorPayloads; + this.storeTermVectorPositions = instance.storeTermVectorPositions; + this.storeTermVectors = instance.storeTermVectors; + + } /** * Required - API name: {@code analyzer} */ @@ -347,6 +362,12 @@ public AllField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java index e8f26b4b7c..5f36d9e16d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BinaryProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(BinaryProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public BinaryProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java index a65698a660..4125601bb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/BooleanProperty.java @@ -257,6 +257,19 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private Number nullValue; + public Builder() { + } + private Builder(ByteNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public ByteNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkRescorerChunkingSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkRescorerChunkingSettings.java index 9301ff4d43..3eb0d870c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkRescorerChunkingSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkRescorerChunkingSettings.java @@ -268,6 +268,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer sentenceOverlap; + public Builder() { + } + private Builder(ChunkRescorerChunkingSettings instance) { + this.strategy = instance.strategy; + this.separatorGroup = instance.separatorGroup; + this.separators = instance.separators; + this.maxChunkSize = instance.maxChunkSize; + this.overlap = instance.overlap; + this.sentenceOverlap = instance.sentenceOverlap; + + } /** * The chunking strategy: sentence, word, * none or recursive. @@ -408,6 +419,12 @@ public ChunkRescorerChunkingSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkingSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkingSettings.java index 0c41e8ef39..e0b0e90811 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkingSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ChunkingSettings.java @@ -261,6 +261,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer sentenceOverlap; + public Builder() { + } + private Builder(ChunkingSettings instance) { + this.strategy = instance.strategy; + this.separatorGroup = instance.separatorGroup; + this.separators = instance.separators; + this.maxChunkSize = instance.maxChunkSize; + this.overlap = instance.overlap; + this.sentenceOverlap = instance.sentenceOverlap; + + } /** * Required - The chunking strategy: sentence, word, * none or recursive. @@ -401,6 +412,12 @@ public ChunkingSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java index 9519b6f680..a1cea0d3bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CompletionProperty.java @@ -219,6 +219,17 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { private RuntimeFieldType type; + public Builder() { + } + private Builder(CompositeSubField instance) { + this.type = instance.type; + + } /** * Required - API name: {@code type} */ @@ -136,6 +142,12 @@ public CompositeSubField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java index 10aa443e59..1da75e25a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ConstantKeywordProperty.java @@ -112,6 +112,12 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private JsonData value; + public Builder() { + } + private Builder(ConstantKeywordProperty instance) { + this.value = instance.value; + + } /** * API name: {@code value} */ @@ -138,6 +144,12 @@ public ConstantKeywordProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CountedKeywordProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CountedKeywordProperty.java index 07003d858a..634f789445 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CountedKeywordProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/CountedKeywordProperty.java @@ -112,6 +112,12 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private Boolean index; + public Builder() { + } + private Builder(CountedKeywordProperty instance) { + this.index = instance.index; + + } /** * API name: {@code index} */ @@ -138,6 +144,12 @@ public CountedKeywordProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java index 29a2d2c192..c1fc8bbaed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DataStreamTimestamp.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(DataStreamTimestamp instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -138,6 +144,12 @@ public DataStreamTimestamp build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java index d587911b7b..feaf2dbeda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DateNanosProperty.java @@ -255,6 +255,19 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private String format; + public Builder() { + } + private Builder(DateRangeProperty instance) { + this.format = instance.format; + + } /** * API name: {@code format} */ @@ -138,6 +144,12 @@ public DateRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java index f4c04ae0c1..535a22d4ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptions.java @@ -255,6 +255,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean onDiskRescore; + public Builder() { + } + private Builder(DenseVectorIndexOptions instance) { + this.confidenceInterval = instance.confidenceInterval; + this.efConstruction = instance.efConstruction; + this.m = instance.m; + this.type = instance.type; + this.rescoreVector = instance.rescoreVector; + this.onDiskRescore = instance.onDiskRescore; + + } /** * The confidence interval to use when quantizing the vectors. Can be any value * between and including 0.90 and 1.0 or exactly @@ -374,6 +385,12 @@ public DenseVectorIndexOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptionsRescoreVector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptionsRescoreVector.java index 82ba4e5265..1021a2c933 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptionsRescoreVector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorIndexOptionsRescoreVector.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Float oversample; + public Builder() { + } + private Builder(DenseVectorIndexOptionsRescoreVector instance) { + this.oversample = instance.oversample; + + } /** * Required - The oversampling factor to use when searching for the nearest * neighbor. This is only applicable to the quantized formats: @@ -157,6 +163,12 @@ public DenseVectorIndexOptionsRescoreVector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java index 0fa3c2d3b0..cdb0013187 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DenseVectorProperty.java @@ -224,6 +224,16 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private DenseVectorSimilarity similarity; + public Builder() { + } + private Builder(DenseVectorProperty instance) { + this.dims = instance.dims; + this.elementType = instance.elementType; + this.index = instance.index; + this.indexOptions = instance.indexOptions; + this.similarity = instance.similarity; + + } /** * Number of vector dimensions. Can't exceed 4096. If * dims is not specified, it will be set to the length of the first @@ -331,6 +341,12 @@ public DenseVectorProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java index ec3c92e18a..6af54bcae2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleNumberProperty.java @@ -112,6 +112,12 @@ public static class Builder extends NumberPropertyBase.AbstractBuilder @Nullable private Double nullValue; + public Builder() { + } + private Builder(DoubleNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public DoubleNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java index 0f6c63040b..f0d8624e8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DoubleRangeProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RangePropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DoubleRangeProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public DoubleRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java index e2a0b406ef..9c3fcac8e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java @@ -533,6 +533,33 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private TimeSeriesMetricType timeSeriesMetric; + public Builder() { + } + private Builder(ExponentialHistogramProperty instance) { + this.timeSeriesMetric = instance.timeSeriesMetric; + + } /** * API name: {@code time_series_metric} */ @@ -136,6 +142,12 @@ public ExponentialHistogramProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldAliasProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldAliasProperty.java index dd2ca3bc0c..4e4493cf8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldAliasProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldAliasProperty.java @@ -112,6 +112,12 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private String path; + public Builder() { + } + private Builder(FieldAliasProperty instance) { + this.path = instance.path; + + } /** * API name: {@code path} */ @@ -138,6 +144,12 @@ public FieldAliasProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldMapping.java index fc4ce389cc..853c27d3f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldMapping.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map mapping; + public Builder() { + } + private Builder(FieldMapping instance) { + this.fullName = instance.fullName; + this.mapping = instance.mapping; + + } /** * Required - API name: {@code full_name} */ @@ -190,6 +197,12 @@ public FieldMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldNamesField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldNamesField.java index c8930e8ec5..52194bc95d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldNamesField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FieldNamesField.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(FieldNamesField instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -136,6 +142,12 @@ public FieldNamesField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java index 17bf153e18..781d5aeae4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FlattenedProperty.java @@ -299,6 +299,21 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private List timeSeriesDimensions; + public Builder() { + } + private Builder(FlattenedProperty instance) { + this.boost = instance.boost; + this.depthLimit = instance.depthLimit; + this.docValues = instance.docValues; + this.eagerGlobalOrdinals = instance.eagerGlobalOrdinals; + this.index = instance.index; + this.indexOptions = instance.indexOptions; + this.nullValue = instance.nullValue; + this.similarity = instance.similarity; + this.splitQueriesOnWhitespace = instance.splitQueriesOnWhitespace; + this.timeSeriesDimensions = instance.timeSeriesDimensions; + + } /** * API name: {@code boost} */ @@ -409,6 +424,12 @@ public FlattenedProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java index 5834ff2842..4e683aa392 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatNumberProperty.java @@ -112,6 +112,12 @@ public static class Builder extends NumberPropertyBase.AbstractBuilder @Nullable private Float nullValue; + public Builder() { + } + private Builder(FloatNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public FloatNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java index 7502476569..e9f1f9ea69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/FloatRangeProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RangePropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(FloatRangeProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public FloatRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java index 10ed7cfbe0..226a18d8fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoPointProperty.java @@ -232,6 +232,18 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private Float nullValue; + public Builder() { + } + private Builder(HalfFloatNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public HalfFloatNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java index 9ac6cd2bf7..86303dc3bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/HistogramProperty.java @@ -131,6 +131,13 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private TimeSeriesMetricType timeSeriesMetric; + public Builder() { + } + private Builder(HistogramProperty instance) { + this.ignoreMalformed = instance.ignoreMalformed; + this.timeSeriesMetric = instance.timeSeriesMetric; + + } /** * API name: {@code ignore_malformed} */ @@ -165,6 +172,12 @@ public HistogramProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IcuCollationProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IcuCollationProperty.java index a4c839f187..79adf840df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IcuCollationProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IcuCollationProperty.java @@ -417,6 +417,27 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(IndexField instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -135,6 +141,12 @@ public IndexField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java index 2d038d8245..27ba31a386 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerNumberProperty.java @@ -112,6 +112,12 @@ public static class Builder extends NumberPropertyBase.AbstractBuilder @Nullable private Integer nullValue; + public Builder() { + } + private Builder(IntegerNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public IntegerNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java index d98b7b1174..c6f9753c27 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IntegerRangeProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RangePropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(IntegerRangeProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public IntegerRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java index 264101c823..99610c5067 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/IpProperty.java @@ -236,6 +236,18 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(IpRangeProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public IpRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java index 24a820e727..b75bc9d488 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/JoinProperty.java @@ -144,6 +144,13 @@ public static class Builder extends PropertyBase.AbstractBuilder implem @Nullable private Boolean eagerGlobalOrdinals; + public Builder() { + } + private Builder(JoinProperty instance) { + this.relations = instance.relations; + this.eagerGlobalOrdinals = instance.eagerGlobalOrdinals; + + } /** * API name: {@code relations} *

                                                                              @@ -190,6 +197,12 @@ public JoinProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java index 710c761fa6..80122c03c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/KeywordProperty.java @@ -336,6 +336,23 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private Long nullValue; + public Builder() { + } + private Builder(LongNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public LongNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java index 72566225c2..c38ea6b814 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/LongRangeProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RangePropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(LongRangeProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public LongRangeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java index e74c6c88e9..33b8c9acb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/MatchOnlyTextProperty.java @@ -199,6 +199,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List copyTo; + public Builder() { + } + private Builder(MatchOnlyTextProperty instance) { + this.fields = instance.fields; + this.meta = instance.meta; + this.copyTo = instance.copyTo; + + } /** * Multi-fields allow the same string value to be indexed in multiple ways for * different purposes, such as one field for search and a multi-field for @@ -311,6 +319,12 @@ public MatchOnlyTextProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java index 4fa64a6140..90773d210e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Murmur3HashProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(Murmur3HashProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public Murmur3HashProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java index 203b4395a8..4c5c8078d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/NestedProperty.java @@ -152,6 +152,14 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private Boolean includeInRoot; + public Builder() { + } + private Builder(NestedProperty instance) { + this.enabled = instance.enabled; + this.includeInParent = instance.includeInParent; + this.includeInRoot = instance.includeInRoot; + + } /** * API name: {@code enabled} */ @@ -194,6 +202,12 @@ public NestedProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java index afb8a8832b..c4e64c720c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ObjectProperty.java @@ -131,6 +131,13 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private Subobjects subobjects; + public Builder() { + } + private Builder(ObjectProperty instance) { + this.enabled = instance.enabled; + this.subobjects = instance.subobjects; + + } /** * API name: {@code enabled} */ @@ -165,6 +172,12 @@ public ObjectProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PassthroughObjectProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PassthroughObjectProperty.java index 325a5f01f4..a49b29bf98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PassthroughObjectProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PassthroughObjectProperty.java @@ -153,6 +153,14 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private Boolean timeSeriesDimension; + public Builder() { + } + private Builder(PassthroughObjectProperty instance) { + this.enabled = instance.enabled; + this.priority = instance.priority; + this.timeSeriesDimension = instance.timeSeriesDimension; + + } /** * API name: {@code enabled} */ @@ -195,6 +203,12 @@ public PassthroughObjectProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java index bd3625e413..f9b1757d81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PercolatorProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends PropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(PercolatorProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public PercolatorProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java index 844e66ce84..62195eae4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PointProperty.java @@ -152,6 +152,14 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private Boolean positiveScoreImpact; + public Builder() { + } + private Builder(RankFeatureProperty instance) { + this.positiveScoreImpact = instance.positiveScoreImpact; + + } /** * API name: {@code positive_score_impact} */ @@ -138,6 +144,12 @@ public RankFeatureProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java index 50ed416333..771300e147 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankFeaturesProperty.java @@ -112,6 +112,12 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private Boolean positiveScoreImpact; + public Builder() { + } + private Builder(RankFeaturesProperty instance) { + this.positiveScoreImpact = instance.positiveScoreImpact; + + } /** * API name: {@code positive_score_impact} */ @@ -138,6 +144,12 @@ public RankFeaturesProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankVectorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankVectorProperty.java index 1b2c96affd..a1190fefce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankVectorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RankVectorProperty.java @@ -132,6 +132,13 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private Integer dims; + public Builder() { + } + private Builder(RankVectorProperty instance) { + this.elementType = instance.elementType; + this.dims = instance.dims; + + } /** * API name: {@code element_type} */ @@ -166,6 +173,12 @@ public RankVectorProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java index 6fc4220a67..59cb409bb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RoutingField.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean required; + public Builder() { + } + private Builder(RoutingField instance) { + this.required = instance.required; + + } /** * Required - API name: {@code required} */ @@ -135,6 +141,12 @@ public RoutingField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java index f80914e7c9..0f3a7b1518 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java @@ -287,6 +287,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private RuntimeFieldType type; + public Builder() { + } + private Builder(RuntimeField instance) { + this.fields = instance.fields; + this.fetchFields = instance.fetchFields; + this.format = instance.format; + this.inputField = instance.inputField; + this.targetField = instance.targetField; + this.targetIndex = instance.targetIndex; + this.script = instance.script; + this.type = instance.type; + + } /** * For type composite *

                                                                              @@ -449,6 +462,12 @@ public RuntimeField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java index f7f37a43d2..6c3524c68f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldFetchFields.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String format; + public Builder() { + } + private Builder(RuntimeFieldFetchFields instance) { + this.field = instance.field; + this.format = instance.format; + + } /** * Required - API name: {@code field} */ @@ -168,6 +175,12 @@ public RuntimeFieldFetchFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ScaledFloatNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ScaledFloatNumberProperty.java index bfdf615225..517f8890c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ScaledFloatNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ScaledFloatNumberProperty.java @@ -132,6 +132,13 @@ public static class Builder extends NumberPropertyBase.AbstractBuilder @Nullable private Double scalingFactor; + public Builder() { + } + private Builder(ScaledFloatNumberProperty instance) { + this.nullValue = instance.nullValue; + this.scalingFactor = instance.scalingFactor; + + } /** * API name: {@code null_value} */ @@ -166,6 +173,12 @@ public ScaledFloatNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SearchAsYouTypeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SearchAsYouTypeProperty.java index 73398fa7ef..695b5c046a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SearchAsYouTypeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SearchAsYouTypeProperty.java @@ -272,6 +272,20 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private TermVectorOption termVector; + public Builder() { + } + private Builder(SearchAsYouTypeProperty instance) { + this.analyzer = instance.analyzer; + this.index = instance.index; + this.indexOptions = instance.indexOptions; + this.maxShingleSize = instance.maxShingleSize; + this.norms = instance.norms; + this.searchAnalyzer = instance.searchAnalyzer; + this.searchQuoteAnalyzer = instance.searchQuoteAnalyzer; + this.similarity = instance.similarity; + this.termVector = instance.termVector; + + } /** * API name: {@code analyzer} */ @@ -362,6 +376,12 @@ public SearchAsYouTypeProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextIndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextIndexOptions.java index c523c0e227..3648fb0f32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextIndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextIndexOptions.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private SparseVectorIndexOptions sparseVector; + public Builder() { + } + private Builder(SemanticTextIndexOptions instance) { + this.denseVector = instance.denseVector; + this.sparseVector = instance.sparseVector; + + } /** * API name: {@code dense_vector} */ @@ -187,6 +194,12 @@ public SemanticTextIndexOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextProperty.java index b5a1e05b16..04eb762d6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SemanticTextProperty.java @@ -261,6 +261,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map fields; + public Builder() { + } + private Builder(SemanticTextProperty instance) { + this.meta = instance.meta; + this.inferenceId = instance.inferenceId; + this.searchInferenceId = instance.searchInferenceId; + this.indexOptions = instance.indexOptions; + this.chunkingSettings = instance.chunkingSettings; + this.fields = instance.fields; + + } /** * API name: {@code meta} *

                                                                              @@ -416,6 +427,12 @@ public SemanticTextProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java index 1a11b67047..3b38507965 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java @@ -176,6 +176,15 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder @Nullable private Number nullValue; + public Builder() { + } + private Builder(ShortNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public ShortNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java index e3d9c5857b..5ac4492b55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SizeField.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(SizeField instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -135,6 +141,12 @@ public SizeField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java index 46fa776499..b47884fd2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SourceField.java @@ -223,6 +223,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SourceFieldMode mode; + public Builder() { + } + private Builder(SourceField instance) { + this.compress = instance.compress; + this.compressThreshold = instance.compressThreshold; + this.enabled = instance.enabled; + this.excludes = instance.excludes; + this.includes = instance.includes; + this.mode = instance.mode; + + } /** * API name: {@code compress} */ @@ -313,6 +324,12 @@ public SourceField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorIndexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorIndexOptions.java index aabbcbf132..a9de8ab5a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorIndexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorIndexOptions.java @@ -149,6 +149,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private TokenPruningConfig pruningConfig; + public Builder() { + } + private Builder(SparseVectorIndexOptions instance) { + this.prune = instance.prune; + this.pruningConfig = instance.pruningConfig; + + } /** * Whether to perform pruning, omitting the non-significant tokens from the * query to improve query performance. If prune is true but the pruning_config @@ -205,6 +212,12 @@ public SparseVectorIndexOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java index 712437686c..093406fc78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SparseVectorProperty.java @@ -135,6 +135,13 @@ public static class Builder extends PropertyBase.AbstractBuilder @Nullable private SparseVectorIndexOptions indexOptions; + public Builder() { + } + private Builder(SparseVectorProperty instance) { + this.store = instance.store; + this.indexOptions = instance.indexOptions; + + } /** * API name: {@code store} */ @@ -183,6 +190,12 @@ public SparseVectorProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java index 6abc51ba14..756d4e18b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/SuggestContext.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String precision; + public Builder() { + } + private Builder(SuggestContext instance) { + this.name = instance.name; + this.path = instance.path; + this.type = instance.type; + this.precision = instance.precision; + + } /** * Required - API name: {@code name} */ @@ -217,6 +226,12 @@ public SuggestContext build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextIndexPrefixes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextIndexPrefixes.java index 35962ba710..1802423738 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextIndexPrefixes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextIndexPrefixes.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer minChars; + public Builder() { + } + private Builder(TextIndexPrefixes instance) { + this.maxChars = instance.maxChars; + this.minChars = instance.minChars; + + } /** * Required - API name: {@code max_chars} */ @@ -159,6 +166,12 @@ public TextIndexPrefixes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextProperty.java index 8d5757bfff..b1c0be0a06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TextProperty.java @@ -393,6 +393,26 @@ public static class Builder extends CorePropertyBase.AbstractBuilder @Nullable private TermVectorOption termVector; + public Builder() { + } + private Builder(TextProperty instance) { + this.analyzer = instance.analyzer; + this.boost = instance.boost; + this.eagerGlobalOrdinals = instance.eagerGlobalOrdinals; + this.fielddata = instance.fielddata; + this.fielddataFrequencyFilter = instance.fielddataFrequencyFilter; + this.index = instance.index; + this.indexOptions = instance.indexOptions; + this.indexPhrases = instance.indexPhrases; + this.indexPrefixes = instance.indexPrefixes; + this.norms = instance.norms; + this.positionIncrementGap = instance.positionIncrementGap; + this.searchAnalyzer = instance.searchAnalyzer; + this.searchQuoteAnalyzer = instance.searchQuoteAnalyzer; + this.similarity = instance.similarity; + this.termVector = instance.termVector; + + } /** * API name: {@code analyzer} */ @@ -546,6 +566,12 @@ public TextProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TokenCountProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TokenCountProperty.java index 43d6adde9f..5c2a6bd36e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TokenCountProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TokenCountProperty.java @@ -194,6 +194,16 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder implement @Nullable private DataStreamTimestamp dataStreamTimestamp; + public Builder() { + } + private Builder(TypeMapping instance) { + this.allField = instance.allField; + this.dateDetection = instance.dateDetection; + this.dynamic = instance.dynamic; + this.dynamicDateFormats = instance.dynamicDateFormats; + this.dynamicTemplates = instance.dynamicTemplates; + this.fieldNames = instance.fieldNames; + this.indexField = instance.indexField; + this.meta = instance.meta; + this.numericDetection = instance.numericDetection; + this.properties = instance.properties; + this.routing = instance.routing; + this.size = instance.size; + this.source = instance.source; + this.runtime = instance.runtime; + this.enabled = instance.enabled; + this.subobjects = instance.subobjects; + this.dataStreamTimestamp = instance.dataStreamTimestamp; + + } /** * API name: {@code all_field} */ @@ -745,6 +767,12 @@ public TypeMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/UnsignedLongNumberProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/UnsignedLongNumberProperty.java index 8e77cc9b72..67a2224de0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/UnsignedLongNumberProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/UnsignedLongNumberProperty.java @@ -112,6 +112,12 @@ public static class Builder extends NumberPropertyBase.AbstractBuilder @Nullable private Number nullValue; + public Builder() { + } + private Builder(UnsignedLongNumberProperty instance) { + this.nullValue = instance.nullValue; + + } /** * API name: {@code null_value} */ @@ -138,6 +144,12 @@ public UnsignedLongNumberProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/VersionProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/VersionProperty.java index 0b46fd0991..e3266cf6b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/VersionProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/VersionProperty.java @@ -89,6 +89,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends DocValuesPropertyBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(VersionProperty instance) { + + } @Override protected Builder self() { return this; @@ -107,6 +112,12 @@ public VersionProperty build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/WildcardProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/WildcardProperty.java index 9da5faed65..ee215d009b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/WildcardProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/WildcardProperty.java @@ -112,6 +112,12 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder implement @Nullable private List should; + public Builder() { + } + private Builder(BoolQuery instance) { + this.filter = instance.filter; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.must = instance.must; + this.mustNot = instance.mustNot; + this.should = instance.should; + + } /** * The clause (query) must appear in matching documents. However, unlike * must, the score of the query will be ignored. @@ -502,6 +512,12 @@ public boolean hasClauses() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java index ddcf1e3339..99baf82b93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java @@ -141,6 +141,14 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Query positive; + public Builder() { + } + private Builder(BoostingQuery instance) { + this.negativeBoost = instance.negativeBoost; + this.negative = instance.negative; + this.positive = instance.positive; + + } /** * Required - Floating point number between 0 and 1.0 used to decrease the * relevance scores of documents matching the negative query. @@ -228,6 +236,12 @@ public BoostingQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java index 3bb53160f1..e48f03aa7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CombinedFieldsQuery.java @@ -227,6 +227,17 @@ public static class Builder extends QueryBase.AbstractBuilder @Nullable private CombinedFieldsZeroTerms zeroTermsQuery; + public Builder() { + } + private Builder(CombinedFieldsQuery instance) { + this.fields = instance.fields; + this.query = instance.query; + this.autoGenerateSynonymsPhraseQuery = instance.autoGenerateSynonymsPhraseQuery; + this.operator = instance.operator; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.zeroTermsQuery = instance.zeroTermsQuery; + + } /** * Required - List of fields to search. Field wildcard patterns are allowed. * Only text fields are supported, and they must all have the same @@ -327,6 +338,12 @@ public CombinedFieldsQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java index 5cb62fc37f..ba2094f25c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java @@ -227,6 +227,17 @@ public final Builder field(String value) { private String query; + public Builder() { + } + private Builder(CommonTermsQuery instance) { + this.analyzer = instance.analyzer; + this.cutoffFrequency = instance.cutoffFrequency; + this.highFreqOperator = instance.highFreqOperator; + this.lowFreqOperator = instance.lowFreqOperator; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.query = instance.query; + + } /** * API name: {@code analyzer} */ @@ -293,6 +304,12 @@ public CommonTermsQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java index 8071854826..ce80f991d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java @@ -110,6 +110,12 @@ public static class Builder extends QueryBase.AbstractBuilder ObjectBuilder { private Query filter; + public Builder() { + } + private Builder(ConstantScoreQuery instance) { + this.filter = instance.filter; + + } /** * Required - Filter query you wish to run. Any returned documents must match * this query. Filter queries do not calculate relevance scores. To speed up @@ -166,6 +172,12 @@ public ConstantScoreQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDecayFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDecayFunction.java index 08659b1762..0dc9921516 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDecayFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDecayFunction.java @@ -83,6 +83,11 @@ public DecayFunction.Kind _decayFunctionKind() { public static class Builder extends DecayFunctionBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DateDecayFunction instance) { + + } @Override protected Builder self() { return this; @@ -103,6 +108,12 @@ public DateDecayFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDistanceFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDistanceFeatureQuery.java index a63e06707a..52d124c21d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDistanceFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateDistanceFeatureQuery.java @@ -85,6 +85,11 @@ public DistanceFeatureQuery.Kind _distanceFeatureQueryKind() { public static class Builder extends DistanceFeatureQueryBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DateDistanceFeatureQuery instance) { + + } @Override protected Builder self() { return this; @@ -105,6 +110,12 @@ public DateDistanceFeatureQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateRangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateRangeQuery.java index 28bf081114..c77fc06b67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateRangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DateRangeQuery.java @@ -161,6 +161,13 @@ public final Builder field(String value) { @Nullable private String timeZone; + public Builder() { + } + private Builder(DateRangeQuery instance) { + this.format = instance.format; + this.timeZone = instance.timeZone; + + } /** * Date format used to convert date values in the query. *

                                                                              @@ -201,6 +208,12 @@ public DateRangeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java index 25a6cba802..ea67a4de30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DecayPlacement.java @@ -207,6 +207,15 @@ public static class Builder extends WithJsonObjectBuilderBase tScaleSerializer; + public Builder() { + } + private Builder(DecayPlacement instance) { + this.decay = instance.decay; + this.offset = instance.offset; + this.scale = instance.scale; + this.origin = instance.origin; + + } /** * Defines how documents are scored at the distance given at scale. *

                                                                              @@ -286,6 +295,12 @@ public DecayPlacement build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java index b67e4d9450..a43e3044fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java @@ -139,6 +139,13 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Double tieBreaker; + public Builder() { + } + private Builder(DisMaxQuery instance) { + this.queries = instance.queries; + this.tieBreaker = instance.tieBreaker; + + } /** * Required - One or more query clauses. Returned documents must match one or * more of these queries. If a document matches multiple queries, Elasticsearch @@ -226,6 +233,12 @@ public DisMaxQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java index 748b7dbb12..40063d26f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java @@ -140,6 +140,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { private String field; + public Builder() { + } + private Builder(ExistsQuery instance) { + this.field = instance.field; + + } /** * Required - Name of the field you wish to search. *

                                                                              @@ -168,6 +174,12 @@ public ExistsQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java index 69ee481502..d1484f266d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldAndFormat.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean includeUnmapped; + public Builder() { + } + private Builder(FieldAndFormat instance) { + this.field = instance.field; + this.format = instance.format; + this.includeUnmapped = instance.includeUnmapped; + + } /** * Required - A wildcard pattern. The request returns values for field names * matching this pattern. @@ -207,6 +215,12 @@ public FieldAndFormat build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java index 7b02f05a40..74f94fa769 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldLookup.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List routing; + public Builder() { + } + private Builder(FieldLookup instance) { + this.id = instance.id; + this.index = instance.index; + this.path = instance.path; + this.routing = instance.routing; + + } /** * Required - id of the document. *

                                                                              @@ -255,6 +264,12 @@ public FieldLookup build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java index b574b515c6..f75aae8728 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FieldValueFactorScoreFunction.java @@ -191,6 +191,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private FieldValueFactorModifier modifier; + public Builder() { + } + private Builder(FieldValueFactorScoreFunction instance) { + this.field = instance.field; + this.factor = instance.factor; + this.missing = instance.missing; + this.modifier = instance.modifier; + + } /** * Required - Field to be extracted from the document. *

                                                                              @@ -250,6 +259,12 @@ public FieldValueFactorScoreFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java index bac69cf745..48b4de2e16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreQuery.java @@ -227,6 +227,17 @@ public static class Builder extends QueryBase.AbstractBuilder @Nullable private FunctionScoreMode scoreMode; + public Builder() { + } + private Builder(FunctionScoreQuery instance) { + this.boostMode = instance.boostMode; + this.functions = instance.functions; + this.maxBoost = instance.maxBoost; + this.minScore = instance.minScore; + this.query = instance.query; + this.scoreMode = instance.scoreMode; + + } /** * Defines how he newly computed score is combined with the score of the query *

                                                                              @@ -368,6 +379,12 @@ public FunctionScoreQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java index 1ad491e4bb..ff40ef5218 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java @@ -243,6 +243,17 @@ public final Builder field(String value) { private FieldValue value; + public Builder() { + } + private Builder(FuzzyQuery instance) { + this.maxExpansions = instance.maxExpansions; + this.prefixLength = instance.prefixLength; + this.rewrite = instance.rewrite; + this.transpositions = instance.transpositions; + this.fuzziness = instance.fuzziness; + this.value = instance.value; + + } /** * Maximum number of variations created. *

                                                                              @@ -371,6 +382,12 @@ public FuzzyQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java index d861e4882a..1dd289faec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java @@ -212,6 +212,14 @@ public final Builder boundingBox(Function implements ObjectBuilder { + public Builder() { + } + private Builder(GeoDecayFunction instance) { + + } @Override protected Builder self() { return this; @@ -103,6 +108,12 @@ public GeoDecayFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceFeatureQuery.java index 1a2b511a73..a660dad92d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceFeatureQuery.java @@ -85,6 +85,11 @@ public DistanceFeatureQuery.Kind _distanceFeatureQueryKind() { public static class Builder extends DistanceFeatureQueryBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(GeoDistanceFeatureQuery instance) { + + } @Override protected Builder self() { return this; @@ -105,6 +110,12 @@ public GeoDistanceFeatureQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java index 535684ce6c..67c7064298 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoDistanceQuery.java @@ -229,6 +229,15 @@ public final Builder location(Function implements ObjectBuilder { private List points; + public Builder() { + } + private Builder(GeoPolygonPoints instance) { + this.points = instance.points; + + } /** * Required - API name: {@code points} *

                                                                              @@ -167,6 +173,12 @@ public GeoPolygonPoints build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java index bdd6793da8..c345530c62 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java @@ -181,6 +181,13 @@ public final Builder polygon(Function @Nullable private GeoShapeRelation relation; + public Builder() { + } + private Builder(GeoShapeFieldQuery instance) { + this.shape = instance.shape; + this.indexedShape = instance.indexedShape; + this.relation = instance.relation; + + } /** * API name: {@code shape} */ @@ -220,6 +228,12 @@ public GeoShapeFieldQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java index 9c79c7d1c7..ca58ecb338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java @@ -164,6 +164,12 @@ public final Builder shape(Functiontrue to ignore an unmapped field and not match any * documents for this query. Set to false to throw an exception if @@ -194,6 +200,12 @@ public GeoShapeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java index 50f8d7f275..c60ddec5c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java @@ -244,6 +244,18 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String type; + public Builder() { + } + private Builder(HasChildQuery instance) { + this.ignoreUnmapped = instance.ignoreUnmapped; + this.innerHits = instance.innerHits; + this.maxChildren = instance.maxChildren; + this.minChildren = instance.minChildren; + this.query = instance.query; + this.scoreMode = instance.scoreMode; + this.type = instance.type; + + } /** * Indicates whether to ignore an unmapped type and not return any * documents instead of an error. @@ -373,6 +385,12 @@ public HasChildQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java index a4f742c2ae..4a0114f882 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java @@ -198,6 +198,16 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Boolean score; + public Builder() { + } + private Builder(HasParentQuery instance) { + this.ignoreUnmapped = instance.ignoreUnmapped; + this.innerHits = instance.innerHits; + this.parentType = instance.parentType; + this.query = instance.query; + this.score = instance.score; + + } /** * Indicates whether to ignore an unmapped parent_type and not * return any documents instead of an error. You can use this parameter to query @@ -304,6 +314,12 @@ public HasParentQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java index 534cd65c9f..0fc9bba037 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java @@ -150,6 +150,12 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private List values; + public Builder() { + } + private Builder(IdsQuery instance) { + this.values = instance.values; + + } /** * An array of document IDs. *

                                                                              @@ -192,6 +198,12 @@ public IdsQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java index 2af6fed33c..9ea270938a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java @@ -208,6 +208,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IntervalsFilter filter; + public Builder() { + } + private Builder(IntervalsAllOf instance) { + this.intervals = instance.intervals; + this.maxGaps = instance.maxGaps; + this.ordered = instance.ordered; + this.filter = instance.filter; + + } /** * Required - An array of rules to combine. All rules must produce a match in a * document for the overall source to match. @@ -331,6 +340,12 @@ public IntervalsAllOf build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java index c90c9154a7..4a71f6c7f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java @@ -159,6 +159,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IntervalsFilter filter; + public Builder() { + } + private Builder(IntervalsAnyOf instance) { + this.intervals = instance.intervals; + this.filter = instance.filter; + + } /** * Required - An array of rules to match. *

                                                                              @@ -256,6 +263,12 @@ public IntervalsAnyOf build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java index 140cbd8c65..e2704c04fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java @@ -245,6 +245,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String useField; + public Builder() { + } + private Builder(IntervalsFuzzy instance) { + this.analyzer = instance.analyzer; + this.fuzziness = instance.fuzziness; + this.prefixLength = instance.prefixLength; + this.term = instance.term; + this.transpositions = instance.transpositions; + this.useField = instance.useField; + + } /** * Analyzer used to normalize the term. *

                                                                              @@ -326,6 +337,12 @@ public IntervalsFuzzy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java index 70bfa7a71e..ff72158e7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java @@ -245,6 +245,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IntervalsFilter filter; + public Builder() { + } + private Builder(IntervalsMatch instance) { + this.analyzer = instance.analyzer; + this.maxGaps = instance.maxGaps; + this.ordered = instance.ordered; + this.query = instance.query; + this.useField = instance.useField; + this.filter = instance.filter; + + } /** * Analyzer used to analyze terms in the query. *

                                                                              @@ -345,6 +356,12 @@ public IntervalsMatch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java index 982f9b9772..1d36bf6506 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java @@ -177,6 +177,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String useField; + public Builder() { + } + private Builder(IntervalsPrefix instance) { + this.analyzer = instance.analyzer; + this.prefix = instance.prefix; + this.useField = instance.useField; + + } /** * Analyzer used to analyze the prefix. *

                                                                              @@ -228,6 +236,12 @@ public IntervalsPrefix build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRange.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRange.java index 66d6c5534e..19cba0280a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRange.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRange.java @@ -246,6 +246,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String useField; + public Builder() { + } + private Builder(IntervalsRange instance) { + this.analyzer = instance.analyzer; + this.gte = instance.gte; + this.gt = instance.gt; + this.lte = instance.lte; + this.lt = instance.lt; + this.useField = instance.useField; + + } /** * Analyzer used to analyze the prefix. *

                                                                              @@ -326,6 +337,12 @@ public IntervalsRange build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRegexp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRegexp.java index 9b825b60be..ad3e8c00ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRegexp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsRegexp.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String useField; + public Builder() { + } + private Builder(IntervalsRegexp instance) { + this.analyzer = instance.analyzer; + this.pattern = instance.pattern; + this.useField = instance.useField; + + } /** * Analyzer used to analyze the prefix. *

                                                                              @@ -226,6 +234,12 @@ public IntervalsRegexp build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java index 1e9d22d6e5..257b79d796 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java @@ -177,6 +177,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String useField; + public Builder() { + } + private Builder(IntervalsWildcard instance) { + this.analyzer = instance.analyzer; + this.pattern = instance.pattern; + this.useField = instance.useField; + + } /** * Analyzer used to analyze the pattern. Defaults to the top-level * field's analyzer. @@ -228,6 +236,12 @@ public IntervalsWildcard build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java index 65425bcfda..a59d640b63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/LikeDocument.java @@ -279,6 +279,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private VersionType versionType; + public Builder() { + } + private Builder(LikeDocument instance) { + this.doc = instance.doc; + this.fields = instance.fields; + this.id = instance.id; + this.index = instance.index; + this.perFieldAnalyzer = instance.perFieldAnalyzer; + this.routing = instance.routing; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * A document not present in the index. *

                                                                              @@ -407,6 +420,12 @@ public LikeDocument build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java index 846c575d16..bebfd6fa90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchAllQuery.java @@ -114,6 +114,11 @@ public UserQuery.Kind _userQueryKind() { */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MatchAllQuery instance) { + + } @Override protected Builder self() { return this; @@ -132,6 +137,12 @@ public MatchAllQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java index e905e67e2b..127445c172 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java @@ -318,6 +318,20 @@ public final Builder field(String value) { private String query; + public Builder() { + } + private Builder(MatchBoolPrefixQuery instance) { + this.analyzer = instance.analyzer; + this.fuzziness = instance.fuzziness; + this.fuzzyRewrite = instance.fuzzyRewrite; + this.fuzzyTranspositions = instance.fuzzyTranspositions; + this.maxExpansions = instance.maxExpansions; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.operator = instance.operator; + this.prefixLength = instance.prefixLength; + this.query = instance.query; + + } /** * Analyzer used to convert the text in the query value into tokens. *

                                                                              @@ -435,6 +449,12 @@ public MatchBoolPrefixQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java index 312b66b1fd..22fe2635b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchNoneQuery.java @@ -79,6 +79,11 @@ public Query.Kind _queryKind() { */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(MatchNoneQuery instance) { + + } @Override protected Builder self() { return this; @@ -97,6 +102,12 @@ public MatchNoneQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java index af98edf8b6..f192eab17e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java @@ -223,6 +223,16 @@ public final Builder field(String value) { @Nullable private ZeroTermsQuery zeroTermsQuery; + public Builder() { + } + private Builder(MatchPhrasePrefixQuery instance) { + this.analyzer = instance.analyzer; + this.maxExpansions = instance.maxExpansions; + this.query = instance.query; + this.slop = instance.slop; + this.zeroTermsQuery = instance.zeroTermsQuery; + + } /** * Analyzer used to convert text in the query value into tokens. *

                                                                              @@ -293,6 +303,12 @@ public MatchPhrasePrefixQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java index ee33406452..750886c40a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java @@ -198,6 +198,15 @@ public final Builder field(String value) { @Nullable private ZeroTermsQuery zeroTermsQuery; + public Builder() { + } + private Builder(MatchPhraseQuery instance) { + this.analyzer = instance.analyzer; + this.query = instance.query; + this.slop = instance.slop; + this.zeroTermsQuery = instance.zeroTermsQuery; + + } /** * Analyzer used to convert the text in the query value into tokens. *

                                                                              @@ -257,6 +266,12 @@ public MatchPhraseQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java index 782dbb55d8..a78e165cbd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java @@ -437,6 +437,24 @@ public final Builder field(String value) { @Nullable private ZeroTermsQuery zeroTermsQuery; + public Builder() { + } + private Builder(MatchQuery instance) { + this.analyzer = instance.analyzer; + this.autoGenerateSynonymsPhraseQuery = instance.autoGenerateSynonymsPhraseQuery; + this.cutoffFrequency = instance.cutoffFrequency; + this.fuzziness = instance.fuzziness; + this.fuzzyRewrite = instance.fuzzyRewrite; + this.fuzzyTranspositions = instance.fuzzyTranspositions; + this.lenient = instance.lenient; + this.maxExpansions = instance.maxExpansions; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.operator = instance.operator; + this.prefixLength = instance.prefixLength; + this.query = instance.query; + this.zeroTermsQuery = instance.zeroTermsQuery; + + } /** * Analyzer used to convert the text in the query value into tokens. *

                                                                              @@ -645,6 +663,12 @@ public MatchQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java index c207ad5008..2e99aef2c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java @@ -514,6 +514,29 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private VersionType versionType; + public Builder() { + } + private Builder(MoreLikeThisQuery instance) { + this.analyzer = instance.analyzer; + this.boostTerms = instance.boostTerms; + this.failOnUnsupportedField = instance.failOnUnsupportedField; + this.fields = instance.fields; + this.include = instance.include; + this.like = instance.like; + this.maxDocFreq = instance.maxDocFreq; + this.maxQueryTerms = instance.maxQueryTerms; + this.maxWordLength = instance.maxWordLength; + this.minDocFreq = instance.minDocFreq; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.minTermFreq = instance.minTermFreq; + this.minWordLength = instance.minWordLength; + this.routing = instance.routing; + this.stopWords = instance.stopWords; + this.unlike = instance.unlike; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * The analyzer that is used to analyze the free form text. Defaults to the * analyzer associated with the first field in fields. @@ -817,6 +840,12 @@ public MoreLikeThisQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java index 243b4ecbf1..819bd4bcc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java @@ -473,6 +473,28 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private ZeroTermsQuery zeroTermsQuery; + public Builder() { + } + private Builder(MultiMatchQuery instance) { + this.analyzer = instance.analyzer; + this.autoGenerateSynonymsPhraseQuery = instance.autoGenerateSynonymsPhraseQuery; + this.cutoffFrequency = instance.cutoffFrequency; + this.fields = instance.fields; + this.fuzziness = instance.fuzziness; + this.fuzzyRewrite = instance.fuzzyRewrite; + this.fuzzyTranspositions = instance.fuzzyTranspositions; + this.lenient = instance.lenient; + this.maxExpansions = instance.maxExpansions; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.operator = instance.operator; + this.prefixLength = instance.prefixLength; + this.query = instance.query; + this.slop = instance.slop; + this.tieBreaker = instance.tieBreaker; + this.type = instance.type; + this.zeroTermsQuery = instance.zeroTermsQuery; + + } /** * Analyzer used to convert the text in the query value into tokens. *

                                                                              @@ -687,6 +709,12 @@ public MultiMatchQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java index 5796faae5b..50c4e4bed1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NestedQuery.java @@ -192,6 +192,16 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private ChildScoreMode scoreMode; + public Builder() { + } + private Builder(NestedQuery instance) { + this.ignoreUnmapped = instance.ignoreUnmapped; + this.innerHits = instance.innerHits; + this.path = instance.path; + this.query = instance.query; + this.scoreMode = instance.scoreMode; + + } /** * Indicates whether to ignore an unmapped path and not return any documents * instead of an error. @@ -290,6 +300,12 @@ public NestedQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumberRangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumberRangeQuery.java index 919c472f38..2587930461 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumberRangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumberRangeQuery.java @@ -116,6 +116,11 @@ public final Builder field(String value) { return this; } + public Builder() { + } + private Builder(NumberRangeQuery instance) { + + } @Override protected Builder self() { return this; @@ -135,6 +140,12 @@ public NumberRangeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumericDecayFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumericDecayFunction.java index ba3e468294..790be9de05 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumericDecayFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NumericDecayFunction.java @@ -82,6 +82,11 @@ public DecayFunction.Kind _decayFunctionKind() { public static class Builder extends DecayFunctionBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(NumericDecayFunction instance) { + + } @Override protected Builder self() { return this; @@ -102,6 +107,12 @@ public NumericDecayFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java index 2d09f63fa3..08a282d626 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ParentIdQuery.java @@ -157,6 +157,14 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private String type; + public Builder() { + } + private Builder(ParentIdQuery instance) { + this.id = instance.id; + this.ignoreUnmapped = instance.ignoreUnmapped; + this.type = instance.type; + + } /** * ID of the parent document. *

                                                                              @@ -206,6 +214,12 @@ public ParentIdQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java index b6b5c16a78..4ad6cc3a4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java @@ -294,6 +294,20 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Long version; + public Builder() { + } + private Builder(PercolateQuery instance) { + this.document = instance.document; + this.documents = instance.documents; + this.field = instance.field; + this.id = instance.id; + this.index = instance.index; + this.name = instance.name; + this.preference = instance.preference; + this.routing = instance.routing; + this.version = instance.version; + + } /** * The source of the document being percolated. *

                                                                              @@ -432,6 +446,12 @@ public PercolateQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java index 7edd2d4ae1..af385c3653 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PinnedDoc.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String index; + public Builder() { + } + private Builder(PinnedDoc instance) { + this.id = instance.id; + this.index = instance.index; + + } /** * Required - The unique document ID. *

                                                                              @@ -173,6 +180,12 @@ public PinnedDoc build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java index 0c1b4d26de..f33573ff75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java @@ -214,6 +214,14 @@ public final Builder field(String value) { @Nullable private Boolean caseInsensitive; + public Builder() { + } + private Builder(PrefixQuery instance) { + this.rewrite = instance.rewrite; + this.value = instance.value; + this.caseInsensitive = instance.caseInsensitive; + + } /** * Method used to rewrite the query. *

                                                                              @@ -266,6 +274,12 @@ public PrefixQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java index b188996952..99218694dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java @@ -653,6 +653,36 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private TextQueryType type; + public Builder() { + } + private Builder(QueryStringQuery instance) { + this.allowLeadingWildcard = instance.allowLeadingWildcard; + this.analyzer = instance.analyzer; + this.analyzeWildcard = instance.analyzeWildcard; + this.autoGenerateSynonymsPhraseQuery = instance.autoGenerateSynonymsPhraseQuery; + this.defaultField = instance.defaultField; + this.defaultOperator = instance.defaultOperator; + this.enablePositionIncrements = instance.enablePositionIncrements; + this.escape = instance.escape; + this.fields = instance.fields; + this.fuzziness = instance.fuzziness; + this.fuzzyMaxExpansions = instance.fuzzyMaxExpansions; + this.fuzzyPrefixLength = instance.fuzzyPrefixLength; + this.fuzzyRewrite = instance.fuzzyRewrite; + this.fuzzyTranspositions = instance.fuzzyTranspositions; + this.lenient = instance.lenient; + this.maxDeterminizedStates = instance.maxDeterminizedStates; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.phraseSlop = instance.phraseSlop; + this.query = instance.query; + this.quoteAnalyzer = instance.quoteAnalyzer; + this.quoteFieldSuffix = instance.quoteFieldSuffix; + this.rewrite = instance.rewrite; + this.tieBreaker = instance.tieBreaker; + this.timeZone = instance.timeZone; + this.type = instance.type; + + } /** * If true, the wildcard characters * and * ? are allowed as the first character of the query string. @@ -948,6 +978,12 @@ public QueryStringQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java index 688e8782f3..e46fe46c5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RandomScoreFunction.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String seed; + public Builder() { + } + private Builder(RandomScoreFunction instance) { + this.field = instance.field; + this.seed = instance.seed; + + } /** * API name: {@code field} */ @@ -180,6 +187,12 @@ public RandomScoreFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java index 4f94c1c88d..22a622c8b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java @@ -113,6 +113,12 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder ObjectBuilder { private Float scalingFactor; + public Builder() { + } + private Builder(RankFeatureFunctionLogarithm instance) { + this.scalingFactor = instance.scalingFactor; + + } /** * Required - Configurable scaling factor. *

                                                                              @@ -141,6 +147,12 @@ public RankFeatureFunctionLogarithm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java index 897ce844c8..0718cea45b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java @@ -119,6 +119,12 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder @Nullable private Float pivot; + public Builder() { + } + private Builder(RankFeatureFunctionSaturation instance) { + this.pivot = instance.pivot; + + } /** * Configurable pivot value so that the result will be less than 0.5. *

                                                                              @@ -147,6 +153,12 @@ public RankFeatureFunctionSaturation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java index 516e7d03dc..42be698acb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java @@ -130,6 +130,13 @@ public static class Builder extends RankFeatureFunction.AbstractBuilder private Float exponent; + public Builder() { + } + private Builder(RankFeatureFunctionSigmoid instance) { + this.pivot = instance.pivot; + this.exponent = instance.exponent; + + } /** * Required - Configurable pivot value so that the result will be less than 0.5. *

                                                                              @@ -168,6 +175,12 @@ public RankFeatureFunctionSigmoid build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java index 97418bf894..ccddc79197 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java @@ -200,6 +200,16 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private RankFeatureFunctionSigmoid sigmoid; + public Builder() { + } + private Builder(RankFeatureQuery instance) { + this.field = instance.field; + this.saturation = instance.saturation; + this.log = instance.log; + this.linear = instance.linear; + this.sigmoid = instance.sigmoid; + + } /** * Required - rank_feature or rank_features field used * to boost relevance scores. @@ -317,6 +327,12 @@ public RankFeatureQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java index 02b14163ac..37ad596eb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java @@ -222,6 +222,16 @@ public final Builder field(String value) { private String value; + public Builder() { + } + private Builder(RegexpQuery instance) { + this.caseInsensitive = instance.caseInsensitive; + this.flags = instance.flags; + this.maxDeterminizedStates = instance.maxDeterminizedStates; + this.rewrite = instance.rewrite; + this.value = instance.value; + + } /** * Allows case insensitive matching of the regular expression value with the * indexed field values when set to true. When false, @@ -293,6 +303,12 @@ public RegexpQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java index b3080b2d0e..98377e8278 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RuleQuery.java @@ -163,6 +163,15 @@ public static class Builder extends QueryBase.AbstractBuilder implement private JsonData matchCriteria; + public Builder() { + } + private Builder(RuleQuery instance) { + this.organic = instance.organic; + this.rulesetIds = instance.rulesetIds; + this.rulesetId = instance.rulesetId; + this.matchCriteria = instance.matchCriteria; + + } /** * Required - API name: {@code organic} */ @@ -240,6 +249,12 @@ public RuleQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java index 2729b1f3e6..e488668fcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java @@ -106,6 +106,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { private Script script; + public Builder() { + } + private Builder(ScriptQuery instance) { + this.script = instance.script; + + } /** * Required - Contains a script to run as a query. This script must return a * boolean value, true or false. @@ -145,6 +151,12 @@ public ScriptQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java index c0d5b6a2e1..a4a52b9afa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreFunction.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Script script; + public Builder() { + } + private Builder(ScriptScoreFunction instance) { + this.script = instance.script; + + } /** * Required - A script that computes a score. *

                                                                              @@ -160,6 +166,12 @@ public ScriptScoreFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java index 4f68a9d072..ab5a8d2039 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java @@ -149,6 +149,14 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Script script; + public Builder() { + } + private Builder(ScriptScoreQuery instance) { + this.minScore = instance.minScore; + this.query = instance.query; + this.script = instance.script; + + } /** * Documents with a score lower than this floating point number are excluded * from the search results. @@ -230,6 +238,12 @@ public ScriptScoreQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SemanticQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SemanticQuery.java index 8f8d1c73e6..3c0f768bbf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SemanticQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SemanticQuery.java @@ -123,6 +123,13 @@ public static class Builder extends QueryBase.AbstractBuilder implement private String query; + public Builder() { + } + private Builder(SemanticQuery instance) { + this.field = instance.field; + this.query = instance.query; + + } /** * Required - The field to query, which must be a semantic_text field type *

                                                                              @@ -161,6 +168,12 @@ public SemanticQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java index 2d571992ad..c1c7f7677a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeFieldQuery.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private JsonData shape; + public Builder() { + } + private Builder(ShapeFieldQuery instance) { + this.indexedShape = instance.indexedShape; + this.relation = instance.relation; + this.shape = instance.shape; + + } /** * Queries using a pre-indexed shape. *

                                                                              @@ -221,6 +229,12 @@ public ShapeFieldQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java index 270f40ddfe..06c147cc85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ShapeQuery.java @@ -162,6 +162,12 @@ public final Builder shape(Functiontrue the query ignores an unmapped field and will * not match any documents. @@ -191,6 +197,12 @@ public ShapeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java index 7dfe5e38b7..5588c0bd77 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java @@ -421,6 +421,24 @@ public static class Builder extends QueryBase.AbstractBuilder @Nullable private String quoteFieldSuffix; + public Builder() { + } + private Builder(SimpleQueryStringQuery instance) { + this.analyzer = instance.analyzer; + this.analyzeWildcard = instance.analyzeWildcard; + this.autoGenerateSynonymsPhraseQuery = instance.autoGenerateSynonymsPhraseQuery; + this.defaultOperator = instance.defaultOperator; + this.fields = instance.fields; + this.flags = instance.flags; + this.fuzzyMaxExpansions = instance.fuzzyMaxExpansions; + this.fuzzyPrefixLength = instance.fuzzyPrefixLength; + this.fuzzyTranspositions = instance.fuzzyTranspositions; + this.lenient = instance.lenient; + this.minimumShouldMatch = instance.minimumShouldMatch; + this.query = instance.query; + this.quoteFieldSuffix = instance.quoteFieldSuffix; + + } /** * Analyzer used to convert text in the query string into tokens. *

                                                                              @@ -611,6 +629,12 @@ public SimpleQueryStringQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java index cfdd23ca8f..e45027727a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java @@ -134,6 +134,13 @@ public static class Builder extends QueryBase.AbstractBuilder private SpanQuery little; + public Builder() { + } + private Builder(SpanContainingQuery instance) { + this.big = instance.big; + this.little = instance.little; + + } /** * Required - Can be any span query. Matching spans from big that * contain matches from little are returned. @@ -216,6 +223,12 @@ public SpanContainingQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java index 3da6d38726..285237a51a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java @@ -129,6 +129,13 @@ public static class Builder extends QueryBase.AbstractBuilder private SpanQuery query; + public Builder() { + } + private Builder(SpanFieldMaskingQuery instance) { + this.field = instance.field; + this.query = instance.query; + + } /** * Required - API name: {@code field} */ @@ -178,6 +185,12 @@ public SpanFieldMaskingQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java index c3641bb5e6..2675ace9fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java @@ -131,6 +131,13 @@ public static class Builder extends QueryBase.AbstractBuilder implement private SpanQuery match; + public Builder() { + } + private Builder(SpanFirstQuery instance) { + this.end = instance.end; + this.match = instance.match; + + } /** * Required - Controls the maximum end position permitted in a match. *

                                                                              @@ -188,6 +195,12 @@ public SpanFirstQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java index 92a46995df..84e7e257f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java @@ -117,6 +117,12 @@ public static class Builder extends QueryBase.AbstractBuilder ObjectBuilder { private Query match; + public Builder() { + } + private Builder(SpanMultiTermQuery instance) { + this.match = instance.match; + + } /** * Required - Should be a multi term query (one of wildcard, * fuzzy, prefix, range, or @@ -170,6 +176,12 @@ public SpanMultiTermQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java index 64e5a8903f..1ca3568a86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java @@ -168,6 +168,14 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Integer slop; + public Builder() { + } + private Builder(SpanNearQuery instance) { + this.clauses = instance.clauses; + this.inOrder = instance.inOrder; + this.slop = instance.slop; + + } /** * Required - Array of one or more other span type queries. *

                                                                              @@ -256,6 +264,12 @@ public SpanNearQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java index 0dc0b614c0..4125609a5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java @@ -202,6 +202,16 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Integer pre; + public Builder() { + } + private Builder(SpanNotQuery instance) { + this.dist = instance.dist; + this.exclude = instance.exclude; + this.include = instance.include; + this.post = instance.post; + this.pre = instance.pre; + + } /** * The number of tokens from within the include span that can’t have overlap * with the exclude span. Equivalent to setting both pre and @@ -312,6 +322,12 @@ public SpanNotQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java index 7827ba81b5..bd9a2445fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java @@ -121,6 +121,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { private List clauses; + public Builder() { + } + private Builder(SpanOrQuery instance) { + this.clauses = instance.clauses; + + } /** * Required - Array of one or more other span type queries. *

                                                                              @@ -189,6 +195,12 @@ public SpanOrQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java index 69cb76ca1c..f44dc9e522 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java @@ -137,6 +137,12 @@ public final Builder field(String value) { private FieldValue value; + public Builder() { + } + private Builder(SpanTermQuery instance) { + this.value = instance.value; + + } /** * Required - API name: {@code value} */ @@ -202,6 +208,12 @@ public SpanTermQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java index c1b3a65543..24b59f60ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java @@ -132,6 +132,13 @@ public static class Builder extends QueryBase.AbstractBuilder implement private SpanQuery little; + public Builder() { + } + private Builder(SpanWithinQuery instance) { + this.big = instance.big; + this.little = instance.little; + + } /** * Required - Can be any span query. Matching spans from little * that are enclosed within big are returned. @@ -214,6 +221,12 @@ public SpanWithinQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java index 2b7bfa19ad..df520c37f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java @@ -191,6 +191,13 @@ public final Builder field(String value) { @Nullable private Boolean caseInsensitive; + public Builder() { + } + private Builder(TermQuery instance) { + this.value = instance.value; + this.caseInsensitive = instance.caseInsensitive; + + } /** * Required - Term you wish to find in the provided field. *

                                                                              @@ -280,6 +287,12 @@ public TermQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermRangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermRangeQuery.java index 136f4817f5..126b1e1877 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermRangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermRangeQuery.java @@ -115,6 +115,11 @@ public final Builder field(String value) { return this; } + public Builder() { + } + private Builder(TermRangeQuery instance) { + + } @Override protected Builder self() { return this; @@ -134,6 +139,12 @@ public TermRangeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java index 16d6a31ca3..08c7b93c5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsLookup.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List routing; + public Builder() { + } + private Builder(TermsLookup instance) { + this.index = instance.index; + this.id = instance.id; + this.path = instance.path; + this.routing = instance.routing; + + } /** * Required - API name: {@code index} */ @@ -227,6 +236,12 @@ public TermsLookup build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java index a6da51dc9a..6259c1d3f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsQuery.java @@ -172,6 +172,11 @@ public final Builder terms(Function terms; + public Builder() { + } + private Builder(TermsSetQuery instance) { + this.minimumShouldMatch = instance.minimumShouldMatch; + this.minimumShouldMatchField = instance.minimumShouldMatchField; + this.minimumShouldMatchScript = instance.minimumShouldMatchScript; + this.terms = instance.terms; + + } /** * Specification describing number of matching terms required to return a * document. @@ -366,6 +375,12 @@ public TermsSetQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java index 2615a3f1a2..1bd22cefaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -173,6 +173,14 @@ public final Builder field(String value) { @Nullable private TokenPruningConfig pruningConfig; + public Builder() { + } + private Builder(TextExpansionQuery instance) { + this.modelId = instance.modelId; + this.modelText = instance.modelText; + this.pruningConfig = instance.pruningConfig; + + } /** * Required - The text expansion NLP model to use *

                                                                              @@ -230,6 +238,12 @@ public TextExpansionQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java index 980e72f66e..a1a98958f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TypeQuery.java @@ -103,6 +103,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { private String value; + public Builder() { + } + private Builder(TypeQuery instance) { + this.value = instance.value; + + } /** * Required - API name: {@code value} */ @@ -129,6 +135,12 @@ public TypeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDecayFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDecayFunction.java index 2fa13f39ba..273ef9dffb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDecayFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDecayFunction.java @@ -82,6 +82,11 @@ public DecayFunction.Kind _decayFunctionKind() { public static class Builder extends DecayFunctionBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UntypedDecayFunction instance) { + + } @Override protected Builder self() { return this; @@ -102,6 +107,12 @@ public UntypedDecayFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDistanceFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDistanceFeatureQuery.java index 8259c867d2..4e42edf8d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDistanceFeatureQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedDistanceFeatureQuery.java @@ -84,6 +84,11 @@ public DistanceFeatureQuery.Kind _distanceFeatureQueryKind() { public static class Builder extends DistanceFeatureQueryBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(UntypedDistanceFeatureQuery instance) { + + } @Override protected Builder self() { return this; @@ -104,6 +109,12 @@ public UntypedDistanceFeatureQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedRangeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedRangeQuery.java index abdfb9ba81..1260a2b370 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedRangeQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/UntypedRangeQuery.java @@ -162,6 +162,13 @@ public final Builder field(String value) { @Nullable private String timeZone; + public Builder() { + } + private Builder(UntypedRangeQuery instance) { + this.format = instance.format; + this.timeZone = instance.timeZone; + + } /** * Date format used to convert date values in the query. *

                                                                              @@ -202,6 +209,12 @@ public UntypedRangeQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java index e4032274c2..508a561cc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WeightedTokensQuery.java @@ -174,6 +174,13 @@ public final Builder field(String value) { @Nullable private TokenPruningConfig pruningConfig; + public Builder() { + } + private Builder(WeightedTokensQuery instance) { + this.tokens = instance.tokens; + this.pruningConfig = instance.pruningConfig; + + } /** * Required - The tokens representing this query *

                                                                              @@ -235,6 +242,12 @@ public WeightedTokensQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java index 74f5bf15ed..2076b2d0b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java @@ -242,6 +242,15 @@ public final Builder field(String value) { @Nullable private String wildcard; + public Builder() { + } + private Builder(WildcardQuery instance) { + this.caseInsensitive = instance.caseInsensitive; + this.rewrite = instance.rewrite; + this.value = instance.value; + this.wildcard = instance.wildcard; + + } /** * Allows case insensitive matching of the pattern with the indexed field values * when set to true. Default is false which means the case sensitivity of @@ -304,6 +313,12 @@ public WildcardQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java index 1cf6bf7111..d6edcc61f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WrapperQuery.java @@ -107,6 +107,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { private String query; + public Builder() { + } + private Builder(WrapperQuery instance) { + this.query = instance.query; + + } /** * Required - A base64 encoded query. The binary data format can be any of JSON, * YAML, CBOR or SMILE encodings @@ -136,6 +142,12 @@ public WrapperQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java index 2059099ce4..b9c3239a94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java @@ -393,6 +393,25 @@ public static class Builder extends WithJsonObjectBuilderBase tDocumentSerializer; + public Builder() { + } + private Builder(AsyncSearch instance) { + this.aggregations = instance.aggregations; + this.clusters = instance.clusters; + this.fields = instance.fields; + this.hits = instance.hits; + this.maxScore = instance.maxScore; + this.numReducePhases = instance.numReducePhases; + this.profile = instance.profile; + this.pitId = instance.pitId; + this.scrollId = instance.scrollId; + this.shards = instance.shards; + this.suggest = instance.suggest; + this.terminatedEarly = instance.terminatedEarly; + this.timedOut = instance.timedOut; + this.took = instance.took; + + } /** * Partial aggregations results, coming from the shards that have already * completed running the query. @@ -630,6 +649,12 @@ public AsyncSearch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java index e2ff1be3ae..15fb26ac28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java @@ -126,6 +126,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time keepAlive; + public Builder() { + } + private Builder(AsyncSearchStatusRequest instance) { + this.id = instance.id; + this.keepAlive = instance.keepAlive; + + } /** * Required - A unique identifier for the async search. *

                                                                              @@ -175,6 +182,12 @@ public AsyncSearchStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java index 996d4a6ea1..f3f738ed1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeleteAsyncSearchRequest instance) { + this.id = instance.id; + + } /** * Required - A unique identifier for the async search. *

                                                                              @@ -131,6 +137,12 @@ public DeleteAsyncSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java index e86a2e5c98..6d655bc8f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java @@ -145,6 +145,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(GetAsyncSearchRequest instance) { + this.id = instance.id; + this.keepAlive = instance.keepAlive; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * Required - A unique identifier for the async search. *

                                                                              @@ -229,6 +237,12 @@ public GetAsyncSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java index 8f6ea21cd3..df8e5a6a39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java @@ -1316,6 +1316,66 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(SubmitRequest instance) { + this.source = instance.source; + this.aggregations = instance.aggregations; + this.allowNoIndices = instance.allowNoIndices; + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.batchedReduceSize = instance.batchedReduceSize; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.collapse = instance.collapse; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.docvalueFields = instance.docvalueFields; + this.expandWildcards = instance.expandWildcards; + this.explain = instance.explain; + this.ext = instance.ext; + this.fields = instance.fields; + this.from = instance.from; + this.highlight = instance.highlight; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.indicesBoost = instance.indicesBoost; + this.keepAlive = instance.keepAlive; + this.keepOnCompletion = instance.keepOnCompletion; + this.knn = instance.knn; + this.lenient = instance.lenient; + this.maxConcurrentShardRequests = instance.maxConcurrentShardRequests; + this.minScore = instance.minScore; + this.pit = instance.pit; + this.postFilter = instance.postFilter; + this.preference = instance.preference; + this.profile = instance.profile; + this.projectRouting = instance.projectRouting; + this.q = instance.q; + this.query = instance.query; + this.requestCache = instance.requestCache; + this.rescore = instance.rescore; + this.routing = instance.routing; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.searchAfter = instance.searchAfter; + this.searchType = instance.searchType; + this.seqNoPrimaryTerm = instance.seqNoPrimaryTerm; + this.size = instance.size; + this.slice = instance.slice; + this.sort = instance.sort; + this.stats = instance.stats; + this.storedFields = instance.storedFields; + this.suggest = instance.suggest; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.trackScores = instance.trackScores; + this.trackTotalHits = instance.trackTotalHits; + this.version = instance.version; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * Indicates which source fields are returned for matching documents. These * fields are returned in the hits._source property of the search response. @@ -2425,6 +2485,12 @@ public SubmitRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java index 5c619bda82..1be004a149 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteAutoscalingPolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -209,6 +217,12 @@ public DeleteAutoscalingPolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java index 96f46db2f5..335ca2bfe3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java @@ -122,6 +122,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetAutoscalingCapacityRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -161,6 +167,12 @@ public GetAutoscalingCapacityRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java index f3f7cac7be..ba693b7a38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(GetAutoscalingPolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * 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. @@ -169,6 +176,12 @@ public GetAutoscalingPolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java index 8633a26f6c..92265b00e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java @@ -161,6 +161,15 @@ public static class Builder extends RequestBase.AbstractBuilder private AutoscalingPolicy policy; + public Builder() { + } + private Builder(PutAutoscalingPolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + this.policy = instance.policy; + + } /** * 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. @@ -254,6 +263,12 @@ public PutAutoscalingPolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutAutoscalingPolicyRequestDeserializer(); protected static JsonpDeserializer createPutAutoscalingPolicyRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java index 3072c6f084..d86ae268dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private AutoscalingResources total; + public Builder() { + } + private Builder(AutoscalingCapacity instance) { + this.node = instance.node; + this.total = instance.total; + + } /** * Required - API name: {@code node} */ @@ -175,6 +182,12 @@ public AutoscalingCapacity build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java index cbb1b02809..8ca39e3865 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JsonData reasonDetails; + public Builder() { + } + private Builder(AutoscalingDecider instance) { + this.requiredCapacity = instance.requiredCapacity; + this.reasonSummary = instance.reasonSummary; + this.reasonDetails = instance.reasonDetails; + + } /** * Required - API name: {@code required_capacity} */ @@ -205,6 +213,12 @@ public AutoscalingDecider build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java index 8f6b23e281..3f1d1d2524 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java @@ -176,6 +176,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Map deciders; + public Builder() { + } + private Builder(AutoscalingDeciders instance) { + this.requiredCapacity = instance.requiredCapacity; + this.currentCapacity = instance.currentCapacity; + this.currentNodes = instance.currentNodes; + this.deciders = instance.deciders; + + } /** * Required - API name: {@code required_capacity} */ @@ -285,6 +294,12 @@ public AutoscalingDeciders build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java index 66a9e4af5e..6256178727 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String name; + public Builder() { + } + private Builder(AutoscalingNode instance) { + this.name = instance.name; + + } /** * Required - API name: {@code name} */ @@ -137,6 +143,12 @@ public AutoscalingNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java index bb1822b7b6..575a02f6cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer memory; + public Builder() { + } + private Builder(AutoscalingResources instance) { + this.storage = instance.storage; + this.memory = instance.memory; + + } /** * Required - API name: {@code storage} */ @@ -161,6 +168,12 @@ public AutoscalingResources build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index 3f29b74ed4..e658fd8788 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -231,6 +231,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(AliasesRequest instance) { + this.bytes = instance.bytes; + this.expandWildcards = instance.expandWildcards; + this.h = instance.h; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -434,6 +446,12 @@ public AliasesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index 4d41e1ff08..cbdab20869 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -229,6 +229,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(AllocationRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -408,6 +420,12 @@ public AllocationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index fb0722f193..0f76695606 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -233,6 +233,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(ComponentTemplatesRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -397,6 +409,12 @@ public ComponentTemplatesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index b6c3297e69..5124f365e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -232,6 +232,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl @Nullable private TimeUnit time; + public Builder() { + } + private Builder(CountRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.index = instance.index; + this.projectRouting = instance.projectRouting; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -395,6 +406,12 @@ public CountRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index bcd49c592c..5aecaabd53 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -22,7 +22,9 @@ import co.elastic.clients.ApiClient; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.util.ObjectBuilder; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index c827b0df4a..b38356826a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -23,7 +23,9 @@ import co.elastic.clients.elasticsearch._types.ElasticsearchException; import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.util.ObjectBuilder; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java index 9814a3e15e..0ff2d97b38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java @@ -190,6 +190,16 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(FielddataRequest instance) { + this.bytes = instance.bytes; + this.fields = instance.fields; + this.h = instance.h; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -336,6 +346,12 @@ public FielddataRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java index f2292ebf09..1af3304bd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java @@ -198,6 +198,16 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private Boolean ts; + public Builder() { + } + private Builder(HealthRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.s = instance.s; + this.time = instance.time; + this.ts = instance.ts; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -328,6 +338,12 @@ public HealthRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java index 004234904b..cde41a1818 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpRequest.java @@ -20,12 +20,18 @@ package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.endpoints.SimpleEndpoint; -import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.transport.endpoints.TextEndpoint; - +import co.elastic.clients.transport.endpoints.TextResponse; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; import java.util.Collections; +import java.util.Objects; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -67,8 +73,7 @@ public HelpRequest() { /** * Endpoint "{@code cat.help}". */ - public static final Endpoint _ENDPOINT = new TextEndpoint<>( - "es/cat.help", + public static final Endpoint _ENDPOINT = new TextEndpoint<>("es/cat.help", // Request method request -> { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java index b7742565c5..282e782372 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java @@ -295,6 +295,21 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(IndicesRequest instance) { + this.bytes = instance.bytes; + this.expandWildcards = instance.expandWildcards; + this.h = instance.h; + this.health = instance.health; + this.includeUnloadedSegments = instance.includeUnloadedSegments; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.pri = instance.pri; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -518,6 +533,12 @@ public IndicesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java index 544ad6f2ec..13bf86db34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java @@ -215,6 +215,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(MasterRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -368,6 +379,12 @@ public MasterRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java index 7795ef9bbe..736855c62a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java @@ -208,6 +208,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(MlDataFrameAnalyticsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bytes = instance.bytes; + this.h = instance.h; + this.id = instance.id; + this.s = instance.s; + this.time = instance.time; + + } /** * Whether to ignore if a wildcard expression matches no configs. (This includes * _all string or when no configs have been specified.) @@ -331,6 +342,12 @@ public MlDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java index 5dbe1ac31a..66057956c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java @@ -220,6 +220,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(MlDatafeedsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bytes = instance.bytes; + this.datafeedId = instance.datafeedId; + this.h = instance.h; + this.s = instance.s; + this.time = instance.time; + + } /** * Specifies what to do when the request: *

                                                                                @@ -353,6 +364,12 @@ public MlDatafeedsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java index 7865c1bdde..eeed16c3f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java @@ -220,6 +220,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(MlJobsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bytes = instance.bytes; + this.h = instance.h; + this.jobId = instance.jobId; + this.s = instance.s; + this.time = instance.time; + + } /** * Specifies what to do when the request: *
                                                                                  @@ -353,6 +364,12 @@ public MlJobsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java index af26828aac..7ac53466e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java @@ -245,6 +245,19 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(MlTrainedModelsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bytes = instance.bytes; + this.from = instance.from; + this.h = instance.h; + this.modelId = instance.modelId; + this.s = instance.s; + this.size = instance.size; + this.time = instance.time; + + } /** * Specifies what to do when the request: contains wildcard expressions and * there are no models that match; contains the _all string or no @@ -391,6 +404,12 @@ public MlTrainedModelsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java index 1b42cfba06..8119ce3d9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java @@ -213,6 +213,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(NodeattrsRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -366,6 +377,12 @@ public NodeattrsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java index a13245941b..4e8ff804aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java @@ -226,6 +226,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl @Nullable private TimeUnit time; + public Builder() { + } + private Builder(NodesRequest instance) { + this.bytes = instance.bytes; + this.fullId = instance.fullId; + this.h = instance.h; + this.includeUnloadedSegments = instance.includeUnloadedSegments; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -387,6 +399,12 @@ public NodesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java index 5b8dc58d07..61b71d0af6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java @@ -213,6 +213,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(PendingTasksRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -366,6 +377,12 @@ public PendingTasksRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java index a682e65d57..8afb1f20c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java @@ -230,6 +230,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(PluginsRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.includeBootstrap = instance.includeBootstrap; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -393,6 +405,12 @@ public PluginsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java index ae1837350c..b12bb27845 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java @@ -229,6 +229,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(RecoveryRequest instance) { + this.activeOnly = instance.activeOnly; + this.bytes = instance.bytes; + this.detailed = instance.detailed; + this.h = instance.h; + this.index = instance.index; + this.s = instance.s; + this.time = instance.time; + + } /** * If true, the response only includes ongoing shard recoveries. *

                                                                                  @@ -398,6 +410,12 @@ public RecoveryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java index 8eb3feba45..f7b1d8a847 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java @@ -211,6 +211,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(RepositoriesRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -348,6 +359,12 @@ public RepositoriesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java index 4574f4b94c..a8a4d816f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java @@ -322,6 +322,23 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(SegmentsRequest instance) { + this.allowClosed = instance.allowClosed; + this.allowNoIndices = instance.allowNoIndices; + this.bytes = instance.bytes; + this.expandWildcards = instance.expandWildcards; + this.h = instance.h; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * If true, allow closed indices to be returned in the response otherwise if * false, keep the legacy behaviour of throwing an exception if index pattern @@ -577,6 +594,12 @@ public SegmentsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java index b171781e54..8bc07bef9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java @@ -206,6 +206,17 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(ShardsRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -370,6 +381,12 @@ public ShardsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java index 6522fe2290..0ad66036bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java @@ -227,6 +227,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(SnapshotsRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.masterTimeout = instance.masterTimeout; + this.repository = instance.repository; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -405,6 +417,12 @@ public SnapshotsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java index 2c1d3ca1da..e1796f2715 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java @@ -273,6 +273,21 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(TasksRequest instance) { + this.actions = instance.actions; + this.bytes = instance.bytes; + this.detailed = instance.detailed; + this.h = instance.h; + this.nodes = instance.nodes; + this.parentTaskId = instance.parentTaskId; + this.s = instance.s; + this.time = instance.time; + this.timeout = instance.timeout; + this.waitForCompletion = instance.waitForCompletion; + + } /** * The task action names, which are used to limit the response. *

                                                                                  @@ -493,6 +508,12 @@ public TasksRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java index 92e035adac..b69c1f11fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java @@ -231,6 +231,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(TemplatesRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.s = instance.s; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -395,6 +407,12 @@ public TemplatesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java index 1724b187e9..c112bfef44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java @@ -228,6 +228,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private TimeUnit time; + public Builder() { + } + private Builder(ThreadPoolRequest instance) { + this.bytes = instance.bytes; + this.h = instance.h; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.s = instance.s; + this.threadPoolPatterns = instance.threadPoolPatterns; + this.time = instance.time; + + } /** * Sets the units for columns that contain a byte-size value. Note that * byte-size value units work in terms of powers of 1024. For instance @@ -404,6 +416,12 @@ public ThreadPoolRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java index 26dcbadf60..c2311fce9e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java @@ -247,6 +247,19 @@ public static class Builder extends CatRequestBase.AbstractBuilder @Nullable private String transformId; + public Builder() { + } + private Builder(TransformsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bytes = instance.bytes; + this.from = instance.from; + this.h = instance.h; + this.s = instance.s; + this.size = instance.size; + this.time = instance.time; + this.transformId = instance.transformId; + + } /** * Specifies what to do when the request: contains wildcard expressions and * there are no transforms that match; contains the _all string or @@ -396,6 +409,12 @@ public TransformsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java index 31ca2eb7a1..a024916368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java @@ -227,6 +227,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String isWriteIndex; + public Builder() { + } + private Builder(AliasesRecord instance) { + this.alias = instance.alias; + this.index = instance.index; + this.filter = instance.filter; + this.routingIndex = instance.routingIndex; + this.routingSearch = instance.routingSearch; + this.isWriteIndex = instance.isWriteIndex; + + } /** * alias name *

                                                                                  @@ -305,6 +316,12 @@ public AliasesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java index 15bdedccfa..239b954868 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java @@ -395,6 +395,24 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String nodeRole; + public Builder() { + } + private Builder(AllocationRecord instance) { + this.shards = instance.shards; + this.shardsUndesired = instance.shardsUndesired; + this.writeLoadForecast = instance.writeLoadForecast; + this.diskIndicesForecast = instance.diskIndicesForecast; + this.diskIndices = instance.diskIndices; + this.diskUsed = instance.diskUsed; + this.diskAvail = instance.diskAvail; + this.diskTotal = instance.diskTotal; + this.diskPercent = instance.diskPercent; + this.host = instance.host; + this.ip = instance.ip; + this.node = instance.node; + this.nodeRole = instance.nodeRole; + + } /** * Number of primary and replica shards assigned to the node. *

                                                                                  @@ -555,6 +573,12 @@ public AllocationRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java index d4fb4db722..0d58f43781 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/component_templates/ComponentTemplate.java @@ -206,6 +206,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String includedIn; + public Builder() { + } + private Builder(ComponentTemplate instance) { + this.name = instance.name; + this.version = instance.version; + this.aliasCount = instance.aliasCount; + this.mappingCount = instance.mappingCount; + this.settingsCount = instance.settingsCount; + this.metadataCount = instance.metadataCount; + this.includedIn = instance.includedIn; + + } /** * Required - API name: {@code name} */ @@ -280,6 +292,12 @@ public ComponentTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java index 0064ae52a8..b293c5d8e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java @@ -162,6 +162,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String count; + public Builder() { + } + private Builder(CountRecord instance) { + this.epoch = instance.epoch; + this.timestamp = instance.timestamp; + this.count = instance.count; + + } /** * seconds since 1970-01-01 00:00:00 *

                                                                                  @@ -210,6 +218,12 @@ public CountRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java index 9e3a986561..c89ee51a94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java @@ -228,6 +228,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String size; + public Builder() { + } + private Builder(FielddataRecord instance) { + this.id = instance.id; + this.host = instance.host; + this.ip = instance.ip; + this.node = instance.node; + this.field = instance.field; + this.size = instance.size; + + } /** * node id *

                                                                                  @@ -306,6 +317,12 @@ public FielddataRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java index c21064abd2..a9c3b4b662 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java @@ -426,6 +426,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String activeShardsPercent; + public Builder() { + } + private Builder(HealthRecord instance) { + this.epoch = instance.epoch; + this.timestamp = instance.timestamp; + this.cluster = instance.cluster; + this.status = instance.status; + this.nodeTotal = instance.nodeTotal; + this.nodeData = instance.nodeData; + this.shards = instance.shards; + this.pri = instance.pri; + this.relo = instance.relo; + this.init = instance.init; + this.unassignPri = instance.unassignPri; + this.unassign = instance.unassign; + this.pendingTasks = instance.pendingTasks; + this.maxTaskWaitTime = instance.maxTaskWaitTime; + this.activeShardsPercent = instance.activeShardsPercent; + + } /** * seconds since 1970-01-01 00:00:00 *

                                                                                  @@ -594,6 +614,12 @@ public HealthRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java index 68fe8f5e57..05ba88ef45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java @@ -3225,6 +3225,153 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String priBulkAvgSizeInBytes; + public Builder() { + } + private Builder(IndicesRecord instance) { + this.health = instance.health; + this.status = instance.status; + this.index = instance.index; + this.uuid = instance.uuid; + this.pri = instance.pri; + this.rep = instance.rep; + this.docsCount = instance.docsCount; + this.docsDeleted = instance.docsDeleted; + this.creationDate = instance.creationDate; + this.creationDateString = instance.creationDateString; + this.storeSize = instance.storeSize; + this.priStoreSize = instance.priStoreSize; + this.datasetSize = instance.datasetSize; + this.completionSize = instance.completionSize; + this.priCompletionSize = instance.priCompletionSize; + this.fielddataMemorySize = instance.fielddataMemorySize; + this.priFielddataMemorySize = instance.priFielddataMemorySize; + this.fielddataEvictions = instance.fielddataEvictions; + this.priFielddataEvictions = instance.priFielddataEvictions; + this.queryCacheMemorySize = instance.queryCacheMemorySize; + this.priQueryCacheMemorySize = instance.priQueryCacheMemorySize; + this.queryCacheEvictions = instance.queryCacheEvictions; + this.priQueryCacheEvictions = instance.priQueryCacheEvictions; + this.requestCacheMemorySize = instance.requestCacheMemorySize; + this.priRequestCacheMemorySize = instance.priRequestCacheMemorySize; + this.requestCacheEvictions = instance.requestCacheEvictions; + this.priRequestCacheEvictions = instance.priRequestCacheEvictions; + this.requestCacheHitCount = instance.requestCacheHitCount; + this.priRequestCacheHitCount = instance.priRequestCacheHitCount; + this.requestCacheMissCount = instance.requestCacheMissCount; + this.priRequestCacheMissCount = instance.priRequestCacheMissCount; + this.flushTotal = instance.flushTotal; + this.priFlushTotal = instance.priFlushTotal; + this.flushTotalTime = instance.flushTotalTime; + this.priFlushTotalTime = instance.priFlushTotalTime; + this.getCurrent = instance.getCurrent; + this.priGetCurrent = instance.priGetCurrent; + this.getTime = instance.getTime; + this.priGetTime = instance.priGetTime; + this.getTotal = instance.getTotal; + this.priGetTotal = instance.priGetTotal; + this.getExistsTime = instance.getExistsTime; + this.priGetExistsTime = instance.priGetExistsTime; + this.getExistsTotal = instance.getExistsTotal; + this.priGetExistsTotal = instance.priGetExistsTotal; + this.getMissingTime = instance.getMissingTime; + this.priGetMissingTime = instance.priGetMissingTime; + this.getMissingTotal = instance.getMissingTotal; + this.priGetMissingTotal = instance.priGetMissingTotal; + this.indexingDeleteCurrent = instance.indexingDeleteCurrent; + this.priIndexingDeleteCurrent = instance.priIndexingDeleteCurrent; + this.indexingDeleteTime = instance.indexingDeleteTime; + this.priIndexingDeleteTime = instance.priIndexingDeleteTime; + this.indexingDeleteTotal = instance.indexingDeleteTotal; + this.priIndexingDeleteTotal = instance.priIndexingDeleteTotal; + this.indexingIndexCurrent = instance.indexingIndexCurrent; + this.priIndexingIndexCurrent = instance.priIndexingIndexCurrent; + this.indexingIndexTime = instance.indexingIndexTime; + this.priIndexingIndexTime = instance.priIndexingIndexTime; + this.indexingIndexTotal = instance.indexingIndexTotal; + this.priIndexingIndexTotal = instance.priIndexingIndexTotal; + this.indexingIndexFailed = instance.indexingIndexFailed; + this.priIndexingIndexFailed = instance.priIndexingIndexFailed; + this.mergesCurrent = instance.mergesCurrent; + this.priMergesCurrent = instance.priMergesCurrent; + this.mergesCurrentDocs = instance.mergesCurrentDocs; + this.priMergesCurrentDocs = instance.priMergesCurrentDocs; + this.mergesCurrentSize = instance.mergesCurrentSize; + this.priMergesCurrentSize = instance.priMergesCurrentSize; + this.mergesTotal = instance.mergesTotal; + this.priMergesTotal = instance.priMergesTotal; + this.mergesTotalDocs = instance.mergesTotalDocs; + this.priMergesTotalDocs = instance.priMergesTotalDocs; + this.mergesTotalSize = instance.mergesTotalSize; + this.priMergesTotalSize = instance.priMergesTotalSize; + this.mergesTotalTime = instance.mergesTotalTime; + this.priMergesTotalTime = instance.priMergesTotalTime; + this.refreshTotal = instance.refreshTotal; + this.priRefreshTotal = instance.priRefreshTotal; + this.refreshTime = instance.refreshTime; + this.priRefreshTime = instance.priRefreshTime; + this.refreshExternalTotal = instance.refreshExternalTotal; + this.priRefreshExternalTotal = instance.priRefreshExternalTotal; + this.refreshExternalTime = instance.refreshExternalTime; + this.priRefreshExternalTime = instance.priRefreshExternalTime; + this.refreshListeners = instance.refreshListeners; + this.priRefreshListeners = instance.priRefreshListeners; + this.searchFetchCurrent = instance.searchFetchCurrent; + this.priSearchFetchCurrent = instance.priSearchFetchCurrent; + this.searchFetchTime = instance.searchFetchTime; + this.priSearchFetchTime = instance.priSearchFetchTime; + this.searchFetchTotal = instance.searchFetchTotal; + this.priSearchFetchTotal = instance.priSearchFetchTotal; + this.searchOpenContexts = instance.searchOpenContexts; + this.priSearchOpenContexts = instance.priSearchOpenContexts; + this.searchQueryCurrent = instance.searchQueryCurrent; + this.priSearchQueryCurrent = instance.priSearchQueryCurrent; + this.searchQueryTime = instance.searchQueryTime; + this.priSearchQueryTime = instance.priSearchQueryTime; + this.searchQueryTotal = instance.searchQueryTotal; + this.priSearchQueryTotal = instance.priSearchQueryTotal; + this.searchScrollCurrent = instance.searchScrollCurrent; + this.priSearchScrollCurrent = instance.priSearchScrollCurrent; + this.searchScrollTime = instance.searchScrollTime; + this.priSearchScrollTime = instance.priSearchScrollTime; + this.searchScrollTotal = instance.searchScrollTotal; + this.priSearchScrollTotal = instance.priSearchScrollTotal; + this.segmentsCount = instance.segmentsCount; + this.priSegmentsCount = instance.priSegmentsCount; + this.segmentsMemory = instance.segmentsMemory; + this.priSegmentsMemory = instance.priSegmentsMemory; + this.segmentsIndexWriterMemory = instance.segmentsIndexWriterMemory; + this.priSegmentsIndexWriterMemory = instance.priSegmentsIndexWriterMemory; + this.segmentsVersionMapMemory = instance.segmentsVersionMapMemory; + this.priSegmentsVersionMapMemory = instance.priSegmentsVersionMapMemory; + this.segmentsFixedBitsetMemory = instance.segmentsFixedBitsetMemory; + this.priSegmentsFixedBitsetMemory = instance.priSegmentsFixedBitsetMemory; + this.warmerCurrent = instance.warmerCurrent; + this.priWarmerCurrent = instance.priWarmerCurrent; + this.warmerTotal = instance.warmerTotal; + this.priWarmerTotal = instance.priWarmerTotal; + this.warmerTotalTime = instance.warmerTotalTime; + this.priWarmerTotalTime = instance.priWarmerTotalTime; + this.suggestCurrent = instance.suggestCurrent; + this.priSuggestCurrent = instance.priSuggestCurrent; + this.suggestTime = instance.suggestTime; + this.priSuggestTime = instance.priSuggestTime; + this.suggestTotal = instance.suggestTotal; + this.priSuggestTotal = instance.priSuggestTotal; + this.memoryTotal = instance.memoryTotal; + this.priMemoryTotal = instance.priMemoryTotal; + this.searchThrottled = instance.searchThrottled; + this.bulkTotalOperations = instance.bulkTotalOperations; + this.priBulkTotalOperations = instance.priBulkTotalOperations; + this.bulkTotalTime = instance.bulkTotalTime; + this.priBulkTotalTime = instance.priBulkTotalTime; + this.bulkTotalSizeInBytes = instance.bulkTotalSizeInBytes; + this.priBulkTotalSizeInBytes = instance.priBulkTotalSizeInBytes; + this.bulkAvgTime = instance.bulkAvgTime; + this.priBulkAvgTime = instance.priBulkAvgTime; + this.bulkAvgSizeInBytes = instance.bulkAvgSizeInBytes; + this.priBulkAvgSizeInBytes = instance.priBulkAvgSizeInBytes; + + } /** * current health status *

                                                                                  @@ -4669,6 +4816,12 @@ public IndicesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java index 91efee95d3..845137901e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String node; + public Builder() { + } + private Builder(MasterRecord instance) { + this.id = instance.id; + this.host = instance.host; + this.ip = instance.ip; + this.node = instance.node; + + } /** * node id *

                                                                                  @@ -241,6 +250,12 @@ public MasterRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java index 9b5047c632..f8a562e043 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java @@ -451,6 +451,27 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String nodeAddress; + public Builder() { + } + private Builder(DataFrameAnalyticsRecord instance) { + this.id = instance.id; + this.type = instance.type; + this.createTime = instance.createTime; + this.version = instance.version; + this.sourceIndex = instance.sourceIndex; + this.destIndex = instance.destIndex; + this.description = instance.description; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.state = instance.state; + this.failureReason = instance.failureReason; + this.progress = instance.progress; + this.assignmentExplanation = instance.assignmentExplanation; + this.nodeId = instance.nodeId; + this.nodeName = instance.nodeName; + this.nodeEphemeralId = instance.nodeEphemeralId; + this.nodeAddress = instance.nodeAddress; + + } /** * The identifier for the job. *

                                                                                  @@ -630,6 +651,12 @@ public DataFrameAnalyticsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java index 2e46bcda76..b77a164875 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java @@ -365,6 +365,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String nodeAddress; + public Builder() { + } + private Builder(DatafeedsRecord instance) { + this.id = instance.id; + this.state = instance.state; + this.assignmentExplanation = instance.assignmentExplanation; + this.bucketsCount = instance.bucketsCount; + this.searchCount = instance.searchCount; + this.searchTime = instance.searchTime; + this.searchBucketAvg = instance.searchBucketAvg; + this.searchExpAvgHour = instance.searchExpAvgHour; + this.nodeId = instance.nodeId; + this.nodeName = instance.nodeName; + this.nodeEphemeralId = instance.nodeEphemeralId; + this.nodeAddress = instance.nodeAddress; + + } /** * The datafeed identifier. *

                                                                                  @@ -508,6 +525,12 @@ public DatafeedsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java index 28bdab4dc0..2096a575a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java @@ -1472,6 +1472,71 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String bucketsTimeExpAvgHour; + public Builder() { + } + private Builder(JobsRecord instance) { + this.id = instance.id; + this.state = instance.state; + this.openedTime = instance.openedTime; + this.assignmentExplanation = instance.assignmentExplanation; + this.dataProcessedRecords = instance.dataProcessedRecords; + this.dataProcessedFields = instance.dataProcessedFields; + this.dataInputBytes = instance.dataInputBytes; + this.dataInputRecords = instance.dataInputRecords; + this.dataInputFields = instance.dataInputFields; + this.dataInvalidDates = instance.dataInvalidDates; + this.dataMissingFields = instance.dataMissingFields; + this.dataOutOfOrderTimestamps = instance.dataOutOfOrderTimestamps; + this.dataEmptyBuckets = instance.dataEmptyBuckets; + this.dataSparseBuckets = instance.dataSparseBuckets; + this.dataBuckets = instance.dataBuckets; + this.dataEarliestRecord = instance.dataEarliestRecord; + this.dataLatestRecord = instance.dataLatestRecord; + this.dataLast = instance.dataLast; + this.dataLastEmptyBucket = instance.dataLastEmptyBucket; + this.dataLastSparseBucket = instance.dataLastSparseBucket; + this.modelBytes = instance.modelBytes; + this.modelMemoryStatus = instance.modelMemoryStatus; + this.modelBytesExceeded = instance.modelBytesExceeded; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.modelByFields = instance.modelByFields; + this.modelOverFields = instance.modelOverFields; + this.modelPartitionFields = instance.modelPartitionFields; + this.modelBucketAllocationFailures = instance.modelBucketAllocationFailures; + this.modelCategorizationStatus = instance.modelCategorizationStatus; + this.modelCategorizedDocCount = instance.modelCategorizedDocCount; + this.modelTotalCategoryCount = instance.modelTotalCategoryCount; + this.modelFrequentCategoryCount = instance.modelFrequentCategoryCount; + this.modelRareCategoryCount = instance.modelRareCategoryCount; + this.modelDeadCategoryCount = instance.modelDeadCategoryCount; + this.modelFailedCategoryCount = instance.modelFailedCategoryCount; + this.modelLogTime = instance.modelLogTime; + this.modelTimestamp = instance.modelTimestamp; + this.forecastsTotal = instance.forecastsTotal; + this.forecastsMemoryMin = instance.forecastsMemoryMin; + this.forecastsMemoryMax = instance.forecastsMemoryMax; + this.forecastsMemoryAvg = instance.forecastsMemoryAvg; + this.forecastsMemoryTotal = instance.forecastsMemoryTotal; + this.forecastsRecordsMin = instance.forecastsRecordsMin; + this.forecastsRecordsMax = instance.forecastsRecordsMax; + this.forecastsRecordsAvg = instance.forecastsRecordsAvg; + this.forecastsRecordsTotal = instance.forecastsRecordsTotal; + this.forecastsTimeMin = instance.forecastsTimeMin; + this.forecastsTimeMax = instance.forecastsTimeMax; + this.forecastsTimeAvg = instance.forecastsTimeAvg; + this.forecastsTimeTotal = instance.forecastsTimeTotal; + this.nodeId = instance.nodeId; + this.nodeName = instance.nodeName; + this.nodeEphemeralId = instance.nodeEphemeralId; + this.nodeAddress = instance.nodeAddress; + this.bucketsCount = instance.bucketsCount; + this.bucketsTimeTotal = instance.bucketsTimeTotal; + this.bucketsTimeMin = instance.bucketsTimeMin; + this.bucketsTimeMax = instance.bucketsTimeMax; + this.bucketsTimeExpAvg = instance.bucketsTimeExpAvg; + this.bucketsTimeExpAvgHour = instance.bucketsTimeExpAvgHour; + + } /** * The anomaly detection job identifier. *

                                                                                  @@ -2147,6 +2212,12 @@ public JobsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java index 299e075f2d..2b525f8306 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java @@ -494,6 +494,29 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String type; + public Builder() { + } + private Builder(TrainedModelsRecord instance) { + this.id = instance.id; + this.createdBy = instance.createdBy; + this.heapSize = instance.heapSize; + this.operations = instance.operations; + this.license = instance.license; + this.createTime = instance.createTime; + this.version = instance.version; + this.description = instance.description; + this.ingestPipelines = instance.ingestPipelines; + this.ingestCount = instance.ingestCount; + this.ingestTime = instance.ingestTime; + this.ingestCurrent = instance.ingestCurrent; + this.ingestFailed = instance.ingestFailed; + this.dataFrameId = instance.dataFrameId; + this.dataFrameCreateTime = instance.dataFrameCreateTime; + this.dataFrameSourceIndex = instance.dataFrameSourceIndex; + this.dataFrameAnalysis = instance.dataFrameAnalysis; + this.type = instance.type; + + } /** * The model identifier. *

                                                                                  @@ -692,6 +715,12 @@ public TrainedModelsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java index 5f44f5add9..b9d08cf545 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java @@ -274,6 +274,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String value; + public Builder() { + } + private Builder(NodeAttributesRecord instance) { + this.node = instance.node; + this.id = instance.id; + this.pid = instance.pid; + this.host = instance.host; + this.ip = instance.ip; + this.port = instance.port; + this.attr = instance.attr; + this.value = instance.value; + + } /** * The node name. *

                                                                                  @@ -372,6 +385,12 @@ public NodeAttributesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java index 817432b8be..5a100145a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java @@ -2238,6 +2238,108 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String bulkAvgSizeInBytes; + public Builder() { + } + private Builder(NodesRecord instance) { + this.id = instance.id; + this.pid = instance.pid; + this.ip = instance.ip; + this.port = instance.port; + this.httpAddress = instance.httpAddress; + this.version = instance.version; + this.flavor = instance.flavor; + this.type = instance.type; + this.build = instance.build; + this.jdk = instance.jdk; + this.diskTotal = instance.diskTotal; + this.diskUsed = instance.diskUsed; + this.diskAvail = instance.diskAvail; + this.diskUsedPercent = instance.diskUsedPercent; + this.heapCurrent = instance.heapCurrent; + this.heapPercent = instance.heapPercent; + this.heapMax = instance.heapMax; + this.ramCurrent = instance.ramCurrent; + this.ramPercent = instance.ramPercent; + this.ramMax = instance.ramMax; + this.fileDescCurrent = instance.fileDescCurrent; + this.fileDescPercent = instance.fileDescPercent; + this.fileDescMax = instance.fileDescMax; + this.cpu = instance.cpu; + this.load1m = instance.load1m; + this.load5m = instance.load5m; + this.load15m = instance.load15m; + this.availableProcessors = instance.availableProcessors; + this.uptime = instance.uptime; + this.nodeRole = instance.nodeRole; + this.master = instance.master; + this.name = instance.name; + this.completionSize = instance.completionSize; + this.fielddataMemorySize = instance.fielddataMemorySize; + this.fielddataEvictions = instance.fielddataEvictions; + this.queryCacheMemorySize = instance.queryCacheMemorySize; + this.queryCacheEvictions = instance.queryCacheEvictions; + this.queryCacheHitCount = instance.queryCacheHitCount; + this.queryCacheMissCount = instance.queryCacheMissCount; + this.requestCacheMemorySize = instance.requestCacheMemorySize; + this.requestCacheEvictions = instance.requestCacheEvictions; + this.requestCacheHitCount = instance.requestCacheHitCount; + this.requestCacheMissCount = instance.requestCacheMissCount; + this.flushTotal = instance.flushTotal; + this.flushTotalTime = instance.flushTotalTime; + this.getCurrent = instance.getCurrent; + this.getTime = instance.getTime; + this.getTotal = instance.getTotal; + this.getExistsTime = instance.getExistsTime; + this.getExistsTotal = instance.getExistsTotal; + this.getMissingTime = instance.getMissingTime; + this.getMissingTotal = instance.getMissingTotal; + this.indexingDeleteCurrent = instance.indexingDeleteCurrent; + this.indexingDeleteTime = instance.indexingDeleteTime; + this.indexingDeleteTotal = instance.indexingDeleteTotal; + this.indexingIndexCurrent = instance.indexingIndexCurrent; + this.indexingIndexTime = instance.indexingIndexTime; + this.indexingIndexTotal = instance.indexingIndexTotal; + this.indexingIndexFailed = instance.indexingIndexFailed; + this.mergesCurrent = instance.mergesCurrent; + this.mergesCurrentDocs = instance.mergesCurrentDocs; + this.mergesCurrentSize = instance.mergesCurrentSize; + this.mergesTotal = instance.mergesTotal; + this.mergesTotalDocs = instance.mergesTotalDocs; + this.mergesTotalSize = instance.mergesTotalSize; + this.mergesTotalTime = instance.mergesTotalTime; + this.refreshTotal = instance.refreshTotal; + this.refreshTime = instance.refreshTime; + this.refreshExternalTotal = instance.refreshExternalTotal; + this.refreshExternalTime = instance.refreshExternalTime; + this.refreshListeners = instance.refreshListeners; + this.scriptCompilations = instance.scriptCompilations; + this.scriptCacheEvictions = instance.scriptCacheEvictions; + this.scriptCompilationLimitTriggered = instance.scriptCompilationLimitTriggered; + this.searchFetchCurrent = instance.searchFetchCurrent; + this.searchFetchTime = instance.searchFetchTime; + this.searchFetchTotal = instance.searchFetchTotal; + this.searchOpenContexts = instance.searchOpenContexts; + this.searchQueryCurrent = instance.searchQueryCurrent; + this.searchQueryTime = instance.searchQueryTime; + this.searchQueryTotal = instance.searchQueryTotal; + this.searchScrollCurrent = instance.searchScrollCurrent; + this.searchScrollTime = instance.searchScrollTime; + this.searchScrollTotal = instance.searchScrollTotal; + this.segmentsCount = instance.segmentsCount; + this.segmentsMemory = instance.segmentsMemory; + this.segmentsIndexWriterMemory = instance.segmentsIndexWriterMemory; + this.segmentsVersionMapMemory = instance.segmentsVersionMapMemory; + this.segmentsFixedBitsetMemory = instance.segmentsFixedBitsetMemory; + this.suggestCurrent = instance.suggestCurrent; + this.suggestTime = instance.suggestTime; + this.suggestTotal = instance.suggestTotal; + this.bulkTotalOperations = instance.bulkTotalOperations; + this.bulkTotalTime = instance.bulkTotalTime; + this.bulkTotalSizeInBytes = instance.bulkTotalSizeInBytes; + this.bulkAvgTime = instance.bulkAvgTime; + this.bulkAvgSizeInBytes = instance.bulkAvgSizeInBytes; + + } /** * The unique node identifier. *

                                                                                  @@ -3235,6 +3337,12 @@ public NodesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java index 72559339f3..9213627874 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java @@ -186,6 +186,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String source; + public Builder() { + } + private Builder(PendingTasksRecord instance) { + this.insertorder = instance.insertorder; + this.timeinqueue = instance.timeinqueue; + this.priority = instance.priority; + this.source = instance.source; + + } /** * The task insertion order. *

                                                                                  @@ -244,6 +253,12 @@ public PendingTasksRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java index 5d528ce1b1..44c471422a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java @@ -227,6 +227,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String type; + public Builder() { + } + private Builder(PluginsRecord instance) { + this.id = instance.id; + this.name = instance.name; + this.component = instance.component; + this.version = instance.version; + this.description = instance.description; + this.type = instance.type; + + } /** * The unique node identifier. *

                                                                                  @@ -305,6 +316,12 @@ public PluginsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java index e027d09e4e..c8c613c68e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java @@ -668,6 +668,37 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String translogOpsPercent; + public Builder() { + } + private Builder(RecoveryRecord instance) { + this.index = instance.index; + this.shard = instance.shard; + this.startTime = instance.startTime; + this.startTimeMillis = instance.startTimeMillis; + this.stopTime = instance.stopTime; + this.stopTimeMillis = instance.stopTimeMillis; + this.time = instance.time; + this.type = instance.type; + this.stage = instance.stage; + this.sourceHost = instance.sourceHost; + this.sourceNode = instance.sourceNode; + this.targetHost = instance.targetHost; + this.targetNode = instance.targetNode; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.files = instance.files; + this.filesRecovered = instance.filesRecovered; + this.filesPercent = instance.filesPercent; + this.filesTotal = instance.filesTotal; + this.bytes = instance.bytes; + this.bytesRecovered = instance.bytesRecovered; + this.bytesPercent = instance.bytesPercent; + this.bytesTotal = instance.bytesTotal; + this.translogOps = instance.translogOps; + this.translogOpsRecovered = instance.translogOpsRecovered; + this.translogOpsPercent = instance.translogOpsPercent; + + } /** * The index name. *

                                                                                  @@ -955,6 +986,12 @@ public RecoveryRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java index 27dc424636..927b22860f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String type; + public Builder() { + } + private Builder(RepositoriesRecord instance) { + this.id = instance.id; + this.type = instance.type; + + } /** * The unique repository identifier. *

                                                                                  @@ -180,6 +187,12 @@ public RepositoriesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java index 24dae88f3e..10427fd25a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java @@ -443,6 +443,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String compound; + public Builder() { + } + private Builder(SegmentsRecord instance) { + this.index = instance.index; + this.shard = instance.shard; + this.prirep = instance.prirep; + this.ip = instance.ip; + this.id = instance.id; + this.segment = instance.segment; + this.generation = instance.generation; + this.docsCount = instance.docsCount; + this.docsDeleted = instance.docsDeleted; + this.size = instance.size; + this.sizeMemory = instance.sizeMemory; + this.committed = instance.committed; + this.searchable = instance.searchable; + this.version = instance.version; + this.compound = instance.compound; + + } /** * The index name. *

                                                                                  @@ -629,6 +649,12 @@ public SegmentsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java index 9598df2d74..404858a556 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java @@ -1823,6 +1823,88 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String bulkAvgSizeInBytes; + public Builder() { + } + private Builder(ShardsRecord instance) { + this.index = instance.index; + this.shard = instance.shard; + this.prirep = instance.prirep; + this.state = instance.state; + this.docs = instance.docs; + this.store = instance.store; + this.dataset = instance.dataset; + this.ip = instance.ip; + this.id = instance.id; + this.node = instance.node; + this.syncId = instance.syncId; + this.unassignedReason = instance.unassignedReason; + this.unassignedAt = instance.unassignedAt; + this.unassignedFor = instance.unassignedFor; + this.unassignedDetails = instance.unassignedDetails; + this.recoverysourceType = instance.recoverysourceType; + this.completionSize = instance.completionSize; + this.fielddataMemorySize = instance.fielddataMemorySize; + this.fielddataEvictions = instance.fielddataEvictions; + this.queryCacheMemorySize = instance.queryCacheMemorySize; + this.queryCacheEvictions = instance.queryCacheEvictions; + this.flushTotal = instance.flushTotal; + this.flushTotalTime = instance.flushTotalTime; + this.getCurrent = instance.getCurrent; + this.getTime = instance.getTime; + this.getTotal = instance.getTotal; + this.getExistsTime = instance.getExistsTime; + this.getExistsTotal = instance.getExistsTotal; + this.getMissingTime = instance.getMissingTime; + this.getMissingTotal = instance.getMissingTotal; + this.indexingDeleteCurrent = instance.indexingDeleteCurrent; + this.indexingDeleteTime = instance.indexingDeleteTime; + this.indexingDeleteTotal = instance.indexingDeleteTotal; + this.indexingIndexCurrent = instance.indexingIndexCurrent; + this.indexingIndexTime = instance.indexingIndexTime; + this.indexingIndexTotal = instance.indexingIndexTotal; + this.indexingIndexFailed = instance.indexingIndexFailed; + this.mergesCurrent = instance.mergesCurrent; + this.mergesCurrentDocs = instance.mergesCurrentDocs; + this.mergesCurrentSize = instance.mergesCurrentSize; + this.mergesTotal = instance.mergesTotal; + this.mergesTotalDocs = instance.mergesTotalDocs; + this.mergesTotalSize = instance.mergesTotalSize; + this.mergesTotalTime = instance.mergesTotalTime; + this.refreshTotal = instance.refreshTotal; + this.refreshTime = instance.refreshTime; + this.refreshExternalTotal = instance.refreshExternalTotal; + this.refreshExternalTime = instance.refreshExternalTime; + this.refreshListeners = instance.refreshListeners; + this.searchFetchCurrent = instance.searchFetchCurrent; + this.searchFetchTime = instance.searchFetchTime; + this.searchFetchTotal = instance.searchFetchTotal; + this.searchOpenContexts = instance.searchOpenContexts; + this.searchQueryCurrent = instance.searchQueryCurrent; + this.searchQueryTime = instance.searchQueryTime; + this.searchQueryTotal = instance.searchQueryTotal; + this.searchScrollCurrent = instance.searchScrollCurrent; + this.searchScrollTime = instance.searchScrollTime; + this.searchScrollTotal = instance.searchScrollTotal; + this.segmentsCount = instance.segmentsCount; + this.segmentsMemory = instance.segmentsMemory; + this.segmentsIndexWriterMemory = instance.segmentsIndexWriterMemory; + this.segmentsVersionMapMemory = instance.segmentsVersionMapMemory; + this.segmentsFixedBitsetMemory = instance.segmentsFixedBitsetMemory; + this.seqNoMax = instance.seqNoMax; + this.seqNoLocalCheckpoint = instance.seqNoLocalCheckpoint; + this.seqNoGlobalCheckpoint = instance.seqNoGlobalCheckpoint; + this.warmerCurrent = instance.warmerCurrent; + this.warmerTotal = instance.warmerTotal; + this.warmerTotalTime = instance.warmerTotalTime; + this.pathData = instance.pathData; + this.pathState = instance.pathState; + this.bulkTotalOperations = instance.bulkTotalOperations; + this.bulkTotalTime = instance.bulkTotalTime; + this.bulkTotalSizeInBytes = instance.bulkTotalSizeInBytes; + this.bulkAvgTime = instance.bulkAvgTime; + this.bulkAvgSizeInBytes = instance.bulkAvgSizeInBytes; + + } /** * The index name. *

                                                                                  @@ -2645,6 +2727,12 @@ public ShardsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java index 9226255fca..6a5aedcec9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java @@ -392,6 +392,24 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String reason; + public Builder() { + } + private Builder(SnapshotsRecord instance) { + this.id = instance.id; + this.repository = instance.repository; + this.status = instance.status; + this.startEpoch = instance.startEpoch; + this.startTime = instance.startTime; + this.endEpoch = instance.endEpoch; + this.endTime = instance.endTime; + this.duration = instance.duration; + this.indices = instance.indices; + this.successfulShards = instance.successfulShards; + this.failedShards = instance.failedShards; + this.totalShards = instance.totalShards; + this.reason = instance.reason; + + } /** * The unique identifier for the snapshot. *

                                                                                  @@ -565,6 +583,12 @@ public SnapshotsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java index 2b07ea27dd..bb03e9240a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java @@ -447,6 +447,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String description; + public Builder() { + } + private Builder(TasksRecord instance) { + this.id = instance.id; + this.action = instance.action; + this.taskId = instance.taskId; + this.parentTaskId = instance.parentTaskId; + this.type = instance.type; + this.startTime = instance.startTime; + this.timestamp = instance.timestamp; + this.runningTimeNs = instance.runningTimeNs; + this.runningTime = instance.runningTime; + this.nodeId = instance.nodeId; + this.ip = instance.ip; + this.port = instance.port; + this.node = instance.node; + this.version = instance.version; + this.xOpaqueId = instance.xOpaqueId; + this.description = instance.description; + + } /** * The identifier of the task with the node. *

                                                                                  @@ -625,6 +646,12 @@ public TasksRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java index e9ddfaba53..62e74fef6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java @@ -206,6 +206,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String composedOf; + public Builder() { + } + private Builder(TemplatesRecord instance) { + this.name = instance.name; + this.indexPatterns = instance.indexPatterns; + this.order = instance.order; + this.version = instance.version; + this.composedOf = instance.composedOf; + + } /** * The template name. *

                                                                                  @@ -274,6 +284,12 @@ public TemplatesRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java index 896bf00eb9..056512ec2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java @@ -538,6 +538,31 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String keepAlive; + public Builder() { + } + private Builder(ThreadPoolRecord instance) { + this.nodeName = instance.nodeName; + this.nodeId = instance.nodeId; + this.ephemeralNodeId = instance.ephemeralNodeId; + this.pid = instance.pid; + this.host = instance.host; + this.ip = instance.ip; + this.port = instance.port; + this.name = instance.name; + this.type = instance.type; + this.active = instance.active; + this.poolSize = instance.poolSize; + this.queue = instance.queue; + this.queueSize = instance.queueSize; + this.rejected = instance.rejected; + this.largest = instance.largest; + this.completed = instance.completed; + this.core = instance.core; + this.max = instance.max; + this.size = instance.size; + this.keepAlive = instance.keepAlive; + + } /** * The node name. *

                                                                                  @@ -758,6 +783,12 @@ public ThreadPoolRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java index ea0f436fbd..dc0b32aa31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java @@ -840,6 +840,44 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String processedDocumentsExpAvg; + public Builder() { + } + private Builder(TransformsRecord instance) { + this.id = instance.id; + this.state = instance.state; + this.checkpoint = instance.checkpoint; + this.documentsProcessed = instance.documentsProcessed; + this.checkpointProgress = instance.checkpointProgress; + this.lastSearchTime = instance.lastSearchTime; + this.changesLastDetectionTime = instance.changesLastDetectionTime; + this.createTime = instance.createTime; + this.version = instance.version; + this.sourceIndex = instance.sourceIndex; + this.destIndex = instance.destIndex; + this.pipeline = instance.pipeline; + this.description = instance.description; + this.transformType = instance.transformType; + this.frequency = instance.frequency; + this.maxPageSearchSize = instance.maxPageSearchSize; + this.docsPerSecond = instance.docsPerSecond; + this.reason = instance.reason; + this.searchTotal = instance.searchTotal; + this.searchFailure = instance.searchFailure; + this.searchTime = instance.searchTime; + this.indexTotal = instance.indexTotal; + this.indexFailure = instance.indexFailure; + this.indexTime = instance.indexTime; + this.documentsIndexed = instance.documentsIndexed; + this.deleteTime = instance.deleteTime; + this.documentsDeleted = instance.documentsDeleted; + this.triggerCount = instance.triggerCount; + this.pagesProcessed = instance.pagesProcessed; + this.processingTime = instance.processingTime; + this.checkpointDurationTimeExpAvg = instance.checkpointDurationTimeExpAvg; + this.indexedDocumentsExpAvg = instance.indexedDocumentsExpAvg; + this.processedDocumentsExpAvg = instance.processedDocumentsExpAvg; + + } /** * The transform identifier. *

                                                                                  @@ -1206,6 +1244,12 @@ public TransformsRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java index 8d86e959f9..9478538445 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/CcrStatsRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(CcrStatsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -185,6 +192,12 @@ public CcrStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java index edcf03e038..9e483c0195 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(DeleteAutoFollowPatternRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -174,6 +181,12 @@ public DeleteAutoFollowPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java index 48cbc8c2b1..aa16ab207b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowIndexStats.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List shards; + public Builder() { + } + private Builder(FollowIndexStats instance) { + this.index = instance.index; + this.shards = instance.shards; + + } /** * Required - The name of the follower index. *

                                                                                  @@ -201,6 +208,12 @@ public FollowIndexStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java index b2953bde99..c40d9f1007 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java @@ -123,6 +123,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(FollowInfoRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + + } /** * Required - A comma-delimited list of follower index patterns. *

                                                                                  @@ -190,6 +197,12 @@ public FollowInfoRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java index 55793614ec..a5546142bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java @@ -469,6 +469,28 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(FollowRequest instance) { + this.dataStreamName = instance.dataStreamName; + this.index = instance.index; + this.leaderIndex = instance.leaderIndex; + this.masterTimeout = instance.masterTimeout; + this.maxOutstandingReadRequests = instance.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = instance.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = instance.maxReadRequestOperationCount; + this.maxReadRequestSize = instance.maxReadRequestSize; + this.maxRetryDelay = instance.maxRetryDelay; + this.maxWriteBufferCount = instance.maxWriteBufferCount; + this.maxWriteBufferSize = instance.maxWriteBufferSize; + this.maxWriteRequestOperationCount = instance.maxWriteRequestOperationCount; + this.maxWriteRequestSize = instance.maxWriteRequestSize; + this.readPollTimeout = instance.readPollTimeout; + this.remoteCluster = instance.remoteCluster; + this.settings = instance.settings; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * If the leader index is part of a data stream, the name to which the local * data stream for the followed index should be renamed. @@ -729,6 +751,12 @@ public FollowRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java index f8253f35c7..7e384c6220 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(FollowStatsRequest instance) { + this.index = instance.index; + this.timeout = instance.timeout; + + } /** * Required - A comma-delimited list of index patterns. *

                                                                                  @@ -184,6 +191,12 @@ public FollowStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java index e2b4f1af42..bae114799d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java @@ -234,6 +234,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ForgetFollowerRequest instance) { + this.followerCluster = instance.followerCluster; + this.followerIndex = instance.followerIndex; + this.followerIndexUuid = instance.followerIndexUuid; + this.index = instance.index; + this.leaderRemoteCluster = instance.leaderRemoteCluster; + this.timeout = instance.timeout; + + } /** * API name: {@code follower_cluster} */ @@ -316,6 +327,12 @@ public ForgetFollowerRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java index 3ab7bcce9b..6f717caaf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java @@ -123,6 +123,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String name; + public Builder() { + } + private Builder(GetAutoFollowPatternRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -177,6 +184,12 @@ public GetAutoFollowPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java index 19817f1557..059afd59fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java @@ -129,6 +129,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(PauseAutoFollowPatternRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -182,6 +189,12 @@ public PauseAutoFollowPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java index e68d56b330..bb3ed39601 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java @@ -122,6 +122,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(PauseFollowRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + + } /** * Required - The name of the follower index. *

                                                                                  @@ -175,6 +182,12 @@ public PauseFollowRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java index 26f6535c9d..e04aa7ffa5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java @@ -500,6 +500,28 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map settings; + public Builder() { + } + private Builder(PutAutoFollowPatternRequest instance) { + this.followIndexPattern = instance.followIndexPattern; + this.leaderIndexExclusionPatterns = instance.leaderIndexExclusionPatterns; + this.leaderIndexPatterns = instance.leaderIndexPatterns; + this.masterTimeout = instance.masterTimeout; + this.maxOutstandingReadRequests = instance.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = instance.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = instance.maxReadRequestOperationCount; + this.maxReadRequestSize = instance.maxReadRequestSize; + this.maxRetryDelay = instance.maxRetryDelay; + this.maxWriteBufferCount = instance.maxWriteBufferCount; + this.maxWriteBufferSize = instance.maxWriteBufferSize; + this.maxWriteRequestOperationCount = instance.maxWriteRequestOperationCount; + this.maxWriteRequestSize = instance.maxWriteRequestSize; + this.name = instance.name; + this.readPollTimeout = instance.readPollTimeout; + this.remoteCluster = instance.remoteCluster; + this.settings = instance.settings; + + } /** * The name of follower index. The template {{leader_index}} can be used to * derive the name of the follower index from the name of the leader index. When @@ -788,6 +810,12 @@ public PutAutoFollowPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java index e0ba9b8dc0..23afb7f926 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ReadException.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer retries; + public Builder() { + } + private Builder(ReadException instance) { + this.exception = instance.exception; + this.fromSeqNo = instance.fromSeqNo; + this.retries = instance.retries; + + } /** * Required - The exception that caused the read to fail. *

                                                                                  @@ -207,6 +215,12 @@ public ReadException build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java index f9fe919cea..69b49534af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(ResumeAutoFollowPatternRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -178,6 +185,12 @@ public ResumeAutoFollowPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java index 8ce810e4ea..b65f796912 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java @@ -337,6 +337,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time readPollTimeout; + public Builder() { + } + private Builder(ResumeFollowRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.maxOutstandingReadRequests = instance.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = instance.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = instance.maxReadRequestOperationCount; + this.maxReadRequestSize = instance.maxReadRequestSize; + this.maxRetryDelay = instance.maxRetryDelay; + this.maxWriteBufferCount = instance.maxWriteBufferCount; + this.maxWriteBufferSize = instance.maxWriteBufferSize; + this.maxWriteRequestOperationCount = instance.maxWriteRequestOperationCount; + this.maxWriteRequestSize = instance.maxWriteRequestSize; + this.readPollTimeout = instance.readPollTimeout; + + } /** * Required - Name of the follow index to resume following *

                                                                                  @@ -478,6 +495,12 @@ public ResumeFollowRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java index d107723c72..8eb60b78cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ShardStats.java @@ -714,6 +714,44 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String writeBufferSizeInBytes; + public Builder() { + } + private Builder(ShardStats instance) { + this.bytesRead = instance.bytesRead; + this.failedReadRequests = instance.failedReadRequests; + this.failedWriteRequests = instance.failedWriteRequests; + this.fatalException = instance.fatalException; + this.followerAliasesVersion = instance.followerAliasesVersion; + this.followerGlobalCheckpoint = instance.followerGlobalCheckpoint; + this.followerIndex = instance.followerIndex; + this.followerMappingVersion = instance.followerMappingVersion; + this.followerMaxSeqNo = instance.followerMaxSeqNo; + this.followerSettingsVersion = instance.followerSettingsVersion; + this.lastRequestedSeqNo = instance.lastRequestedSeqNo; + this.leaderGlobalCheckpoint = instance.leaderGlobalCheckpoint; + this.leaderIndex = instance.leaderIndex; + this.leaderMaxSeqNo = instance.leaderMaxSeqNo; + this.operationsRead = instance.operationsRead; + this.operationsWritten = instance.operationsWritten; + this.outstandingReadRequests = instance.outstandingReadRequests; + this.outstandingWriteRequests = instance.outstandingWriteRequests; + this.readExceptions = instance.readExceptions; + this.remoteCluster = instance.remoteCluster; + this.shardId = instance.shardId; + this.successfulReadRequests = instance.successfulReadRequests; + this.successfulWriteRequests = instance.successfulWriteRequests; + this.timeSinceLastRead = instance.timeSinceLastRead; + this.timeSinceLastReadMillis = instance.timeSinceLastReadMillis; + this.totalReadRemoteExecTime = instance.totalReadRemoteExecTime; + this.totalReadRemoteExecTimeMillis = instance.totalReadRemoteExecTimeMillis; + this.totalReadTime = instance.totalReadTime; + this.totalReadTimeMillis = instance.totalReadTimeMillis; + this.totalWriteTime = instance.totalWriteTime; + this.totalWriteTimeMillis = instance.totalWriteTimeMillis; + this.writeBufferOperationCount = instance.writeBufferOperationCount; + this.writeBufferSizeInBytes = instance.writeBufferSizeInBytes; + + } /** * Required - The total of transferred bytes read from the leader. This is only * an estimate and does not account for compression if enabled. @@ -1125,6 +1163,12 @@ public ShardStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java index 74fd9aa2a6..c0ed432fea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java @@ -127,6 +127,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(UnfollowRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + + } /** * Required - The name of the follower index. *

                                                                                  @@ -180,6 +187,12 @@ public UnfollowRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java index 5f440308da..8228b2bd7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndex.java @@ -188,6 +188,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FollowerIndexStatus status; + public Builder() { + } + private Builder(FollowerIndex instance) { + this.followerIndex = instance.followerIndex; + this.leaderIndex = instance.leaderIndex; + this.parameters = instance.parameters; + this.remoteCluster = instance.remoteCluster; + this.status = instance.status; + + } /** * Required - The name of the follower index. *

                                                                                  @@ -269,6 +279,12 @@ public FollowerIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java index ed314baf55..746297177f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/follow_info/FollowerIndexParameters.java @@ -333,6 +333,21 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time readPollTimeout; + public Builder() { + } + private Builder(FollowerIndexParameters instance) { + this.maxOutstandingReadRequests = instance.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = instance.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = instance.maxReadRequestOperationCount; + this.maxReadRequestSize = instance.maxReadRequestSize; + this.maxRetryDelay = instance.maxRetryDelay; + this.maxWriteBufferCount = instance.maxWriteBufferCount; + this.maxWriteBufferSize = instance.maxWriteBufferSize; + this.maxWriteRequestOperationCount = instance.maxWriteRequestOperationCount; + this.maxWriteRequestSize = instance.maxWriteRequestSize; + this.readPollTimeout = instance.readPollTimeout; + + } /** * The maximum number of outstanding reads requests from the remote cluster. *

                                                                                  @@ -486,6 +501,12 @@ public FollowerIndexParameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPattern.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPattern.java index d8f475df75..4db8b5ae26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPattern.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPattern.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private AutoFollowPatternSummary pattern; + public Builder() { + } + private Builder(AutoFollowPattern instance) { + this.name = instance.name; + this.pattern = instance.pattern; + + } /** * Required - API name: {@code name} */ @@ -168,6 +175,12 @@ public AutoFollowPattern build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPatternSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPatternSummary.java index 3dfe03efce..c84f8c05ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPatternSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/get_auto_follow_pattern/AutoFollowPatternSummary.java @@ -226,6 +226,17 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer maxOutstandingReadRequests; + public Builder() { + } + private Builder(AutoFollowPatternSummary instance) { + this.active = instance.active; + this.remoteCluster = instance.remoteCluster; + this.followIndexPattern = instance.followIndexPattern; + this.leaderIndexPatterns = instance.leaderIndexPatterns; + this.leaderIndexExclusionPatterns = instance.leaderIndexExclusionPatterns; + this.maxOutstandingReadRequests = instance.maxOutstandingReadRequests; + + } /** * Required - API name: {@code active} */ @@ -336,6 +347,12 @@ public AutoFollowPatternSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowStats.java index 605aa583ff..53a4783738 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowStats.java @@ -207,6 +207,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List recentAutoFollowErrors; + public Builder() { + } + private Builder(AutoFollowStats instance) { + this.autoFollowedClusters = instance.autoFollowedClusters; + this.numberOfFailedFollowIndices = instance.numberOfFailedFollowIndices; + this.numberOfFailedRemoteClusterStateRequests = instance.numberOfFailedRemoteClusterStateRequests; + this.numberOfSuccessfulFollowIndices = instance.numberOfSuccessfulFollowIndices; + this.recentAutoFollowErrors = instance.recentAutoFollowErrors; + + } /** * Required - API name: {@code auto_followed_clusters} *

                                                                                  @@ -330,6 +340,12 @@ public AutoFollowStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowedCluster.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowedCluster.java index 1556d61952..73ad453e0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowedCluster.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/AutoFollowedCluster.java @@ -146,6 +146,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long timeSinceLastCheckMillis; + public Builder() { + } + private Builder(AutoFollowedCluster instance) { + this.clusterName = instance.clusterName; + this.lastSeenMetadataVersion = instance.lastSeenMetadataVersion; + this.timeSinceLastCheckMillis = instance.timeSinceLastCheckMillis; + + } /** * Required - API name: {@code cluster_name} */ @@ -188,6 +196,12 @@ public AutoFollowedCluster build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/FollowStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/FollowStats.java index 26bf0b7c1e..f9c0b9c023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/FollowStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/stats/FollowStats.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List indices; + public Builder() { + } + private Builder(FollowStats instance) { + this.indices = instance.indices; + + } /** * Required - API name: {@code indices} *

                                                                                  @@ -166,6 +172,12 @@ public FollowStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java index 8b7d8e2611..425fc3c453 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java @@ -254,6 +254,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer shard; + public Builder() { + } + private Builder(AllocationExplainRequest instance) { + this.currentNode = instance.currentNode; + this.includeDiskInfo = instance.includeDiskInfo; + this.includeYesDecisions = instance.includeYesDecisions; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.primary = instance.primary; + this.shard = instance.shard; + + } /** * Explain a shard only if it is currently located on the specified node name or * node ID. @@ -353,6 +365,12 @@ public AllocationExplainRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java index 22646ebbfa..0d90f991ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List target; + public Builder() { + } + private Builder(ClusterInfoRequest instance) { + this.target = instance.target; + + } /** * Required - Limits the information returned to the specific target. Supports a * comma-separated list, such as http,ingest. @@ -146,6 +152,12 @@ public ClusterInfoRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java index 76217bc81f..06ad0f5109 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterStatsRequest.java @@ -143,6 +143,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ClusterStatsRequest instance) { + this.includeRemotes = instance.includeRemotes; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + + } /** * Include remote cluster data into the response *

                                                                                  @@ -222,6 +230,12 @@ public ClusterStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java index 14afcc6efe..016f86e6a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplate.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ComponentTemplateNode componentTemplate; + public Builder() { + } + private Builder(ComponentTemplate instance) { + this.name = instance.name; + this.componentTemplate = instance.componentTemplate; + + } /** * Required - API name: {@code name} */ @@ -168,6 +175,12 @@ public ComponentTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java index 03db3820f9..f898b2ad35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateNode.java @@ -273,6 +273,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long modifiedDateMillis; + public Builder() { + } + private Builder(ComponentTemplateNode instance) { + this.template = instance.template; + this.version = instance.version; + this.meta = instance.meta; + this.deprecated = instance.deprecated; + this.createdDate = instance.createdDate; + this.createdDateMillis = instance.createdDateMillis; + this.modifiedDate = instance.modifiedDate; + this.modifiedDateMillis = instance.modifiedDateMillis; + + } /** * Required - API name: {@code template} */ @@ -387,6 +400,12 @@ public ComponentTemplateNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java index 1612ebd055..ec71d0adaa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java @@ -259,6 +259,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamOptions dataStreamOptions; + public Builder() { + } + private Builder(ComponentTemplateSummary instance) { + this.meta = instance.meta; + this.version = instance.version; + this.settings = instance.settings; + this.mappings = instance.mappings; + this.aliases = instance.aliases; + this.lifecycle = instance.lifecycle; + this.dataStreamOptions = instance.dataStreamOptions; + + } /** * API name: {@code _meta} *

                                                                                  @@ -410,6 +422,12 @@ public ComponentTemplateSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index 2ab2efd72d..6456b1f477 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -141,6 +141,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteComponentTemplateRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -227,6 +235,12 @@ public DeleteComponentTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java index 3c01983203..3b3939c536 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java @@ -128,6 +128,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForRemoval; + public Builder() { + } + private Builder(DeleteVotingConfigExclusionsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.waitForRemoval = instance.waitForRemoval; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -180,6 +187,12 @@ public DeleteVotingConfigExclusionsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index af7b715d15..0c9e06a5cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -147,6 +147,14 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(ExistsComponentTemplateRequest instance) { + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. @@ -227,6 +235,12 @@ public ExistsComponentTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java index 16f7a1d497..4b0f1a900f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetClusterSettingsRequest.java @@ -162,6 +162,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(GetClusterSettingsRequest instance) { + this.flatSettings = instance.flatSettings; + this.includeDefaults = instance.includeDefaults; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * If true, returns settings in flat format. *

                                                                                  @@ -249,6 +258,12 @@ public GetClusterSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 4fea608f2f..2fbcaad6b7 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 @@ -197,6 +197,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List settingsFilter; + public Builder() { + } + private Builder(GetComponentTemplateRequest instance) { + this.flatSettings = instance.flatSettings; + this.includeDefaults = instance.includeDefaults; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.settingsFilter = instance.settingsFilter; + + } /** * If true, returns settings in flat format. *

                                                                                  @@ -308,6 +319,12 @@ public GetComponentTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 f756239da8..38230a5495 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 @@ -318,6 +318,23 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private HealthStatus waitForStatus; + public Builder() { + } + private Builder(HealthRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.index = instance.index; + this.level = instance.level; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + this.waitForEvents = instance.waitForEvents; + this.waitForNoInitializingShards = instance.waitForNoInitializingShards; + this.waitForNoRelocatingShards = instance.waitForNoRelocatingShards; + this.waitForNodes = instance.waitForNodes; + this.waitForStatus = instance.waitForStatus; + + } /** * Expand wildcard expression to concrete indices that are open, closed or both. *

                                                                                  @@ -533,6 +550,12 @@ public HealthRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index 255d342d23..1d0a0a3b9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -129,6 +129,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(PendingTasksRequest instance) { + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + + } /** * If true, the request retrieves information from the local node * only. If false, information is retrieved from the master node. @@ -179,6 +186,12 @@ public PendingTasksRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java index 48a5101956..d179e56561 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java @@ -195,6 +195,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PostVotingConfigExclusionsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.nodeIds = instance.nodeIds; + this.nodeNames = instance.nodeNames; + this.timeout = instance.timeout; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -309,6 +318,12 @@ public PostVotingConfigExclusionsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java index 95d4a49cd0..e3a0fc22d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java @@ -233,6 +233,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map transient_; + public Builder() { + } + private Builder(PutClusterSettingsRequest instance) { + this.flatSettings = instance.flatSettings; + this.masterTimeout = instance.masterTimeout; + this.persistent = instance.persistent; + this.timeout = instance.timeout; + this.transient_ = instance.transient_; + + } /** * Return settings in flat format *

                                                                                  @@ -347,6 +357,12 @@ public PutClusterSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 90f4743330..c7633e30ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -304,6 +304,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long version; + public Builder() { + } + private Builder(PutComponentTemplateRequest instance) { + this.meta = instance.meta; + this.cause = instance.cause; + this.create = instance.create; + this.deprecated = instance.deprecated; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.template = instance.template; + this.version = instance.version; + + } /** * Optional user metadata about the component template. It may have any * contents. This map is not automatically generated by Elasticsearch. This @@ -461,6 +474,12 @@ public PutComponentTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java index b0f7720bc3..0f382ef520 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java @@ -266,6 +266,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(RerouteRequest instance) { + this.commands = instance.commands; + this.dryRun = instance.dryRun; + this.explain = instance.explain; + this.masterTimeout = instance.masterTimeout; + this.metric = instance.metric; + this.retryFailed = instance.retryFailed; + this.timeout = instance.timeout; + + } /** * Defines the commands to perform. *

                                                                                  @@ -428,6 +440,12 @@ public RerouteRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java index 209ca5f63d..3298fce3dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java @@ -291,6 +291,21 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time waitForTimeout; + public Builder() { + } + private Builder(StateRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flatSettings = instance.flatSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.metric = instance.metric; + this.waitForMetadataVersion = instance.waitForMetadataVersion; + this.waitForTimeout = instance.waitForTimeout; + + } /** * Whether to ignore if a wildcard indices expression resolves into no concrete * indices. (This includes _all string or when no indices have been @@ -481,6 +496,12 @@ public StateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java index e1ed4010fa..7a2563ed2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationDecision.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String explanation; + public Builder() { + } + private Builder(AllocationDecision instance) { + this.decider = instance.decider; + this.decision = instance.decision; + this.explanation = instance.explanation; + + } /** * Required - API name: {@code decider} */ @@ -184,6 +192,12 @@ public AllocationDecision build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationStore.java index 53d4092107..9b4697b20e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/AllocationStore.java @@ -189,6 +189,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String storeException; + public Builder() { + } + private Builder(AllocationStore instance) { + this.allocationId = instance.allocationId; + this.found = instance.found; + this.inSync = instance.inSync; + this.matchingSizeInBytes = instance.matchingSizeInBytes; + this.matchingSyncId = instance.matchingSyncId; + this.storeException = instance.storeException; + + } /** * Required - API name: {@code allocation_id} */ @@ -255,6 +266,12 @@ public AllocationStore build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ClusterInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ClusterInfo.java index 59cab67ce6..02314bf70a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ClusterInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ClusterInfo.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List reservedSizes; + public Builder() { + } + private Builder(ClusterInfo instance) { + this.nodes = instance.nodes; + this.shardSizes = instance.shardSizes; + this.shardDataSetSizes = instance.shardDataSetSizes; + this.shardPaths = instance.shardPaths; + this.reservedSizes = instance.reservedSizes; + + } /** * Required - API name: {@code nodes} *

                                                                                  @@ -351,6 +361,12 @@ public ClusterInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/CurrentNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/CurrentNode.java index 9915c29654..8951a2b140 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/CurrentNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/CurrentNode.java @@ -204,6 +204,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer weightRanking; + public Builder() { + } + private Builder(CurrentNode instance) { + this.id = instance.id; + this.name = instance.name; + this.roles = instance.roles; + this.attributes = instance.attributes; + this.transportAddress = instance.transportAddress; + this.weightRanking = instance.weightRanking; + + } /** * Required - API name: {@code id} */ @@ -294,6 +305,12 @@ public CurrentNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/DiskUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/DiskUsage.java index eeededf60b..3f88b7d5a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/DiskUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/DiskUsage.java @@ -188,6 +188,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double usedDiskPercent; + public Builder() { + } + private Builder(DiskUsage instance) { + this.path = instance.path; + this.totalBytes = instance.totalBytes; + this.usedBytes = instance.usedBytes; + this.freeBytes = instance.freeBytes; + this.freeDiskPercent = instance.freeDiskPercent; + this.usedDiskPercent = instance.usedDiskPercent; + + } /** * Required - API name: {@code path} */ @@ -254,6 +265,12 @@ public DiskUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java index 102fc21611..bfe74b9af7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeAllocationExplanation.java @@ -269,6 +269,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer weightRanking; + public Builder() { + } + private Builder(NodeAllocationExplanation instance) { + this.deciders = instance.deciders; + this.nodeAttributes = instance.nodeAttributes; + this.nodeDecision = instance.nodeDecision; + this.nodeId = instance.nodeId; + this.nodeName = instance.nodeName; + this.roles = instance.roles; + this.store = instance.store; + this.transportAddress = instance.transportAddress; + this.weightRanking = instance.weightRanking; + + } /** * API name: {@code deciders} *

                                                                                  @@ -411,6 +425,12 @@ public NodeAllocationExplanation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeDiskUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeDiskUsage.java index 4caafa1aa2..26a3eb0ec7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeDiskUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/NodeDiskUsage.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private DiskUsage mostAvailable; + public Builder() { + } + private Builder(NodeDiskUsage instance) { + this.nodeName = instance.nodeName; + this.leastAvailable = instance.leastAvailable; + this.mostAvailable = instance.mostAvailable; + + } /** * Required - API name: {@code node_name} */ @@ -197,6 +205,12 @@ public NodeDiskUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ReservedSize.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ReservedSize.java index c309a3eff1..a123e9f9a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ReservedSize.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/ReservedSize.java @@ -166,6 +166,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List shards; + public Builder() { + } + private Builder(ReservedSize instance) { + this.nodeId = instance.nodeId; + this.path = instance.path; + this.total = instance.total; + this.shards = instance.shards; + + } /** * Required - API name: {@code node_id} */ @@ -228,6 +237,12 @@ public ReservedSize build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/UnassignedInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/UnassignedInformation.java index a947e48dbc..a4152dcf5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/UnassignedInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/allocation_explain/UnassignedInformation.java @@ -230,6 +230,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String allocationStatus; + public Builder() { + } + private Builder(UnassignedInformation instance) { + this.at = instance.at; + this.lastAllocationStatus = instance.lastAllocationStatus; + this.reason = instance.reason; + this.details = instance.details; + this.failedAllocationAttempts = instance.failedAllocationAttempts; + this.delayed = instance.delayed; + this.allocationStatus = instance.allocationStatus; + + } /** * Required - API name: {@code at} */ @@ -304,6 +316,12 @@ public UnassignedInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/IndexHealthStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/IndexHealthStats.java index 3dbd172c57..ba582ccea1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/IndexHealthStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/IndexHealthStats.java @@ -260,6 +260,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer unassignedPrimaryShards; + public Builder() { + } + private Builder(IndexHealthStats instance) { + this.activePrimaryShards = instance.activePrimaryShards; + this.activeShards = instance.activeShards; + this.initializingShards = instance.initializingShards; + this.numberOfReplicas = instance.numberOfReplicas; + this.numberOfShards = instance.numberOfShards; + this.relocatingShards = instance.relocatingShards; + this.shards = instance.shards; + this.status = instance.status; + this.unassignedShards = instance.unassignedShards; + this.unassignedPrimaryShards = instance.unassignedPrimaryShards; + + } /** * Required - API name: {@code active_primary_shards} */ @@ -380,6 +395,12 @@ public IndexHealthStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/ShardHealthStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/ShardHealthStats.java index a84f184364..97cfb687f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/ShardHealthStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/ShardHealthStats.java @@ -204,6 +204,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer unassignedPrimaryShards; + public Builder() { + } + private Builder(ShardHealthStats instance) { + this.activeShards = instance.activeShards; + this.initializingShards = instance.initializingShards; + this.primaryActive = instance.primaryActive; + this.relocatingShards = instance.relocatingShards; + this.status = instance.status; + this.unassignedShards = instance.unassignedShards; + this.unassignedPrimaryShards = instance.unassignedPrimaryShards; + + } /** * Required - API name: {@code active_shards} */ @@ -278,6 +290,12 @@ public ShardHealthStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java index 229618fdd7..7d817c43be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/pending_tasks/PendingTask.java @@ -214,6 +214,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long timeInQueueMillis; + public Builder() { + } + private Builder(PendingTask instance) { + this.executing = instance.executing; + this.insertOrder = instance.insertOrder; + this.priority = instance.priority; + this.source = instance.source; + this.timeInQueue = instance.timeInQueue; + this.timeInQueueMillis = instance.timeInQueueMillis; + + } /** * Required - Indicates whether the pending tasks are currently executing or * not. @@ -308,6 +319,12 @@ public PendingTask build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteProxyInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteProxyInfo.java index ef45a112dd..b708999174 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteProxyInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteProxyInfo.java @@ -264,6 +264,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String clusterCredentials; + public Builder() { + } + private Builder(ClusterRemoteProxyInfo instance) { + this.connected = instance.connected; + this.initialConnectTimeout = instance.initialConnectTimeout; + this.skipUnavailable = instance.skipUnavailable; + this.proxyAddress = instance.proxyAddress; + this.serverName = instance.serverName; + this.numProxySocketsConnected = instance.numProxySocketsConnected; + this.maxProxySocketConnections = instance.maxProxySocketConnections; + this.clusterCredentials = instance.clusterCredentials; + + } /** * Required - If it is true, there is at least one open connection * to the remote cluster. If it is false, it means that the cluster @@ -379,6 +392,12 @@ public ClusterRemoteProxyInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteSniffInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteSniffInfo.java index 65026d3feb..0b6cf79508 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteSniffInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/remote_info/ClusterRemoteSniffInfo.java @@ -234,6 +234,17 @@ public static class Builder extends WithJsonObjectBuilderBase private List seeds; + public Builder() { + } + private Builder(ClusterRemoteSniffInfo instance) { + this.connected = instance.connected; + this.maxConnectionsPerCluster = instance.maxConnectionsPerCluster; + this.numNodesConnected = instance.numNodesConnected; + this.initialConnectTimeout = instance.initialConnectTimeout; + this.skipUnavailable = instance.skipUnavailable; + this.seeds = instance.seeds; + + } /** * Required - If it is true, there is at least one open connection * to the remote cluster. If it is false, it means that the cluster @@ -345,6 +356,12 @@ public ClusterRemoteSniffInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java index 8a6a468b9f..02ebdcb505 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java @@ -228,6 +228,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private CommandAllocatePrimaryAction allocateEmptyPrimary; + public Builder() { + } + private Builder(Command instance) { + this.cancel = instance.cancel; + this.move = instance.move; + this.allocateReplica = instance.allocateReplica; + this.allocateStalePrimary = instance.allocateStalePrimary; + this.allocateEmptyPrimary = instance.allocateEmptyPrimary; + + } /** * Cancel allocation of a shard (or recovery). Accepts index and shard for index * name and shard number, and node for the node to cancel the shard allocation @@ -392,6 +402,12 @@ public Command build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java index 625eb0caf6..5ae5ce122b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean acceptDataLoss; + public Builder() { + } + private Builder(CommandAllocatePrimaryAction instance) { + this.index = instance.index; + this.shard = instance.shard; + this.node = instance.node; + this.acceptDataLoss = instance.acceptDataLoss; + + } /** * Required - API name: {@code index} */ @@ -220,6 +229,12 @@ public CommandAllocatePrimaryAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java index f9052b5232..1115a51bf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocateReplicaAction.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String node; + public Builder() { + } + private Builder(CommandAllocateReplicaAction instance) { + this.index = instance.index; + this.shard = instance.shard; + this.node = instance.node; + + } /** * Required - API name: {@code index} */ @@ -189,6 +197,12 @@ public CommandAllocateReplicaAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java index 4c88086f91..093ec2314c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandCancelAction.java @@ -166,6 +166,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean allowPrimary; + public Builder() { + } + private Builder(CommandCancelAction instance) { + this.index = instance.index; + this.shard = instance.shard; + this.node = instance.node; + this.allowPrimary = instance.allowPrimary; + + } /** * Required - API name: {@code index} */ @@ -216,6 +225,12 @@ public CommandCancelAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java index bb50d3e26d..e402cdc803 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String toNode; + public Builder() { + } + private Builder(CommandMoveAction instance) { + this.index = instance.index; + this.shard = instance.shard; + this.fromNode = instance.fromNode; + this.toNode = instance.toNode; + + } /** * Required - API name: {@code index} */ @@ -215,6 +224,12 @@ public CommandMoveAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java index ae865ece59..aaf093a074 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteDecision.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String explanation; + public Builder() { + } + private Builder(RerouteDecision instance) { + this.decider = instance.decider; + this.decision = instance.decision; + this.explanation = instance.explanation; + + } /** * Required - API name: {@code decider} */ @@ -183,6 +191,12 @@ public RerouteDecision build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java index 2d74012dca..24a8a2b674 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteExplanation.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase private RerouteParameters parameters; + public Builder() { + } + private Builder(RerouteExplanation instance) { + this.command = instance.command; + this.decisions = instance.decisions; + this.parameters = instance.parameters; + + } /** * Required - API name: {@code command} */ @@ -221,6 +229,12 @@ public RerouteExplanation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java index 3249dd5d27..587cfc77f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/RerouteParameters.java @@ -199,6 +199,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String toNode; + public Builder() { + } + private Builder(RerouteParameters instance) { + this.allowPrimary = instance.allowPrimary; + this.index = instance.index; + this.node = instance.node; + this.shard = instance.shard; + this.fromNode = instance.fromNode; + this.toNode = instance.toNode; + + } /** * Required - API name: {@code allow_primary} */ @@ -265,6 +276,12 @@ public RerouteParameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSStats.java index fb2f6475fa..e1a784f132 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSStats.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private CCSUsageStats esql; + public Builder() { + } + private Builder(CCSStats instance) { + this.clusters = instance.clusters; + this.search = instance.search; + this.esql = instance.esql; + + } /** * Contains remote cluster settings and metrics collected from them. The keys * are cluster names, and the values are per-cluster data. Only present if @@ -262,6 +270,12 @@ public CCSStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageClusterStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageClusterStats.java index 9ffd35a16c..5820923e98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageClusterStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageClusterStats.java @@ -154,6 +154,14 @@ public static class Builder extends WithJsonObjectBuilderBase private CCSUsageTimeValue took; + public Builder() { + } + private Builder(CCSUsageClusterStats instance) { + this.total = instance.total; + this.skipped = instance.skipped; + this.took = instance.took; + + } /** * Required - The total number of successful (not skipped) cross-cluster search * requests that were executed against this cluster. This may include requests @@ -217,6 +225,12 @@ public CCSUsageClusterStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageStats.java index 06c06fc73a..4ed37ac26b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageStats.java @@ -367,6 +367,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map clusters; + public Builder() { + } + private Builder(CCSUsageStats instance) { + this.total = instance.total; + this.success = instance.success; + this.skipped = instance.skipped; + this.took = instance.took; + this.tookMrtTrue = instance.tookMrtTrue; + this.tookMrtFalse = instance.tookMrtFalse; + this.remotesPerSearchMax = instance.remotesPerSearchMax; + this.remotesPerSearchAvg = instance.remotesPerSearchAvg; + this.failureReasons = instance.failureReasons; + this.features = instance.features; + this.clients = instance.clients; + this.clusters = instance.clusters; + + } /** * Required - The total number of cross-cluster search requests that have been * executed by the cluster. @@ -638,6 +655,12 @@ public CCSUsageStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageTimeValue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageTimeValue.java index 7bb167c399..ee193950db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageTimeValue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CCSUsageTimeValue.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long p90; + public Builder() { + } + private Builder(CCSUsageTimeValue instance) { + this.max = instance.max; + this.avg = instance.avg; + this.p90 = instance.p90; + + } /** * Required - The maximum time taken to execute a request, in milliseconds. *

                                                                                  @@ -196,6 +204,12 @@ public CCSUsageTimeValue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java index b1c7b23854..1f9f0777af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/CharFilterTypes.java @@ -324,6 +324,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map synonyms; + public Builder() { + } + private Builder(CharFilterTypes instance) { + this.analyzerTypes = instance.analyzerTypes; + this.builtInAnalyzers = instance.builtInAnalyzers; + this.builtInCharFilters = instance.builtInCharFilters; + this.builtInFilters = instance.builtInFilters; + this.builtInTokenizers = instance.builtInTokenizers; + this.charFilterTypes = instance.charFilterTypes; + this.filterTypes = instance.filterTypes; + this.tokenizerTypes = instance.tokenizerTypes; + this.synonyms = instance.synonyms; + + } /** * Required - Contains statistics about analyzer types used in selected nodes. *

                                                                                  @@ -675,6 +689,12 @@ public CharFilterTypes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java index 40e7974715..0859c7c6c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterFileSystem.java @@ -456,6 +456,28 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long frozenFloodStageFreeSpaceInBytes; + public Builder() { + } + private Builder(ClusterFileSystem instance) { + this.path = instance.path; + this.mount = instance.mount; + this.type = instance.type; + this.availableInBytes = instance.availableInBytes; + this.available = instance.available; + this.freeInBytes = instance.freeInBytes; + this.free = instance.free; + this.totalInBytes = instance.totalInBytes; + this.total = instance.total; + this.lowWatermarkFreeSpace = instance.lowWatermarkFreeSpace; + this.lowWatermarkFreeSpaceInBytes = instance.lowWatermarkFreeSpaceInBytes; + this.highWatermarkFreeSpace = instance.highWatermarkFreeSpace; + this.highWatermarkFreeSpaceInBytes = instance.highWatermarkFreeSpaceInBytes; + this.floodStageFreeSpace = instance.floodStageFreeSpace; + this.floodStageFreeSpaceInBytes = instance.floodStageFreeSpaceInBytes; + this.frozenFloodStageFreeSpace = instance.frozenFloodStageFreeSpace; + this.frozenFloodStageFreeSpaceInBytes = instance.frozenFloodStageFreeSpaceInBytes; + + } /** * API name: {@code path} */ @@ -629,6 +651,12 @@ public ClusterFileSystem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java index fe2b5a52a5..2d9b5e726e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java @@ -366,6 +366,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SparseVectorStats sparseVector; + public Builder() { + } + private Builder(ClusterIndices instance) { + this.analysis = instance.analysis; + this.completion = instance.completion; + this.count = instance.count; + this.docs = instance.docs; + this.fielddata = instance.fielddata; + this.queryCache = instance.queryCache; + this.search = instance.search; + this.segments = instance.segments; + this.shards = instance.shards; + this.store = instance.store; + this.mappings = instance.mappings; + this.versions = instance.versions; + this.denseVector = instance.denseVector; + this.sparseVector = instance.sparseVector; + + } /** * Contains statistics about analyzers and analyzer components used in selected * nodes. @@ -674,6 +693,12 @@ public ClusterIndices build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java index 7f75c9bfcb..6faa2f5a63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java @@ -187,6 +187,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double total; + public Builder() { + } + private Builder(ClusterIndicesShards instance) { + this.index = instance.index; + this.primaries = instance.primaries; + this.replication = instance.replication; + this.total = instance.total; + + } /** * Contains statistics about shards assigned to selected nodes. *

                                                                                  @@ -255,6 +264,12 @@ public ClusterIndicesShards build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java index d21368b7d2..1f6533888b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase private ClusterShardMetrics shards; + public Builder() { + } + private Builder(ClusterIndicesShardsIndex instance) { + this.primaries = instance.primaries; + this.replication = instance.replication; + this.shards = instance.shards; + + } /** * Required - Contains statistics about the number of primary shards assigned to * selected nodes. @@ -232,6 +240,12 @@ public ClusterIndicesShardsIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java index 8d8ff21714..2d0dc30297 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIngest.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map processorStats; + public Builder() { + } + private Builder(ClusterIngest instance) { + this.numberOfPipelines = instance.numberOfPipelines; + this.processorStats = instance.processorStats; + + } /** * Required - API name: {@code number_of_pipelines} */ @@ -192,6 +199,12 @@ public ClusterIngest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java index d1fa107260..1c07a0a1ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvm.java @@ -195,6 +195,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List versions; + public Builder() { + } + private Builder(ClusterJvm instance) { + this.maxUptimeInMillis = instance.maxUptimeInMillis; + this.maxUptime = instance.maxUptime; + this.mem = instance.mem; + this.threads = instance.threads; + this.versions = instance.versions; + + } /** * Required - Uptime duration, in milliseconds, since JVM last started. *

                                                                                  @@ -306,6 +316,12 @@ public ClusterJvm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java index c9e0a7d4da..427cf5c09f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmMemory.java @@ -179,6 +179,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String heapUsed; + public Builder() { + } + private Builder(ClusterJvmMemory instance) { + this.heapMaxInBytes = instance.heapMaxInBytes; + this.heapMax = instance.heapMax; + this.heapUsedInBytes = instance.heapUsedInBytes; + this.heapUsed = instance.heapUsed; + + } /** * Required - Maximum amount of memory, in bytes, available for use by the heap * across all selected nodes. @@ -240,6 +249,12 @@ public ClusterJvmMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java index 53fb9f7b4c..e7a4947b7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterJvmVersion.java @@ -219,6 +219,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String vmVersion; + public Builder() { + } + private Builder(ClusterJvmVersion instance) { + this.bundledJdk = instance.bundledJdk; + this.count = instance.count; + this.usingBundledJdk = instance.usingBundledJdk; + this.version = instance.version; + this.vmName = instance.vmName; + this.vmVendor = instance.vmVendor; + this.vmVersion = instance.vmVersion; + + } /** * Required - Always true. All distributions come with a bundled * Java Development Kit (JDK). @@ -309,6 +321,12 @@ public ClusterJvmVersion build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java index 856cd3fef8..e3830de969 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNetworkTypes.java @@ -153,6 +153,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Map transportTypes; + public Builder() { + } + private Builder(ClusterNetworkTypes instance) { + this.httpTypes = instance.httpTypes; + this.transportTypes = instance.transportTypes; + + } /** * Required - Contains statistics about the HTTP network types used by selected * nodes. @@ -223,6 +230,12 @@ public ClusterNetworkTypes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java index d0990a342d..a74487003b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodeCount.java @@ -412,6 +412,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer votingOnly; + public Builder() { + } + private Builder(ClusterNodeCount instance) { + this.total = instance.total; + this.coordinatingOnly = instance.coordinatingOnly; + this.data = instance.data; + this.dataCold = instance.dataCold; + this.dataContent = instance.dataContent; + this.dataFrozen = instance.dataFrozen; + this.dataHot = instance.dataHot; + this.dataWarm = instance.dataWarm; + this.index = instance.index; + this.ingest = instance.ingest; + this.master = instance.master; + this.ml = instance.ml; + this.remoteClusterClient = instance.remoteClusterClient; + this.search = instance.search; + this.transform = instance.transform; + this.votingOnly = instance.votingOnly; + + } /** * Required - API name: {@code total} */ @@ -558,6 +579,12 @@ public ClusterNodeCount build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java index 502579ff68..26e0ee9595 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java @@ -335,6 +335,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List versions; + public Builder() { + } + private Builder(ClusterNodes instance) { + this.count = instance.count; + this.discoveryTypes = instance.discoveryTypes; + this.fs = instance.fs; + this.indexingPressure = instance.indexingPressure; + this.ingest = instance.ingest; + this.jvm = instance.jvm; + this.networkTypes = instance.networkTypes; + this.os = instance.os; + this.packagingTypes = instance.packagingTypes; + this.plugins = instance.plugins; + this.process = instance.process; + this.versions = instance.versions; + + } /** * Required - Contains counts for nodes selected by the request’s node filters. *

                                                                                  @@ -630,6 +647,12 @@ public ClusterNodes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java index 0a834f4c46..a573a7a04d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystem.java @@ -232,6 +232,17 @@ public static class Builder extends WithJsonObjectBuilderBase private List prettyNames; + public Builder() { + } + private Builder(ClusterOperatingSystem instance) { + this.allocatedProcessors = instance.allocatedProcessors; + this.architectures = instance.architectures; + this.availableProcessors = instance.availableProcessors; + this.mem = instance.mem; + this.names = instance.names; + this.prettyNames = instance.prettyNames; + + } /** * Required - Number of processors used to calculate thread pool size across all * selected nodes. This number can be set with the processors setting of a node @@ -412,6 +423,12 @@ public ClusterOperatingSystem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java index 96b58214f5..c5dd0a8eac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemArchitecture.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer count; + public Builder() { + } + private Builder(ClusterOperatingSystemArchitecture instance) { + this.arch = instance.arch; + this.count = instance.count; + + } /** * Required - Name of an architecture used by one or more selected nodes. *

                                                                                  @@ -172,6 +179,12 @@ public ClusterOperatingSystemArchitecture build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java index 694830f549..6163c8204e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemName.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String name; + public Builder() { + } + private Builder(ClusterOperatingSystemName instance) { + this.count = instance.count; + this.name = instance.name; + + } /** * Required - Number of selected nodes using the operating system. *

                                                                                  @@ -171,6 +178,12 @@ public ClusterOperatingSystemName build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java index eb31fdb14e..3790d0adcc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterOperatingSystemPrettyName.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String prettyName; + public Builder() { + } + private Builder(ClusterOperatingSystemPrettyName instance) { + this.count = instance.count; + this.prettyName = instance.prettyName; + + } /** * Required - Number of selected nodes using the operating system. *

                                                                                  @@ -174,6 +181,12 @@ public ClusterOperatingSystemPrettyName build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java index 1b141e2633..117ca598f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcess.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ClusterProcessOpenFileDescriptors openFileDescriptors; + public Builder() { + } + private Builder(ClusterProcess instance) { + this.cpu = instance.cpu; + this.openFileDescriptors = instance.openFileDescriptors; + + } /** * Required - Contains statistics about CPU used by selected nodes. *

                                                                                  @@ -186,6 +193,12 @@ public ClusterProcess build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java index ed4a146554..47d3cee389 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessCpu.java @@ -113,6 +113,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Integer percent; + public Builder() { + } + private Builder(ClusterProcessCpu instance) { + this.percent = instance.percent; + + } /** * Required - Percentage of CPU used across all selected nodes. Returns * -1 if not supported. @@ -142,6 +148,12 @@ public ClusterProcessCpu build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java index 89f205037d..a5dfe9d5e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessOpenFileDescriptors.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long min; + public Builder() { + } + private Builder(ClusterProcessOpenFileDescriptors instance) { + this.avg = instance.avg; + this.max = instance.max; + this.min = instance.min; + + } /** * Required - Average number of concurrently open file descriptors. Returns * -1 if not supported. @@ -203,6 +211,12 @@ public ClusterProcessOpenFileDescriptors build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java index 43dc3fc87f..b387292688 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterProcessor.java @@ -177,6 +177,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long timeInMillis; + public Builder() { + } + private Builder(ClusterProcessor instance) { + this.count = instance.count; + this.current = instance.current; + this.failed = instance.failed; + this.time = instance.time; + this.timeInMillis = instance.timeInMillis; + + } /** * Required - API name: {@code count} */ @@ -242,6 +252,12 @@ public ClusterProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java index ab1636f588..ab6f80037c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterShardMetrics.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Double min; + public Builder() { + } + private Builder(ClusterShardMetrics instance) { + this.avg = instance.avg; + this.max = instance.max; + this.min = instance.min; + + } /** * Required - Mean number of shards in an index, counting only shards assigned * to selected nodes. @@ -202,6 +210,12 @@ public ClusterShardMetrics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterSnapshotStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterSnapshotStats.java index f237287073..30cb31f9fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterSnapshotStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterSnapshotStats.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Map repositories; + public Builder() { + } + private Builder(ClusterSnapshotStats instance) { + this.currentCounts = instance.currentCounts; + this.repositories = instance.repositories; + + } /** * Required - API name: {@code current_counts} */ @@ -202,6 +209,12 @@ public ClusterSnapshotStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java index 06b6a5cf71..6f13b5f0ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorOffHeapStats.java @@ -380,6 +380,26 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map> fielddata; + public Builder() { + } + private Builder(DenseVectorOffHeapStats instance) { + this.totalSizeBytes = instance.totalSizeBytes; + this.totalSize = instance.totalSize; + this.totalVebSizeBytes = instance.totalVebSizeBytes; + this.totalVebSize = instance.totalVebSize; + this.totalVecSizeBytes = instance.totalVecSizeBytes; + this.totalVecSize = instance.totalVecSize; + this.totalVeqSizeBytes = instance.totalVeqSizeBytes; + this.totalVeqSize = instance.totalVeqSize; + this.totalVexSizeBytes = instance.totalVexSizeBytes; + this.totalVexSize = instance.totalVexSize; + this.totalCenifSizeBytes = instance.totalCenifSizeBytes; + this.totalCenifSize = instance.totalCenifSize; + this.totalClivfSizeBytes = instance.totalClivfSizeBytes; + this.totalClivfSize = instance.totalClivfSize; + this.fielddata = instance.fielddata; + + } /** * Required - API name: {@code total_size_bytes} */ @@ -530,6 +550,12 @@ public DenseVectorOffHeapStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorStats.java index fc75b45eb3..f27d1e1679 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/DenseVectorStats.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DenseVectorOffHeapStats offHeap; + public Builder() { + } + private Builder(DenseVectorStats instance) { + this.valueCount = instance.valueCount; + this.offHeap = instance.offHeap; + + } /** * Required - API name: {@code value_count} */ @@ -174,6 +181,12 @@ public DenseVectorStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedRetrieversSearchUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedRetrieversSearchUsage.java index 2229133438..cf87466fc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedRetrieversSearchUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedRetrieversSearchUsage.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ExtendedTextSimilarityRetrieverUsage textSimilarityReranker; + public Builder() { + } + private Builder(ExtendedRetrieversSearchUsage instance) { + this.textSimilarityReranker = instance.textSimilarityReranker; + + } /** * API name: {@code text_similarity_reranker} */ @@ -151,6 +157,12 @@ public ExtendedRetrieversSearchUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedSearchUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedSearchUsage.java index 756c130d1c..4b19c797b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedSearchUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedSearchUsage.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ExtendedRetrieversSearchUsage retrievers; + public Builder() { + } + private Builder(ExtendedSearchUsage instance) { + this.retrievers = instance.retrievers; + + } /** * API name: {@code retrievers} */ @@ -151,6 +157,12 @@ public ExtendedSearchUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedTextSimilarityRetrieverUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedTextSimilarityRetrieverUsage.java index 9bfb2b99df..79828464e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedTextSimilarityRetrieverUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ExtendedTextSimilarityRetrieverUsage.java @@ -119,6 +119,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long chunkRescorer; + public Builder() { + } + private Builder(ExtendedTextSimilarityRetrieverUsage instance) { + this.chunkRescorer = instance.chunkRescorer; + + } /** * API name: {@code chunk_rescorer} */ @@ -145,6 +151,12 @@ public ExtendedTextSimilarityRetrieverUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java index 49d29f2c00..dbfc18ab70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypes.java @@ -318,6 +318,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map vectorElementTypeCount; + public Builder() { + } + private Builder(FieldTypes instance) { + this.name = instance.name; + this.count = instance.count; + this.indexCount = instance.indexCount; + this.indexedVectorCount = instance.indexedVectorCount; + this.indexedVectorDimMax = instance.indexedVectorDimMax; + this.indexedVectorDimMin = instance.indexedVectorDimMin; + this.scriptCount = instance.scriptCount; + this.vectorIndexTypeCount = instance.vectorIndexTypeCount; + this.vectorSimilarityTypeCount = instance.vectorSimilarityTypeCount; + this.vectorElementTypeCount = instance.vectorElementTypeCount; + + } /** * Required - The name for the field type in selected nodes. *

                                                                                  @@ -482,6 +497,12 @@ public FieldTypes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java index 3c34c56e17..50d13180c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/FieldTypesMappings.java @@ -267,6 +267,18 @@ public static class Builder extends WithJsonObjectBuilderBase private Map sourceModes; + public Builder() { + } + private Builder(FieldTypesMappings instance) { + this.fieldTypes = instance.fieldTypes; + this.runtimeFieldTypes = instance.runtimeFieldTypes; + this.totalFieldCount = instance.totalFieldCount; + this.totalDeduplicatedFieldCount = instance.totalDeduplicatedFieldCount; + this.totalDeduplicatedMappingSize = instance.totalDeduplicatedMappingSize; + this.totalDeduplicatedMappingSizeInBytes = instance.totalDeduplicatedMappingSizeInBytes; + this.sourceModes = instance.sourceModes; + + } /** * Required - Contains statistics about field data types used in selected nodes. *

                                                                                  @@ -424,6 +436,12 @@ public FieldTypesMappings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java index df9a5cc748..d85677e7dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndexingPressure.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private IndexingPressureMemory memory; + public Builder() { + } + private Builder(IndexingPressure instance) { + this.memory = instance.memory; + + } /** * Required - API name: {@code memory} */ @@ -145,6 +151,12 @@ public IndexingPressure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java index cd5145a3b4..a26e66dc61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/IndicesVersions.java @@ -178,6 +178,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String version; + public Builder() { + } + private Builder(IndicesVersions instance) { + this.indexCount = instance.indexCount; + this.primaryShardCount = instance.primaryShardCount; + this.totalPrimaryBytes = instance.totalPrimaryBytes; + this.totalPrimarySize = instance.totalPrimarySize; + this.version = instance.version; + + } /** * Required - API name: {@code index_count} */ @@ -236,6 +246,12 @@ public IndicesVersions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java index 6a0ebea5e5..985f6688ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/NodePackagingType.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(NodePackagingType instance) { + this.count = instance.count; + this.flavor = instance.flavor; + this.type = instance.type; + + } /** * Required - Number of selected nodes using the distribution flavor and file * type. @@ -202,6 +210,12 @@ public NodePackagingType build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java index 6eb980923d..332179b52f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/OperatingSystemMemoryInfo.java @@ -304,6 +304,21 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer usedPercent; + public Builder() { + } + private Builder(OperatingSystemMemoryInfo instance) { + this.adjustedTotalInBytes = instance.adjustedTotalInBytes; + this.adjustedTotal = instance.adjustedTotal; + this.freeInBytes = instance.freeInBytes; + this.free = instance.free; + this.freePercent = instance.freePercent; + this.totalInBytes = instance.totalInBytes; + this.total = instance.total; + this.usedInBytes = instance.usedInBytes; + this.used = instance.used; + this.usedPercent = instance.usedPercent; + + } /** * Total amount, in bytes, of memory across all selected nodes, but using the * value specified using the es.total_memory_bytes system property @@ -431,6 +446,12 @@ public OperatingSystemMemoryInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/PerRepositoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/PerRepositoryStats.java index d8002fede8..7d9771963f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/PerRepositoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/PerRepositoryStats.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase private RepositoryStatsCurrentCounts currentCounts; + public Builder() { + } + private Builder(PerRepositoryStats instance) { + this.type = instance.type; + this.oldestStartTimeMillis = instance.oldestStartTimeMillis; + this.oldestStartTime = instance.oldestStartTime; + this.currentCounts = instance.currentCounts; + + } /** * Required - API name: {@code type} */ @@ -223,6 +232,12 @@ public PerRepositoryStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RemoteClusterInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RemoteClusterInfo.java index 8d73fc0825..aa79365fbe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RemoteClusterInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RemoteClusterInfo.java @@ -388,6 +388,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String memTotal; + public Builder() { + } + private Builder(RemoteClusterInfo instance) { + this.clusterUuid = instance.clusterUuid; + this.mode = instance.mode; + this.skipUnavailable = instance.skipUnavailable; + this.transportCompress = instance.transportCompress; + this.status = instance.status; + this.version = instance.version; + this.nodesCount = instance.nodesCount; + this.shardsCount = instance.shardsCount; + this.indicesCount = instance.indicesCount; + this.indicesTotalSizeInBytes = instance.indicesTotalSizeInBytes; + this.indicesTotalSize = instance.indicesTotalSize; + this.maxHeapInBytes = instance.maxHeapInBytes; + this.maxHeap = instance.maxHeap; + this.memTotalInBytes = instance.memTotalInBytes; + this.memTotal = instance.memTotal; + + } /** * Required - The UUID of the remote cluster. *

                                                                                  @@ -580,6 +600,12 @@ public RemoteClusterInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsCurrentCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsCurrentCounts.java index f6fbb18cf5..104f9fa496 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsCurrentCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsCurrentCounts.java @@ -203,6 +203,18 @@ public static class Builder extends WithJsonObjectBuilderBase private RepositoryStatsShards shards; + public Builder() { + } + private Builder(RepositoryStatsCurrentCounts instance) { + this.snapshots = instance.snapshots; + this.clones = instance.clones; + this.finalizations = instance.finalizations; + this.deletions = instance.deletions; + this.snapshotDeletions = instance.snapshotDeletions; + this.activeDeletions = instance.activeDeletions; + this.shards = instance.shards; + + } /** * Required - API name: {@code snapshots} */ @@ -284,6 +296,12 @@ public RepositoryStatsCurrentCounts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsShards.java index 414aa5acd0..ef2bcca04c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RepositoryStatsShards.java @@ -169,6 +169,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Map states; + public Builder() { + } + private Builder(RepositoryStatsShards instance) { + this.total = instance.total; + this.complete = instance.complete; + this.incomplete = instance.incomplete; + this.states = instance.states; + + } /** * Required - API name: {@code total} */ @@ -231,6 +240,12 @@ public RepositoryStatsShards build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java index 91c8141ae6..7e4e4b0da9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/RuntimeFieldTypes.java @@ -351,6 +351,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer sourceTotal; + public Builder() { + } + private Builder(RuntimeFieldTypes instance) { + this.charsMax = instance.charsMax; + this.charsTotal = instance.charsTotal; + this.count = instance.count; + this.docMax = instance.docMax; + this.docTotal = instance.docTotal; + this.indexCount = instance.indexCount; + this.lang = instance.lang; + this.linesMax = instance.linesMax; + this.linesTotal = instance.linesTotal; + this.name = instance.name; + this.scriptlessCount = instance.scriptlessCount; + this.shadowedCount = instance.shadowedCount; + this.sourceMax = instance.sourceMax; + this.sourceTotal = instance.sourceTotal; + + } /** * Required - Maximum number of characters for a single runtime field script. *

                                                                                  @@ -531,6 +550,12 @@ public RuntimeFieldTypes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SearchUsageStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SearchUsageStats.java index 56c9a047fe..8e709bb092 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SearchUsageStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SearchUsageStats.java @@ -220,6 +220,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ExtendedSearchUsage extended; + public Builder() { + } + private Builder(SearchUsageStats instance) { + this.total = instance.total; + this.queries = instance.queries; + this.rescorers = instance.rescorers; + this.sections = instance.sections; + this.retrievers = instance.retrievers; + this.extended = instance.extended; + + } /** * Required - API name: {@code total} */ @@ -341,6 +352,12 @@ public SearchUsageStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SnapshotCurrentCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SnapshotCurrentCounts.java index ed2b93f27b..aa39939535 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SnapshotCurrentCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SnapshotCurrentCounts.java @@ -184,6 +184,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer cleanups; + public Builder() { + } + private Builder(SnapshotCurrentCounts instance) { + this.snapshots = instance.snapshots; + this.shardSnapshots = instance.shardSnapshots; + this.snapshotDeletions = instance.snapshotDeletions; + this.concurrentOperations = instance.concurrentOperations; + this.cleanups = instance.cleanups; + + } /** * Required - Snapshots currently in progress *

                                                                                  @@ -253,6 +263,12 @@ public SnapshotCurrentCounts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SparseVectorStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SparseVectorStats.java index 5f0e0245a5..1dcf8389a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SparseVectorStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SparseVectorStats.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long valueCount; + public Builder() { + } + private Builder(SparseVectorStats instance) { + this.valueCount = instance.valueCount; + + } /** * Required - API name: {@code value_count} */ @@ -136,6 +142,12 @@ public SparseVectorStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SynonymsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SynonymsStats.java index 85a6387c98..8687e72631 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SynonymsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/SynonymsStats.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer indexCount; + public Builder() { + } + private Builder(SynonymsStats instance) { + this.count = instance.count; + this.indexCount = instance.indexCount; + + } /** * Required - API name: {@code count} */ @@ -158,6 +165,12 @@ public SynonymsStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CheckInRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CheckInRequest.java index 37129a044e..0d214bf433 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CheckInRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CheckInRequest.java @@ -98,6 +98,12 @@ public final String connectorId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { private String connectorId; + public Builder() { + } + private Builder(CheckInRequest instance) { + this.connectorId = instance.connectorId; + + } /** * Required - The unique identifier of the connector to be checked in *

                                                                                  @@ -126,6 +132,12 @@ public CheckInRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorConfigProperties.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorConfigProperties.java index 5a660ca4f3..2f4f4084ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorConfigProperties.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorConfigProperties.java @@ -381,6 +381,26 @@ public static class Builder extends WithJsonObjectBuilderBase private JsonData value; + public Builder() { + } + private Builder(ConnectorConfigProperties instance) { + this.category = instance.category; + this.defaultValue = instance.defaultValue; + this.dependsOn = instance.dependsOn; + this.display = instance.display; + this.label = instance.label; + this.options = instance.options; + this.order = instance.order; + this.placeholder = instance.placeholder; + this.required = instance.required; + this.sensitive = instance.sensitive; + this.tooltip = instance.tooltip; + this.type = instance.type; + this.uiRestrictions = instance.uiRestrictions; + this.validations = instance.validations; + this.value = instance.value; + + } /** * API name: {@code category} */ @@ -633,6 +653,12 @@ public ConnectorConfigProperties build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorFeatures.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorFeatures.java index 82046c5fe8..a57ccad989 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorFeatures.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorFeatures.java @@ -181,6 +181,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SyncRulesFeature syncRules; + public Builder() { + } + private Builder(ConnectorFeatures instance) { + this.documentLevelSecurity = instance.documentLevelSecurity; + this.incrementalSync = instance.incrementalSync; + this.nativeConnectorApiKeys = instance.nativeConnectorApiKeys; + this.syncRules = instance.syncRules; + + } /** * Indicates whether document-level security is enabled. *

                                                                                  @@ -272,6 +281,12 @@ public ConnectorFeatures build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorScheduling.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorScheduling.java index bd75855edd..347b582cdf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorScheduling.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ConnectorScheduling.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String interval; + public Builder() { + } + private Builder(ConnectorScheduling instance) { + this.enabled = instance.enabled; + this.interval = instance.interval; + + } /** * Required - API name: {@code enabled} */ @@ -167,6 +174,12 @@ public ConnectorScheduling build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomScheduling.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomScheduling.java index 6b160269c8..c90a7b7acd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomScheduling.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomScheduling.java @@ -178,6 +178,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(CustomScheduling instance) { + this.configurationOverrides = instance.configurationOverrides; + this.enabled = instance.enabled; + this.interval = instance.interval; + this.lastSynced = instance.lastSynced; + this.name = instance.name; + + } /** * Required - API name: {@code configuration_overrides} */ @@ -244,6 +254,12 @@ public CustomScheduling build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomSchedulingConfigurationOverrides.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomSchedulingConfigurationOverrides.java index 11d919a0bc..f933004b64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomSchedulingConfigurationOverrides.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/CustomSchedulingConfigurationOverrides.java @@ -212,6 +212,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List seedUrls; + public Builder() { + } + private Builder(CustomSchedulingConfigurationOverrides instance) { + this.maxCrawlDepth = instance.maxCrawlDepth; + this.sitemapDiscoveryDisabled = instance.sitemapDiscoveryDisabled; + this.domainAllowlist = instance.domainAllowlist; + this.sitemapUrls = instance.sitemapUrls; + this.seedUrls = instance.seedUrls; + + } /** * API name: {@code max_crawl_depth} */ @@ -306,6 +316,12 @@ public CustomSchedulingConfigurationOverrides build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/DeleteConnectorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/DeleteConnectorRequest.java index 61bc82378c..422577476a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/DeleteConnectorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/DeleteConnectorRequest.java @@ -136,6 +136,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean hard; + public Builder() { + } + private Builder(DeleteConnectorRequest instance) { + this.connectorId = instance.connectorId; + this.deleteSyncJobs = instance.deleteSyncJobs; + this.hard = instance.hard; + + } /** * Required - The unique identifier of the connector to be deleted *

                                                                                  @@ -184,6 +192,12 @@ public DeleteConnectorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/Dependency.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/Dependency.java index 2934cefe4d..eefa5bac3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/Dependency.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/Dependency.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FieldValue value; + public Builder() { + } + private Builder(Dependency instance) { + this.field = instance.field; + this.value = instance.value; + + } /** * Required - API name: {@code field} */ @@ -199,6 +206,12 @@ public Dependency build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FeatureEnabled.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FeatureEnabled.java index c376c3cb3f..0ab9124992 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FeatureEnabled.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FeatureEnabled.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(FeatureEnabled instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -135,6 +141,12 @@ public FeatureEnabled build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringAdvancedSnippet.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringAdvancedSnippet.java index a6da3d5c10..b2f9aab585 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringAdvancedSnippet.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringAdvancedSnippet.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private JsonData value; + public Builder() { + } + private Builder(FilteringAdvancedSnippet instance) { + this.createdAt = instance.createdAt; + this.updatedAt = instance.updatedAt; + this.value = instance.value; + + } /** * API name: {@code created_at} */ @@ -194,6 +202,12 @@ public FilteringAdvancedSnippet build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringConfig.java index 0473fda66a..db3a210df4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringConfig.java @@ -146,6 +146,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FilteringRules draft; + public Builder() { + } + private Builder(FilteringConfig instance) { + this.active = instance.active; + this.domain = instance.domain; + this.draft = instance.draft; + + } /** * Required - API name: {@code active} */ @@ -202,6 +210,12 @@ public FilteringConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRule.java index 7b12d3ba80..16b29e6876 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRule.java @@ -223,6 +223,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String value; + public Builder() { + } + private Builder(FilteringRule instance) { + this.createdAt = instance.createdAt; + this.field = instance.field; + this.id = instance.id; + this.order = instance.order; + this.policy = instance.policy; + this.rule = instance.rule; + this.updatedAt = instance.updatedAt; + this.value = instance.value; + + } /** * API name: {@code created_at} */ @@ -305,6 +318,12 @@ public FilteringRule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRules.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRules.java index 577602f7cc..a36d2e3bb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRules.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRules.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FilteringRulesValidation validation; + public Builder() { + } + private Builder(FilteringRules instance) { + this.advancedSnippet = instance.advancedSnippet; + this.rules = instance.rules; + this.validation = instance.validation; + + } /** * Required - API name: {@code advanced_snippet} */ @@ -226,6 +234,12 @@ public FilteringRules build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRulesValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRulesValidation.java index ca7c7f02fc..c921112f18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRulesValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringRulesValidation.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase private FilteringValidationState state; + public Builder() { + } + private Builder(FilteringRulesValidation instance) { + this.errors = instance.errors; + this.state = instance.state; + + } /** * Required - API name: {@code errors} *

                                                                                  @@ -190,6 +197,12 @@ public FilteringRulesValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringValidation.java index b97f661e20..0b0e86b79f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/FilteringValidation.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List messages; + public Builder() { + } + private Builder(FilteringValidation instance) { + this.ids = instance.ids; + this.messages = instance.messages; + + } /** * Required - API name: {@code ids} *

                                                                                  @@ -202,6 +209,12 @@ public FilteringValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GetConnectorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GetConnectorRequest.java index bd4a9a878e..08f849e8c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GetConnectorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GetConnectorRequest.java @@ -117,6 +117,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean includeDeleted; + public Builder() { + } + private Builder(GetConnectorRequest instance) { + this.connectorId = instance.connectorId; + this.includeDeleted = instance.includeDeleted; + + } /** * Required - The unique identifier of the connector *

                                                                                  @@ -156,6 +163,12 @@ public GetConnectorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GreaterThanValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GreaterThanValidation.java index 11408a20e5..51e7172f12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GreaterThanValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/GreaterThanValidation.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Double constraint; + public Builder() { + } + private Builder(GreaterThanValidation instance) { + this.constraint = instance.constraint; + + } /** * Required - API name: {@code constraint} */ @@ -148,6 +154,12 @@ public GreaterThanValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IncludedInValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IncludedInValidation.java index 2046e5d482..72302fb85e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IncludedInValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IncludedInValidation.java @@ -132,6 +132,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List constraint; + public Builder() { + } + private Builder(IncludedInValidation instance) { + this.constraint = instance.constraint; + + } /** * Required - API name: {@code constraint} *

                                                                                  @@ -179,6 +185,12 @@ public IncludedInValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IngestPipelineParams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IngestPipelineParams.java index 77518272a8..32e4aa7389 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IngestPipelineParams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/IngestPipelineParams.java @@ -160,6 +160,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean runMlInference; + public Builder() { + } + private Builder(IngestPipelineParams instance) { + this.extractBinaryContent = instance.extractBinaryContent; + this.name = instance.name; + this.reduceWhitespace = instance.reduceWhitespace; + this.runMlInference = instance.runMlInference; + + } /** * Required - API name: {@code extract_binary_content} */ @@ -210,6 +219,12 @@ public IngestPipelineParams build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/LessThanValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/LessThanValidation.java index f76a357954..3cb1b080b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/LessThanValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/LessThanValidation.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Double constraint; + public Builder() { + } + private Builder(LessThanValidation instance) { + this.constraint = instance.constraint; + + } /** * Required - API name: {@code constraint} */ @@ -148,6 +154,12 @@ public LessThanValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListRequest.java index b7cfbf160c..5525850e4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListRequest.java @@ -204,6 +204,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Integer size; + public Builder() { + } + private Builder(ListRequest instance) { + this.connectorName = instance.connectorName; + this.from = instance.from; + this.includeDeleted = instance.includeDeleted; + this.indexName = instance.indexName; + this.query = instance.query; + this.serviceType = instance.serviceType; + this.size = instance.size; + + } /** * A comma-separated list of connector names to fetch connector documents for *

                                                                                  @@ -340,6 +352,12 @@ public ListRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListTypeValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListTypeValidation.java index 96b0cbfb6c..9355b055c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListTypeValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/ListTypeValidation.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String constraint; + public Builder() { + } + private Builder(ListTypeValidation instance) { + this.constraint = instance.constraint; + + } /** * Required - API name: {@code constraint} */ @@ -149,6 +155,12 @@ public ListTypeValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PostRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PostRequest.java index 962e1cf70e..b6ca384ca1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PostRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PostRequest.java @@ -221,6 +221,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String serviceType; + public Builder() { + } + private Builder(PostRequest instance) { + this.description = instance.description; + this.indexName = instance.indexName; + this.isNative = instance.isNative; + this.language = instance.language; + this.name = instance.name; + this.serviceType = instance.serviceType; + + } /** * API name: {@code description} */ @@ -287,6 +298,12 @@ public PostRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PutRequest.java index 1739c1daa7..fcbbb156b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/PutRequest.java @@ -235,6 +235,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String serviceType; + public Builder() { + } + private Builder(PutRequest instance) { + this.connectorId = instance.connectorId; + this.description = instance.description; + this.indexName = instance.indexName; + this.isNative = instance.isNative; + this.language = instance.language; + this.name = instance.name; + this.serviceType = instance.serviceType; + + } /** * The unique identifier of the connector to be created or updated. ID is * auto-generated if not provided. @@ -312,6 +324,12 @@ public PutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/RegexValidation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/RegexValidation.java index ac3f410ba7..115a02f385 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/RegexValidation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/RegexValidation.java @@ -121,6 +121,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String constraint; + public Builder() { + } + private Builder(RegexValidation instance) { + this.constraint = instance.constraint; + + } /** * Required - API name: {@code constraint} */ @@ -147,6 +153,12 @@ public RegexValidation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SchedulingConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SchedulingConfiguration.java index 8de91e1b32..5d2b8f19f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SchedulingConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SchedulingConfiguration.java @@ -157,6 +157,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ConnectorScheduling incremental; + public Builder() { + } + private Builder(SchedulingConfiguration instance) { + this.accessControl = instance.accessControl; + this.full = instance.full; + this.incremental = instance.incremental; + + } /** * API name: {@code access_control} */ @@ -221,6 +229,12 @@ public SchedulingConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SelectOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SelectOption.java index 18b2c3e1d1..246116231d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SelectOption.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SelectOption.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FieldValue value; + public Builder() { + } + private Builder(SelectOption instance) { + this.label = instance.label; + this.value = instance.value; + + } /** * Required - API name: {@code label} */ @@ -199,6 +206,12 @@ public SelectOption build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCancelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCancelRequest.java index 650965a392..160fca3288 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCancelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCancelRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String connectorSyncJobId; + public Builder() { + } + private Builder(SyncJobCancelRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + + } /** * Required - The unique identifier of the connector sync job *

                                                                                  @@ -131,6 +137,12 @@ public SyncJobCancelRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java index 240e60468e..8fcf073b60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobCheckInRequest.java @@ -105,6 +105,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String connectorSyncJobId; + public Builder() { + } + private Builder(SyncJobCheckInRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + + } /** * Required - The unique identifier of the connector sync job to be checked in. *

                                                                                  @@ -133,6 +139,12 @@ public SyncJobCheckInRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java index 5600e39f20..5dcc94e017 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobClaimRequest.java @@ -168,6 +168,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String workerHostname; + public Builder() { + } + private Builder(SyncJobClaimRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + this.syncCursor = instance.syncCursor; + this.workerHostname = instance.workerHostname; + + } /** * Required - The unique identifier of the connector sync job. *

                                                                                  @@ -218,6 +226,12 @@ public SyncJobClaimRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobConnectorReference.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobConnectorReference.java index 63da62e440..18eed91f9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobConnectorReference.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobConnectorReference.java @@ -244,6 +244,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JsonData syncCursor; + public Builder() { + } + private Builder(SyncJobConnectorReference instance) { + this.configuration = instance.configuration; + this.filtering = instance.filtering; + this.id = instance.id; + this.indexName = instance.indexName; + this.language = instance.language; + this.pipeline = instance.pipeline; + this.serviceType = instance.serviceType; + this.syncCursor = instance.syncCursor; + + } /** * Required - API name: {@code configuration} *

                                                                                  @@ -362,6 +375,12 @@ public SyncJobConnectorReference build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobDeleteRequest.java index c2159eb883..1b29ebb611 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobDeleteRequest.java @@ -101,6 +101,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String connectorSyncJobId; + public Builder() { + } + private Builder(SyncJobDeleteRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + + } /** * Required - The unique identifier of the connector sync job to be deleted *

                                                                                  @@ -129,6 +135,12 @@ public SyncJobDeleteRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java index fdbfbed34c..3b33f7ae8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobErrorRequest.java @@ -137,6 +137,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String error; + public Builder() { + } + private Builder(SyncJobErrorRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + this.error = instance.error; + + } /** * Required - The unique identifier for the connector sync job. *

                                                                                  @@ -175,6 +182,12 @@ public SyncJobErrorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobGetRequest.java index 09502a164a..c3fed8532f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobGetRequest.java @@ -97,6 +97,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String connectorSyncJobId; + public Builder() { + } + private Builder(SyncJobGetRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + + } /** * Required - The unique identifier of the connector sync job *

                                                                                  @@ -125,6 +131,12 @@ public SyncJobGetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobListRequest.java index e06641489d..640a2b50e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobListRequest.java @@ -172,6 +172,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private SyncStatus status; + public Builder() { + } + private Builder(SyncJobListRequest instance) { + this.connectorId = instance.connectorId; + this.from = instance.from; + this.jobType = instance.jobType; + this.size = instance.size; + this.status = instance.status; + + } /** * A connector id to fetch connector sync jobs for *

                                                                                  @@ -254,6 +264,12 @@ public SyncJobListRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobPostRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobPostRequest.java index 3c9a52218d..ab555a3662 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobPostRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobPostRequest.java @@ -155,6 +155,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private SyncJobTriggerMethod triggerMethod; + public Builder() { + } + private Builder(SyncJobPostRequest instance) { + this.id = instance.id; + this.jobType = instance.jobType; + this.triggerMethod = instance.triggerMethod; + + } /** * Required - The id of the associated connector *

                                                                                  @@ -199,6 +207,12 @@ public SyncJobPostRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java index e2b29c5085..00e15b9a90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncJobUpdateStatsRequest.java @@ -254,6 +254,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer totalDocumentCount; + public Builder() { + } + private Builder(SyncJobUpdateStatsRequest instance) { + this.connectorSyncJobId = instance.connectorSyncJobId; + this.deletedDocumentCount = instance.deletedDocumentCount; + this.indexedDocumentCount = instance.indexedDocumentCount; + this.indexedDocumentVolume = instance.indexedDocumentVolume; + this.lastSeen = instance.lastSeen; + this.metadata = instance.metadata; + this.totalDocumentCount = instance.totalDocumentCount; + + } /** * Required - The unique identifier of the connector sync job. *

                                                                                  @@ -368,6 +380,12 @@ public SyncJobUpdateStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncRulesFeature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncRulesFeature.java index 5eb6731191..644b409852 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncRulesFeature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/SyncRulesFeature.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FeatureEnabled basic; + public Builder() { + } + private Builder(SyncRulesFeature instance) { + this.advanced = instance.advanced; + this.basic = instance.basic; + + } /** * Indicates whether advanced sync rules are enabled. *

                                                                                  @@ -195,6 +202,12 @@ public SyncRulesFeature build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateActiveFilteringRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateActiveFilteringRequest.java index be20064020..17ea9b8688 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateActiveFilteringRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateActiveFilteringRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String connectorId; + public Builder() { + } + private Builder(UpdateActiveFilteringRequest instance) { + this.connectorId = instance.connectorId; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -128,6 +134,12 @@ public UpdateActiveFilteringRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateApiKeyIdRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateApiKeyIdRequest.java index 2b956152be..89b8c73020 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateApiKeyIdRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateApiKeyIdRequest.java @@ -160,6 +160,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String connectorId; + public Builder() { + } + private Builder(UpdateApiKeyIdRequest instance) { + this.apiKeyId = instance.apiKeyId; + this.apiKeySecretId = instance.apiKeySecretId; + this.connectorId = instance.connectorId; + + } /** * API name: {@code api_key_id} */ @@ -204,6 +212,12 @@ public UpdateApiKeyIdRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateConfigurationRequest.java index 350d1a1918..ebcf0bb69e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateConfigurationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateConfigurationRequest.java @@ -165,6 +165,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map values; + public Builder() { + } + private Builder(UpdateConfigurationRequest instance) { + this.configuration = instance.configuration; + this.connectorId = instance.connectorId; + this.values = instance.values; + + } /** * API name: {@code configuration} *

                                                                                  @@ -243,6 +251,12 @@ public UpdateConfigurationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateErrorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateErrorRequest.java index 125a13595c..d6a636783a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateErrorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateErrorRequest.java @@ -145,6 +145,13 @@ public static class Builder extends RequestBase.AbstractBuilder private boolean isExpNullError; + public Builder() { + } + private Builder(UpdateErrorRequest instance) { + this.connectorId = instance.connectorId; + this.error = instance.error; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -191,6 +198,12 @@ public UpdateErrorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java index c854659285..d2e07b6b65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFeaturesRequest.java @@ -144,6 +144,13 @@ public static class Builder extends RequestBase.AbstractBuilder private ConnectorFeatures features; + public Builder() { + } + private Builder(UpdateFeaturesRequest instance) { + this.connectorId = instance.connectorId; + this.features = instance.features; + + } /** * Required - The unique identifier of the connector to be updated. *

                                                                                  @@ -187,6 +194,12 @@ public UpdateFeaturesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringRequest.java index d4b38507ad..7f5b70b946 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringRequest.java @@ -186,6 +186,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List rules; + public Builder() { + } + private Builder(UpdateFilteringRequest instance) { + this.advancedSnippet = instance.advancedSnippet; + this.connectorId = instance.connectorId; + this.filtering = instance.filtering; + this.rules = instance.rules; + + } /** * API name: {@code advanced_snippet} */ @@ -288,6 +297,12 @@ public UpdateFilteringRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringValidationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringValidationRequest.java index 3744cd7013..7685b13679 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringValidationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateFilteringValidationRequest.java @@ -131,6 +131,13 @@ public static class Builder extends RequestBase.AbstractBuilder private FilteringRulesValidation validation; + public Builder() { + } + private Builder(UpdateFilteringValidationRequest instance) { + this.connectorId = instance.connectorId; + this.validation = instance.validation; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -175,6 +182,12 @@ public UpdateFilteringValidationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateIndexNameRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateIndexNameRequest.java index 463c9cd8f5..3e52a6cddd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateIndexNameRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateIndexNameRequest.java @@ -145,6 +145,13 @@ public static class Builder extends RequestBase.AbstractBuilder private boolean isExpNullIndexName; + public Builder() { + } + private Builder(UpdateIndexNameRequest instance) { + this.connectorId = instance.connectorId; + this.indexName = instance.indexName; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -191,6 +198,12 @@ public UpdateIndexNameRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNameRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNameRequest.java index c446d81c6e..2db85ef56f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNameRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNameRequest.java @@ -153,6 +153,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String name; + public Builder() { + } + private Builder(UpdateNameRequest instance) { + this.connectorId = instance.connectorId; + this.description = instance.description; + this.name = instance.name; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -197,6 +205,12 @@ public UpdateNameRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNativeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNativeRequest.java index 19666ad5d2..75ab1c4721 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNativeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateNativeRequest.java @@ -128,6 +128,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Boolean isNative; + public Builder() { + } + private Builder(UpdateNativeRequest instance) { + this.connectorId = instance.connectorId; + this.isNative = instance.isNative; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -164,6 +171,12 @@ public UpdateNativeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdatePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdatePipelineRequest.java index adf3828800..f7513831be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdatePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdatePipelineRequest.java @@ -131,6 +131,13 @@ public static class Builder extends RequestBase.AbstractBuilder private IngestPipelineParams pipeline; + public Builder() { + } + private Builder(UpdatePipelineRequest instance) { + this.connectorId = instance.connectorId; + this.pipeline = instance.pipeline; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -174,6 +181,12 @@ public UpdatePipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateSchedulingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateSchedulingRequest.java index 0a5a834b64..c36a0e12a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateSchedulingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateSchedulingRequest.java @@ -128,6 +128,13 @@ public static class Builder extends RequestBase.AbstractBuilder private SchedulingConfiguration scheduling; + public Builder() { + } + private Builder(UpdateSchedulingRequest instance) { + this.connectorId = instance.connectorId; + this.scheduling = instance.scheduling; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -172,6 +179,12 @@ public UpdateSchedulingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateServiceTypeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateServiceTypeRequest.java index 58d7009664..3ac7bee121 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateServiceTypeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateServiceTypeRequest.java @@ -128,6 +128,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String serviceType; + public Builder() { + } + private Builder(UpdateServiceTypeRequest instance) { + this.connectorId = instance.connectorId; + this.serviceType = instance.serviceType; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -164,6 +171,12 @@ public UpdateServiceTypeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateStatusRequest.java index 1e3a4c6c25..898f8859a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/connector/UpdateStatusRequest.java @@ -127,6 +127,13 @@ public static class Builder extends RequestBase.AbstractBuilder private ConnectorStatus status; + public Builder() { + } + private Builder(UpdateStatusRequest instance) { + this.connectorId = instance.connectorId; + this.status = instance.status; + + } /** * Required - The unique identifier of the connector to be updated *

                                                                                  @@ -163,6 +170,12 @@ public UpdateStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java index 9fa89987df..3ceb8956a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java @@ -531,6 +531,25 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List operations; + public Builder() { + } + private Builder(BulkRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.includeSourceOnError = instance.includeSourceOnError; + this.index = instance.index; + this.listExecutedPipelines = instance.listExecutedPipelines; + this.pipeline = instance.pipeline; + this.refresh = instance.refresh; + this.requireAlias = instance.requireAlias; + this.requireDataStream = instance.requireDataStream; + this.routing = instance.routing; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + this.operations = instance.operations; + + } /** * Indicates whether to return the _source field (true * or false) or contains a list of fields to return. @@ -833,6 +852,12 @@ public BulkRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java index fe88a05c59..504839a2af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClearScrollRequest.java @@ -125,6 +125,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List scrollId; + public Builder() { + } + private Builder(ClearScrollRequest instance) { + this.scrollId = instance.scrollId; + + } /** * The scroll IDs to clear. To clear all scroll IDs, use _all. *

                                                                                  @@ -167,6 +173,12 @@ public ClearScrollRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java index 7338032528..7006eb01c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ClosePointInTimeRequest.java @@ -121,6 +121,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(ClosePointInTimeRequest instance) { + this.id = instance.id; + + } /** * Required - The ID of the point-in-time. *

                                                                                  @@ -149,6 +155,12 @@ public ClosePointInTimeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java index c1d2c1b398..178007bd4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java @@ -450,6 +450,28 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Long terminateAfter; + public Builder() { + } + private Builder(CountRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.expandWildcards = instance.expandWildcards; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.lenient = instance.lenient; + this.minScore = instance.minScore; + this.preference = instance.preference; + this.projectRouting = instance.projectRouting; + this.q = instance.q; + this.query = instance.query; + this.routing = instance.routing; + this.terminateAfter = instance.terminateAfter; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -744,6 +766,12 @@ public CountRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java index 324d4addfb..7a73230e09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/CreateRequest.java @@ -473,6 +473,24 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; + public Builder() { + } + private Builder(CreateRequest instance) { + this.id = instance.id; + this.includeSourceOnError = instance.includeSourceOnError; + this.index = instance.index; + this.pipeline = instance.pipeline; + this.refresh = instance.refresh; + this.requireAlias = instance.requireAlias; + this.requireDataStream = instance.requireDataStream; + this.routing = instance.routing; + this.timeout = instance.timeout; + this.version = instance.version; + this.versionType = instance.versionType; + this.waitForActiveShards = instance.waitForActiveShards; + this.document = instance.document; + + } /** * Required - A unique identifier for the document. To automatically generate a * document ID, use the POST /<target>/_doc/ request format. @@ -715,6 +733,12 @@ public CreateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } /** * Json deserializer for {@link CreateRequest} based on named deserializers * provided by the calling {@code JsonMapper}. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java index 1ed867d8d8..fdcb5fe3b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRequest.java @@ -847,6 +847,43 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(DeleteByQueryRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.conflicts = instance.conflicts; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.expandWildcards = instance.expandWildcards; + this.from = instance.from; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.lenient = instance.lenient; + this.maxDocs = instance.maxDocs; + this.preference = instance.preference; + this.q = instance.q; + this.query = instance.query; + this.refresh = instance.refresh; + this.requestCache = instance.requestCache; + this.requestsPerSecond = instance.requestsPerSecond; + this.routing = instance.routing; + this.scroll = instance.scroll; + this.scrollSize = instance.scrollSize; + this.searchTimeout = instance.searchTimeout; + this.searchType = instance.searchType; + this.slice = instance.slice; + this.slices = instance.slices; + this.sort = instance.sort; + this.stats = instance.stats; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.version = instance.version; + this.waitForActiveShards = instance.waitForActiveShards; + this.waitForCompletion = instance.waitForCompletion; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -1397,6 +1434,12 @@ public DeleteByQueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java index 05b90886aa..c6169b5c56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryRethrottleRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; + public Builder() { + } + private Builder(DeleteByQueryRethrottleRequest instance) { + this.requestsPerSecond = instance.requestsPerSecond; + this.taskId = instance.taskId; + + } /** * Required - The throttle for this request in sub-requests per second. To * disable throttling, set it to -1. @@ -158,6 +165,12 @@ public DeleteByQueryRethrottleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java index 0a0c2da17b..9a3d1e89bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteRequest.java @@ -314,6 +314,21 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(DeleteRequest instance) { + this.id = instance.id; + this.ifPrimaryTerm = instance.ifPrimaryTerm; + this.ifSeqNo = instance.ifSeqNo; + this.index = instance.index; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.timeout = instance.timeout; + this.version = instance.version; + this.versionType = instance.versionType; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * Required - A unique identifier for the document. *

                                                                                  @@ -491,6 +506,12 @@ public DeleteRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java index 5a19af8325..c11c64b239 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteScriptRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteScriptRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Required - The identifier for the stored script or search template. *

                                                                                  @@ -214,6 +222,12 @@ public DeleteScriptRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java index f4eb640e61..9f0c578394 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsRequest.java @@ -324,6 +324,23 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private VersionType versionType; + public Builder() { + } + private Builder(ExistsRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.id = instance.id; + this.index = instance.index; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.storedFields = instance.storedFields; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Indicates whether to return the _source field (true * or false) or lists the fields to return. @@ -562,6 +579,12 @@ public ExistsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java index dd80662c44..10fc45e34a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExistsSourceRequest.java @@ -281,6 +281,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private VersionType versionType; + public Builder() { + } + private Builder(ExistsSourceRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.id = instance.id; + this.index = instance.index; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Indicates whether to return the _source field (true * or false) or lists the fields to return. @@ -468,6 +484,12 @@ public ExistsSourceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java index 75a30a1df0..2e89faca68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ExplainRequest.java @@ -371,6 +371,26 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List storedFields; + public Builder() { + } + private Builder(ExplainRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.id = instance.id; + this.index = instance.index; + this.lenient = instance.lenient; + this.preference = instance.preference; + this.q = instance.q; + this.query = instance.query; + this.routing = instance.routing; + this.storedFields = instance.storedFields; + + } /** * True or false to return the _source * field or not or a list of fields to return. @@ -650,6 +670,12 @@ public ExplainRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java index dd6165dac5..4a83f3d6d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java @@ -363,6 +363,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List types; + public Builder() { + } + private Builder(FieldCapsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.fields = instance.fields; + this.filters = instance.filters; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeEmptyFields = instance.includeEmptyFields; + this.includeUnmapped = instance.includeUnmapped; + this.index = instance.index; + this.indexFilter = instance.indexFilter; + this.projectRouting = instance.projectRouting; + this.runtimeMappings = instance.runtimeMappings; + this.types = instance.types; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. @@ -674,6 +691,12 @@ public FieldCapsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java index 0e8e8e9a58..13d3e06f3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetRequest.java @@ -409,6 +409,25 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private VersionType versionType; + public Builder() { + } + private Builder(GetRequest instance) { + this.source = instance.source; + this.sourceExcludeVectors = instance.sourceExcludeVectors; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.forceSyntheticSource = instance.forceSyntheticSource; + this.id = instance.id; + this.index = instance.index; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.storedFields = instance.storedFields; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Indicates whether to return the _source field (true * or false) or lists the fields to return. @@ -673,6 +692,12 @@ public GetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java index 83aee01894..f6cb9420ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetScriptRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetScriptRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + + } /** * Required - The identifier for the stored script or search template. *

                                                                                  @@ -172,6 +179,12 @@ public GetScriptRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java index ed53e7f0df..3dd2e4c790 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/GetSourceRequest.java @@ -284,6 +284,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private VersionType versionType; + public Builder() { + } + private Builder(GetSourceRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.id = instance.id; + this.index = instance.index; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Indicates whether to return the _source field (true * or false) or lists the fields to return. @@ -470,6 +486,12 @@ public GetSourceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java index e2399944df..7f56ef0610 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java @@ -181,6 +181,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean verbose; + public Builder() { + } + private Builder(HealthReportRequest instance) { + this.feature = instance.feature; + this.size = instance.size; + this.timeout = instance.timeout; + this.verbose = instance.verbose; + + } /** * A feature of the cluster, as returned by the top-level health report API. *

                                                                                  @@ -262,6 +271,12 @@ public HealthReportRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java index f3a17376d8..7baeefeb1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/IndexRequest.java @@ -606,6 +606,27 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; + public Builder() { + } + private Builder(IndexRequest instance) { + this.id = instance.id; + this.ifPrimaryTerm = instance.ifPrimaryTerm; + this.ifSeqNo = instance.ifSeqNo; + this.includeSourceOnError = instance.includeSourceOnError; + this.index = instance.index; + this.opType = instance.opType; + this.pipeline = instance.pipeline; + this.refresh = instance.refresh; + this.requireAlias = instance.requireAlias; + this.requireDataStream = instance.requireDataStream; + this.routing = instance.routing; + this.timeout = instance.timeout; + this.version = instance.version; + this.versionType = instance.versionType; + this.waitForActiveShards = instance.waitForActiveShards; + this.document = instance.document; + + } /** * A unique identifier for the document. To automatically generate a document * ID, use the POST /<target>/_doc/ request format and omit @@ -882,6 +903,12 @@ public IndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } /** * Json deserializer for {@link IndexRequest} based on named deserializers * provided by the calling {@code JsonMapper}. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java index bee9644b9c..584d2d1b61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MgetRequest.java @@ -353,6 +353,23 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List storedFields; + public Builder() { + } + private Builder(MgetRequest instance) { + this.source = instance.source; + this.sourceExcludes = instance.sourceExcludes; + this.sourceIncludes = instance.sourceIncludes; + this.docs = instance.docs; + this.forceSyntheticSource = instance.forceSyntheticSource; + this.ids = instance.ids; + this.index = instance.index; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.refresh = instance.refresh; + this.routing = instance.routing; + this.storedFields = instance.storedFields; + + } /** * True or false to return the _source field or not, or a list of * fields to return. @@ -623,6 +640,12 @@ public MgetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java index c5e7513aee..37dd013808 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchRequest.java @@ -385,6 +385,25 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List searches; + public Builder() { + } + private Builder(MsearchRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.expandWildcards = instance.expandWildcards; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeNamedQueriesScore = instance.includeNamedQueriesScore; + this.index = instance.index; + this.maxConcurrentSearches = instance.maxConcurrentSearches; + this.maxConcurrentShardRequests = instance.maxConcurrentShardRequests; + this.preFilterShardSize = instance.preFilterShardSize; + this.projectRouting = instance.projectRouting; + this.routing = instance.routing; + this.searchType = instance.searchType; + this.searches = instance.searches; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. This behavior @@ -635,6 +654,12 @@ public MsearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java index b0e52607fd..e00076423e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MsearchTemplateRequest.java @@ -228,6 +228,17 @@ public static class Builder extends RequestBase.AbstractBuilder private List searchTemplates; + public Builder() { + } + private Builder(MsearchTemplateRequest instance) { + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.index = instance.index; + this.maxConcurrentSearches = instance.maxConcurrentSearches; + this.projectRouting = instance.projectRouting; + this.searchType = instance.searchType; + this.searchTemplates = instance.searchTemplates; + + } /** * If true, network round-trips are minimized for cross-cluster * search requests. @@ -348,6 +359,12 @@ public MsearchTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java index 964213e260..59ff7c4115 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/MtermvectorsRequest.java @@ -372,6 +372,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private VersionType versionType; + public Builder() { + } + private Builder(MtermvectorsRequest instance) { + this.docs = instance.docs; + this.fieldStatistics = instance.fieldStatistics; + this.fields = instance.fields; + this.ids = instance.ids; + this.index = instance.index; + this.offsets = instance.offsets; + this.payloads = instance.payloads; + this.positions = instance.positions; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.routing = instance.routing; + this.termStatistics = instance.termStatistics; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * An array of existing or artificial documents. *

                                                                                  @@ -608,6 +627,12 @@ public MtermvectorsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java index 46c9d7d1cd..3cc63c9315 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/OpenPointInTimeRequest.java @@ -348,6 +348,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List routing; + public Builder() { + } + private Builder(OpenPointInTimeRequest instance) { + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.indexFilter = instance.indexFilter; + this.keepAlive = instance.keepAlive; + this.maxConcurrentShardRequests = instance.maxConcurrentShardRequests; + this.preference = instance.preference; + this.projectRouting = instance.projectRouting; + this.routing = instance.routing; + + } /** * Indicates whether the point in time tolerates unavailable shards or shard * failures when initially creating the PIT. If false, creating a @@ -558,6 +573,12 @@ public OpenPointInTimeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java index 761b9187b3..e1bc04b426 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/PutScriptRequest.java @@ -190,6 +190,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutScriptRequest instance) { + this.context = instance.context; + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.script = instance.script; + this.timeout = instance.timeout; + + } /** * The context in which the script or search template should run. To prevent * errors, the API immediately compiles the script or template in this context. @@ -297,6 +307,12 @@ public PutScriptRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java index 7118164ac0..261194bcdb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RankEvalRequest.java @@ -244,6 +244,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private SearchType searchType; + public Builder() { + } + private Builder(RankEvalRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.metric = instance.metric; + this.requests = instance.requests; + this.searchType = instance.searchType; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -411,6 +423,12 @@ public RankEvalRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java index 6a029f7f34..b2ed575322 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRequest.java @@ -452,6 +452,24 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(ReindexRequest instance) { + this.conflicts = instance.conflicts; + this.dest = instance.dest; + this.maxDocs = instance.maxDocs; + this.refresh = instance.refresh; + this.requestsPerSecond = instance.requestsPerSecond; + this.requireAlias = instance.requireAlias; + this.script = instance.script; + this.scroll = instance.scroll; + this.slices = instance.slices; + this.source = instance.source; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Indicates whether to continue reindexing even when there are conflicts. *

                                                                                  @@ -716,6 +734,12 @@ public ReindexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java index a19e62e876..223d2098f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ReindexRethrottleRequest.java @@ -126,6 +126,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; + public Builder() { + } + private Builder(ReindexRethrottleRequest instance) { + this.requestsPerSecond = instance.requestsPerSecond; + this.taskId = instance.taskId; + + } /** * Required - The throttle for this request in sub-requests per second. It can * be either -1 to turn off throttling or any decimal number like @@ -166,6 +173,12 @@ public ReindexRethrottleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java index 85fe6525d6..66662da861 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/RenderSearchTemplateRequest.java @@ -201,6 +201,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private ScriptSource source; + public Builder() { + } + private Builder(RenderSearchTemplateRequest instance) { + this.file = instance.file; + this.id = instance.id; + this.params = instance.params; + this.source = instance.source; + + } /** * API name: {@code file} */ @@ -292,6 +301,12 @@ public RenderSearchTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java index 469083f2dc..fa7ec6d429 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScriptsPainlessExecuteRequest.java @@ -178,6 +178,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Script script; + public Builder() { + } + private Builder(ScriptsPainlessExecuteRequest instance) { + this.context = instance.context; + this.contextSetup = instance.contextSetup; + this.script = instance.script; + + } /** * The context that the script should run in. NOTE: Result ordering in the field * contexts is not guaranteed. @@ -250,6 +258,12 @@ public ScriptsPainlessExecuteRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java index e21fe10872..d5f882dab6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/ScrollRequest.java @@ -156,6 +156,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String scrollId; + public Builder() { + } + private Builder(ScrollRequest instance) { + this.scroll = instance.scroll; + this.scrollId = instance.scrollId; + + } /** * The period to retain the search context for scrolling. *

                                                                                  @@ -203,6 +210,12 @@ public ScrollRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java index 2bce114caa..da935807c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchMvtRequest.java @@ -903,6 +903,31 @@ public static class Builder extends RequestBase.AbstractBuilder private Integer zoom; + public Builder() { + } + private Builder(SearchMvtRequest instance) { + this.aggs = instance.aggs; + this.buffer = instance.buffer; + this.exactBounds = instance.exactBounds; + this.extent = instance.extent; + this.field = instance.field; + this.fields = instance.fields; + this.gridAgg = instance.gridAgg; + this.gridPrecision = instance.gridPrecision; + this.gridType = instance.gridType; + this.index = instance.index; + this.projectRouting = instance.projectRouting; + this.query = instance.query; + this.runtimeMappings = instance.runtimeMappings; + this.size = instance.size; + this.sort = instance.sort; + this.trackTotalHits = instance.trackTotalHits; + this.withLabels = instance.withLabels; + this.x = instance.x; + this.y = instance.y; + this.zoom = instance.zoom; + + } /** * Sub-aggregations for the geotile_grid. *

                                                                                  @@ -1410,6 +1435,12 @@ public SearchMvtRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 2afd588ae9..1c3670413a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -1517,6 +1517,69 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean version; + public Builder() { + } + private Builder(SearchRequest instance) { + this.source = instance.source; + this.aggregations = instance.aggregations; + this.allowNoIndices = instance.allowNoIndices; + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.batchedReduceSize = instance.batchedReduceSize; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.collapse = instance.collapse; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.docvalueFields = instance.docvalueFields; + this.expandWildcards = instance.expandWildcards; + this.explain = instance.explain; + this.ext = instance.ext; + this.fields = instance.fields; + this.forceSyntheticSource = instance.forceSyntheticSource; + this.from = instance.from; + this.highlight = instance.highlight; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeNamedQueriesScore = instance.includeNamedQueriesScore; + this.index = instance.index; + this.indicesBoost = instance.indicesBoost; + this.knn = instance.knn; + this.lenient = instance.lenient; + this.maxConcurrentShardRequests = instance.maxConcurrentShardRequests; + this.minScore = instance.minScore; + this.pit = instance.pit; + this.postFilter = instance.postFilter; + this.preFilterShardSize = instance.preFilterShardSize; + this.preference = instance.preference; + this.profile = instance.profile; + this.projectRouting = instance.projectRouting; + this.q = instance.q; + this.query = instance.query; + this.rank = instance.rank; + this.requestCache = instance.requestCache; + this.rescore = instance.rescore; + this.retriever = instance.retriever; + this.routing = instance.routing; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.scroll = instance.scroll; + this.searchAfter = instance.searchAfter; + this.searchType = instance.searchType; + this.seqNoPrimaryTerm = instance.seqNoPrimaryTerm; + this.size = instance.size; + this.slice = instance.slice; + this.sort = instance.sort; + this.stats = instance.stats; + this.storedFields = instance.storedFields; + this.suggest = instance.suggest; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.trackScores = instance.trackScores; + this.trackTotalHits = instance.trackTotalHits; + this.version = instance.version; + + } /** * The source fields that are returned for matching documents. These fields are * returned in the hits._source property of the search response. If @@ -2883,6 +2946,12 @@ public SearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java index b999f8503e..92f9255152 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchShardsRequest.java @@ -242,6 +242,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List routing; + public Builder() { + } + private Builder(SearchShardsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.preference = instance.preference; + this.routing = instance.routing; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -415,6 +428,12 @@ public SearchShardsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java index b6c66c5e06..6f95e0a08f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchTemplateRequest.java @@ -428,6 +428,27 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private ScriptSource source; + public Builder() { + } + private Builder(SearchTemplateRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.expandWildcards = instance.expandWildcards; + this.explain = instance.explain; + this.id = instance.id; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.params = instance.params; + this.preference = instance.preference; + this.profile = instance.profile; + this.projectRouting = instance.projectRouting; + this.routing = instance.routing; + this.scroll = instance.scroll; + this.searchType = instance.searchType; + this.source = instance.source; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -715,6 +736,12 @@ public SearchTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java index 22a7276b80..0fcbb092ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermsEnumRequest.java @@ -295,6 +295,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(TermsEnumRequest instance) { + this.caseInsensitive = instance.caseInsensitive; + this.field = instance.field; + this.index = instance.index; + this.indexFilter = instance.indexFilter; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.string = instance.string; + this.timeout = instance.timeout; + + } /** * When true, the provided search string is matched against index * terms without case sensitivity. @@ -458,6 +471,12 @@ public TermsEnumRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java index 10eb59b0b5..695f1b1d61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/TermvectorsRequest.java @@ -531,6 +531,27 @@ public static class Builder extends RequestBase.AbstractBuilder tDocumentSerializer; + public Builder() { + } + private Builder(TermvectorsRequest instance) { + this.doc = instance.doc; + this.fieldStatistics = instance.fieldStatistics; + this.fields = instance.fields; + this.filter = instance.filter; + this.id = instance.id; + this.index = instance.index; + this.offsets = instance.offsets; + this.payloads = instance.payloads; + this.perFieldAnalyzer = instance.perFieldAnalyzer; + this.positions = instance.positions; + this.preference = instance.preference; + this.realtime = instance.realtime; + this.routing = instance.routing; + this.termStatistics = instance.termStatistics; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * An artificial document (a document not present in the index) for which you * want to retrieve term vectors. @@ -800,6 +821,12 @@ public TermvectorsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java index 6b0950b316..9793cf86fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRequest.java @@ -922,6 +922,46 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(UpdateByQueryRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.conflicts = instance.conflicts; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.expandWildcards = instance.expandWildcards; + this.from = instance.from; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.lenient = instance.lenient; + this.maxDocs = instance.maxDocs; + this.pipeline = instance.pipeline; + this.preference = instance.preference; + this.q = instance.q; + this.query = instance.query; + this.refresh = instance.refresh; + this.requestCache = instance.requestCache; + this.requestsPerSecond = instance.requestsPerSecond; + this.routing = instance.routing; + this.script = instance.script; + this.scroll = instance.scroll; + this.scrollSize = instance.scrollSize; + this.searchTimeout = instance.searchTimeout; + this.searchType = instance.searchType; + this.slice = instance.slice; + this.slices = instance.slices; + this.sort = instance.sort; + this.stats = instance.stats; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.version = instance.version; + this.versionType = instance.versionType; + this.waitForActiveShards = instance.waitForActiveShards; + this.waitForCompletion = instance.waitForCompletion; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -1511,6 +1551,12 @@ public UpdateByQueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java index 6121e90743..fe9f5f6fb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateByQueryRethrottleRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String taskId; + public Builder() { + } + private Builder(UpdateByQueryRethrottleRequest instance) { + this.requestsPerSecond = instance.requestsPerSecond; + this.taskId = instance.taskId; + + } /** * Required - The throttle for this request in sub-requests per second. To turn * off throttling, set it to -1. @@ -158,6 +165,12 @@ public UpdateByQueryRethrottleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java index 2de2c9d54f..c1d73019af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/UpdateRequest.java @@ -522,6 +522,30 @@ public static class Builder @Nullable private JsonpSerializer tPartialDocumentSerializer; + public Builder() { + } + private Builder(UpdateRequest instance) { + this.source = instance.source; + this.detectNoop = instance.detectNoop; + this.doc = instance.doc; + this.docAsUpsert = instance.docAsUpsert; + this.id = instance.id; + this.ifPrimaryTerm = instance.ifPrimaryTerm; + this.ifSeqNo = instance.ifSeqNo; + this.includeSourceOnError = instance.includeSourceOnError; + this.index = instance.index; + this.lang = instance.lang; + this.refresh = instance.refresh; + this.requireAlias = instance.requireAlias; + this.retryOnConflict = instance.retryOnConflict; + this.routing = instance.routing; + this.script = instance.script; + this.scriptedUpsert = instance.scriptedUpsert; + this.timeout = instance.timeout; + this.upsert = instance.upsert; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * If false, turn off source retrieval. You can also specify a * comma-separated list of the fields you want to retrieve. @@ -825,6 +849,12 @@ public UpdateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java index 16745b99ce..6fe24823d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/BulkResponseItem.java @@ -385,6 +385,23 @@ public final Builder operationType(OperationType value) { @Nullable private InlineGet> get; + public Builder() { + } + private Builder(BulkResponseItem instance) { + this.id = instance.id; + this.index = instance.index; + this.status = instance.status; + this.failureStore = instance.failureStore; + this.error = instance.error; + this.primaryTerm = instance.primaryTerm; + this.result = instance.result; + this.seqNo = instance.seqNo; + this.shards = instance.shards; + this.version = instance.version; + this.forcedRefresh = instance.forcedRefresh; + this.get = instance.get; + + } /** * The document ID associated with the operation. *

                                                                                  @@ -553,6 +570,12 @@ public BulkResponseItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java index abf55254c9..45839dd8f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/CreateOperation.java @@ -120,6 +120,11 @@ public final Builder document(TDocument value) { @Nullable private JsonpSerializer tDocumentSerializer; + public Builder() { + } + private Builder(CreateOperation instance) { + + } /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. @@ -147,4 +152,10 @@ public CreateOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java index 6c01e4a2fb..af3a183a7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/DeleteOperation.java @@ -80,6 +80,11 @@ public BulkOperation.Kind _bulkOperationKind() { public static class Builder extends BulkOperationBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DeleteOperation instance) { + + } @Override protected Builder self() { return this; @@ -98,6 +103,12 @@ public DeleteOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java index b75f658dc1..b7e1a6ad1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/IndexOperation.java @@ -120,6 +120,11 @@ public final Builder document(TDocument value) { @Nullable private JsonpSerializer tDocumentSerializer; + public Builder() { + } + private Builder(IndexOperation instance) { + + } /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. @@ -147,4 +152,10 @@ public IndexOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java index 3d8d1cf351..a8599dd912 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java @@ -279,6 +279,18 @@ public static class Builder @Nullable private JsonpSerializer tPartialDocumentSerializer; + public Builder() { + } + private Builder(UpdateAction instance) { + this.detectNoop = instance.detectNoop; + this.doc = instance.doc; + this.docAsUpsert = instance.docAsUpsert; + this.script = instance.script; + this.scriptedUpsert = instance.scriptedUpsert; + this.source = instance.source; + this.upsert = instance.upsert; + + } /** * If true, the result in the response is set to 'noop' when no * changes to the document occur. @@ -413,6 +425,12 @@ public UpdateAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java index 64cc3bd338..ef0af6a86a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateOperation.java @@ -235,6 +235,13 @@ public final Builder binaryAction(@Nullable BinaryD @Nullable private JsonpSerializer tPartialDocumentSerializer; + public Builder() { + } + private Builder(UpdateOperation instance) { + this.requireAlias = instance.requireAlias; + this.retryOnConflict = instance.retryOnConflict; + + } /** * If true, the request's actions must target an index alias. *

                                                                                  @@ -294,4 +301,10 @@ public UpdateOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java index b5170266b8..478d3d90ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/Explanation.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Float value; + public Builder() { + } + private Builder(Explanation instance) { + this.description = instance.description; + this.details = instance.details; + this.value = instance.value; + + } /** * Required - API name: {@code description} */ @@ -212,6 +220,12 @@ public Explanation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java index 29e5e99b20..6325de88aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/explain/ExplanationDetail.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Float value; + public Builder() { + } + private Builder(ExplanationDetail instance) { + this.description = instance.description; + this.details = instance.details; + this.value = instance.value; + + } /** * Required - API name: {@code description} */ @@ -214,6 +222,12 @@ public ExplanationDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java index d208b11b4c..ac67b04222 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/field_caps/FieldCapability.java @@ -376,6 +376,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List metricConflictsIndices; + public Builder() { + } + private Builder(FieldCapability instance) { + this.aggregatable = instance.aggregatable; + this.indices = instance.indices; + this.meta = instance.meta; + this.nonAggregatableIndices = instance.nonAggregatableIndices; + this.nonSearchableIndices = instance.nonSearchableIndices; + this.searchable = instance.searchable; + this.type = instance.type; + this.metadataField = instance.metadataField; + this.timeSeriesDimension = instance.timeSeriesDimension; + this.timeSeriesMetric = instance.timeSeriesMetric; + this.nonDimensionIndices = instance.nonDimensionIndices; + this.metricConflictsIndices = instance.metricConflictsIndices; + + } /** * Required - Whether this field can be aggregated on all indices. *

                                                                                  @@ -615,6 +632,12 @@ public FieldCapability build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java index eb7ca93cfc..f82b756048 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/Context.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(Context instance) { + this.methods = instance.methods; + this.name = instance.name; + + } /** * Required - API name: {@code methods} *

                                                                                  @@ -189,6 +196,12 @@ public Context build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java index 68a64e83ae..570ed05ab8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethod.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List params; + public Builder() { + } + private Builder(ContextMethod instance) { + this.name = instance.name; + this.returnType = instance.returnType; + this.params = instance.params; + + } /** * Required - API name: {@code name} */ @@ -213,6 +221,12 @@ public ContextMethod build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java index afed703a61..d63b6bb34d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_context/ContextMethodParam.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String type; + public Builder() { + } + private Builder(ContextMethodParam instance) { + this.name = instance.name; + this.type = instance.type; + + } /** * Required - API name: {@code name} */ @@ -162,6 +169,12 @@ public ContextMethodParam build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java index 4533ef76c0..b8947382fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/get_script_languages/LanguageContext.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String language; + public Builder() { + } + private Builder(LanguageContext instance) { + this.contexts = instance.contexts; + this.language = instance.language; + + } /** * Required - API name: {@code contexts} *

                                                                                  @@ -189,6 +196,12 @@ public LanguageContext build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleDetails.java index a8f08111f4..bb12dee984 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleDetails.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List stagnatingBackingIndices; + public Builder() { + } + private Builder(DataStreamLifecycleDetails instance) { + this.stagnatingBackingIndicesCount = instance.stagnatingBackingIndicesCount; + this.totalBackingIndicesInError = instance.totalBackingIndicesInError; + this.stagnatingBackingIndices = instance.stagnatingBackingIndices; + + } /** * Required - API name: {@code stagnating_backing_indices_count} */ @@ -221,6 +229,12 @@ public DataStreamLifecycleDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleIndicator.java index 01dc5b53b6..b0702c5e28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DataStreamLifecycleIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private DataStreamLifecycleDetails details; + public Builder() { + } + private Builder(DataStreamLifecycleIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public DataStreamLifecycleIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java index 05383c41f9..8656c220dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java @@ -171,6 +171,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String helpUrl; + public Builder() { + } + private Builder(Diagnosis instance) { + this.id = instance.id; + this.action = instance.action; + this.affectedResources = instance.affectedResources; + this.cause = instance.cause; + this.helpUrl = instance.helpUrl; + + } /** * Required - API name: {@code id} */ @@ -237,6 +247,12 @@ public Diagnosis build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java index 2e7bb3d144..dc68df4fce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List snapshotRepositories; + public Builder() { + } + private Builder(DiagnosisAffectedResources instance) { + this.indices = instance.indices; + this.nodes = instance.nodes; + this.slmPolicies = instance.slmPolicies; + this.featureStates = instance.featureStates; + this.snapshotRepositories = instance.snapshotRepositories; + + } /** * API name: {@code indices} *

                                                                                  @@ -342,6 +352,12 @@ public DiagnosisAffectedResources build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java index e4ee1ca558..c4a78715e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java @@ -101,6 +101,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder imple @Nullable private DiskIndicatorDetails details; + public Builder() { + } + private Builder(DiskIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -134,6 +140,12 @@ public DiskIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java index 16ade4af3b..e7a8846c6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java @@ -177,6 +177,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long nodesWithUnknownDiskStatus; + public Builder() { + } + private Builder(DiskIndicatorDetails instance) { + this.indicesWithReadonlyBlock = instance.indicesWithReadonlyBlock; + this.nodesWithEnoughDiskSpace = instance.nodesWithEnoughDiskSpace; + this.nodesOverHighWatermark = instance.nodesOverHighWatermark; + this.nodesOverFloodStageWatermark = instance.nodesOverFloodStageWatermark; + this.nodesWithUnknownDiskStatus = instance.nodesWithUnknownDiskStatus; + + } /** * Required - API name: {@code indices_with_readonly_block} */ @@ -235,6 +245,12 @@ public DiskIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicator.java index 2fbfee90c5..bfb73f5895 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private FileSettingsIndicatorDetails details; + public Builder() { + } + private Builder(FileSettingsIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public FileSettingsIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicatorDetails.java index cae4a807d3..81add890a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/FileSettingsIndicatorDetails.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String mostRecentFailure; + public Builder() { + } + private Builder(FileSettingsIndicatorDetails instance) { + this.failureStreak = instance.failureStreak; + this.mostRecentFailure = instance.mostRecentFailure; + + } /** * Required - API name: {@code failure_streak} */ @@ -163,6 +170,12 @@ public FileSettingsIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java index 98483a089e..35e0011ff2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java @@ -101,6 +101,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder imple @Nullable private IlmIndicatorDetails details; + public Builder() { + } + private Builder(IlmIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -134,6 +140,12 @@ public IlmIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java index f88d668cec..39f34ee8b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java @@ -144,6 +144,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer stagnatingIndices; + public Builder() { + } + private Builder(IlmIndicatorDetails instance) { + this.ilmStatus = instance.ilmStatus; + this.policies = instance.policies; + this.stagnatingIndices = instance.stagnatingIndices; + + } /** * Required - API name: {@code ilm_status} */ @@ -186,6 +194,12 @@ public IlmIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java index 48d3e23d2c..a4e8371d15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java @@ -163,6 +163,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer severity; + public Builder() { + } + private Builder(Impact instance) { + this.description = instance.description; + this.id = instance.id; + this.impactAreas = instance.impactAreas; + this.severity = instance.severity; + + } /** * Required - API name: {@code description} */ @@ -225,6 +234,12 @@ public Impact build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java index e20bdd6d5b..5f350329c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String nodeId; + public Builder() { + } + private Builder(IndicatorNode instance) { + this.name = instance.name; + this.nodeId = instance.nodeId; + + } /** * API name: {@code name} */ @@ -170,6 +177,12 @@ public IndicatorNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java index a4f85fb5ff..fff9bf5f69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java @@ -275,6 +275,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FileSettingsIndicator fileSettings; + public Builder() { + } + private Builder(Indicators instance) { + this.masterIsStable = instance.masterIsStable; + this.shardsAvailability = instance.shardsAvailability; + this.disk = instance.disk; + this.repositoryIntegrity = instance.repositoryIntegrity; + this.dataStreamLifecycle = instance.dataStreamLifecycle; + this.ilm = instance.ilm; + this.slm = instance.slm; + this.shardsCapacity = instance.shardsCapacity; + this.fileSettings = instance.fileSettings; + + } /** * API name: {@code master_is_stable} */ @@ -434,6 +448,12 @@ public Indicators build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java index 7d3fe2796a..9c6e2acb70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private MasterIsStableIndicatorDetails details; + public Builder() { + } + private Builder(MasterIsStableIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public MasterIsStableIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java index 4fae1da0e4..9e8159368d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String clusterFormationMessage; + public Builder() { + } + private Builder(MasterIsStableIndicatorClusterFormationNode instance) { + this.name = instance.name; + this.nodeId = instance.nodeId; + this.clusterFormationMessage = instance.clusterFormationMessage; + + } /** * API name: {@code name} */ @@ -192,6 +200,12 @@ public MasterIsStableIndicatorClusterFormationNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java index c6f3e0800a..062aa6f101 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java @@ -180,6 +180,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List clusterFormation; + public Builder() { + } + private Builder(MasterIsStableIndicatorDetails instance) { + this.currentMaster = instance.currentMaster; + this.recentMasters = instance.recentMasters; + this.exceptionFetchingHistory = instance.exceptionFetchingHistory; + this.clusterFormation = instance.clusterFormation; + + } /** * Required - API name: {@code current_master} */ @@ -290,6 +299,12 @@ public MasterIsStableIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java index e5d7e3093c..012bc528e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String stackTrace; + public Builder() { + } + private Builder(MasterIsStableIndicatorExceptionFetchingHistory instance) { + this.message = instance.message; + this.stackTrace = instance.stackTrace; + + } /** * Required - API name: {@code message} */ @@ -163,6 +170,12 @@ public MasterIsStableIndicatorExceptionFetchingHistory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java index 433fb09100..c7fd45fd8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private RepositoryIntegrityIndicatorDetails details; + public Builder() { + } + private Builder(RepositoryIntegrityIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public RepositoryIntegrityIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java index cbd0b0abf7..38f77eae7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java @@ -165,6 +165,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List corrupted; + public Builder() { + } + private Builder(RepositoryIntegrityIndicatorDetails instance) { + this.totalRepositories = instance.totalRepositories; + this.corruptedRepositories = instance.corruptedRepositories; + this.corrupted = instance.corrupted; + + } /** * API name: {@code total_repositories} */ @@ -219,6 +227,12 @@ public RepositoryIntegrityIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java index 1467901618..179b838ba4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private ShardsAvailabilityIndicatorDetails details; + public Builder() { + } + private Builder(ShardsAvailabilityIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public ShardsAvailabilityIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java index 72011c4b96..319f6f98cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java @@ -254,6 +254,21 @@ public static class Builder extends WithJsonObjectBuilderBase private Long unassignedReplicas; + public Builder() { + } + private Builder(ShardsAvailabilityIndicatorDetails instance) { + this.creatingPrimaries = instance.creatingPrimaries; + this.creatingReplicas = instance.creatingReplicas; + this.initializingPrimaries = instance.initializingPrimaries; + this.initializingReplicas = instance.initializingReplicas; + this.restartingPrimaries = instance.restartingPrimaries; + this.restartingReplicas = instance.restartingReplicas; + this.startedPrimaries = instance.startedPrimaries; + this.startedReplicas = instance.startedReplicas; + this.unassignedPrimaries = instance.unassignedPrimaries; + this.unassignedReplicas = instance.unassignedReplicas; + + } /** * Required - API name: {@code creating_primaries} */ @@ -352,6 +367,12 @@ public ShardsAvailabilityIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicator.java index 550acdc155..048ef7fc2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicator.java @@ -103,6 +103,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder @Nullable private ShardsCapacityIndicatorDetails details; + public Builder() { + } + private Builder(ShardsCapacityIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -137,6 +143,12 @@ public ShardsCapacityIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java index d863ab41f3..887363fbf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorDetails.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private ShardsCapacityIndicatorTierDetail frozen; + public Builder() { + } + private Builder(ShardsCapacityIndicatorDetails instance) { + this.data = instance.data; + this.frozen = instance.frozen; + + } /** * Required - API name: {@code data} */ @@ -178,6 +185,12 @@ public ShardsCapacityIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java index cae5167316..b1a4220755 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsCapacityIndicatorTierDetail.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer currentUsedShards; + public Builder() { + } + private Builder(ShardsCapacityIndicatorTierDetail instance) { + this.maxShardsInCluster = instance.maxShardsInCluster; + this.currentUsedShards = instance.currentUsedShards; + + } /** * Required - API name: {@code max_shards_in_cluster} */ @@ -170,6 +177,12 @@ public ShardsCapacityIndicatorTierDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java index 1b81e33457..8d81e0640d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java @@ -101,6 +101,12 @@ public static class Builder extends BaseIndicator.AbstractBuilder imple @Nullable private SlmIndicatorDetails details; + public Builder() { + } + private Builder(SlmIndicator instance) { + this.details = instance.details; + + } /** * API name: {@code details} */ @@ -134,6 +140,12 @@ public SlmIndicator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java index bb30b4279d..d205bd3264 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private SlmIndicatorUnhealthyPolicies unhealthyPolicies; + public Builder() { + } + private Builder(SlmIndicatorDetails instance) { + this.slmStatus = instance.slmStatus; + this.policies = instance.policies; + this.unhealthyPolicies = instance.unhealthyPolicies; + + } /** * Required - API name: {@code slm_status} */ @@ -199,6 +207,12 @@ public SlmIndicatorDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java index fbd8fad0db..460cca1ad0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map invocationsSinceLastSuccess; + public Builder() { + } + private Builder(SlmIndicatorUnhealthyPolicies instance) { + this.count = instance.count; + this.invocationsSinceLastSuccess = instance.invocationsSinceLastSuccess; + + } /** * Required - API name: {@code count} */ @@ -187,6 +194,12 @@ public SlmIndicatorUnhealthyPolicies build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/StagnatingBackingIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/StagnatingBackingIndices.java index 0870477e6a..bda1e49148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/StagnatingBackingIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/StagnatingBackingIndices.java @@ -146,6 +146,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer retryCount; + public Builder() { + } + private Builder(StagnatingBackingIndices instance) { + this.indexName = instance.indexName; + this.firstOccurrenceTimestamp = instance.firstOccurrenceTimestamp; + this.retryCount = instance.retryCount; + + } /** * Required - API name: {@code index_name} */ @@ -188,6 +196,12 @@ public StagnatingBackingIndices build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java index 0fbbd7623d..d186476dee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetError.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String index; + public Builder() { + } + private Builder(MultiGetError instance) { + this.error = instance.error; + this.id = instance.id; + this.index = instance.index; + + } /** * Required - API name: {@code error} */ @@ -190,6 +198,12 @@ public MultiGetError build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java index 1c618abb24..17f26d16c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mget/MultiGetOperation.java @@ -251,6 +251,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private VersionType versionType; + public Builder() { + } + private Builder(MultiGetOperation instance) { + this.id = instance.id; + this.index = instance.index; + this.routing = instance.routing; + this.source = instance.source; + this.storedFields = instance.storedFields; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Required - The unique document ID. *

                                                                                  @@ -374,6 +386,12 @@ public MultiGetOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java index 01bd268556..1bca5570a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultiSearchItem.java @@ -107,6 +107,12 @@ public static class Builder extends ResponseBody.AbstractBuilder instance) { + this.status = instance.status; + + } /** * API name: {@code status} */ @@ -133,6 +139,12 @@ public MultiSearchItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java index a3d95abc88..e9e385c2ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchHeader.java @@ -350,6 +350,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean ignoreThrottled; + public Builder() { + } + private Builder(MultisearchHeader instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.preference = instance.preference; + this.projectRouting = instance.projectRouting; + this.requestCache = instance.requestCache; + this.routing = instance.routing; + this.searchType = instance.searchType; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.ignoreThrottled = instance.ignoreThrottled; + + } /** * API name: {@code allow_no_indices} */ @@ -500,6 +517,12 @@ public MultisearchHeader build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java index 3e23b5b4cd..d54f00cceb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/RequestItem.java @@ -134,6 +134,13 @@ public static class Builder extends ObjectBuilderBase implements ObjectBuilder implement @Nullable private ScriptSource source; + public Builder() { + } + private Builder(TemplateConfig instance) { + this.explain = instance.explain; + this.id = instance.id; + this.params = instance.params; + this.profile = instance.profile; + this.source = instance.source; + + } /** * If true, returns detailed information about score calculation as * part of each hit. @@ -319,6 +329,12 @@ public TemplateConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java index d8a0257eba..aa73828b89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsOperation.java @@ -401,6 +401,24 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private VersionType versionType; + public Builder() { + } + private Builder(MultiTermVectorsOperation instance) { + this.id = instance.id; + this.index = instance.index; + this.doc = instance.doc; + this.fields = instance.fields; + this.fieldStatistics = instance.fieldStatistics; + this.filter = instance.filter; + this.offsets = instance.offsets; + this.payloads = instance.payloads; + this.positions = instance.positions; + this.routing = instance.routing; + this.termStatistics = instance.termStatistics; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * The ID of the document. *

                                                                                  @@ -594,6 +612,12 @@ public MultiTermVectorsOperation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java index 44a96541d8..3cc9e543aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/mtermvectors/MultiTermVectorsResult.java @@ -243,6 +243,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause error; + public Builder() { + } + private Builder(MultiTermVectorsResult instance) { + this.id = instance.id; + this.index = instance.index; + this.version = instance.version; + this.took = instance.took; + this.found = instance.found; + this.termVectors = instance.termVectors; + this.error = instance.error; + + } /** * API name: {@code _id} */ @@ -345,6 +357,12 @@ public MultiTermVectorsResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java index 4dabd3a461..1661c13447 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/DocumentRating.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer rating; + public Builder() { + } + private Builder(DocumentRating instance) { + this.id = instance.id; + this.index = instance.index; + this.rating = instance.rating; + + } /** * Required - The document ID. *

                                                                                  @@ -198,6 +206,12 @@ public DocumentRating build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java index ef398bcb25..58a511ba4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHit.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double score; + public Builder() { + } + private Builder(RankEvalHit instance) { + this.id = instance.id; + this.index = instance.index; + this.score = instance.score; + + } /** * Required - API name: {@code _id} */ @@ -184,6 +192,12 @@ public RankEvalHit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java index 50b6a87891..e5c1ce6d59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalHitItem.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Double rating; + public Builder() { + } + private Builder(RankEvalHitItem instance) { + this.hit = instance.hit; + this.rating = instance.rating; + + } /** * Required - API name: {@code hit} */ @@ -173,6 +180,12 @@ public RankEvalHitItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java index d3c38567f2..bb555997b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetric.java @@ -195,6 +195,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RankEvalMetricExpectedReciprocalRank expectedReciprocalRank; + public Builder() { + } + private Builder(RankEvalMetric instance) { + this.precision = instance.precision; + this.recall = instance.recall; + this.meanReciprocalRank = instance.meanReciprocalRank; + this.dcg = instance.dcg; + this.expectedReciprocalRank = instance.expectedReciprocalRank; + + } /** * API name: {@code precision} */ @@ -292,6 +302,12 @@ public RankEvalMetric build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java index 6fcce8281b..3561a236d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDetail.java @@ -208,6 +208,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Map> metricDetails; + public Builder() { + } + private Builder(RankEvalMetricDetail instance) { + this.metricScore = instance.metricScore; + this.unratedDocs = instance.unratedDocs; + this.hits = instance.hits; + this.metricDetails = instance.metricDetails; + + } /** * Required - The metric_score in the details section shows the contribution of * this query to the global quality metric score @@ -346,6 +355,12 @@ public RankEvalMetricDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java index 5fd9e2bb00..7e91c2cda7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricDiscountedCumulativeGain.java @@ -110,6 +110,12 @@ public static class Builder extends RankEvalMetricBase.AbstractBuilder @Nullable private Boolean normalize; + public Builder() { + } + private Builder(RankEvalMetricDiscountedCumulativeGain instance) { + this.normalize = instance.normalize; + + } /** * If set to true, this metric will calculate the Normalized DCG. *

                                                                                  @@ -138,6 +144,12 @@ public RankEvalMetricDiscountedCumulativeGain build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java index a2ab4cd420..30cdc70d54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricExpectedReciprocalRank.java @@ -105,6 +105,12 @@ public static class Builder extends RankEvalMetricBase.AbstractBuilder ObjectBuilder { private Integer maximumRelevance; + public Builder() { + } + private Builder(RankEvalMetricExpectedReciprocalRank instance) { + this.maximumRelevance = instance.maximumRelevance; + + } /** * Required - The highest relevance grade used in the user-supplied relevance * judgments. @@ -134,6 +140,12 @@ public RankEvalMetricExpectedReciprocalRank build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java index 7a1ec0452e..1b7c69ee83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricMeanReciprocalRank.java @@ -78,6 +78,11 @@ public static RankEvalMetricMeanReciprocalRank of( public static class Builder extends RankEvalMetricRatingTreshold.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(RankEvalMetricMeanReciprocalRank instance) { + + } @Override protected Builder self() { return this; @@ -96,6 +101,12 @@ public RankEvalMetricMeanReciprocalRank build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java index bdf5bf7be8..6df9fa1359 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricPrecision.java @@ -111,6 +111,12 @@ public static class Builder extends RankEvalMetricRatingTreshold.AbstractBuilder @Nullable private Boolean ignoreUnlabeled; + public Builder() { + } + private Builder(RankEvalMetricPrecision instance) { + this.ignoreUnlabeled = instance.ignoreUnlabeled; + + } /** * Controls how unlabeled documents in the search results are counted. If set to * true, unlabeled documents are ignored and neither count as relevant or @@ -141,6 +147,12 @@ public RankEvalMetricPrecision build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java index 005ecf589d..c5025f701b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalMetricRecall.java @@ -77,6 +77,11 @@ public static RankEvalMetricRecall of(Function implements ObjectBuilder { + public Builder() { + } + private Builder(RankEvalMetricRecall instance) { + + } @Override protected Builder self() { return this; @@ -95,6 +100,12 @@ public RankEvalMetricRecall build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java index a469393334..ab7f822f57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalQuery.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer size; + public Builder() { + } + private Builder(RankEvalQuery instance) { + this.query = instance.query; + this.size = instance.size; + + } /** * Required - API name: {@code query} */ @@ -183,6 +190,12 @@ public RankEvalQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java index 51a876bc18..a837fcdfe8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/RankEvalRequestItem.java @@ -213,6 +213,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map params; + public Builder() { + } + private Builder(RankEvalRequestItem instance) { + this.id = instance.id; + this.request = instance.request; + this.ratings = instance.ratings; + this.templateId = instance.templateId; + this.params = instance.params; + + } /** * Required - The search request’s ID, used to group result details later. *

                                                                                  @@ -329,6 +339,12 @@ public RankEvalRequestItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java index f612102163..61d5a8d31a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/rank_eval/UnratedDocument.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String index; + public Builder() { + } + private Builder(UnratedDocument instance) { + this.id = instance.id; + this.index = instance.index; + + } /** * Required - API name: {@code _id} */ @@ -160,6 +167,12 @@ public UnratedDocument build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java index 049663642b..da576d750e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Destination.java @@ -216,6 +216,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private VersionType versionType; + public Builder() { + } + private Builder(Destination instance) { + this.index = instance.index; + this.opType = instance.opType; + this.pipeline = instance.pipeline; + this.routing = instance.routing; + this.versionType = instance.versionType; + + } /** * Required - The name of the data stream, index, or index alias you are copying * to. @@ -315,6 +325,12 @@ public Destination build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java index 79deda7ce0..fc968d405b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/RemoteSource.java @@ -257,6 +257,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time socketTimeout; + public Builder() { + } + private Builder(RemoteSource instance) { + this.connectTimeout = instance.connectTimeout; + this.headers = instance.headers; + this.host = instance.host; + this.username = instance.username; + this.password = instance.password; + this.apiKey = instance.apiKey; + this.socketTimeout = instance.socketTimeout; + + } /** * The remote connection timeout. *

                                                                                  @@ -383,6 +395,12 @@ public RemoteSource build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java index 2e0102711f..4303dcef36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex/Source.java @@ -304,6 +304,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map runtimeMappings; + public Builder() { + } + private Builder(Source instance) { + this.index = instance.index; + this.query = instance.query; + this.remote = instance.remote; + this.size = instance.size; + this.slice = instance.slice; + this.sort = instance.sort; + this.sourceFields = instance.sourceFields; + this.runtimeMappings = instance.runtimeMappings; + + } /** * Required - The name of the data stream, index, or alias you are copying from. * It accepts a comma-separated list to reindex from multiple sources. @@ -548,6 +561,12 @@ public Source build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java index b88f338ce3..f0f587c600 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexNode.java @@ -107,6 +107,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends BaseNode.AbstractBuilder implements ObjectBuilder { private Map tasks; + public Builder() { + } + private Builder(ReindexNode instance) { + this.tasks = instance.tasks; + + } /** * Required - API name: {@code tasks} *

                                                                                  @@ -154,6 +160,12 @@ public ReindexNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java index ddf2f0ddcc..e92db35b33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/reindex_rethrottle/ReindexTask.java @@ -283,6 +283,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map> headers; + public Builder() { + } + private Builder(ReindexTask instance) { + this.action = instance.action; + this.cancellable = instance.cancellable; + this.cancelled = instance.cancelled; + this.description = instance.description; + this.id = instance.id; + this.node = instance.node; + this.runningTimeInNanos = instance.runningTimeInNanos; + this.startTimeInMillis = instance.startTimeInMillis; + this.status = instance.status; + this.type = instance.type; + this.headers = instance.headers; + + } /** * Required - API name: {@code action} */ @@ -408,6 +424,12 @@ public ReindexTask build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java index a19256aafb..0deb0f9af3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/scripts_painless_execute/PainlessContextSetup.java @@ -170,6 +170,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Query query; + public Builder() { + } + private Builder(PainlessContextSetup instance) { + this.document = instance.document; + this.index = instance.index; + this.query = instance.query; + + } /** * Required - Document that's temporarily indexed in-memory and accessible from * the script. @@ -249,6 +257,12 @@ public PainlessContextSetup build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java index d1d38e39af..3c52a2db7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationBreakdown.java @@ -291,6 +291,23 @@ public static class Builder extends WithJsonObjectBuilderBase private Long reduceCount; + public Builder() { + } + private Builder(AggregationBreakdown instance) { + this.buildAggregation = instance.buildAggregation; + this.buildAggregationCount = instance.buildAggregationCount; + this.buildLeafCollector = instance.buildLeafCollector; + this.buildLeafCollectorCount = instance.buildLeafCollectorCount; + this.collect = instance.collect; + this.collectCount = instance.collectCount; + this.initialize = instance.initialize; + this.initializeCount = instance.initializeCount; + this.postCollection = instance.postCollection; + this.postCollectionCount = instance.postCollectionCount; + this.reduce = instance.reduce; + this.reduceCount = instance.reduceCount; + + } /** * Required - API name: {@code build_aggregation} */ @@ -405,6 +422,12 @@ public AggregationBreakdown build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java index 22ee9201d8..3f299ad0b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfile.java @@ -204,6 +204,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List children; + public Builder() { + } + private Builder(AggregationProfile instance) { + this.breakdown = instance.breakdown; + this.description = instance.description; + this.timeInNanos = instance.timeInNanos; + this.type = instance.type; + this.debug = instance.debug; + this.children = instance.children; + + } /** * Required - API name: {@code breakdown} */ @@ -306,6 +317,12 @@ public AggregationProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java index a15a890254..0b2a6d2dd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDebug.java @@ -748,6 +748,43 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer skippedDueToNoData; + public Builder() { + } + private Builder(AggregationProfileDebug instance) { + this.segmentsWithMultiValuedOrds = instance.segmentsWithMultiValuedOrds; + this.collectionStrategy = instance.collectionStrategy; + this.segmentsWithSingleValuedOrds = instance.segmentsWithSingleValuedOrds; + this.totalBuckets = instance.totalBuckets; + this.builtBuckets = instance.builtBuckets; + this.resultStrategy = instance.resultStrategy; + this.hasFilter = instance.hasFilter; + this.delegate = instance.delegate; + this.delegateDebug = instance.delegateDebug; + this.charsFetched = instance.charsFetched; + this.extractCount = instance.extractCount; + this.extractNs = instance.extractNs; + this.valuesFetched = instance.valuesFetched; + this.collectAnalyzedNs = instance.collectAnalyzedNs; + this.collectAnalyzedCount = instance.collectAnalyzedCount; + this.survivingBuckets = instance.survivingBuckets; + this.ordinalsCollectorsUsed = instance.ordinalsCollectorsUsed; + this.ordinalsCollectorsOverheadTooHigh = instance.ordinalsCollectorsOverheadTooHigh; + this.stringHashingCollectorsUsed = instance.stringHashingCollectorsUsed; + this.numericCollectorsUsed = instance.numericCollectorsUsed; + this.emptyCollectorsUsed = instance.emptyCollectorsUsed; + this.deferredAggregators = instance.deferredAggregators; + this.segmentsWithDocCountField = instance.segmentsWithDocCountField; + this.segmentsWithDeletedDocs = instance.segmentsWithDeletedDocs; + this.filters = instance.filters; + this.segmentsCounted = instance.segmentsCounted; + this.segmentsCollected = instance.segmentsCollected; + this.mapReducer = instance.mapReducer; + this.bruteForceUsed = instance.bruteForceUsed; + this.dynamicPruningAttempted = instance.dynamicPruningAttempted; + this.dynamicPruningUsed = instance.dynamicPruningUsed; + this.skippedDueToNoData = instance.skippedDueToNoData; + + } /** * API name: {@code segments_with_multi_valued_ords} */ @@ -1065,6 +1102,12 @@ public AggregationProfileDebug build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java index 0c2be9c00d..9d0631be67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/AggregationProfileDelegateDebugFilter.java @@ -180,6 +180,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer segmentsCountedInConstantTime; + public Builder() { + } + private Builder(AggregationProfileDelegateDebugFilter instance) { + this.resultsFromMetadata = instance.resultsFromMetadata; + this.query = instance.query; + this.specializedFor = instance.specializedFor; + this.segmentsCountedInConstantTime = instance.segmentsCountedInConstantTime; + + } /** * API name: {@code results_from_metadata} */ @@ -230,6 +239,12 @@ public AggregationProfileDelegateDebugFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Collector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Collector.java index faeda0c4cd..2ab54b68b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Collector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Collector.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List children; + public Builder() { + } + private Builder(Collector instance) { + this.name = instance.name; + this.reason = instance.reason; + this.timeInNanos = instance.timeInNanos; + this.children = instance.children; + + } /** * Required - API name: {@code name} */ @@ -238,6 +247,12 @@ public Collector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionContext.java index 474ceadf2d..2f5037aa56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionContext.java @@ -216,6 +216,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean prefix; + public Builder() { + } + private Builder(CompletionContext instance) { + this.boost = instance.boost; + this.context = instance.context; + this.neighbours = instance.neighbours; + this.precision = instance.precision; + this.prefix = instance.prefix; + + } /** * The factor by which the score of the suggestion should be boosted. The score * is computed by multiplying the boost with the suggestion weight. @@ -346,6 +356,12 @@ public CompletionContext build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggest.java index 3671ce2a38..05f1236ba5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggest.java @@ -125,6 +125,12 @@ public static class Builder extends SuggestBase.AbstractBuilder tDocumentSerializer; + public Builder() { + } + private Builder(CompletionSuggest instance) { + this.options = instance.options; + + } /** * Required - API name: {@code options} *

                                                                                  @@ -183,6 +189,12 @@ public CompletionSuggest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggestOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggestOption.java index 382271a6b3..73a865a3a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggestOption.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggestOption.java @@ -307,6 +307,20 @@ public static class Builder extends WithJsonObjectBuilderBase tDocumentSerializer; + public Builder() { + } + private Builder(CompletionSuggestOption instance) { + this.collateMatch = instance.collateMatch; + this.contexts = instance.contexts; + this.fields = instance.fields; + this.id = instance.id; + this.index = instance.index; + this.routing = instance.routing; + this.score = instance.score; + this.source = instance.source; + this.text = instance.text; + + } /** * API name: {@code collate_match} */ @@ -442,6 +456,12 @@ public CompletionSuggestOption build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggester.java index e5a4a0e977..0a62358576 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/CompletionSuggester.java @@ -196,6 +196,15 @@ public static class Builder extends SuggesterBase.AbstractBuilder @Nullable private Boolean skipDuplicates; + public Builder() { + } + private Builder(CompletionSuggester instance) { + this.contexts = instance.contexts; + this.fuzzy = instance.fuzzy; + this.regex = instance.regex; + this.skipDuplicates = instance.skipDuplicates; + + } /** * A value, geo point object, or a geo hash string to filter or boost the * suggestion on. @@ -290,6 +299,12 @@ public CompletionSuggester build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsKnnProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsKnnProfile.java index 2c9d3e46e0..d1953dbc55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsKnnProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsKnnProfile.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List collector; + public Builder() { + } + private Builder(DfsKnnProfile instance) { + this.vectorOperationsCount = instance.vectorOperationsCount; + this.query = instance.query; + this.rewriteTime = instance.rewriteTime; + this.collector = instance.collector; + + } /** * API name: {@code vector_operations_count} */ @@ -269,6 +278,12 @@ public DfsKnnProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsProfile.java index 466ceba235..7ca487e8e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsProfile.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List knn; + public Builder() { + } + private Builder(DfsProfile instance) { + this.statistics = instance.statistics; + this.knn = instance.knn; + + } /** * API name: {@code statistics} */ @@ -203,6 +210,12 @@ public DfsProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsBreakdown.java index 7ec6c908f4..b081993cf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsBreakdown.java @@ -220,6 +220,19 @@ public static class Builder extends WithJsonObjectBuilderBase private Long termStatisticsCount; + public Builder() { + } + private Builder(DfsStatisticsBreakdown instance) { + this.collectionStatistics = instance.collectionStatistics; + this.collectionStatisticsCount = instance.collectionStatisticsCount; + this.createWeight = instance.createWeight; + this.createWeightCount = instance.createWeightCount; + this.rewrite = instance.rewrite; + this.rewriteCount = instance.rewriteCount; + this.termStatistics = instance.termStatistics; + this.termStatisticsCount = instance.termStatisticsCount; + + } /** * Required - API name: {@code collection_statistics} */ @@ -302,6 +315,12 @@ public DfsStatisticsBreakdown build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsProfile.java index 26067ea490..07f8c48062 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DfsStatisticsProfile.java @@ -231,6 +231,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List children; + public Builder() { + } + private Builder(DfsStatisticsProfile instance) { + this.type = instance.type; + this.description = instance.description; + this.time = instance.time; + this.timeInNanos = instance.timeInNanos; + this.breakdown = instance.breakdown; + this.debug = instance.debug; + this.children = instance.children; + + } /** * Required - API name: {@code type} */ @@ -353,6 +365,12 @@ public DfsStatisticsProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java index 5770906502..35eae6abf8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/DirectGenerator.java @@ -355,6 +355,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SuggestMode suggestMode; + public Builder() { + } + private Builder(DirectGenerator instance) { + this.field = instance.field; + this.maxEdits = instance.maxEdits; + this.maxInspections = instance.maxInspections; + this.maxTermFreq = instance.maxTermFreq; + this.minDocFreq = instance.minDocFreq; + this.minWordLength = instance.minWordLength; + this.postFilter = instance.postFilter; + this.preFilter = instance.preFilter; + this.prefixLength = instance.prefixLength; + this.size = instance.size; + this.suggestMode = instance.suggestMode; + + } /** * Required - The field to fetch the candidate suggestions from. Needs to be set * globally or per suggestion. @@ -502,6 +518,12 @@ public DirectGenerator build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java index d5687f934a..ba3f434f55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfile.java @@ -202,6 +202,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List children; + public Builder() { + } + private Builder(FetchProfile instance) { + this.type = instance.type; + this.description = instance.description; + this.timeInNanos = instance.timeInNanos; + this.breakdown = instance.breakdown; + this.debug = instance.debug; + this.children = instance.children; + + } /** * Required - API name: {@code type} */ @@ -304,6 +315,12 @@ public FetchProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java index 5536fbed66..fe92c45a04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileBreakdown.java @@ -258,6 +258,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer process; + public Builder() { + } + private Builder(FetchProfileBreakdown instance) { + this.loadSource = instance.loadSource; + this.loadSourceCount = instance.loadSourceCount; + this.loadStoredFields = instance.loadStoredFields; + this.loadStoredFieldsCount = instance.loadStoredFieldsCount; + this.nextReader = instance.nextReader; + this.nextReaderCount = instance.nextReaderCount; + this.processCount = instance.processCount; + this.process = instance.process; + + } /** * API name: {@code load_source} */ @@ -340,6 +353,12 @@ public FetchProfileBreakdown build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java index 000dafda01..6a65cf7fd7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FetchProfileDebug.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer fastPath; + public Builder() { + } + private Builder(FetchProfileDebug instance) { + this.storedFields = instance.storedFields; + this.fastPath = instance.fastPath; + + } /** * API name: {@code stored_fields} *

                                                                                  @@ -188,6 +195,12 @@ public FetchProfileDebug build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java index 074b875be1..31cca45681 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/FieldCollapse.java @@ -184,6 +184,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FieldCollapse collapse; + public Builder() { + } + private Builder(FieldCollapse instance) { + this.field = instance.field; + this.innerHits = instance.innerHits; + this.maxConcurrentGroupSearches = instance.maxConcurrentGroupSearches; + this.collapse = instance.collapse; + + } /** * Required - The field to collapse the result set on *

                                                                                  @@ -273,6 +282,12 @@ public FieldCollapse build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java index 07d4936c46..81a7a485e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Highlight.java @@ -128,6 +128,13 @@ public static class Builder extends HighlightBase.AbstractBuilder imple private List> fields; + public Builder() { + } + private Builder(Highlight instance) { + this.encoder = instance.encoder; + this.fields = instance.fields; + + } /** * API name: {@code encoder} */ @@ -175,6 +182,12 @@ public Highlight build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java index 188995237e..3f4dcaa0ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HighlightField.java @@ -129,6 +129,13 @@ public static class Builder extends HighlightBase.AbstractBuilder @Nullable private List matchedFields; + public Builder() { + } + private Builder(HighlightField instance) { + this.fragmentOffset = instance.fragmentOffset; + this.matchedFields = instance.matchedFields; + + } /** * API name: {@code fragment_offset} */ @@ -175,6 +182,12 @@ public HighlightField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java index 9a9ff178c7..24843e249f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Hit.java @@ -559,6 +559,31 @@ public static class Builder extends WithJsonObjectBuilderBase tDocumentSerializer; + public Builder() { + } + private Builder(Hit instance) { + this.index = instance.index; + this.id = instance.id; + this.score = instance.score; + this.explanation = instance.explanation; + this.fields = instance.fields; + this.highlight = instance.highlight; + this.innerHits = instance.innerHits; + this.matchedQueries = instance.matchedQueries; + this.nested = instance.nested; + this.ignored = instance.ignored; + this.ignoredFieldValues = instance.ignoredFieldValues; + this.shard = instance.shard; + this.node = instance.node; + this.routing = instance.routing; + this.source = instance.source; + this.rank = instance.rank; + this.seqNo = instance.seqNo; + this.primaryTerm = instance.primaryTerm; + this.version = instance.version; + this.sort = instance.sort; + + } /** * Required - API name: {@code _index} */ @@ -915,6 +940,12 @@ public Hit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java index b531bf11b3..9ba283dcb5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/HitsMetadata.java @@ -175,6 +175,14 @@ public static class Builder extends WithJsonObjectBuilderBase> @Nullable private JsonpSerializer tSerializer; + public Builder() { + } + private Builder(HitsMetadata instance) { + this.total = instance.total; + this.hits = instance.hits; + this.maxScore = instance.maxScore; + + } /** * Total hit count information, present only if track_total_hits * wasn't false in the search request. @@ -260,6 +268,12 @@ public HitsMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java index 503ea8d288..a8f93a699d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHits.java @@ -450,6 +450,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean version; + public Builder() { + } + private Builder(InnerHits instance) { + this.name = instance.name; + this.size = instance.size; + this.from = instance.from; + this.collapse = instance.collapse; + this.docvalueFields = instance.docvalueFields; + this.explain = instance.explain; + this.highlight = instance.highlight; + this.ignoreUnmapped = instance.ignoreUnmapped; + this.scriptFields = instance.scriptFields; + this.seqNoPrimaryTerm = instance.seqNoPrimaryTerm; + this.fields = instance.fields; + this.sort = instance.sort; + this.source = instance.source; + this.storedFields = instance.storedFields; + this.trackScores = instance.trackScores; + this.version = instance.version; + + } /** * The name for the particular inner hit definition in the response. Useful when * a search request contains multiple inner hits. @@ -720,6 +741,12 @@ public InnerHits build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHitsResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHitsResult.java index 570c28ffeb..56c74d85f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHitsResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/InnerHitsResult.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private HitsMetadata hits; + public Builder() { + } + private Builder(InnerHitsResult instance) { + this.hits = instance.hits; + + } /** * Required - API name: {@code hits} */ @@ -144,6 +150,12 @@ public InnerHitsResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnCollectorResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnCollectorResult.java index 1738ba40b7..eb0296c4a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnCollectorResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnCollectorResult.java @@ -190,6 +190,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List children; + public Builder() { + } + private Builder(KnnCollectorResult instance) { + this.name = instance.name; + this.reason = instance.reason; + this.time = instance.time; + this.timeInNanos = instance.timeInNanos; + this.children = instance.children; + + } /** * Required - API name: {@code name} */ @@ -276,6 +286,12 @@ public KnnCollectorResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileBreakdown.java index 2320a88528..5825b713ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileBreakdown.java @@ -401,6 +401,31 @@ public static class Builder extends WithJsonObjectBuilderBase private Long shallowAdvanceCount; + public Builder() { + } + private Builder(KnnQueryProfileBreakdown instance) { + this.advance = instance.advance; + this.advanceCount = instance.advanceCount; + this.buildScorer = instance.buildScorer; + this.buildScorerCount = instance.buildScorerCount; + this.computeMaxScore = instance.computeMaxScore; + this.computeMaxScoreCount = instance.computeMaxScoreCount; + this.countWeight = instance.countWeight; + this.countWeightCount = instance.countWeightCount; + this.createWeight = instance.createWeight; + this.createWeightCount = instance.createWeightCount; + this.match = instance.match; + this.matchCount = instance.matchCount; + this.nextDoc = instance.nextDoc; + this.nextDocCount = instance.nextDocCount; + this.score = instance.score; + this.scoreCount = instance.scoreCount; + this.setMinCompetitiveScore = instance.setMinCompetitiveScore; + this.setMinCompetitiveScoreCount = instance.setMinCompetitiveScoreCount; + this.shallowAdvance = instance.shallowAdvance; + this.shallowAdvanceCount = instance.shallowAdvanceCount; + + } /** * Required - API name: {@code advance} */ @@ -579,6 +604,12 @@ public KnnQueryProfileBreakdown build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileResult.java index e52aaf1166..8552f2b1aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/KnnQueryProfileResult.java @@ -231,6 +231,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List children; + public Builder() { + } + private Builder(KnnQueryProfileResult instance) { + this.type = instance.type; + this.description = instance.description; + this.time = instance.time; + this.timeInNanos = instance.timeInNanos; + this.breakdown = instance.breakdown; + this.debug = instance.debug; + this.children = instance.children; + + } /** * Required - API name: {@code type} */ @@ -354,6 +366,12 @@ public KnnQueryProfileResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LaplaceSmoothingModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LaplaceSmoothingModel.java index 1ed39afd1e..46fa125fee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LaplaceSmoothingModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LaplaceSmoothingModel.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Double alpha; + public Builder() { + } + private Builder(LaplaceSmoothingModel instance) { + this.alpha = instance.alpha; + + } /** * Required - A constant that is added to all counts to balance weights. *

                                                                                  @@ -150,6 +156,12 @@ public LaplaceSmoothingModel build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LearningToRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LearningToRank.java index 38420cc9ad..a3876c9c04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LearningToRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LearningToRank.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map params; + public Builder() { + } + private Builder(LearningToRank instance) { + this.modelId = instance.modelId; + this.params = instance.params; + + } /** * Required - The unique identifier of the trained model uploaded to * Elasticsearch @@ -204,6 +211,12 @@ public LearningToRank build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java index 69916ca2ae..0ec5880440 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/LinearInterpolationSmoothingModel.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Double unigramLambda; + public Builder() { + } + private Builder(LinearInterpolationSmoothingModel instance) { + this.bigramLambda = instance.bigramLambda; + this.trigramLambda = instance.trigramLambda; + this.unigramLambda = instance.unigramLambda; + + } /** * Required - API name: {@code bigram_lambda} */ @@ -193,6 +201,12 @@ public LinearInterpolationSmoothingModel build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java index ae97be72df..d1e4c5b4eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/NestedIdentity.java @@ -148,6 +148,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private NestedIdentity nested; + public Builder() { + } + private Builder(NestedIdentity instance) { + this.field = instance.field; + this.offset = instance.offset; + this.nested = instance.nested; + + } /** * Required - API name: {@code field} */ @@ -197,6 +205,12 @@ public NestedIdentity build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java index f04733d5b0..f4bf4f6675 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggest.java @@ -112,6 +112,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends SuggestBase.AbstractBuilder implements ObjectBuilder { private List options; + public Builder() { + } + private Builder(PhraseSuggest instance) { + this.options = instance.options; + + } /** * Required - API name: {@code options} *

                                                                                  @@ -159,6 +165,12 @@ public PhraseSuggest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java index 08a7d3e97b..4b3c1b5536 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollate.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase private PhraseSuggestCollateQuery query; + public Builder() { + } + private Builder(PhraseSuggestCollate instance) { + this.params = instance.params; + this.prune = instance.prune; + this.query = instance.query; + + } /** * Parameters to use if the query is templated. *

                                                                                  @@ -240,6 +248,12 @@ public PhraseSuggestCollate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java index b668f936cf..802d4d03f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestCollateQuery.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ScriptSource source; + public Builder() { + } + private Builder(PhraseSuggestCollateQuery instance) { + this.id = instance.id; + this.source = instance.source; + + } /** * The search template ID. *

                                                                                  @@ -190,6 +197,12 @@ public PhraseSuggestCollateQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java index 779aa0e84d..2ff7631823 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestHighlight.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String preTag; + public Builder() { + } + private Builder(PhraseSuggestHighlight instance) { + this.postTag = instance.postTag; + this.preTag = instance.preTag; + + } /** * Required - Use in conjunction with pre_tag to define the HTML * tags to use for the highlighted text. @@ -174,6 +181,12 @@ public PhraseSuggestHighlight build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java index ff01290ea6..7d9b68f9a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggestOption.java @@ -171,6 +171,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean collateMatch; + public Builder() { + } + private Builder(PhraseSuggestOption instance) { + this.text = instance.text; + this.score = instance.score; + this.highlighted = instance.highlighted; + this.collateMatch = instance.collateMatch; + + } /** * Required - API name: {@code text} */ @@ -221,6 +230,12 @@ public PhraseSuggestOption build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java index ea147170b1..e092319231 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PhraseSuggester.java @@ -397,6 +397,24 @@ public static class Builder extends SuggesterBase.AbstractBuilder @Nullable private Integer tokenLimit; + public Builder() { + } + private Builder(PhraseSuggester instance) { + this.collate = instance.collate; + this.confidence = instance.confidence; + this.directGenerator = instance.directGenerator; + this.forceUnigrams = instance.forceUnigrams; + this.gramSize = instance.gramSize; + this.highlight = instance.highlight; + this.maxErrors = instance.maxErrors; + this.realWordErrorLikelihood = instance.realWordErrorLikelihood; + this.separator = instance.separator; + this.shardSize = instance.shardSize; + this.smoothing = instance.smoothing; + this.text = instance.text; + this.tokenLimit = instance.tokenLimit; + + } /** * Checks each suggestion against the specified query to prune suggestions for * which no matching docs exist in the index. @@ -628,6 +646,12 @@ public PhraseSuggester build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java index c3b48521a1..782e72f1ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/PointInTimeReference.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time keepAlive; + public Builder() { + } + private Builder(PointInTimeReference instance) { + this.id = instance.id; + this.keepAlive = instance.keepAlive; + + } /** * Required - API name: {@code id} */ @@ -176,6 +183,12 @@ public PointInTimeReference build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java index 8e9b52041a..87a3ba7fce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Profile.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List shards; + public Builder() { + } + private Builder(Profile instance) { + this.shards = instance.shards; + + } /** * Required - API name: {@code shards} *

                                                                                  @@ -166,6 +172,12 @@ public Profile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java index 157940dc57..72198dd163 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryBreakdown.java @@ -399,6 +399,31 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long setMinCompetitiveScoreCount; + public Builder() { + } + private Builder(QueryBreakdown instance) { + this.advance = instance.advance; + this.advanceCount = instance.advanceCount; + this.buildScorer = instance.buildScorer; + this.buildScorerCount = instance.buildScorerCount; + this.createWeight = instance.createWeight; + this.createWeightCount = instance.createWeightCount; + this.match = instance.match; + this.matchCount = instance.matchCount; + this.shallowAdvance = instance.shallowAdvance; + this.shallowAdvanceCount = instance.shallowAdvanceCount; + this.nextDoc = instance.nextDoc; + this.nextDocCount = instance.nextDocCount; + this.score = instance.score; + this.scoreCount = instance.scoreCount; + this.computeMaxScore = instance.computeMaxScore; + this.computeMaxScoreCount = instance.computeMaxScoreCount; + this.countWeight = instance.countWeight; + this.countWeightCount = instance.countWeightCount; + this.setMinCompetitiveScore = instance.setMinCompetitiveScore; + this.setMinCompetitiveScoreCount = instance.setMinCompetitiveScoreCount; + + } /** * Required - API name: {@code advance} */ @@ -577,6 +602,12 @@ public QueryBreakdown build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java index fd50c77eb2..754cc201ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/QueryProfile.java @@ -182,6 +182,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List children; + public Builder() { + } + private Builder(QueryProfile instance) { + this.breakdown = instance.breakdown; + this.description = instance.description; + this.timeInNanos = instance.timeInNanos; + this.type = instance.type; + this.children = instance.children; + + } /** * Required - API name: {@code breakdown} */ @@ -268,6 +278,12 @@ public QueryProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java index 9cb077b806..b4e441532f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RegexOptions.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer maxDeterminizedStates; + public Builder() { + } + private Builder(RegexOptions instance) { + this.flags = instance.flags; + this.maxDeterminizedStates = instance.maxDeterminizedStates; + + } /** * Optional operators for the regular expression. *

                                                                                  @@ -179,6 +186,12 @@ public RegexOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java index 45be3d8c84..186d5160de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/RescoreQuery.java @@ -191,6 +191,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ScoreMode scoreMode; + public Builder() { + } + private Builder(RescoreQuery instance) { + this.query = instance.query; + this.queryWeight = instance.queryWeight; + this.rescoreQueryWeight = instance.rescoreQueryWeight; + this.scoreMode = instance.scoreMode; + + } /** * Required - The query to use for rescoring. This query is only run on the * Top-K results returned by the query and post_filter @@ -274,6 +283,12 @@ public RescoreQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScriptRescore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScriptRescore.java index 281f330a20..11ec40e301 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScriptRescore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ScriptRescore.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Script script; + public Builder() { + } + private Builder(ScriptRescore instance) { + this.script = instance.script; + + } /** * Required - API name: {@code script} */ @@ -152,6 +158,12 @@ public ScriptRescore build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchProfile.java index 8a72c8b9c9..24f0969710 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchProfile.java @@ -156,6 +156,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long rewriteTime; + public Builder() { + } + private Builder(SearchProfile instance) { + this.collector = instance.collector; + this.query = instance.query; + this.rewriteTime = instance.rewriteTime; + + } /** * Required - API name: {@code collector} *

                                                                                  @@ -240,6 +248,12 @@ public SearchProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchRequestBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchRequestBody.java index f8b37fb9b9..9a166f52a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchRequestBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SearchRequestBody.java @@ -972,6 +972,45 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List stats; + public Builder() { + } + private Builder(SearchRequestBody instance) { + this.aggregations = instance.aggregations; + this.collapse = instance.collapse; + this.explain = instance.explain; + this.ext = instance.ext; + this.from = instance.from; + this.highlight = instance.highlight; + this.trackTotalHits = instance.trackTotalHits; + this.indicesBoost = instance.indicesBoost; + this.docvalueFields = instance.docvalueFields; + this.knn = instance.knn; + this.rank = instance.rank; + this.minScore = instance.minScore; + this.postFilter = instance.postFilter; + this.profile = instance.profile; + this.query = instance.query; + this.rescore = instance.rescore; + this.retriever = instance.retriever; + this.scriptFields = instance.scriptFields; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.slice = instance.slice; + this.sort = instance.sort; + this.source = instance.source; + this.fields = instance.fields; + this.suggest = instance.suggest; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.trackScores = instance.trackScores; + this.version = instance.version; + this.seqNoPrimaryTerm = instance.seqNoPrimaryTerm; + this.storedFields = instance.storedFields; + this.pit = instance.pit; + this.runtimeMappings = instance.runtimeMappings; + this.stats = instance.stats; + + } /** * Defines the aggregations that are run as part of the search request. *

                                                                                  @@ -1946,6 +1985,12 @@ public SearchRequestBody build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ShardProfile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ShardProfile.java index bfead3d104..e65445d8fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ShardProfile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/ShardProfile.java @@ -257,6 +257,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer shardId; + public Builder() { + } + private Builder(ShardProfile instance) { + this.aggregations = instance.aggregations; + this.cluster = instance.cluster; + this.dfs = instance.dfs; + this.fetch = instance.fetch; + this.id = instance.id; + this.index = instance.index; + this.nodeId = instance.nodeId; + this.searches = instance.searches; + this.shardId = instance.shardId; + + } /** * Required - API name: {@code aggregations} *

                                                                                  @@ -403,6 +417,12 @@ public ShardProfile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java index 8d661dc633..a4aad70fac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceFilter.java @@ -174,6 +174,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List includes; + public Builder() { + } + private Builder(SourceFilter instance) { + this.excludeVectors = instance.excludeVectors; + this.excludes = instance.excludes; + this.includes = instance.includes; + + } /** * If true, vector fields are excluded from the returned source. *

                                                                                  @@ -253,6 +261,12 @@ public SourceFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StupidBackoffSmoothingModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StupidBackoffSmoothingModel.java index baaad78cea..a8bab4fe21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StupidBackoffSmoothingModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/StupidBackoffSmoothingModel.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Double discount; + public Builder() { + } + private Builder(StupidBackoffSmoothingModel instance) { + this.discount = instance.discount; + + } /** * Required - A constant factor that the lower order n-gram model is discounted * by. @@ -152,6 +158,12 @@ public StupidBackoffSmoothingModel build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SuggestFuzziness.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SuggestFuzziness.java index 48769d6c03..75b75382c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SuggestFuzziness.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SuggestFuzziness.java @@ -211,6 +211,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean unicodeAware; + public Builder() { + } + private Builder(SuggestFuzziness instance) { + this.fuzziness = instance.fuzziness; + this.minLength = instance.minLength; + this.prefixLength = instance.prefixLength; + this.transpositions = instance.transpositions; + this.unicodeAware = instance.unicodeAware; + + } /** * The fuzziness factor. *

                                                                                  @@ -282,6 +292,12 @@ public SuggestFuzziness build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Suggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Suggester.java index 47477ebfe3..99e6c660b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Suggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/Suggester.java @@ -182,6 +182,12 @@ public final Builder suggesters(String key, @Nullable private String text; + public Builder() { + } + private Builder(Suggester instance) { + this.text = instance.text; + + } /** * Global suggest text, to avoid repetition when the same text is used in * several suggesters @@ -211,6 +217,12 @@ public Suggester build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggest.java index bf022fb067..73bd8eef60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggest.java @@ -112,6 +112,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends SuggestBase.AbstractBuilder implements ObjectBuilder { private List options; + public Builder() { + } + private Builder(TermSuggest instance) { + this.options = instance.options; + + } /** * Required - API name: {@code options} *

                                                                                  @@ -159,6 +165,12 @@ public TermSuggest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggestOption.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggestOption.java index aadb7d1ef8..7f29581f02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggestOption.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggestOption.java @@ -185,6 +185,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean collateMatch; + public Builder() { + } + private Builder(TermSuggestOption instance) { + this.text = instance.text; + this.score = instance.score; + this.freq = instance.freq; + this.highlighted = instance.highlighted; + this.collateMatch = instance.collateMatch; + + } /** * Required - API name: {@code text} */ @@ -243,6 +253,12 @@ public TermSuggestOption build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggester.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggester.java index 9bf21a8c29..5e6fcbe107 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggester.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TermSuggester.java @@ -368,6 +368,23 @@ public static class Builder extends SuggesterBase.AbstractBuilder imple @Nullable private String text; + public Builder() { + } + private Builder(TermSuggester instance) { + this.lowercaseTerms = instance.lowercaseTerms; + this.maxEdits = instance.maxEdits; + this.maxInspections = instance.maxInspections; + this.maxTermFreq = instance.maxTermFreq; + this.minDocFreq = instance.minDocFreq; + this.minWordLength = instance.minWordLength; + this.prefixLength = instance.prefixLength; + this.shardSize = instance.shardSize; + this.sort = instance.sort; + this.stringDistance = instance.stringDistance; + this.suggestMode = instance.suggestMode; + this.text = instance.text; + + } /** * API name: {@code lowercase_terms} */ @@ -520,6 +537,12 @@ public TermSuggester build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TotalHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TotalHits.java index da0129f2ce..542d17d8a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TotalHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/TotalHits.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long value; + public Builder() { + } + private Builder(TotalHits instance) { + this.relation = instance.relation; + this.value = instance.value; + + } /** * Required - API name: {@code relation} */ @@ -164,6 +171,12 @@ public TotalHits build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } /** * Json deserializer for {@link TotalHits} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/SearchShardsNodeAttributes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/SearchShardsNodeAttributes.java index 7a7d09a40c..ead48205ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/SearchShardsNodeAttributes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/SearchShardsNodeAttributes.java @@ -259,6 +259,20 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer maxIndexVersion; + public Builder() { + } + private Builder(SearchShardsNodeAttributes instance) { + this.name = instance.name; + this.ephemeralId = instance.ephemeralId; + this.transportAddress = instance.transportAddress; + this.externalId = instance.externalId; + this.attributes = instance.attributes; + this.roles = instance.roles; + this.version = instance.version; + this.minIndexVersion = instance.minIndexVersion; + this.maxIndexVersion = instance.maxIndexVersion; + + } /** * Required - The human-readable identifier of the node. *

                                                                                  @@ -383,6 +397,12 @@ public SearchShardsNodeAttributes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/ShardStoreIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/ShardStoreIndex.java index ca1d43c0e6..75a5282cf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/ShardStoreIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search_shards/ShardStoreIndex.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Query filter; + public Builder() { + } + private Builder(ShardStoreIndex instance) { + this.aliases = instance.aliases; + this.filter = instance.filter; + + } /** * API name: {@code aliases} *

                                                                                  @@ -204,6 +211,12 @@ public ShardStoreIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/FieldStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/FieldStatistics.java index 429ad7c83a..02633fe937 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/FieldStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/FieldStatistics.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sumTtf; + public Builder() { + } + private Builder(FieldStatistics instance) { + this.docCount = instance.docCount; + this.sumDocFreq = instance.sumDocFreq; + this.sumTtf = instance.sumTtf; + + } /** * Required - API name: {@code doc_count} */ @@ -183,6 +191,12 @@ public FieldStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java index 9651c8b6f6..21269a8b93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Filter.java @@ -251,6 +251,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer minWordLength; + public Builder() { + } + private Builder(Filter instance) { + this.maxDocFreq = instance.maxDocFreq; + this.maxNumTerms = instance.maxNumTerms; + this.maxTermFreq = instance.maxTermFreq; + this.maxWordLength = instance.maxWordLength; + this.minDocFreq = instance.minDocFreq; + this.minTermFreq = instance.minTermFreq; + this.minWordLength = instance.minWordLength; + + } /** * Ignore words which occur in more than this many docs. Defaults to unbounded. *

                                                                                  @@ -341,6 +353,12 @@ public Filter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java index 77d1c38f3a..be695c7bb9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Term.java @@ -196,6 +196,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer ttf; + public Builder() { + } + private Builder(Term instance) { + this.docFreq = instance.docFreq; + this.score = instance.score; + this.termFreq = instance.termFreq; + this.tokens = instance.tokens; + this.ttf = instance.ttf; + + } /** * API name: {@code doc_freq} */ @@ -275,6 +285,12 @@ public Term build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java index fb53bb7b9e..1731becca1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/TermVector.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map terms; + public Builder() { + } + private Builder(TermVector instance) { + this.fieldStatistics = instance.fieldStatistics; + this.terms = instance.terms; + + } /** * API name: {@code field_statistics} */ @@ -203,6 +210,12 @@ public TermVector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java index eeb65b7f82..9601d025f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/termvectors/Token.java @@ -172,6 +172,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer startOffset; + public Builder() { + } + private Builder(Token instance) { + this.endOffset = instance.endOffset; + this.payload = instance.payload; + this.position = instance.position; + this.startOffset = instance.startOffset; + + } /** * API name: {@code end_offset} */ @@ -222,6 +231,12 @@ public Token build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java index 5e61dc40e7..a940905e5e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/update_by_query_rethrottle/UpdateByQueryRethrottleNode.java @@ -110,6 +110,12 @@ public static class Builder extends BaseNode.AbstractBuilder ObjectBuilder { private Map tasks; + public Builder() { + } + private Builder(UpdateByQueryRethrottleNode instance) { + this.tasks = instance.tasks; + + } /** * Required - API name: {@code tasks} *

                                                                                  @@ -157,6 +163,12 @@ public UpdateByQueryRethrottleNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java index adbac2a99e..e6ed60e06f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java @@ -158,6 +158,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteDanglingIndexRequest instance) { + this.acceptDataLoss = instance.acceptDataLoss; + this.indexUuid = instance.indexUuid; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * This parameter must be set to true to acknowledge that it will no longer be * possible to recove data from the dangling index. @@ -236,6 +245,12 @@ public DeleteDanglingIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java index 9e0bdb3dea..1b02b5dc3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java @@ -161,6 +161,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ImportDanglingIndexRequest instance) { + this.acceptDataLoss = instance.acceptDataLoss; + this.indexUuid = instance.indexUuid; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * This parameter must be set to true to import a dangling index. Because * Elasticsearch cannot know where the dangling index data came from or @@ -242,6 +251,12 @@ public ImportDanglingIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java index 4473c1d06a..80914099df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List nodeIds; + public Builder() { + } + private Builder(DanglingIndex instance) { + this.indexName = instance.indexName; + this.indexUuid = instance.indexUuid; + this.creationDateMillis = instance.creationDateMillis; + this.nodeIds = instance.nodeIds; + + } /** * Required - API name: {@code index_name} */ @@ -229,6 +238,12 @@ public DanglingIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 80bfe6feca..28e70d10a9 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 @@ -1141,10 +1141,6 @@ 'cat.health.Request': 'cat/health/CatHealthRequest.ts#L23-L66', 'cat.health.Response': 'cat/health/CatHealthResponse.ts#L22-L25', 'cat.help.Request': 'cat/help/CatHelpRequest.ts#L22-L39', -<<<<<<< HEAD -======= -'cat.help.Response': 'cat/help/CatHelpResponse.ts#L20-L25', ->>>>>>> 860bcb875 ([codegen] update to latest spec) 'cat.indices.IndicesRecord': 'cat/indices/types.ts#L20-L812', 'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L30-L107', 'cat.indices.Response': 'cat/indices/CatIndicesResponse.ts#L22-L25', @@ -2016,15 +2012,16 @@ 'inference._types.NvidiaSimilarityType': 'inference/_types/CommonTypes.ts#L1864-L1868', 'inference._types.NvidiaTaskSettings': 'inference/_types/CommonTypes.ts#L1870-L1890', 'inference._types.NvidiaTaskType': 'inference/_types/CommonTypes.ts#L1853-L1858', -'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1897-L1939', -'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1966-L1968', -'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1941-L1958', -'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1960-L1964', -'inference._types.OpenShiftAiServiceSettings': 'inference/_types/CommonTypes.ts#L1970-L2003', -'inference._types.OpenShiftAiServiceType': 'inference/_types/CommonTypes.ts#L2012-L2014', -'inference._types.OpenShiftAiSimilarityType': 'inference/_types/CommonTypes.ts#L2016-L2020', -'inference._types.OpenShiftAiTaskSettings': 'inference/_types/CommonTypes.ts#L2022-L2031', -'inference._types.OpenShiftAiTaskType': 'inference/_types/CommonTypes.ts#L2005-L2010', +'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1897-L1943', +'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1976-L1978', +'inference._types.OpenAISimilarityType': 'inference/_types/CommonTypes.ts#L1945-L1949', +'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1951-L1968', +'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1970-L1974', +'inference._types.OpenShiftAiServiceSettings': 'inference/_types/CommonTypes.ts#L1980-L2013', +'inference._types.OpenShiftAiServiceType': 'inference/_types/CommonTypes.ts#L2022-L2024', +'inference._types.OpenShiftAiSimilarityType': 'inference/_types/CommonTypes.ts#L2026-L2030', +'inference._types.OpenShiftAiTaskSettings': 'inference/_types/CommonTypes.ts#L2032-L2041', +'inference._types.OpenShiftAiTaskType': 'inference/_types/CommonTypes.ts#L2015-L2020', 'inference._types.RankedDocument': 'inference/_types/Results.ts#L91-L101', 'inference._types.RateLimitSetting': 'inference/_types/Services.ts#L428-L457', 'inference._types.RequestChatCompletion': 'inference/_types/CommonTypes.ts#L25-L97', @@ -2063,13 +2060,13 @@ 'inference._types.ThinkingConfig': 'inference/_types/CommonTypes.ts#L1541-L1546', 'inference._types.ToolCall': 'inference/_types/CommonTypes.ts#L151-L167', 'inference._types.ToolCallFunction': 'inference/_types/CommonTypes.ts#L137-L149', -'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L2033-L2064', -'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L2097-L2099', -'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L2066-L2090', -'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L2092-L2095', -'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L2101-L2139', -'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L2147-L2149', -'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L2141-L2145', +'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L2043-L2074', +'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L2107-L2109', +'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L2076-L2100', +'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L2102-L2105', +'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L2111-L2149', +'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L2157-L2159', +'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L2151-L2155', '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-L72', @@ -2706,10 +2703,6 @@ 'nodes.get_repositories_metering_info.Response': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39', 'nodes.get_repositories_metering_info.ResponseBase': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L25-L34', 'nodes.hot_threads.Request': 'nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L94', -<<<<<<< HEAD -======= -'nodes.hot_threads.Response': 'nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22', ->>>>>>> 860bcb875 ([codegen] update to latest spec) 'nodes.info.DeprecationIndexing': 'nodes/info/types.ts#L154-L157', 'nodes.info.NodeInfo': 'nodes/info/types.ts#L32-L72', 'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L195-L197', @@ -3508,10 +3501,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/c2cdbfe0c3812eedea4a98c5d8375f240b779a0f/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/868f66ce2befcd56801926e80f20bffee27c61e3/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/enrich/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index fa3e97366a..a5675f0e1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -116,6 +116,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(DeletePolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -163,6 +170,12 @@ public DeletePolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java index 60bf033b74..7afdcb6baf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichPolicy.java @@ -218,6 +218,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String elasticsearchVersion; + public Builder() { + } + private Builder(EnrichPolicy instance) { + this.enrichFields = instance.enrichFields; + this.indices = instance.indices; + this.matchField = instance.matchField; + this.query = instance.query; + this.name = instance.name; + this.elasticsearchVersion = instance.elasticsearchVersion; + + } /** * Required - API name: {@code enrich_fields} *

                                                                                  @@ -323,6 +334,12 @@ public EnrichPolicy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java index fa910b0f68..a10c77cf64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichStatsRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(EnrichStatsRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -139,6 +145,12 @@ public EnrichStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java index d87db06e64..fc3c6ba85b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/EnrichSummary.java @@ -114,6 +114,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Pair config; + public Builder() { + } + private Builder(EnrichSummary instance) { + this.config = instance.config; + + } /** * Required - API name: {@code config} */ @@ -155,6 +161,12 @@ public EnrichSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index dae08d22e4..a1d99606fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -135,6 +135,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(ExecutePolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -193,6 +201,12 @@ public ExecutePolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 4d2cc2d23b..07f7fa402b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetPolicyRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -183,6 +190,12 @@ public GetPolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index a5f42a9c6b..ffa4df0ee6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -200,6 +200,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private EnrichPolicy range; + public Builder() { + } + private Builder(PutPolicyRequest instance) { + this.geoMatch = instance.geoMatch; + this.masterTimeout = instance.masterTimeout; + this.match = instance.match; + this.name = instance.name; + this.range = instance.range; + + } /** * Matches enrich data to incoming documents based on a geo_shape * query. @@ -308,6 +318,12 @@ public PutPolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/ExecuteEnrichPolicyStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/ExecuteEnrichPolicyStatus.java index 11602553e9..2fcb45b14d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/ExecuteEnrichPolicyStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/execute_policy/ExecuteEnrichPolicyStatus.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String step; + public Builder() { + } + private Builder(ExecuteEnrichPolicyStatus instance) { + this.phase = instance.phase; + this.step = instance.step; + + } /** * Required - API name: {@code phase} */ @@ -167,6 +174,12 @@ public ExecuteEnrichPolicyStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CacheStats.java index 0f37f8852e..5836aeb8fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CacheStats.java @@ -218,6 +218,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sizeInBytes; + public Builder() { + } + private Builder(CacheStats instance) { + this.nodeId = instance.nodeId; + this.count = instance.count; + this.hits = instance.hits; + this.hitsTimeInMillis = instance.hitsTimeInMillis; + this.misses = instance.misses; + this.missesTimeInMillis = instance.missesTimeInMillis; + this.evictions = instance.evictions; + this.sizeInBytes = instance.sizeInBytes; + + } /** * Required - API name: {@code node_id} */ @@ -300,6 +313,12 @@ public CacheStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CoordinatorStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CoordinatorStats.java index 5bd2d3b224..90e55560f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CoordinatorStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/CoordinatorStats.java @@ -176,6 +176,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long remoteRequestsTotal; + public Builder() { + } + private Builder(CoordinatorStats instance) { + this.executedSearchesTotal = instance.executedSearchesTotal; + this.nodeId = instance.nodeId; + this.queueSize = instance.queueSize; + this.remoteRequestsCurrent = instance.remoteRequestsCurrent; + this.remoteRequestsTotal = instance.remoteRequestsTotal; + + } /** * Required - API name: {@code executed_searches_total} */ @@ -234,6 +244,12 @@ public CoordinatorStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java index 78efa67637..667656ea02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private TaskInfo task; + public Builder() { + } + private Builder(ExecutingPolicy instance) { + this.name = instance.name; + this.task = instance.task; + + } /** * Required - API name: {@code name} */ @@ -167,6 +174,12 @@ public ExecutingPolicy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java index f9dbf3e0f2..5b16a98067 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlDeleteRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(EqlDeleteRequest instance) { + this.id = instance.id; + + } /** * Required - Identifier for the search to delete. A search ID is provided in * the EQL search API's response for an async search. A search ID is also @@ -134,6 +140,12 @@ public EqlDeleteRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java index 7895c03541..e2ec6291ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlGetRequest.java @@ -134,6 +134,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(EqlGetRequest instance) { + this.id = instance.id; + this.keepAlive = instance.keepAlive; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * Required - Identifier for the search. *

                                                                                  @@ -204,6 +212,12 @@ public EqlGetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java index b1731fb745..b98f73bfd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java @@ -183,6 +183,14 @@ public static class Builder extends WithJsonObjectBuilderBase tEventSerializer; + public Builder() { + } + private Builder(EqlHits instance) { + this.total = instance.total; + this.events = instance.events; + this.sequences = instance.sequences; + + } /** * Metadata about the number of matching events or sequences. *

                                                                                  @@ -306,6 +314,12 @@ public EqlHits build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java index 9887fe443c..cfc5437a0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchRequest.java @@ -602,6 +602,34 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(EqlSearchRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.allowPartialSequenceResults = instance.allowPartialSequenceResults; + this.caseSensitive = instance.caseSensitive; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.eventCategoryField = instance.eventCategoryField; + this.expandWildcards = instance.expandWildcards; + this.fetchSize = instance.fetchSize; + this.fields = instance.fields; + this.filter = instance.filter; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.keepAlive = instance.keepAlive; + this.keepOnCompletion = instance.keepOnCompletion; + this.maxSamplesPerKey = instance.maxSamplesPerKey; + this.projectRouting = instance.projectRouting; + this.query = instance.query; + this.resultPosition = instance.resultPosition; + this.runtimeMappings = instance.runtimeMappings; + this.size = instance.size; + this.tiebreakerField = instance.tiebreakerField; + this.timestampField = instance.timestampField; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * Whether to ignore if a wildcard indices expression resolves into no concrete * indices. (This includes _all string or when no indices have been @@ -994,6 +1022,12 @@ public EqlSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java index f897847868..0743c17167 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetEqlStatusRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(GetEqlStatusRequest instance) { + this.id = instance.id; + + } /** * Required - Identifier for the search. *

                                                                                  @@ -128,6 +134,12 @@ public GetEqlStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java index cc2b5bf019..3abdcc6e6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java @@ -218,6 +218,16 @@ public static class Builder extends WithJsonObjectBuilderBase tEventSerializer; + public Builder() { + } + private Builder(HitsEvent instance) { + this.index = instance.index; + this.id = instance.id; + this.source = instance.source; + this.missing = instance.missing; + this.fields = instance.fields; + + } /** * Required - Name of the index containing the event. *

                                                                                  @@ -307,6 +317,12 @@ public HitsEvent build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java index a5fc9e355a..64267c7695 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java @@ -160,6 +160,13 @@ public static class Builder extends WithJsonObjectBuilderBase tEventSerializer; + public Builder() { + } + private Builder(HitsSequence instance) { + this.events = instance.events; + this.joinKeys = instance.joinKeys; + + } /** * Required - Contains events matching the query. Each object represents a * matching event. @@ -251,6 +258,12 @@ public HitsSequence build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java index 785ab40d17..fff130adab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/DeleteViewRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String name; + public Builder() { + } + private Builder(DeleteViewRequest instance) { + this.name = instance.name; + + } /** * Required - The view name to remove. *

                                                                                  @@ -127,6 +133,12 @@ public DeleteViewRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java index 9faa1bcaef..aa51461a6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ESQLView.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String query; + public Builder() { + } + private Builder(ESQLView instance) { + this.name = instance.name; + this.query = instance.query; + + } /** * Required - The name of the ES|QL view *

                                                                                  @@ -168,6 +175,12 @@ public ESQLView build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java index 104078c0e1..2df39ad12b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetQueryRequest.java @@ -97,6 +97,12 @@ public final String id() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { private String id; + public Builder() { + } + private Builder(GetQueryRequest instance) { + this.id = instance.id; + + } /** * Required - The query ID *

                                                                                  @@ -125,6 +131,12 @@ public GetQueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java index 9ae8ab5899..ae4b95be8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/GetViewRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String name; + public Builder() { + } + private Builder(GetViewRequest instance) { + this.name = instance.name; + + } /** * The comma-separated view names to retrieve. *

                                                                                  @@ -127,6 +133,12 @@ public GetViewRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java index a1f2770863..1767ba15f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/PutViewRequest.java @@ -127,6 +127,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String query; + public Builder() { + } + private Builder(PutViewRequest instance) { + this.name = instance.name; + this.query = instance.query; + + } /** * Required - The view name to create or update. *

                                                                                  @@ -165,6 +172,12 @@ public PutViewRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java index 742604cacf..709642c5ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/QueryRequest.java @@ -413,6 +413,24 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Map> tables; + public Builder() { + } + private Builder(QueryRequest instance) { + this.allowPartialResults = instance.allowPartialResults; + this.columnar = instance.columnar; + this.delimiter = instance.delimiter; + this.dropNullColumns = instance.dropNullColumns; + this.filter = instance.filter; + this.format = instance.format; + this.includeCcsMetadata = instance.includeCcsMetadata; + this.includeExecutionMetadata = instance.includeExecutionMetadata; + this.locale = instance.locale; + this.params = instance.params; + this.profile = instance.profile; + this.query = instance.query; + this.tables = instance.tables; + + } /** * If true, partial results will be returned if there are shard * failures, but the query can continue to execute on other clusters and shards. @@ -725,6 +743,12 @@ public QueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/list_queries/Body.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/list_queries/Body.java index 2b233df95e..2577abdaaf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/list_queries/Body.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/esql/list_queries/Body.java @@ -171,6 +171,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String query; + public Builder() { + } + private Builder(Body instance) { + this.id = instance.id; + this.node = instance.node; + this.startTimeMillis = instance.startTimeMillis; + this.runningTimeNanos = instance.runningTimeNanos; + this.query = instance.query; + + } /** * Required - API name: {@code id} */ @@ -229,6 +239,12 @@ public Body build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java index ea3c370948..024abefec7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String description; + public Builder() { + } + private Builder(Feature instance) { + this.name = instance.name; + this.description = instance.description; + + } /** * Required - API name: {@code name} */ @@ -159,6 +166,12 @@ public Feature build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java index 4ba0b3b646..ae1d5c30a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java @@ -114,6 +114,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetFeaturesRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -151,6 +157,12 @@ public GetFeaturesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java index b5ef5225dd..fdde543f9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java @@ -122,6 +122,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(ResetFeaturesRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * Period to wait for a connection to the master node. *

                                                                                  @@ -159,6 +165,12 @@ public ResetFeaturesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java index cae6e66d23..92ed560183 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/fleet/FleetSearchRequest.java @@ -1204,6 +1204,64 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List waitForCheckpoints; + public Builder() { + } + private Builder(FleetSearchRequest instance) { + this.source = instance.source; + this.aggregations = instance.aggregations; + this.allowNoIndices = instance.allowNoIndices; + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.batchedReduceSize = instance.batchedReduceSize; + this.ccsMinimizeRoundtrips = instance.ccsMinimizeRoundtrips; + this.collapse = instance.collapse; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.docvalueFields = instance.docvalueFields; + this.expandWildcards = instance.expandWildcards; + this.explain = instance.explain; + this.ext = instance.ext; + this.fields = instance.fields; + this.from = instance.from; + this.highlight = instance.highlight; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.indicesBoost = instance.indicesBoost; + this.lenient = instance.lenient; + this.maxConcurrentShardRequests = instance.maxConcurrentShardRequests; + this.minScore = instance.minScore; + this.pit = instance.pit; + this.postFilter = instance.postFilter; + this.preFilterShardSize = instance.preFilterShardSize; + this.preference = instance.preference; + this.profile = instance.profile; + this.q = instance.q; + this.query = instance.query; + this.requestCache = instance.requestCache; + this.rescore = instance.rescore; + this.routing = instance.routing; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.scroll = instance.scroll; + this.searchAfter = instance.searchAfter; + this.searchType = instance.searchType; + this.seqNoPrimaryTerm = instance.seqNoPrimaryTerm; + this.size = instance.size; + this.slice = instance.slice; + this.sort = instance.sort; + this.stats = instance.stats; + this.storedFields = instance.storedFields; + this.suggest = instance.suggest; + this.terminateAfter = instance.terminateAfter; + this.timeout = instance.timeout; + this.trackScores = instance.trackScores; + this.trackTotalHits = instance.trackTotalHits; + this.version = instance.version; + this.waitForCheckpoints = instance.waitForCheckpoints; + + } /** * Indicates which source fields are returned for matching documents. These * fields are returned in the hits._source property of the search response. @@ -2197,6 +2255,12 @@ public FleetSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java index bb64e925ed..5c5daf0dca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Connection.java @@ -155,6 +155,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double weight; + public Builder() { + } + private Builder(Connection instance) { + this.docCount = instance.docCount; + this.source = instance.source; + this.target = instance.target; + this.weight = instance.weight; + + } /** * Required - API name: {@code doc_count} */ @@ -205,6 +214,12 @@ public Connection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java index 5fd0be8c70..5c5d850ef5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreControls.java @@ -192,6 +192,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean useSignificance; + public Builder() { + } + private Builder(ExploreControls instance) { + this.sampleDiversity = instance.sampleDiversity; + this.sampleSize = instance.sampleSize; + this.timeout = instance.timeout; + this.useSignificance = instance.useSignificance; + + } /** * To avoid the top-matching documents sample being dominated by a single source * of results, it is sometimes necessary to request diversity in the sample. You @@ -286,6 +295,12 @@ public ExploreControls build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index e4a37f0236..2f57945ecc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -252,6 +252,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List vertices; + public Builder() { + } + private Builder(ExploreRequest instance) { + this.connections = instance.connections; + this.controls = instance.controls; + this.index = instance.index; + this.query = instance.query; + this.routing = instance.routing; + this.timeout = instance.timeout; + this.vertices = instance.vertices; + + } /** * Specifies or more fields from which you want to extract terms that are * associated with the specified vertices. @@ -451,6 +463,12 @@ public ExploreRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java index cbfe9b3d6d..0364e71eac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Hop.java @@ -168,6 +168,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List vertices; + public Builder() { + } + private Builder(Hop instance) { + this.connections = instance.connections; + this.query = instance.query; + this.vertices = instance.vertices; + + } /** * Specifies one or more fields from which you want to extract terms that are * associated with the specified vertices. @@ -274,6 +282,12 @@ public Hop build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java index 276fe2b1f9..d13b0883a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/SampleDiversity.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer maxDocsPerValue; + public Builder() { + } + private Builder(SampleDiversity instance) { + this.field = instance.field; + this.maxDocsPerValue = instance.maxDocsPerValue; + + } /** * Required - API name: {@code field} */ @@ -160,6 +167,12 @@ public SampleDiversity build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java index 17f8ee20e3..6dad6e1043 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/Vertex.java @@ -157,6 +157,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double weight; + public Builder() { + } + private Builder(Vertex instance) { + this.depth = instance.depth; + this.field = instance.field; + this.term = instance.term; + this.weight = instance.weight; + + } /** * Required - API name: {@code depth} */ @@ -207,6 +216,12 @@ public Vertex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java index f06ac89afc..4d485fd18b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexDefinition.java @@ -236,6 +236,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer size; + public Builder() { + } + private Builder(VertexDefinition instance) { + this.exclude = instance.exclude; + this.field = instance.field; + this.include = instance.include; + this.minDocCount = instance.minDocCount; + this.shardMinDocCount = instance.shardMinDocCount; + this.size = instance.size; + + } /** * Prevents the specified terms from being included in the results. *

                                                                                  @@ -359,6 +370,12 @@ public VertexDefinition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java index 3452b9f6fd..355ec7a9f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/VertexInclude.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String term; + public Builder() { + } + private Builder(VertexInclude instance) { + this.boost = instance.boost; + this.term = instance.term; + + } /** * API name: {@code boost} */ @@ -165,6 +172,12 @@ public VertexInclude build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Actions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Actions.java index 4fc382c1d7..c1fcda2c81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Actions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Actions.java @@ -384,6 +384,24 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private WaitForSnapshotAction waitForSnapshot; + public Builder() { + } + private Builder(Actions instance) { + this.allocate = instance.allocate; + this.delete = instance.delete; + this.downsample = instance.downsample; + this.freeze = instance.freeze; + this.forcemerge = instance.forcemerge; + this.migrate = instance.migrate; + this.readonly = instance.readonly; + this.rollover = instance.rollover; + this.setPriority = instance.setPriority; + this.searchableSnapshot = instance.searchableSnapshot; + this.shrink = instance.shrink; + this.unfollow = instance.unfollow; + this.waitForSnapshot = instance.waitForSnapshot; + + } /** * Phases allowed: warm, cold. *

                                                                                  @@ -657,6 +675,12 @@ public Actions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/AllocateAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/AllocateAction.java index 72c0c78d04..8a57241975 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/AllocateAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/AllocateAction.java @@ -210,6 +210,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map require; + public Builder() { + } + private Builder(AllocateAction instance) { + this.numberOfReplicas = instance.numberOfReplicas; + this.totalShardsPerNode = instance.totalShardsPerNode; + this.include = instance.include; + this.exclude = instance.exclude; + this.require = instance.require; + + } /** * API name: {@code number_of_replicas} */ @@ -304,6 +314,12 @@ public AllocateAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteAction.java index 5bc55b9785..b6ccb2d73e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteAction.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean deleteSearchableSnapshot; + public Builder() { + } + private Builder(DeleteAction instance) { + this.deleteSearchableSnapshot = instance.deleteSearchableSnapshot; + + } /** * API name: {@code delete_searchable_snapshot} */ @@ -141,6 +147,12 @@ public DeleteAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java index 9578722a0a..3e017773b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java @@ -136,6 +136,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -206,6 +214,12 @@ public DeleteLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DownsampleAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DownsampleAction.java index e6235594a8..53fdbb3dd2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DownsampleAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DownsampleAction.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time waitTimeout; + public Builder() { + } + private Builder(DownsampleAction instance) { + this.fixedInterval = instance.fixedInterval; + this.waitTimeout = instance.waitTimeout; + + } /** * Required - API name: {@code fixed_interval} */ @@ -179,6 +186,12 @@ public DownsampleAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java index ab3326444c..2d15ccf989 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java @@ -161,6 +161,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean onlyManaged; + public Builder() { + } + private Builder(ExplainLifecycleRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.onlyErrors = instance.onlyErrors; + this.onlyManaged = instance.onlyManaged; + + } /** * Required - Comma-separated list of data streams, indices, and aliases to * target. Supports wildcards (*). To target all data streams and @@ -234,6 +243,12 @@ public ExplainLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeAction.java index 71d326d975..32b77ff7db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ForceMergeAction.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String indexCodec; + public Builder() { + } + private Builder(ForceMergeAction instance) { + this.maxNumSegments = instance.maxNumSegments; + this.indexCodec = instance.indexCodec; + + } /** * Required - API name: {@code max_num_segments} */ @@ -166,6 +173,12 @@ public ForceMergeAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java index 2ddc221c10..fb6dd06092 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java @@ -135,6 +135,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(GetLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -205,6 +213,12 @@ public GetLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java index 74253d9870..620cd7f8d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/IlmPolicy.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map meta; + public Builder() { + } + private Builder(IlmPolicy instance) { + this.phases = instance.phases; + this.meta = instance.meta; + + } /** * Required - API name: {@code phases} */ @@ -199,6 +206,12 @@ public IlmPolicy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateAction.java index 15b9f2080b..7cfc82e2f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateAction.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean enabled; + public Builder() { + } + private Builder(MigrateAction instance) { + this.enabled = instance.enabled; + + } /** * API name: {@code enabled} */ @@ -141,6 +147,12 @@ public MigrateAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java index 13e7eac0ea..4169a8b49e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MigrateToDataTiersRequest.java @@ -200,6 +200,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String nodeAttribute; + public Builder() { + } + private Builder(MigrateToDataTiersRequest instance) { + this.dryRun = instance.dryRun; + this.legacyTemplateToDelete = instance.legacyTemplateToDelete; + this.masterTimeout = instance.masterTimeout; + this.nodeAttribute = instance.nodeAttribute; + + } /** * If true, simulates the migration from node attributes based allocation * filters to data tiers, but does not perform the migration. This provides a @@ -271,6 +280,12 @@ public MigrateToDataTiersRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java index 659bdbbfaf..b414d3775c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java @@ -168,6 +168,14 @@ public static class Builder extends RequestBase.AbstractBuilder private StepKey nextStep; + public Builder() { + } + private Builder(MoveToStepRequest instance) { + this.currentStep = instance.currentStep; + this.index = instance.index; + this.nextStep = instance.nextStep; + + } /** * Required - The step that the index is expected to be in. *

                                                                                  @@ -234,6 +242,12 @@ public MoveToStepRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java index 85fb4d9a16..eac7793c11 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phase.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time minAge; + public Builder() { + } + private Builder(Phase instance) { + this.actions = instance.actions; + this.minAge = instance.minAge; + + } /** * API name: {@code actions} */ @@ -183,6 +190,12 @@ public Phase build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java index 7cf352694d..c8a3afcabe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/Phases.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Phase warm; + public Builder() { + } + private Builder(Phases instance) { + this.cold = instance.cold; + this.delete = instance.delete; + this.frozen = instance.frozen; + this.hot = instance.hot; + this.warm = instance.warm; + + } /** * API name: {@code cold} */ @@ -287,6 +297,12 @@ public Phases build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java index 9adf3e1a91..1c6fed02fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java @@ -175,6 +175,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.policy = instance.policy; + this.timeout = instance.timeout; + + } /** * 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. @@ -260,6 +269,12 @@ public PutLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java index 09889fe1c4..d31348c4d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String index; + public Builder() { + } + private Builder(RemovePolicyRequest instance) { + this.index = instance.index; + + } /** * Required - The name of the index to remove policy on *

                                                                                  @@ -128,6 +134,12 @@ public RemovePolicyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java index b01fe287c7..582f502be7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java @@ -101,6 +101,12 @@ public final String index() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { private String index; + public Builder() { + } + private Builder(RetryRequest instance) { + this.index = instance.index; + + } /** * Required - The name of the indices (comma-separated) whose failed lifecycle * step is to be retry @@ -130,6 +136,12 @@ public RetryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RolloverAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RolloverAction.java index 7c1a5c1aa8..2780797de9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RolloverAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RolloverAction.java @@ -303,6 +303,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long minPrimaryShardDocs; + public Builder() { + } + private Builder(RolloverAction instance) { + this.maxSize = instance.maxSize; + this.maxPrimaryShardSize = instance.maxPrimaryShardSize; + this.maxAge = instance.maxAge; + this.maxDocs = instance.maxDocs; + this.maxPrimaryShardDocs = instance.maxPrimaryShardDocs; + this.minSize = instance.minSize; + this.minPrimaryShardSize = instance.minPrimaryShardSize; + this.minAge = instance.minAge; + this.minDocs = instance.minDocs; + this.minPrimaryShardDocs = instance.minPrimaryShardDocs; + + } /** * The max_size condition has been deprecated in 9.3.0 and * max_primary_shard_size should be used instead @@ -421,6 +436,12 @@ public RolloverAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SearchableSnapshotAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SearchableSnapshotAction.java index cb88f95ebf..5b254180e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SearchableSnapshotAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SearchableSnapshotAction.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean forceMergeIndex; + public Builder() { + } + private Builder(SearchableSnapshotAction instance) { + this.snapshotRepository = instance.snapshotRepository; + this.forceMergeIndex = instance.forceMergeIndex; + + } /** * Required - API name: {@code snapshot_repository} */ @@ -169,6 +176,12 @@ public SearchableSnapshotAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SetPriorityAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SetPriorityAction.java index b48822cb52..c39a410d7a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SetPriorityAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/SetPriorityAction.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer priority; + public Builder() { + } + private Builder(SetPriorityAction instance) { + this.priority = instance.priority; + + } /** * API name: {@code priority} */ @@ -141,6 +147,12 @@ public SetPriorityAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkAction.java index 5fa3161226..3bbb574b01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ShrinkAction.java @@ -157,6 +157,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean allowWriteAfterShrink; + public Builder() { + } + private Builder(ShrinkAction instance) { + this.numberOfShards = instance.numberOfShards; + this.maxPrimaryShardSize = instance.maxPrimaryShardSize; + this.allowWriteAfterShrink = instance.allowWriteAfterShrink; + + } /** * API name: {@code number_of_shards} */ @@ -199,6 +207,12 @@ public ShrinkAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java index bf41285fad..016534569c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartIlmRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(StartIlmRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -180,6 +187,12 @@ public StartIlmRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java index d6a59cc0c5..8499d446e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopIlmRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(StopIlmRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -185,6 +192,12 @@ public StopIlmRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/WaitForSnapshotAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/WaitForSnapshotAction.java index 01d7188ce8..8cd8d7eab7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/WaitForSnapshotAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/WaitForSnapshotAction.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String policy; + public Builder() { + } + private Builder(WaitForSnapshotAction instance) { + this.policy = instance.policy; + + } /** * Required - API name: {@code policy} */ @@ -139,6 +145,12 @@ public WaitForSnapshotAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java index 13ff620564..bb679046d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainManaged.java @@ -668,6 +668,39 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean skip; + public Builder() { + } + private Builder(LifecycleExplainManaged instance) { + this.action = instance.action; + this.actionTime = instance.actionTime; + this.actionTimeMillis = instance.actionTimeMillis; + this.age = instance.age; + this.ageInMillis = instance.ageInMillis; + this.failedStep = instance.failedStep; + this.failedStepRetryCount = instance.failedStepRetryCount; + this.index = instance.index; + this.indexCreationDate = instance.indexCreationDate; + this.indexCreationDateMillis = instance.indexCreationDateMillis; + this.isAutoRetryableError = instance.isAutoRetryableError; + this.lifecycleDate = instance.lifecycleDate; + this.lifecycleDateMillis = instance.lifecycleDateMillis; + this.phase = instance.phase; + this.phaseTime = instance.phaseTime; + this.phaseTimeMillis = instance.phaseTimeMillis; + this.policy = instance.policy; + this.previousStepInfo = instance.previousStepInfo; + this.repositoryName = instance.repositoryName; + this.snapshotName = instance.snapshotName; + this.shrinkIndexName = instance.shrinkIndexName; + this.step = instance.step; + this.stepInfo = instance.stepInfo; + this.stepTime = instance.stepTime; + this.stepTimeMillis = instance.stepTimeMillis; + this.phaseExecution = instance.phaseExecution; + this.timeSinceIndexCreation = instance.timeSinceIndexCreation; + this.skip = instance.skip; + + } /** * API name: {@code action} */ @@ -956,6 +989,12 @@ public LifecycleExplainManaged build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java index 91fdf73366..22784d6658 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainPhaseExecution.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Long modifiedDateInMillis; + public Builder() { + } + private Builder(LifecycleExplainPhaseExecution instance) { + this.phaseDefinition = instance.phaseDefinition; + this.policy = instance.policy; + this.version = instance.version; + this.modifiedDateInMillis = instance.modifiedDateInMillis; + + } /** * API name: {@code phase_definition} */ @@ -224,6 +233,12 @@ public LifecycleExplainPhaseExecution build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java index b792e452c2..273e2af842 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/explain_lifecycle/LifecycleExplainUnmanaged.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String index; + public Builder() { + } + private Builder(LifecycleExplainUnmanaged instance) { + this.index = instance.index; + + } /** * Required - API name: {@code index} */ @@ -149,6 +155,12 @@ public LifecycleExplainUnmanaged build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java index 5510204ace..2601fe565d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/get_lifecycle/Lifecycle.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long version; + public Builder() { + } + private Builder(Lifecycle instance) { + this.modifiedDate = instance.modifiedDate; + this.policy = instance.policy; + this.version = instance.version; + + } /** * Required - API name: {@code modified_date} */ @@ -190,6 +198,12 @@ public Lifecycle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java index d019c120f8..6d0024ee3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/move_to_step/StepKey.java @@ -154,6 +154,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String phase; + public Builder() { + } + private Builder(StepKey instance) { + this.action = instance.action; + this.name = instance.name; + this.phase = instance.phase; + + } /** * The optional action to which the index will be moved. *

                                                                                  @@ -200,6 +208,12 @@ public StepKey build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java index dc3b1650d2..34214248ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java @@ -221,6 +221,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(AddBlockRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.block = instance.block; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -393,6 +405,12 @@ public AddBlockRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java index 3f8c5b910e..162a88bf78 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java @@ -244,6 +244,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List searchRouting; + public Builder() { + } + private Builder(Alias instance) { + this.filter = instance.filter; + this.indexRouting = instance.indexRouting; + this.isHidden = instance.isHidden; + this.isWriteIndex = instance.isWriteIndex; + this.routing = instance.routing; + this.searchRouting = instance.searchRouting; + + } /** * Query used to limit documents the alias can access. *

                                                                                  @@ -388,6 +399,12 @@ public Alias build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java index ec840333ed..069db6874e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AliasDefinition.java @@ -233,6 +233,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean isHidden; + public Builder() { + } + private Builder(AliasDefinition instance) { + this.filter = instance.filter; + this.indexRouting = instance.indexRouting; + this.isWriteIndex = instance.isWriteIndex; + this.routing = instance.routing; + this.searchRouting = instance.searchRouting; + this.isHidden = instance.isHidden; + + } /** * Query used to limit documents the alias can access. *

                                                                                  @@ -333,6 +344,12 @@ public AliasDefinition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index 8a63793d0a..76bc642bd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -348,6 +348,21 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Tokenizer tokenizer; + public Builder() { + } + private Builder(AnalyzeRequest instance) { + this.analyzer = instance.analyzer; + this.attributes = instance.attributes; + this.charFilter = instance.charFilter; + this.explain = instance.explain; + this.field = instance.field; + this.filter = instance.filter; + this.index = instance.index; + this.normalizer = instance.normalizer; + this.text = instance.text; + this.tokenizer = instance.tokenizer; + + } /** * The name of the analyzer that should be applied to the provided * text. This could be a built-in analyzer, or an analyzer that’s @@ -567,6 +582,12 @@ public AnalyzeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java index 996342abe9..ee733ee384 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CacheQueries.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(CacheQueries instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -135,6 +141,12 @@ public CacheQueries build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CancelMigrateReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CancelMigrateReindexRequest.java index e87f7eeefa..3604d359fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CancelMigrateReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CancelMigrateReindexRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List index; + public Builder() { + } + private Builder(CancelMigrateReindexRequest instance) { + this.index = instance.index; + + } /** * Required - The index or data stream name *

                                                                                  @@ -144,6 +150,12 @@ public CancelMigrateReindexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java index f031d54204..ca9a13a1bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java @@ -235,6 +235,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean request; + public Builder() { + } + private Builder(ClearCacheRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.fielddata = instance.fielddata; + this.fields = instance.fields; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.query = instance.query; + this.request = instance.request; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -392,6 +405,12 @@ public ClearCacheRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java index 390ba17cab..9ab61b70d8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneIndexRequest.java @@ -304,6 +304,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(CloneIndexRequest instance) { + this.aliases = instance.aliases; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.settings = instance.settings; + this.target = instance.target; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * Aliases for the resulting index. *

                                                                                  @@ -467,6 +479,12 @@ public CloneIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java index 652a68d98f..f4b72b451f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseIndexRequest.java @@ -242,6 +242,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(CloseIndexRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -406,6 +418,12 @@ public CloseIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java index 5bdd675ca7..9444bdfbde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java @@ -143,6 +143,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(CreateDataStreamRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -220,6 +228,12 @@ public CreateDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateFromRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateFromRequest.java index 9af879ca79..083d442231 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateFromRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateFromRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder private CreateFrom createFrom; + public Builder() { + } + private Builder(CreateFromRequest instance) { + this.dest = instance.dest; + this.source = instance.source; + this.createFrom = instance.createFrom; + + } /** * Required - The destination index or data stream name *

                                                                                  @@ -199,6 +207,12 @@ public CreateFromRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createCreateFromRequestDeserializer(); protected static JsonpDeserializer createCreateFromRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java index c385725da9..1f29c3c087 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateIndexRequest.java @@ -294,6 +294,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(CreateIndexRequest instance) { + this.aliases = instance.aliases; + this.index = instance.index; + this.mappings = instance.mappings; + this.masterTimeout = instance.masterTimeout; + this.settings = instance.settings; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * Aliases for the index. *

                                                                                  @@ -487,6 +499,12 @@ public CreateIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index cfb686c0d4..ffd355ffb3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -522,6 +522,31 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexMode indexMode; + public Builder() { + } + private Builder(DataStream instance) { + this.meta = instance.meta; + this.allowCustomRouting = instance.allowCustomRouting; + this.failureStore = instance.failureStore; + this.generation = instance.generation; + this.hidden = instance.hidden; + this.ilmPolicy = instance.ilmPolicy; + this.nextGenerationManagedBy = instance.nextGenerationManagedBy; + this.preferIlm = instance.preferIlm; + this.indices = instance.indices; + this.lifecycle = instance.lifecycle; + this.name = instance.name; + this.replicated = instance.replicated; + this.rolloverOnWrite = instance.rolloverOnWrite; + this.settings = instance.settings; + this.mappings = instance.mappings; + this.status = instance.status; + this.system = instance.system; + this.template = instance.template; + this.timestampField = instance.timestampField; + this.indexMode = instance.indexMode; + + } /** * Custom metadata for the stream, copied from the _meta object of * the stream’s matching index template. If empty, the response omits this @@ -860,6 +885,12 @@ public DataStream build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStore.java index 3baf0a9405..865466fc42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStore.java @@ -149,6 +149,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private FailureStoreLifecycle lifecycle; + public Builder() { + } + private Builder(DataStreamFailureStore instance) { + this.enabled = instance.enabled; + this.lifecycle = instance.lifecycle; + + } /** * If defined, it turns the failure store on/off * (true/false) for this data stream. A data stream @@ -203,6 +210,12 @@ public DataStreamFailureStore build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStoreTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStoreTemplate.java index 448163a3c4..cfe2d304a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStoreTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamFailureStoreTemplate.java @@ -149,6 +149,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private FailureStoreLifecycleTemplate lifecycle; + public Builder() { + } + private Builder(DataStreamFailureStoreTemplate instance) { + this.enabled = instance.enabled; + this.lifecycle = instance.lifecycle; + + } /** * If defined, it turns the failure store on/off * (true/false) for this data stream. A data stream @@ -203,6 +210,12 @@ public DataStreamFailureStoreTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java index caf71166e1..af8c9d60b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamIndex.java @@ -218,6 +218,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexMode indexMode; + public Builder() { + } + private Builder(DataStreamIndex instance) { + this.indexName = instance.indexName; + this.indexUuid = instance.indexUuid; + this.ilmPolicy = instance.ilmPolicy; + this.managedBy = instance.managedBy; + this.preferIlm = instance.preferIlm; + this.indexMode = instance.indexMode; + + } /** * Required - Name of the backing index. *

                                                                                  @@ -297,6 +308,12 @@ public DataStreamIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java index 96605215d1..23bcf1d8d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleRolloverConditions.java @@ -301,6 +301,21 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long maxPrimaryShardDocs; + public Builder() { + } + private Builder(DataStreamLifecycleRolloverConditions instance) { + this.minAge = instance.minAge; + this.maxAge = instance.maxAge; + this.minDocs = instance.minDocs; + this.maxDocs = instance.maxDocs; + this.minSize = instance.minSize; + this.maxSize = instance.maxSize; + this.minPrimaryShardSize = instance.minPrimaryShardSize; + this.maxPrimaryShardSize = instance.maxPrimaryShardSize; + this.minPrimaryShardDocs = instance.minPrimaryShardDocs; + this.maxPrimaryShardDocs = instance.maxPrimaryShardDocs; + + } /** * API name: {@code min_age} */ @@ -406,6 +421,12 @@ public DataStreamLifecycleRolloverConditions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java index b16773b7d0..b24a95eb8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamLifecycleWithRollover.java @@ -112,6 +112,12 @@ public static class Builder extends DataStreamLifecycle.AbstractBuilder @Nullable private DataStreamLifecycleRolloverConditions rollover; + public Builder() { + } + private Builder(DataStreamLifecycleWithRollover instance) { + this.rollover = instance.rollover; + + } /** * The conditions which will trigger the rollover of a backing index as * configured by the cluster setting @@ -160,6 +166,12 @@ public DataStreamLifecycleWithRollover build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptions.java index 0b28db42af..491f1eeb0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptions.java @@ -120,6 +120,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DataStreamFailureStore failureStore; + public Builder() { + } + private Builder(DataStreamOptions instance) { + this.failureStore = instance.failureStore; + + } /** * If defined, it specifies configuration for the failure store of this data * stream. @@ -160,6 +166,12 @@ public DataStreamOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptionsTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptionsTemplate.java index 000dccb7b5..978b718934 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptionsTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamOptionsTemplate.java @@ -119,6 +119,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamFailureStoreTemplate failureStore; + public Builder() { + } + private Builder(DataStreamOptionsTemplate instance) { + this.failureStore = instance.failureStore; + + } /** * API name: {@code failure_store} */ @@ -153,6 +159,12 @@ public DataStreamOptionsTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java index ae0ea82874..fa008ea06f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamTimestampField.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String name; + public Builder() { + } + private Builder(DataStreamTimestampField instance) { + this.name = instance.name; + + } /** * Required - Name of the timestamp field for the data stream, which must be * @timestamp. The @timestamp field must be included @@ -147,6 +153,12 @@ public DataStreamTimestampField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java index 559e198bda..5abc8f1314 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamVisibility.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean allowCustomRouting; + public Builder() { + } + private Builder(DataStreamVisibility instance) { + this.hidden = instance.hidden; + this.allowCustomRouting = instance.allowCustomRouting; + + } /** * API name: {@code hidden} */ @@ -172,6 +179,12 @@ public DataStreamVisibility build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index 8727a8c5e0..9fd1855d54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(DataStreamsStatsRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.name = instance.name; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. @@ -193,6 +200,12 @@ public DataStreamsStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index ff1f711709..60663df0d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -154,6 +154,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteAliasRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * Required - Comma-separated list of data streams or indices used to limit the * request. Supports wildcards (*). @@ -268,6 +277,12 @@ public DeleteAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java index 61091a4aca..625fc2a3ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleRequest.java @@ -155,6 +155,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteDataLifecycleRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * Whether wildcard expressions should get expanded to open or closed indices * (default: open) @@ -263,6 +272,12 @@ public DeleteDataLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java index 6413c315a5..5711cb5b83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamOptionsRequest.java @@ -154,6 +154,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteDataStreamOptionsRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * Whether wildcard expressions should get expanded to open or closed indices *

                                                                                  @@ -260,6 +269,12 @@ public DeleteDataStreamOptionsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index 9a1bd32d61..46b7ca0e00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(DeleteDataStreamRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values,such as open,hidden. @@ -229,6 +237,12 @@ public DeleteDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java index 24d5ec9128..199c3cf222 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexRequest.java @@ -205,6 +205,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteIndexRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -351,6 +362,12 @@ public DeleteIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java index 9233fe6032..553c97a332 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java @@ -142,6 +142,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteIndexTemplateRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -228,6 +236,12 @@ public DeleteIndexTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java index 6c350ab926..3b88fb1a6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteSampleConfigurationRequest.java @@ -137,6 +137,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteSampleConfigurationRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Required - The name of the index. *

                                                                                  @@ -207,6 +215,12 @@ public DeleteSampleConfigurationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java index b103eeeb61..2e893b6cc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteTemplateRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -210,6 +218,12 @@ public DeleteTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java index 9ad1a4261a..d9fd3711d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DiskUsageRequest.java @@ -213,6 +213,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean runExpensiveTasks; + public Builder() { + } + private Builder(DiskUsageRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flush = instance.flush; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.runExpensiveTasks = instance.runExpensiveTasks; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. @@ -338,6 +349,12 @@ public DiskUsageRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java index 9c444cb038..88b3bb36ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleConfig.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SamplingMethod samplingMethod; + public Builder() { + } + private Builder(DownsampleConfig instance) { + this.fixedInterval = instance.fixedInterval; + this.samplingMethod = instance.samplingMethod; + + } /** * Required - The interval at which to aggregate the original time series index. *

                                                                                  @@ -185,6 +192,12 @@ public DownsampleConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java index d8e52b3b31..6aa1d81637 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsampleRequest.java @@ -153,6 +153,14 @@ public static class Builder extends RequestBase.AbstractBuilder private DownsampleConfig config; + public Builder() { + } + private Builder(DownsampleRequest instance) { + this.index = instance.index; + this.targetIndex = instance.targetIndex; + this.config = instance.config; + + } /** * Required - Name of the time series index to downsample. *

                                                                                  @@ -214,6 +222,12 @@ public DownsampleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createDownsampleRequestDeserializer(); protected static JsonpDeserializer createDownsampleRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java index b201cacfe1..ad08aba39b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DownsamplingRound.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Time fixedInterval; + public Builder() { + } + private Builder(DownsamplingRound instance) { + this.after = instance.after; + this.fixedInterval = instance.fixedInterval; + + } /** * Required - The duration since rollover when this downsampling round should * execute @@ -189,6 +196,12 @@ public DownsamplingRound build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java index 0080deacc8..87fd494c11 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java @@ -197,6 +197,17 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(ExistsAliasRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -344,6 +355,12 @@ public ExistsAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java index 6ae47b0ab7..53975191d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java @@ -157,6 +157,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(ExistsIndexTemplateRequest instance) { + this.flatSettings = instance.flatSettings; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If true, returns settings in flat format. *

                                                                                  @@ -228,6 +237,12 @@ public ExistsIndexTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index 642778b1a0..66a9bafbdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -211,6 +211,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean local; + public Builder() { + } + private Builder(ExistsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flatSettings = instance.flatSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeDefaults = instance.includeDefaults; + this.index = instance.index; + this.local = instance.local; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -340,6 +352,12 @@ public ExistsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java index 6e57062fdd..7a43c15123 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java @@ -168,6 +168,15 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(ExistsTemplateRequest instance) { + this.flatSettings = instance.flatSettings; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Indicates whether to use a flat format for the response. *

                                                                                  @@ -259,6 +268,12 @@ public ExistsTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java index bae1e58953..8fdad3a4b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -141,6 +141,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(ExplainDataLifecycleRequest instance) { + this.includeDefaults = instance.includeDefaults; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + + } /** * Indicates if the API should return the default values the system uses for the * index's lifecycle @@ -213,6 +221,12 @@ public ExplainDataLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStore.java index c36255dadf..7adf646d56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStore.java @@ -148,6 +148,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean rolloverOnWrite; + public Builder() { + } + private Builder(FailureStore instance) { + this.enabled = instance.enabled; + this.indices = instance.indices; + this.rolloverOnWrite = instance.rolloverOnWrite; + + } /** * Required - API name: {@code enabled} */ @@ -211,6 +219,12 @@ public FailureStore build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycle.java index c0f8b3de0a..1f3c145055 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycle.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean enabled; + public Builder() { + } + private Builder(FailureStoreLifecycle instance) { + this.dataRetention = instance.dataRetention; + this.enabled = instance.enabled; + + } /** * If defined, every document added to this data stream will be stored at least * for this time frame. Any time after this duration the document could be @@ -207,6 +214,12 @@ public FailureStoreLifecycle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycleTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycleTemplate.java index 62e79d7834..a3619f857a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycleTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FailureStoreLifecycleTemplate.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean enabled; + public Builder() { + } + private Builder(FailureStoreLifecycleTemplate instance) { + this.dataRetention = instance.dataRetention; + this.enabled = instance.enabled; + + } /** * If defined, every document added to this data stream will be stored at least * for this time frame. Any time after this duration the document could be @@ -206,6 +213,12 @@ public FailureStoreLifecycleTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java index b759dad795..de45ce735b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FieldUsageStatsRequest.java @@ -186,6 +186,16 @@ public static class Builder extends RequestBase.AbstractBuilder private List index; + public Builder() { + } + private Builder(FieldUsageStatsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.fields = instance.fields; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -312,6 +322,12 @@ public FieldUsageStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java index 5ea96751c7..bb00a193b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FielddataFrequencyFilter.java @@ -143,6 +143,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer minSegmentSize; + public Builder() { + } + private Builder(FielddataFrequencyFilter instance) { + this.max = instance.max; + this.min = instance.min; + this.minSegmentSize = instance.minSegmentSize; + + } /** * Required - API name: {@code max} */ @@ -185,6 +193,12 @@ public FielddataFrequencyFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java index 80f66941d8..b48d410788 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java @@ -215,6 +215,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitIfOngoing; + public Builder() { + } + private Builder(FlushRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.force = instance.force; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.waitIfOngoing = instance.waitIfOngoing; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -338,6 +349,12 @@ public FlushRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 506fe2fd3a..67abb75876 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 @@ -298,6 +298,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(ForcemergeRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flush = instance.flush; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.maxNumSegments = instance.maxNumSegments; + this.onlyExpungeDeletes = instance.onlyExpungeDeletes; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Whether to ignore if a wildcard indices expression resolves into no concrete * indices. (This includes _all string or when no indices have been @@ -431,6 +444,12 @@ public ForcemergeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index e302126dce..311d9c374e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -195,6 +195,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List name; + public Builder() { + } + private Builder(GetAliasRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -344,6 +355,12 @@ public GetAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java index 46f84f126f..768e259a8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAllSampleConfigurationRequest.java @@ -104,6 +104,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetAllSampleConfigurationRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -143,6 +149,12 @@ public GetAllSampleConfigurationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java index 738bc9cbf0..576917c2b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -157,6 +157,15 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(GetDataLifecycleRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.includeDefaults = instance.includeDefaults; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. @@ -260,6 +269,12 @@ public GetDataLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamMappingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamMappingsRequest.java index e7cfca7ab5..00f3bc135c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamMappingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamMappingsRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(GetDataStreamMappingsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * 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. @@ -186,6 +193,12 @@ public GetDataStreamMappingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamOptionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamOptionsRequest.java index 2b3b61eb56..8126d15e98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamOptionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamOptionsRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(GetDataStreamOptionsRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. @@ -232,6 +240,12 @@ public GetDataStreamOptionsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 52d0315e66..bdc550cb38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -175,6 +175,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean verbose; + public Builder() { + } + private Builder(GetDataStreamRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.includeDefaults = instance.includeDefaults; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.verbose = instance.verbose; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. @@ -289,6 +299,12 @@ public GetDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamSettingsRequest.java index 9c1320fa1a..19d2bc5a01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamSettingsRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List name; + public Builder() { + } + private Builder(GetDataStreamSettingsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * 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. @@ -186,6 +193,12 @@ public GetDataStreamSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java index a9b13a5429..6659c0ccc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java @@ -198,6 +198,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List index; + public Builder() { + } + private Builder(GetFieldMappingRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.fields = instance.fields; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeDefaults = instance.includeDefaults; + this.index = instance.index; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -334,6 +345,12 @@ public GetFieldMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java index 8a13ed23bc..ebc145466c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexRequest.java @@ -244,6 +244,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetIndexRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.features = instance.features; + this.flatSettings = instance.flatSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeDefaults = instance.includeDefaults; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. This behavior @@ -416,6 +430,12 @@ public GetIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index 5ab4c40d81..bb9ba50e87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -177,6 +177,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String name; + public Builder() { + } + private Builder(GetIndexTemplateRequest instance) { + this.flatSettings = instance.flatSettings; + this.includeDefaults = instance.includeDefaults; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If true, returns settings in flat format. *

                                                                                  @@ -261,6 +271,12 @@ public GetIndexTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java index 3a3189e583..4d39582192 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndicesSettingsRequest.java @@ -253,6 +253,20 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetIndicesSettingsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flatSettings = instance.flatSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeDefaults = instance.includeDefaults; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -434,6 +448,12 @@ public GetIndicesSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index d2e2c999cc..b6c5246092 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -203,6 +203,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetMappingRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -339,6 +350,12 @@ public GetMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMigrateReindexStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMigrateReindexStatusRequest.java index 7fd5291b27..7b6872f21e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMigrateReindexStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMigrateReindexStatusRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List index; + public Builder() { + } + private Builder(GetMigrateReindexStatusRequest instance) { + this.index = instance.index; + + } /** * Required - The index or data stream name. *

                                                                                  @@ -145,6 +151,12 @@ public GetMigrateReindexStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java index 29ca1ae117..cfe80ca0ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleConfigurationRequest.java @@ -118,6 +118,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetSampleConfigurationRequest instance) { + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + + } /** * Required - The name of the index. *

                                                                                  @@ -167,6 +174,12 @@ public GetSampleConfigurationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java index 7869ea0a33..3abedbc57c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleRequest.java @@ -98,6 +98,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String index; + public Builder() { + } + private Builder(GetSampleRequest instance) { + this.index = instance.index; + + } /** * Required - Single index or data stream name. Wildcards are not supported. *

                                                                                  @@ -126,6 +132,12 @@ public GetSampleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java index 4d943e8a55..25faa42289 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSampleStatsRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String index; + public Builder() { + } + private Builder(GetSampleStatsRequest instance) { + this.index = instance.index; + + } /** * Required - Single index or data stream name. Wildcards are not supported. *

                                                                                  @@ -127,6 +133,12 @@ public GetSampleStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java index 0166b87ede..03b3c1f5d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java @@ -168,6 +168,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetTemplateRequest instance) { + this.flatSettings = instance.flatSettings; + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If true, returns settings in flat format. *

                                                                                  @@ -262,6 +271,12 @@ public GetTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRouting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRouting.java index c8a8fbb59c..0a508874d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRouting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRouting.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexRoutingRebalance rebalance; + public Builder() { + } + private Builder(IndexRouting instance) { + this.allocation = instance.allocation; + this.rebalance = instance.rebalance; + + } /** * API name: {@code allocation} */ @@ -184,6 +191,12 @@ public IndexRouting build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocation.java index b970330319..907ec08af7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocation.java @@ -176,6 +176,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private IndexRoutingAllocationDisk disk; + public Builder() { + } + private Builder(IndexRoutingAllocation instance) { + this.enable = instance.enable; + this.include = instance.include; + this.initialRecovery = instance.initialRecovery; + this.disk = instance.disk; + + } /** * API name: {@code enable} */ @@ -250,6 +259,12 @@ public IndexRoutingAllocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationDisk.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationDisk.java index 5433c50a80..0174395f6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationDisk.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationDisk.java @@ -118,6 +118,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean thresholdEnabled; + public Builder() { + } + private Builder(IndexRoutingAllocationDisk instance) { + this.thresholdEnabled = instance.thresholdEnabled; + + } /** * API name: {@code threshold_enabled} */ @@ -144,6 +150,12 @@ public IndexRoutingAllocationDisk build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInclude.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInclude.java index aaec901734..bcd5910f55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInclude.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInclude.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String id; + public Builder() { + } + private Builder(IndexRoutingAllocationInclude instance) { + this.tierPreference = instance.tierPreference; + this.id = instance.id; + + } /** * API name: {@code _tier_preference} */ @@ -172,6 +179,12 @@ public IndexRoutingAllocationInclude build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInitialRecovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInitialRecovery.java index be6c63829b..cf4427028a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInitialRecovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingAllocationInitialRecovery.java @@ -119,6 +119,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String id; + public Builder() { + } + private Builder(IndexRoutingAllocationInitialRecovery instance) { + this.id = instance.id; + + } /** * API name: {@code _id} */ @@ -145,6 +151,12 @@ public IndexRoutingAllocationInitialRecovery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingRebalance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingRebalance.java index 437f95ac1b..19850cde21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingRebalance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexRoutingRebalance.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private IndexRoutingRebalanceOptions enable; + public Builder() { + } + private Builder(IndexRoutingRebalance instance) { + this.enable = instance.enable; + + } /** * Required - API name: {@code enable} */ @@ -138,6 +144,12 @@ public IndexRoutingRebalance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSegmentSort.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSegmentSort.java index 882d574361..95e5feb1b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSegmentSort.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSegmentSort.java @@ -186,6 +186,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List missing; + public Builder() { + } + private Builder(IndexSegmentSort instance) { + this.field = instance.field; + this.order = instance.order; + this.mode = instance.mode; + this.missing = instance.missing; + + } /** * API name: {@code field} *

                                                                                  @@ -284,6 +293,12 @@ public IndexSegmentSort build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingBlocks.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingBlocks.java index 93fbc4b1a2..7399ee4f82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingBlocks.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingBlocks.java @@ -198,6 +198,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean metadata; + public Builder() { + } + private Builder(IndexSettingBlocks instance) { + this.readOnly = instance.readOnly; + this.readOnlyAllowDelete = instance.readOnlyAllowDelete; + this.read = instance.read; + this.write = instance.write; + this.metadata = instance.metadata; + + } /** * API name: {@code read_only} */ @@ -256,6 +266,12 @@ public IndexSettingBlocks build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index f04619044b..7eb1d24ba3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -1307,6 +1307,67 @@ public final Builder otherSettings(String key, JsonData value) { @Nullable private Storage store; + public Builder() { + } + private Builder(IndexSettings instance) { + this.index = instance.index; + this.mode = instance.mode; + this.routingPath = instance.routingPath; + this.softDeletes = instance.softDeletes; + this.sort = instance.sort; + this.numberOfShards = instance.numberOfShards; + this.numberOfReplicas = instance.numberOfReplicas; + this.numberOfRoutingShards = instance.numberOfRoutingShards; + this.checkOnStartup = instance.checkOnStartup; + this.codec = instance.codec; + this.routingPartitionSize = instance.routingPartitionSize; + this.loadFixedBitsetFiltersEagerly = instance.loadFixedBitsetFiltersEagerly; + this.hidden = instance.hidden; + this.autoExpandReplicas = instance.autoExpandReplicas; + this.merge = instance.merge; + this.search = instance.search; + this.refreshInterval = instance.refreshInterval; + this.maxResultWindow = instance.maxResultWindow; + this.maxInnerResultWindow = instance.maxInnerResultWindow; + this.maxRescoreWindow = instance.maxRescoreWindow; + this.maxDocvalueFieldsSearch = instance.maxDocvalueFieldsSearch; + this.maxScriptFields = instance.maxScriptFields; + this.maxNgramDiff = instance.maxNgramDiff; + this.maxShingleDiff = instance.maxShingleDiff; + this.blocks = instance.blocks; + this.maxRefreshListeners = instance.maxRefreshListeners; + this.analyze = instance.analyze; + this.highlight = instance.highlight; + this.maxTermsCount = instance.maxTermsCount; + this.maxRegexLength = instance.maxRegexLength; + this.routing = instance.routing; + this.gcDeletes = instance.gcDeletes; + this.defaultPipeline = instance.defaultPipeline; + this.finalPipeline = instance.finalPipeline; + this.lifecycle = instance.lifecycle; + this.providedName = instance.providedName; + this.creationDate = instance.creationDate; + this.creationDateString = instance.creationDateString; + this.uuid = instance.uuid; + this.version = instance.version; + this.verifiedBeforeClose = instance.verifiedBeforeClose; + this.format = instance.format; + this.maxSlicesPerScroll = instance.maxSlicesPerScroll; + this.translog = instance.translog; + this.queryString = instance.queryString; + this.priority = instance.priority; + this.topMetricsMaxSize = instance.topMetricsMaxSize; + this.analysis = instance.analysis; + this.settings = instance.settings; + this.timeSeries = instance.timeSeries; + this.queries = instance.queries; + this.similarity = instance.similarity; + this.mapping = instance.mapping; + this.indexingSlowlog = instance.indexingSlowlog; + this.indexingPressure = instance.indexingPressure; + this.store = instance.store; + + } /** * API name: {@code index} */ @@ -2013,6 +2074,12 @@ public IndexSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsAnalysis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsAnalysis.java index c2ff074039..5a2eef378a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsAnalysis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsAnalysis.java @@ -225,6 +225,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map tokenizer; + public Builder() { + } + private Builder(IndexSettingsAnalysis instance) { + this.analyzer = instance.analyzer; + this.charFilter = instance.charFilter; + this.filter = instance.filter; + this.normalizer = instance.normalizer; + this.tokenizer = instance.tokenizer; + + } /** * API name: {@code analyzer} *

                                                                                  @@ -388,6 +398,12 @@ public IndexSettingsAnalysis build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycle.java index 6ea6e1cfe9..6f2fcb666e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycle.java @@ -268,6 +268,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean preferIlm; + public Builder() { + } + private Builder(IndexSettingsLifecycle instance) { + this.name = instance.name; + this.indexingComplete = instance.indexingComplete; + this.originationDate = instance.originationDate; + this.parseOriginationDate = instance.parseOriginationDate; + this.step = instance.step; + this.rolloverAlias = instance.rolloverAlias; + this.preferIlm = instance.preferIlm; + + } /** * The name of the policy to use to manage the index. For information about how * Elasticsearch applies policy changes, see Policy updates. @@ -378,6 +390,12 @@ public IndexSettingsLifecycle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycleStep.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycleStep.java index d48d7e19db..985fb2b1e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycleStep.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsLifecycleStep.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time waitTimeThreshold; + public Builder() { + } + private Builder(IndexSettingsLifecycleStep instance) { + this.waitTimeThreshold = instance.waitTimeThreshold; + + } /** * Time to wait for the cluster to resolve allocation issues during an ILM * shrink action. Must be greater than 1h (1 hour). See Shard allocation for @@ -163,6 +169,12 @@ public IndexSettingsLifecycleStep build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsTimeSeries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsTimeSeries.java index 85d2288cf9..9398da1755 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsTimeSeries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsTimeSeries.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DateTime startTime; + public Builder() { + } + private Builder(IndexSettingsTimeSeries instance) { + this.endTime = instance.endTime; + this.startTime = instance.startTime; + + } /** * API name: {@code end_time} */ @@ -170,6 +177,12 @@ public IndexSettingsTimeSeries build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java index b787c554a2..d618660141 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java @@ -227,6 +227,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DataStreamLifecycle lifecycle; + public Builder() { + } + private Builder(IndexState instance) { + this.aliases = instance.aliases; + this.mappings = instance.mappings; + this.settings = instance.settings; + this.defaults = instance.defaults; + this.dataStream = instance.dataStream; + this.lifecycle = instance.lifecycle; + + } /** * API name: {@code aliases} *

                                                                                  @@ -352,6 +363,12 @@ public IndexState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java index 68bbc110ad..c8ae0e52e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplate.java @@ -129,7 +129,8 @@ public static IndexTemplate of(Function> f } /** - * Required - Name of the index template. + * Required - Array of wildcard (*) expressions used to match the + * names of data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} */ @@ -434,8 +435,28 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long modifiedDateMillis; + public Builder() { + } + private Builder(IndexTemplate instance) { + this.indexPatterns = instance.indexPatterns; + this.composedOf = instance.composedOf; + this.template = instance.template; + this.version = instance.version; + this.priority = instance.priority; + this.meta = instance.meta; + this.allowAutoCreate = instance.allowAutoCreate; + this.dataStream = instance.dataStream; + this.deprecated = instance.deprecated; + this.ignoreMissingComponentTemplates = instance.ignoreMissingComponentTemplates; + this.createdDate = instance.createdDate; + this.createdDateMillis = instance.createdDateMillis; + this.modifiedDate = instance.modifiedDate; + this.modifiedDateMillis = instance.modifiedDateMillis; + + } /** - * Required - Name of the index template. + * Required - Array of wildcard (*) expressions used to match the + * names of data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} *

                                                                                  @@ -447,7 +468,8 @@ public final Builder indexPatterns(List list) { } /** - * Required - Name of the index template. + * Required - Array of wildcard (*) expressions used to match the + * names of data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} *

                                                                                  @@ -689,6 +711,12 @@ public IndexTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateDataStreamConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateDataStreamConfiguration.java index db010925a9..eb175b473e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateDataStreamConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateDataStreamConfiguration.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean allowCustomRouting; + public Builder() { + } + private Builder(IndexTemplateDataStreamConfiguration instance) { + this.hidden = instance.hidden; + this.allowCustomRouting = instance.allowCustomRouting; + + } /** * If true, the data stream is hidden. *

                                                                                  @@ -181,6 +188,12 @@ public IndexTemplateDataStreamConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java index 2d2b957fca..53089fe50f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexTemplateSummary.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamOptions dataStreamOptions; + public Builder() { + } + private Builder(IndexTemplateSummary instance) { + this.aliases = instance.aliases; + this.mappings = instance.mappings; + this.settings = instance.settings; + this.lifecycle = instance.lifecycle; + this.dataStreamOptions = instance.dataStreamOptions; + + } /** * Aliases to add. If the index template includes a data_stream * object, these are data stream aliases. Otherwise, these are index aliases. @@ -349,6 +359,12 @@ public IndexTemplateSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexVersioning.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexVersioning.java index 5a3a1527aa..680bc439c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexVersioning.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexVersioning.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String createdString; + public Builder() { + } + private Builder(IndexVersioning instance) { + this.created = instance.created; + this.createdString = instance.createdString; + + } /** * API name: {@code created} */ @@ -169,6 +176,12 @@ public IndexVersioning build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressure.java index 5d51352ce3..4ad647f848 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressure.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private IndexingPressureMemory memory; + public Builder() { + } + private Builder(IndexingPressure instance) { + this.memory = instance.memory; + + } /** * Required - API name: {@code memory} */ @@ -143,6 +149,12 @@ public IndexingPressure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressureMemory.java index bba23689f2..ce1c7db4c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingPressureMemory.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer limit; + public Builder() { + } + private Builder(IndexingPressureMemory instance) { + this.limit = instance.limit; + + } /** * Number of outstanding bytes that may be consumed by indexing requests. When * this limit is reached or exceeded, the node will reject new coordinating and @@ -154,6 +160,12 @@ public IndexingPressureMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java index abb2011eb5..6fc8121594 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogSettings.java @@ -180,6 +180,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private IndexingSlowlogTresholds threshold; + public Builder() { + } + private Builder(IndexingSlowlogSettings instance) { + this.level = instance.level; + this.source = instance.source; + this.reformat = instance.reformat; + this.threshold = instance.threshold; + + } /** * API name: {@code level} */ @@ -238,6 +247,12 @@ public IndexingSlowlogSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java index b46b97a737..51548c413c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexingSlowlogTresholds.java @@ -121,6 +121,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private SlowlogTresholdLevels index; + public Builder() { + } + private Builder(IndexingSlowlogTresholds instance) { + this.index = instance.index; + + } /** * The indexing slow log, similar in functionality to the search slow log. The * log file name ends with _index_indexing_slowlog.json. Log and @@ -162,6 +168,12 @@ public IndexingSlowlogTresholds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java index 38ee991377..f01df0a45b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndicesStatsRequest.java @@ -287,6 +287,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List metric; + public Builder() { + } + private Builder(IndicesStatsRequest instance) { + this.completionFields = instance.completionFields; + this.expandWildcards = instance.expandWildcards; + this.fielddataFields = instance.fielddataFields; + this.fields = instance.fields; + this.forbidClosedIndices = instance.forbidClosedIndices; + this.groups = instance.groups; + this.includeSegmentFileSizes = instance.includeSegmentFileSizes; + this.includeUnloadedSegments = instance.includeUnloadedSegments; + this.index = instance.index; + this.level = instance.level; + this.metric = instance.metric; + + } /** * Comma-separated list or wildcard expressions of fields to include in * fielddata and suggest statistics. @@ -530,6 +546,12 @@ public IndicesStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java index b26ea146eb..17f74a704a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettings.java @@ -282,6 +282,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean ignoreMalformed; + public Builder() { + } + private Builder(MappingLimitSettings instance) { + this.coerce = instance.coerce; + this.totalFields = instance.totalFields; + this.depth = instance.depth; + this.nestedFields = instance.nestedFields; + this.nestedObjects = instance.nestedObjects; + this.fieldNameLength = instance.fieldNameLength; + this.dimensionFields = instance.dimensionFields; + this.source = instance.source; + this.ignoreMalformed = instance.ignoreMalformed; + + } /** * API name: {@code coerce} */ @@ -428,6 +442,12 @@ public MappingLimitSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java index 61b93c9ce1..64bd683bcd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDepth.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long limit; + public Builder() { + } + private Builder(MappingLimitSettingsDepth instance) { + this.limit = instance.limit; + + } /** * The maximum depth for a field, which is measured as the number of inner * objects. For instance, if all fields are defined at the root object level, @@ -154,6 +160,12 @@ public MappingLimitSettingsDepth build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java index 52de5458e7..0562803c93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsDimensionFields.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long limit; + public Builder() { + } + private Builder(MappingLimitSettingsDimensionFields instance) { + this.limit = instance.limit; + + } /** * [preview] This functionality is in technical preview and may be changed or * removed in a future release. Elastic will work to fix any issues, but @@ -155,6 +161,12 @@ public MappingLimitSettingsDimensionFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java index d268bd7f05..d8f239b7bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsFieldNameLength.java @@ -126,6 +126,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long limit; + public Builder() { + } + private Builder(MappingLimitSettingsFieldNameLength instance) { + this.limit = instance.limit; + + } /** * Setting for the maximum length of a field name. This setting isn’t really * something that addresses mappings explosion but might still be useful if you @@ -159,6 +165,12 @@ public MappingLimitSettingsFieldNameLength build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java index 7bff318451..73f9882b9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedFields.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long limit; + public Builder() { + } + private Builder(MappingLimitSettingsNestedFields instance) { + this.limit = instance.limit; + + } /** * The maximum number of distinct nested mappings in an index. The nested type * should only be used in special cases, when arrays of objects need to be @@ -155,6 +161,12 @@ public MappingLimitSettingsNestedFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java index d29c6b76ad..05b2ef8940 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsNestedObjects.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long limit; + public Builder() { + } + private Builder(MappingLimitSettingsNestedObjects instance) { + this.limit = instance.limit; + + } /** * The maximum number of nested JSON objects that a single document can contain * across all nested types. This limit helps to prevent out of memory errors @@ -153,6 +159,12 @@ public MappingLimitSettingsNestedObjects build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsSourceFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsSourceFields.java index eb76502436..664f41fba8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsSourceFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsSourceFields.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private SourceMode mode; + public Builder() { + } + private Builder(MappingLimitSettingsSourceFields instance) { + this.mode = instance.mode; + + } /** * Required - API name: {@code mode} */ @@ -139,6 +145,12 @@ public MappingLimitSettingsSourceFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java index 3dfe8f1a42..2184829c13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java @@ -154,6 +154,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean ignoreDynamicBeyondLimit; + public Builder() { + } + private Builder(MappingLimitSettingsTotalFields instance) { + this.limit = instance.limit; + this.ignoreDynamicBeyondLimit = instance.ignoreDynamicBeyondLimit; + + } /** * The maximum number of fields in an index. Field and object mappings, as well * as field aliases count towards this limit. The limit is in place to prevent @@ -202,6 +209,12 @@ public MappingLimitSettingsTotalFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java index d9e94b6c30..708c9c5dc2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Merge.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private MergeScheduler scheduler; + public Builder() { + } + private Builder(Merge instance) { + this.scheduler = instance.scheduler; + + } /** * API name: {@code scheduler} */ @@ -147,6 +153,12 @@ public Merge build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java index caf86bbba7..288789727d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MergeScheduler.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer maxMergeCount; + public Builder() { + } + private Builder(MergeScheduler instance) { + this.maxThreadCount = instance.maxThreadCount; + this.maxMergeCount = instance.maxMergeCount; + + } /** * API name: {@code max_thread_count} */ @@ -169,6 +176,12 @@ public MergeScheduler build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateReindexRequest.java index 60558aabed..55cf49b905 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateReindexRequest.java @@ -108,6 +108,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private MigrateReindex reindex; + public Builder() { + } + private Builder(MigrateReindexRequest instance) { + this.reindex = instance.reindex; + + } /** * Required - Request body. */ @@ -149,6 +155,12 @@ public MigrateReindexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createMigrateReindexRequestDeserializer(); protected static JsonpDeserializer createMigrateReindexRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index 5123133b0b..e4c057e240 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -144,6 +144,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(MigrateToDataStreamRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * 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. @@ -214,6 +222,12 @@ public MigrateToDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java index bb759bc854..19aa4d3f93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ModifyDataStreamRequest.java @@ -127,6 +127,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List actions; + public Builder() { + } + private Builder(ModifyDataStreamRequest instance) { + this.actions = instance.actions; + + } /** * Required - Actions to perform. *

                                                                                  @@ -195,6 +201,12 @@ public ModifyDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java index 836147ce0c..f3b8c44c04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/NumericFielddata.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private NumericFielddataFormat format; + public Builder() { + } + private Builder(NumericFielddata instance) { + this.format = instance.format; + + } /** * Required - API name: {@code format} */ @@ -135,6 +141,12 @@ public NumericFielddata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java index d47a309bc6..b37e152f3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java @@ -250,6 +250,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(OpenRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -424,6 +436,12 @@ public OpenRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java index 7b5acd661a..a342e87275 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java @@ -133,6 +133,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(PromoteDataStreamRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * 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. @@ -182,6 +189,12 @@ public PromoteDataStreamRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java index af3c93d50f..eeb12f18cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java @@ -301,6 +301,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAliasRequest instance) { + this.filter = instance.filter; + this.index = instance.index; + this.indexRouting = instance.indexRouting; + this.isWriteIndex = instance.isWriteIndex; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.routing = instance.routing; + this.searchRouting = instance.searchRouting; + this.timeout = instance.timeout; + + } /** * Query used to limit documents the alias can access. *

                                                                                  @@ -527,6 +541,12 @@ public PutAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java index 42cfd5833b..12c5c573da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleRequest.java @@ -273,6 +273,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutDataLifecycleRequest instance) { + this.dataRetention = instance.dataRetention; + this.downsampling = instance.downsampling; + this.downsamplingMethod = instance.downsamplingMethod; + this.enabled = instance.enabled; + this.expandWildcards = instance.expandWildcards; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * If defined, every document added to this data stream will be stored at least * for this time frame. Any time after this duration the document could be @@ -475,6 +488,12 @@ public PutDataLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamMappingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamMappingsRequest.java index f2d28a3381..5625701148 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamMappingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamMappingsRequest.java @@ -187,6 +187,16 @@ public static class Builder extends RequestBase.AbstractBuilder private TypeMapping mappings; + public Builder() { + } + private Builder(PutDataStreamMappingsRequest instance) { + this.dryRun = instance.dryRun; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + this.mappings = instance.mappings; + + } /** * If true, the request does not actually change the mappings on * any data streams. Instead, it simulates changing the settings and reports @@ -307,6 +317,12 @@ public PutDataStreamMappingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutDataStreamMappingsRequestDeserializer(); protected static JsonpDeserializer createPutDataStreamMappingsRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java index 1926cd6b42..21c52ad8e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamOptionsRequest.java @@ -196,6 +196,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutDataStreamOptionsRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.failureStore = instance.failureStore; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * Type of data stream that wildcard patterns can match. Supports * comma-separated values, such as open,hidden. @@ -332,6 +342,12 @@ public PutDataStreamOptionsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamSettingsRequest.java index 2a21be2a88..172b9daf07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataStreamSettingsRequest.java @@ -187,6 +187,16 @@ public static class Builder extends RequestBase.AbstractBuilder private IndexSettings settings; + public Builder() { + } + private Builder(PutDataStreamSettingsRequest instance) { + this.dryRun = instance.dryRun; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + this.settings = instance.settings; + + } /** * If true, the request does not actually change the settings on * any data streams or indices. Instead, it simulates changing the settings and @@ -307,6 +317,12 @@ public PutDataStreamSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutDataStreamSettingsRequestDeserializer(); protected static JsonpDeserializer createPutDataStreamSettingsRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index 29763aa7a2..06f8c2af24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -269,7 +269,8 @@ public final List ignoreMissingComponentTemplates() { } /** - * Name of the index template to create. + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} */ @@ -470,6 +471,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long version; + public Builder() { + } + private Builder(PutIndexTemplateRequest instance) { + this.meta = instance.meta; + this.allowAutoCreate = instance.allowAutoCreate; + this.cause = instance.cause; + this.composedOf = instance.composedOf; + this.create = instance.create; + this.dataStream = instance.dataStream; + this.deprecated = instance.deprecated; + this.ignoreMissingComponentTemplates = instance.ignoreMissingComponentTemplates; + this.indexPatterns = instance.indexPatterns; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.priority = instance.priority; + this.template = instance.template; + this.version = instance.version; + + } /** * Optional user metadata about the index template. It may have any contents. It * is not automatically generated or used by Elasticsearch. This user-defined @@ -628,7 +648,8 @@ public final Builder ignoreMissingComponentTemplates(String value, String... val } /** - * Name of the index template to create. + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} *

                                                                                  @@ -640,7 +661,8 @@ public final Builder indexPatterns(List list) { } /** - * Name of the index template to create. + * Array of wildcard (*) expressions used to match the names of + * data streams and indices during creation. *

                                                                                  * API name: {@code index_patterns} *

                                                                                  @@ -748,6 +770,12 @@ public PutIndexTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java index af6b3ef27f..f3e414a1c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndicesSettingsRequest.java @@ -344,6 +344,21 @@ public static class Builder extends RequestBase.AbstractBuilder private IndexSettings settings; + public Builder() { + } + private Builder(PutIndicesSettingsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.flatSettings = instance.flatSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.preserveExisting = instance.preserveExisting; + this.reopen = instance.reopen; + this.timeout = instance.timeout; + this.settings = instance.settings; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -542,6 +557,12 @@ public PutIndicesSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutIndicesSettingsRequestDeserializer(); protected static JsonpDeserializer createPutIndicesSettingsRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index 99b09c0c87..d37ca2b51a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -527,6 +527,29 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean writeIndexOnly; + public Builder() { + } + private Builder(PutMappingRequest instance) { + this.fieldNames = instance.fieldNames; + this.meta = instance.meta; + this.routing = instance.routing; + this.source = instance.source; + this.allowNoIndices = instance.allowNoIndices; + this.dateDetection = instance.dateDetection; + this.dynamic = instance.dynamic; + this.dynamicDateFormats = instance.dynamicDateFormats; + this.dynamicTemplates = instance.dynamicTemplates; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.numericDetection = instance.numericDetection; + this.properties = instance.properties; + this.runtime = instance.runtime; + this.timeout = instance.timeout; + this.writeIndexOnly = instance.writeIndexOnly; + + } /** * Control whether field names are enabled for the index. *

                                                                                  @@ -934,6 +957,12 @@ public PutMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java index 89cb0022ca..00ce34e395 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSampleConfigurationRequest.java @@ -263,6 +263,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutSampleConfigurationRequest instance) { + this.if_ = instance.if_; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.maxSamples = instance.maxSamples; + this.maxSize = instance.maxSize; + this.rate = instance.rate; + this.timeToLive = instance.timeToLive; + this.timeout = instance.timeout; + + } /** * An optional condition script that sampled documents must satisfy. *

                                                                                  @@ -397,6 +410,12 @@ public PutSampleConfigurationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index e8253e3464..9437bb7469 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -348,6 +348,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long version; + public Builder() { + } + private Builder(PutTemplateRequest instance) { + this.aliases = instance.aliases; + this.cause = instance.cause; + this.create = instance.create; + this.indexPatterns = instance.indexPatterns; + this.mappings = instance.mappings; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.order = instance.order; + this.settings = instance.settings; + this.version = instance.version; + + } /** * Aliases for the index. *

                                                                                  @@ -542,6 +557,12 @@ public PutTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java index f5db744970..ba1e18b097 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Queries.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private CacheQueries cache; + public Builder() { + } + private Builder(Queries instance) { + this.cache = instance.cache; + + } /** * API name: {@code cache} */ @@ -147,6 +153,12 @@ public Queries build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java index 94914c0721..17222b96cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java @@ -227,6 +227,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List index; + public Builder() { + } + private Builder(RecoveryRequest instance) { + this.activeOnly = instance.activeOnly; + this.allowNoIndices = instance.allowNoIndices; + this.detailed = instance.detailed; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + + } /** * If true, the response only includes ongoing shard recoveries. *

                                                                                  @@ -348,6 +359,12 @@ public RecoveryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java index 990ccc09bb..a63c6198db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -181,6 +181,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List index; + public Builder() { + } + private Builder(RefreshRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -281,6 +290,12 @@ public RefreshRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java index 5a42e52368..38264a2db2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java @@ -193,6 +193,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String resource; + public Builder() { + } + private Builder(ReloadSearchAnalyzersRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.resource = instance.resource; + + } /** * Whether to ignore if a wildcard indices expression resolves into no concrete * indices. (This includes _all string or when no indices have been @@ -294,6 +304,12 @@ public ReloadSearchAnalyzersRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java index 5c5105e401..b53c0e3c9a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RemoveBlockRequest.java @@ -223,6 +223,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(RemoveBlockRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.block = instance.block; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -395,6 +407,12 @@ public RemoveBlockRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java index 0fc69d5819..4b92490307 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveClusterRequest.java @@ -300,6 +300,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ResolveClusterRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. @@ -469,6 +480,12 @@ public ResolveClusterRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index 0bc6d4878e..2445d79ac8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -221,6 +221,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String projectRouting; + public Builder() { + } + private Builder(ResolveIndexRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.mode = instance.mode; + this.name = instance.name; + this.projectRouting = instance.projectRouting; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -364,6 +375,12 @@ public ResolveIndexRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java index 0111463c2a..61d920e6a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RetentionLease.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Time period; + public Builder() { + } + private Builder(RetentionLease instance) { + this.period = instance.period; + + } /** * Required - API name: {@code period} */ @@ -143,6 +149,12 @@ public RetentionLease build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index 2bdccef301..14265bdf4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -382,6 +382,22 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(RolloverRequest instance) { + this.alias = instance.alias; + this.aliases = instance.aliases; + this.conditions = instance.conditions; + this.dryRun = instance.dryRun; + this.lazy = instance.lazy; + this.mappings = instance.mappings; + this.masterTimeout = instance.masterTimeout; + this.newIndex = instance.newIndex; + this.settings = instance.settings; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * Required - Name of the data stream or index alias to roll over. *

                                                                                  @@ -621,6 +637,12 @@ public RolloverRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java index 6d33c28204..22e2af86fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SamplingConfiguration.java @@ -280,6 +280,20 @@ public static class Builder extends WithJsonObjectBuilderBase private Long creationTimeInMillis; + public Builder() { + } + private Builder(SamplingConfiguration instance) { + this.rate = instance.rate; + this.maxSamples = instance.maxSamples; + this.maxSize = instance.maxSize; + this.maxSizeInBytes = instance.maxSizeInBytes; + this.timeToLive = instance.timeToLive; + this.timeToLiveInMillis = instance.timeToLiveInMillis; + this.if_ = instance.if_; + this.creationTime = instance.creationTime; + this.creationTimeInMillis = instance.creationTimeInMillis; + + } /** * Required - The fraction of documents to sample between 0 and 1. *

                                                                                  @@ -399,6 +413,12 @@ public SamplingConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java index b0d492f777..7e9090eda3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SearchIdle.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time after; + public Builder() { + } + private Builder(SearchIdle instance) { + this.after = instance.after; + + } /** * API name: {@code after} */ @@ -148,6 +154,12 @@ public SearchIdle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java index e19942b158..a2bf16367b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java @@ -160,6 +160,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List index; + public Builder() { + } + private Builder(SegmentsRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + + } /** * If false, the request returns an error if any wildcard * expression, index alias, or _all value targets only missing or @@ -260,6 +269,12 @@ public SegmentsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java index eb547c319d..d36004174e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsAnalyze.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer maxTokenCount; + public Builder() { + } + private Builder(SettingsAnalyze instance) { + this.maxTokenCount = instance.maxTokenCount; + + } /** * API name: {@code max_token_count} */ @@ -141,6 +147,12 @@ public SettingsAnalyze build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java index 5148f36e62..e8e78b2a13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsHighlight.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer maxAnalyzedOffset; + public Builder() { + } + private Builder(SettingsHighlight instance) { + this.maxAnalyzedOffset = instance.maxAnalyzedOffset; + + } /** * API name: {@code max_analyzed_offset} */ @@ -142,6 +148,12 @@ public SettingsHighlight build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java index 474684a3bc..fbdc635a28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsQueryString.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Boolean lenient; + public Builder() { + } + private Builder(SettingsQueryString instance) { + this.lenient = instance.lenient; + + } /** * Required - API name: {@code lenient} */ @@ -138,6 +144,12 @@ public SettingsQueryString build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java index 94ab246611..b69c24e798 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSearch.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SlowlogSettings slowlog; + public Builder() { + } + private Builder(SettingsSearch instance) { + this.idle = instance.idle; + this.slowlog = instance.slowlog; + + } /** * API name: {@code idle} */ @@ -182,6 +189,12 @@ public SettingsSearch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java index 82ff733839..a50e3129f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBm25.java @@ -169,6 +169,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double k1; + public Builder() { + } + private Builder(SettingsSimilarityBm25 instance) { + this.b = instance.b; + this.discountOverlaps = instance.discountOverlaps; + this.k1 = instance.k1; + + } /** * API name: {@code b} */ @@ -211,6 +219,12 @@ public SettingsSimilarityBm25 build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java index e3016b8f16..8ded15b0d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityBoolean.java @@ -104,6 +104,11 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + public Builder() { + } + private Builder(SettingsSimilarityBoolean instance) { + + } @Override protected Builder self() { return this; @@ -122,6 +127,12 @@ public SettingsSimilarityBoolean build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java index 596a78bd35..db0c7687e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfi.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private DFIIndependenceMeasure independenceMeasure; + public Builder() { + } + private Builder(SettingsSimilarityDfi instance) { + this.independenceMeasure = instance.independenceMeasure; + + } /** * Required - API name: {@code independence_measure} */ @@ -150,6 +156,12 @@ public SettingsSimilarityDfi build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java index 9e022df975..dd3af9ef98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityDfr.java @@ -153,6 +153,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Normalization normalization; + public Builder() { + } + private Builder(SettingsSimilarityDfr instance) { + this.afterEffect = instance.afterEffect; + this.basicModel = instance.basicModel; + this.normalization = instance.normalization; + + } /** * Required - API name: {@code after_effect} */ @@ -195,6 +203,12 @@ public SettingsSimilarityDfr build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java index ad8bf0ba13..6f2ad1cc86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityIb.java @@ -153,6 +153,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Normalization normalization; + public Builder() { + } + private Builder(SettingsSimilarityIb instance) { + this.distribution = instance.distribution; + this.lambda = instance.lambda; + this.normalization = instance.normalization; + + } /** * Required - API name: {@code distribution} */ @@ -195,6 +203,12 @@ public SettingsSimilarityIb build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java index 298c45d958..2b615e55d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmd.java @@ -128,6 +128,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double mu; + public Builder() { + } + private Builder(SettingsSimilarityLmd instance) { + this.mu = instance.mu; + + } /** * API name: {@code mu} */ @@ -154,6 +160,12 @@ public SettingsSimilarityLmd build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java index 5c8998fd8f..b5c6106ab5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityLmj.java @@ -128,6 +128,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double lambda; + public Builder() { + } + private Builder(SettingsSimilarityLmj instance) { + this.lambda = instance.lambda; + + } /** * API name: {@code lambda} */ @@ -154,6 +160,12 @@ public SettingsSimilarityLmj build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java index daa33e2767..de5f6f9e67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SettingsSimilarityScripted.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Script weightScript; + public Builder() { + } + private Builder(SettingsSimilarityScripted instance) { + this.script = instance.script; + this.weightScript = instance.weightScript; + + } /** * Required - API name: {@code script} */ @@ -192,6 +199,12 @@ public SettingsSimilarityScripted build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java index 22e3e317b1..163bec68a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java @@ -186,6 +186,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List status; + public Builder() { + } + private Builder(ShardStoresRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.status = instance.status; + + } /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. This behavior @@ -302,6 +312,12 @@ public ShardStoresRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java index 686da5b11d..94bd852f82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java @@ -290,6 +290,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(ShrinkRequest instance) { + this.aliases = instance.aliases; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.settings = instance.settings; + this.target = instance.target; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * The key is the alias name. Index alias names support date math. *

                                                                                  @@ -453,6 +465,12 @@ public ShrinkRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index afc08b75af..a8de6425b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -196,6 +196,17 @@ public static class Builder extends RequestBase.AbstractBuilder private IndexTemplate indexTemplate; + public Builder() { + } + private Builder(SimulateIndexTemplateRequest instance) { + this.cause = instance.cause; + this.create = instance.create; + this.includeDefaults = instance.includeDefaults; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.indexTemplate = instance.indexTemplate; + + } /** * User defined reason for dry-run creating the new template for simulation * purposes @@ -300,6 +311,12 @@ public SimulateIndexTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createSimulateIndexTemplateRequestDeserializer(); protected static JsonpDeserializer createSimulateIndexTemplateRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java index 6d3697041c..8fc383d4d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java @@ -453,6 +453,26 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long version; + public Builder() { + } + private Builder(SimulateTemplateRequest instance) { + this.meta = instance.meta; + this.allowAutoCreate = instance.allowAutoCreate; + this.cause = instance.cause; + this.composedOf = instance.composedOf; + this.create = instance.create; + this.dataStream = instance.dataStream; + this.deprecated = instance.deprecated; + this.ignoreMissingComponentTemplates = instance.ignoreMissingComponentTemplates; + this.includeDefaults = instance.includeDefaults; + this.indexPatterns = instance.indexPatterns; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.priority = instance.priority; + this.template = instance.template; + this.version = instance.version; + + } /** * Optional user metadata about the index template. May have any contents. This * map is not automatically generated by Elasticsearch. @@ -742,6 +762,12 @@ public SimulateTemplateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java index d191134f22..d3adb83858 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogSettings.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SlowlogTresholds threshold; + public Builder() { + } + private Builder(SlowlogSettings instance) { + this.level = instance.level; + this.source = instance.source; + this.reformat = instance.reformat; + this.threshold = instance.threshold; + + } /** * API name: {@code level} */ @@ -234,6 +243,12 @@ public SlowlogSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java index 16e3e513f5..6e0df29dd7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholdLevels.java @@ -178,6 +178,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time trace; + public Builder() { + } + private Builder(SlowlogTresholdLevels instance) { + this.warn = instance.warn; + this.info = instance.info; + this.debug = instance.debug; + this.trace = instance.trace; + + } /** * API name: {@code warn} */ @@ -256,6 +265,12 @@ public SlowlogTresholdLevels build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java index 4354d448af..df5abb688b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SlowlogTresholds.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private SlowlogTresholdLevels fetch; + public Builder() { + } + private Builder(SlowlogTresholds instance) { + this.query = instance.query; + this.fetch = instance.fetch; + + } /** * API name: {@code query} */ @@ -182,6 +189,12 @@ public SlowlogTresholds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java index 13aa7f0d7f..6cba7bf4fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SoftDeletes.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RetentionLease retentionLease; + public Builder() { + } + private Builder(SoftDeletes instance) { + this.enabled = instance.enabled; + this.retentionLease = instance.retentionLease; + + } /** * Indicates whether soft deletes are enabled on the index. *

                                                                                  @@ -198,6 +205,12 @@ public SoftDeletes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java index fd10250a98..932bb47185 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java @@ -298,6 +298,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private WaitForActiveShards waitForActiveShards; + public Builder() { + } + private Builder(SplitRequest instance) { + this.aliases = instance.aliases; + this.index = instance.index; + this.masterTimeout = instance.masterTimeout; + this.settings = instance.settings; + this.target = instance.target; + this.timeout = instance.timeout; + this.waitForActiveShards = instance.waitForActiveShards; + + } /** * Aliases for the resulting index. *

                                                                                  @@ -461,6 +473,12 @@ public SplitRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java index b37a72ce72..fc3e9167f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Storage.java @@ -162,6 +162,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time statsRefreshInterval; + public Builder() { + } + private Builder(Storage instance) { + this.type = instance.type; + this.allowMmap = instance.allowMmap; + this.statsRefreshInterval = instance.statsRefreshInterval; + + } /** * Required - API name: {@code type} */ @@ -230,6 +238,12 @@ public Storage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java index 3dabeaddae..c4bcbd850e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TemplateMapping.java @@ -220,6 +220,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long version; + public Builder() { + } + private Builder(TemplateMapping instance) { + this.aliases = instance.aliases; + this.indexPatterns = instance.indexPatterns; + this.mappings = instance.mappings; + this.order = instance.order; + this.settings = instance.settings; + this.version = instance.version; + + } /** * Required - API name: {@code aliases} *

                                                                                  @@ -338,6 +349,12 @@ public TemplateMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java index 5f42a6e057..694d643211 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Translog.java @@ -189,6 +189,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private TranslogRetention retention; + public Builder() { + } + private Builder(Translog instance) { + this.syncInterval = instance.syncInterval; + this.durability = instance.durability; + this.flushThresholdSize = instance.flushThresholdSize; + this.retention = instance.retention; + + } /** * How often the translog is fsynced to disk and committed, regardless of write * operations. Values less than 100ms are not allowed. @@ -270,6 +279,12 @@ public Translog build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogRetention.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogRetention.java index 5b768461b6..159b8652b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogRetention.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/TranslogRetention.java @@ -153,6 +153,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time age; + public Builder() { + } + private Builder(TranslogRetention instance) { + this.size = instance.size; + this.age = instance.age; + + } /** * This controls the total size of translog files to keep for each shard. * Keeping more translog files increases the chance of performing an operation @@ -218,6 +225,12 @@ public TranslogRetention build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java index 3c6cd110c0..78bfdeb1a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java @@ -165,6 +165,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(UpdateAliasesRequest instance) { + this.actions = instance.actions; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Actions to perform. *

                                                                                  @@ -275,6 +283,12 @@ public UpdateAliasesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java index 218ff9c0c1..4fc6a7e30e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java @@ -363,6 +363,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean rewrite; + public Builder() { + } + private Builder(ValidateQueryRequest instance) { + this.allShards = instance.allShards; + this.allowNoIndices = instance.allowNoIndices; + this.analyzeWildcard = instance.analyzeWildcard; + this.analyzer = instance.analyzer; + this.defaultOperator = instance.defaultOperator; + this.df = instance.df; + this.expandWildcards = instance.expandWildcards; + this.explain = instance.explain; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + this.lenient = instance.lenient; + this.q = instance.q; + this.query = instance.query; + this.rewrite = instance.rewrite; + + } /** * If true, the validation is executed on all shards instead of one * random shard per index. @@ -590,6 +609,12 @@ public ValidateQueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/AddIndicesBlockStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/AddIndicesBlockStatus.java index a6cc500e7f..a8f8029129 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/AddIndicesBlockStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/add_block/AddIndicesBlockStatus.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean blocked; + public Builder() { + } + private Builder(AddIndicesBlockStatus instance) { + this.name = instance.name; + this.blocked = instance.blocked; + + } /** * Required - API name: {@code name} */ @@ -163,6 +170,12 @@ public AddIndicesBlockStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java index 3af349f765..a48231c30d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeDetail.java @@ -199,6 +199,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private TokenDetail tokenizer; + public Builder() { + } + private Builder(AnalyzeDetail instance) { + this.analyzer = instance.analyzer; + this.charfilters = instance.charfilters; + this.customAnalyzer = instance.customAnalyzer; + this.tokenfilters = instance.tokenfilters; + this.tokenizer = instance.tokenizer; + + } /** * API name: {@code analyzer} */ @@ -313,6 +323,12 @@ public AnalyzeDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java index 0f97fee4ef..226b90fa26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzeToken.java @@ -191,6 +191,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(AnalyzeToken instance) { + this.endOffset = instance.endOffset; + this.position = instance.position; + this.positionlength = instance.positionlength; + this.startOffset = instance.startOffset; + this.token = instance.token; + this.type = instance.type; + + } /** * Required - API name: {@code end_offset} */ @@ -257,6 +268,12 @@ public AnalyzeToken build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java index 3037ce531f..f3058d86df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/AnalyzerDetail.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List tokens; + public Builder() { + } + private Builder(AnalyzerDetail instance) { + this.name = instance.name; + this.tokens = instance.tokens; + + } /** * Required - API name: {@code name} */ @@ -190,6 +197,12 @@ public AnalyzerDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java index 4abd71957c..af65d58cbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/CharFilterDetail.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(CharFilterDetail instance) { + this.filteredText = instance.filteredText; + this.name = instance.name; + + } /** * Required - API name: {@code filtered_text} *

                                                                                  @@ -180,6 +187,12 @@ public CharFilterDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java index 5c19d6a1af..c3396be9d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/ExplainAnalyzeToken.java @@ -283,6 +283,20 @@ public final Builder attributes(String key, JsonData value) { private String type; + public Builder() { + } + private Builder(ExplainAnalyzeToken instance) { + this.bytes = instance.bytes; + this.endOffset = instance.endOffset; + this.keyword = instance.keyword; + this.position = instance.position; + this.positionlength = instance.positionlength; + this.startOffset = instance.startOffset; + this.termfrequency = instance.termfrequency; + this.token = instance.token; + this.type = instance.type; + + } /** * Required - API name: {@code bytes} */ @@ -373,6 +387,12 @@ public ExplainAnalyzeToken build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java index c8da22be35..22832f973a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/analyze/TokenDetail.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List tokens; + public Builder() { + } + private Builder(TokenDetail instance) { + this.name = instance.name; + this.tokens = instance.tokens; + + } /** * Required - API name: {@code name} */ @@ -189,6 +196,12 @@ public TokenDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseIndexResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseIndexResult.java index 6b795055a6..3cf1ac5044 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseIndexResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseIndexResult.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map shards; + public Builder() { + } + private Builder(CloseIndexResult instance) { + this.closed = instance.closed; + this.shards = instance.shards; + + } /** * Required - API name: {@code closed} */ @@ -194,6 +201,12 @@ public CloseIndexResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseShardResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseShardResult.java index 93da0c7d2c..c449c59cf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseShardResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/close/CloseShardResult.java @@ -120,6 +120,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List failures; + public Builder() { + } + private Builder(CloseShardResult instance) { + this.failures = instance.failures; + + } /** * Required - API name: {@code failures} *

                                                                                  @@ -167,6 +173,12 @@ public CloseShardResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/create_from/CreateFrom.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/create_from/CreateFrom.java index c86af32e77..a1a18c9912 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/create_from/CreateFrom.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/create_from/CreateFrom.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean removeIndexBlocks; + public Builder() { + } + private Builder(CreateFrom instance) { + this.mappingsOverride = instance.mappingsOverride; + this.settingsOverride = instance.settingsOverride; + this.removeIndexBlocks = instance.removeIndexBlocks; + + } /** * Mappings overrides to be applied to the destination index (optional) *

                                                                                  @@ -230,6 +238,12 @@ public CreateFrom build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java index a46ed287fa..553c31d849 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/data_streams_stats/DataStreamsStatsItem.java @@ -198,6 +198,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long storeSizeBytes; + public Builder() { + } + private Builder(DataStreamsStatsItem instance) { + this.backingIndices = instance.backingIndices; + this.dataStream = instance.dataStream; + this.maximumTimestamp = instance.maximumTimestamp; + this.storeSize = instance.storeSize; + this.storeSizeBytes = instance.storeSizeBytes; + + } /** * Required - Current number of backing indices for the data stream. *

                                                                                  @@ -274,6 +284,12 @@ public DataStreamsStatsItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java index 1b7d033ae2..fd6884863b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataStreamLifecycleExplain.java @@ -274,6 +274,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String error; + public Builder() { + } + private Builder(DataStreamLifecycleExplain instance) { + this.index = instance.index; + this.managedByLifecycle = instance.managedByLifecycle; + this.indexCreationDateMillis = instance.indexCreationDateMillis; + this.timeSinceIndexCreation = instance.timeSinceIndexCreation; + this.rolloverDateMillis = instance.rolloverDateMillis; + this.timeSinceRollover = instance.timeSinceRollover; + this.lifecycle = instance.lifecycle; + this.generationTime = instance.generationTime; + this.error = instance.error; + + } /** * Required - API name: {@code index} */ @@ -393,6 +407,12 @@ public DataStreamLifecycleExplain build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java index 9f651ac3cc..4e265bbf8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/FieldSummary.java @@ -216,6 +216,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private InvertedIndex invertedIndex; + public Builder() { + } + private Builder(FieldSummary instance) { + this.any = instance.any; + this.storedFields = instance.storedFields; + this.docValues = instance.docValues; + this.points = instance.points; + this.norms = instance.norms; + this.termVectors = instance.termVectors; + this.knnVectors = instance.knnVectors; + this.invertedIndex = instance.invertedIndex; + + } /** * Required - API name: {@code any} */ @@ -305,6 +318,12 @@ public FieldSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java index 70580f34b7..59af231338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/InvertedIndex.java @@ -201,6 +201,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Number payloads; + public Builder() { + } + private Builder(InvertedIndex instance) { + this.terms = instance.terms; + this.postings = instance.postings; + this.proximity = instance.proximity; + this.positions = instance.positions; + this.termFrequencies = instance.termFrequencies; + this.offsets = instance.offsets; + this.payloads = instance.payloads; + + } /** * Required - API name: {@code terms} */ @@ -275,6 +287,12 @@ public InvertedIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java index f606238b60..478336e4a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/ShardsStats.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map fields; + public Builder() { + } + private Builder(ShardsStats instance) { + this.allFields = instance.allFields; + this.fields = instance.fields; + + } /** * Required - API name: {@code all_fields} */ @@ -198,6 +205,12 @@ public ShardsStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java index a41471ddc5..ba60705f39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsIndex.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List shards; + public Builder() { + } + private Builder(UsageStatsIndex instance) { + this.shards = instance.shards; + + } /** * Required - API name: {@code shards} *

                                                                                  @@ -166,6 +172,12 @@ public UsageStatsIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java index f61fd89113..870530654d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/field_usage_stats/UsageStatsShards.java @@ -159,6 +159,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long trackingStartedAtMillis; + public Builder() { + } + private Builder(UsageStatsShards instance) { + this.routing = instance.routing; + this.stats = instance.stats; + this.trackingId = instance.trackingId; + this.trackingStartedAtMillis = instance.trackingStartedAtMillis; + + } /** * Required - API name: {@code routing} */ @@ -223,6 +232,12 @@ public UsageStatsShards build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java index 377747d1b1..49f40b4372 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_alias/IndexAliases.java @@ -122,6 +122,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Map aliases; + public Builder() { + } + private Builder(IndexAliases instance) { + this.aliases = instance.aliases; + + } /** * Required - API name: {@code aliases} *

                                                                                  @@ -169,6 +175,12 @@ public IndexAliases build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_all_sample_configuration/IndexSamplingConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_all_sample_configuration/IndexSamplingConfiguration.java index a3efa45b93..a28e751651 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_all_sample_configuration/IndexSamplingConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_all_sample_configuration/IndexSamplingConfiguration.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private SamplingConfiguration configuration; + public Builder() { + } + private Builder(IndexSamplingConfiguration instance) { + this.index = instance.index; + this.configuration = instance.configuration; + + } /** * Required - API name: {@code index} */ @@ -171,6 +178,12 @@ public IndexSamplingConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java index 4a1ae5cdff..16747c67d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamWithLifecycle.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamLifecycleWithRollover lifecycle; + public Builder() { + } + private Builder(DataStreamWithLifecycle instance) { + this.name = instance.name; + this.lifecycle = instance.lifecycle; + + } /** * Required - API name: {@code name} */ @@ -177,6 +184,12 @@ public DataStreamWithLifecycle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle_stats/DataStreamStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle_stats/DataStreamStats.java index 5f9276ce87..4d32e939dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle_stats/DataStreamStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle_stats/DataStreamStats.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(DataStreamStats instance) { + this.backingIndicesInError = instance.backingIndicesInError; + this.backingIndicesInTotal = instance.backingIndicesInTotal; + this.name = instance.name; + + } /** * Required - The count of the backing indices for the data stream. *

                                                                                  @@ -200,6 +208,12 @@ public DataStreamStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_mappings/DataStreamMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_mappings/DataStreamMappings.java index cdfadf567d..2516ce5540 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_mappings/DataStreamMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_mappings/DataStreamMappings.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private TypeMapping effectiveMappings; + public Builder() { + } + private Builder(DataStreamMappings instance) { + this.name = instance.name; + this.mappings = instance.mappings; + this.effectiveMappings = instance.effectiveMappings; + + } /** * Required - The name of the data stream. *

                                                                                  @@ -222,6 +230,12 @@ public DataStreamMappings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_options/DataStreamWithOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_options/DataStreamWithOptions.java index 8e97caa0a6..d40a86487e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_options/DataStreamWithOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_options/DataStreamWithOptions.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamOptions options; + public Builder() { + } + private Builder(DataStreamWithOptions instance) { + this.name = instance.name; + this.options = instance.options; + + } /** * Required - API name: {@code name} */ @@ -176,6 +183,12 @@ public DataStreamWithOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_settings/DataStreamSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_settings/DataStreamSettings.java index 60e98c2d02..aae97477dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_settings/DataStreamSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_stream_settings/DataStreamSettings.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private IndexSettings effectiveSettings; + public Builder() { + } + private Builder(DataStreamSettings instance) { + this.name = instance.name; + this.settings = instance.settings; + this.effectiveSettings = instance.effectiveSettings; + + } /** * Required - The name of the data stream. *

                                                                                  @@ -222,6 +230,12 @@ public DataStreamSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java index 3715507cc0..3ed380e3a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_field_mapping/TypeFieldMappings.java @@ -122,6 +122,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Map mappings; + public Builder() { + } + private Builder(TypeFieldMappings instance) { + this.mappings = instance.mappings; + + } /** * Required - API name: {@code mappings} *

                                                                                  @@ -169,6 +175,12 @@ public TypeFieldMappings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java index 83a4abfd78..6e158e7995 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_index_template/IndexTemplateItem.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IndexTemplate indexTemplate; + public Builder() { + } + private Builder(IndexTemplateItem instance) { + this.name = instance.name; + this.indexTemplate = instance.indexTemplate; + + } /** * Required - API name: {@code name} */ @@ -168,6 +175,12 @@ public IndexTemplateItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java index 5a7ae2e653..a612d2b778 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_mapping/IndexMappingRecord.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase private TypeMapping mappings; + public Builder() { + } + private Builder(IndexMappingRecord instance) { + this.item = instance.item; + this.mappings = instance.mappings; + + } /** * API name: {@code item} */ @@ -181,6 +188,12 @@ public IndexMappingRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusError.java index 206cce3122..e1de1bdf86 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusError.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String message; + public Builder() { + } + private Builder(StatusError instance) { + this.index = instance.index; + this.message = instance.message; + + } /** * Required - API name: {@code index} */ @@ -160,6 +167,12 @@ public StatusError build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusInProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusInProgress.java index 92c16b74fd..00c9008406 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusInProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_migrate_reindex_status/StatusInProgress.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long reindexedDocCount; + public Builder() { + } + private Builder(StatusInProgress instance) { + this.index = instance.index; + this.totalDocCount = instance.totalDocCount; + this.reindexedDocCount = instance.reindexedDocCount; + + } /** * Required - API name: {@code index} */ @@ -184,6 +192,12 @@ public StatusInProgress build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_sample/RawDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_sample/RawDocument.java index c6c5714509..41a6020940 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_sample/RawDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_sample/RawDocument.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map source; + public Builder() { + } + private Builder(RawDocument instance) { + this.index = instance.index; + this.source = instance.source; + + } /** * Required - Name of the index for this raw document. *

                                                                                  @@ -204,6 +211,12 @@ public RawDocument build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/MigrateReindex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/MigrateReindex.java index b4039ba030..fea7e04f3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/MigrateReindex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/MigrateReindex.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SourceIndex source; + public Builder() { + } + private Builder(MigrateReindex instance) { + this.mode = instance.mode; + this.source = instance.source; + + } /** * Required - Reindex mode. Currently only 'upgrade' is supported. *

                                                                                  @@ -178,6 +185,12 @@ public MigrateReindex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/SourceIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/SourceIndex.java index 1154e14fdf..087015ed25 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/SourceIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/migrate_reindex/SourceIndex.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String index; + public Builder() { + } + private Builder(SourceIndex instance) { + this.index = instance.index; + + } /** * Required - API name: {@code index} */ @@ -137,6 +143,12 @@ public SourceIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java index 79d42882d4..5c37239e63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/modify_data_stream/IndexAndDataStreamAction.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String index; + public Builder() { + } + private Builder(IndexAndDataStreamAction instance) { + this.dataStream = instance.dataStream; + this.index = instance.index; + + } /** * Required - Data stream targeted by the action. *

                                                                                  @@ -178,6 +185,12 @@ public IndexAndDataStreamAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_mappings/UpdatedDataStreamMappings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_mappings/UpdatedDataStreamMappings.java index 382055185c..3d6b7a3412 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_mappings/UpdatedDataStreamMappings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_mappings/UpdatedDataStreamMappings.java @@ -208,6 +208,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private TypeMapping effectiveMappings; + public Builder() { + } + private Builder(UpdatedDataStreamMappings instance) { + this.name = instance.name; + this.appliedToDataStream = instance.appliedToDataStream; + this.error = instance.error; + this.mappings = instance.mappings; + this.effectiveMappings = instance.effectiveMappings; + + } /** * Required - The data stream name. *

                                                                                  @@ -303,6 +313,12 @@ public UpdatedDataStreamMappings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/DataStreamSettingsError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/DataStreamSettingsError.java index 50d9fa61e5..5d2bd13d08 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/DataStreamSettingsError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/DataStreamSettingsError.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String error; + public Builder() { + } + private Builder(DataStreamSettingsError instance) { + this.index = instance.index; + this.error = instance.error; + + } /** * Required - API name: {@code index} */ @@ -168,6 +175,12 @@ public DataStreamSettingsError build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/IndexSettingResults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/IndexSettingResults.java index 4dce6ace91..5861639e58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/IndexSettingResults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/IndexSettingResults.java @@ -177,6 +177,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List errors; + public Builder() { + } + private Builder(IndexSettingResults instance) { + this.appliedToDataStreamOnly = instance.appliedToDataStreamOnly; + this.appliedToDataStreamAndBackingIndices = instance.appliedToDataStreamAndBackingIndices; + this.errors = instance.errors; + + } /** * Required - The list of settings that were applied to the data stream but not * to backing indices. These will be applied to the write index the next time @@ -284,6 +292,12 @@ public IndexSettingResults build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/UpdatedDataStreamSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/UpdatedDataStreamSettings.java index 1de5219d3b..50fc37380e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/UpdatedDataStreamSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_data_stream_settings/UpdatedDataStreamSettings.java @@ -215,6 +215,17 @@ public static class Builder extends WithJsonObjectBuilderBase private IndexSettingResults indexSettingsResults; + public Builder() { + } + private Builder(UpdatedDataStreamSettings instance) { + this.name = instance.name; + this.appliedToDataStream = instance.appliedToDataStream; + this.error = instance.error; + this.settings = instance.settings; + this.effectiveSettings = instance.effectiveSettings; + this.indexSettingsResults = instance.indexSettingsResults; + + } /** * Required - The data stream name. *

                                                                                  @@ -330,6 +341,12 @@ public UpdatedDataStreamSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 fa8cb1956f..e59be1d750 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 @@ -219,6 +219,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamOptionsTemplate dataStreamOptions; + public Builder() { + } + private Builder(IndexTemplateMapping instance) { + this.aliases = instance.aliases; + this.mappings = instance.mappings; + this.settings = instance.settings; + this.lifecycle = instance.lifecycle; + this.dataStreamOptions = instance.dataStreamOptions; + + } /** * Aliases to add. If the index template includes a data_stream * object, these are data stream aliases. Otherwise, these are index aliases. @@ -352,6 +362,12 @@ public IndexTemplateMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java index 8cdb93d545..6658efaf82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/FileDetails.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long recovered; + public Builder() { + } + private Builder(FileDetails instance) { + this.length = instance.length; + this.name = instance.name; + this.recovered = instance.recovered; + + } /** * Required - API name: {@code length} */ @@ -183,6 +191,12 @@ public FileDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java index 730264249d..13d2f8df8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java @@ -256,6 +256,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String totalInBytes; + public Builder() { + } + private Builder(RecoveryBytes instance) { + this.percent = instance.percent; + this.recovered = instance.recovered; + this.recoveredInBytes = instance.recoveredInBytes; + this.recoveredFromSnapshot = instance.recoveredFromSnapshot; + this.recoveredFromSnapshotInBytes = instance.recoveredFromSnapshotInBytes; + this.reused = instance.reused; + this.reusedInBytes = instance.reusedInBytes; + this.total = instance.total; + this.totalInBytes = instance.totalInBytes; + + } /** * Required - API name: {@code percent} */ @@ -346,6 +360,12 @@ public RecoveryBytes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java index deb35e8b84..b77c65cd70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryFiles.java @@ -181,6 +181,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long total; + public Builder() { + } + private Builder(RecoveryFiles instance) { + this.details = instance.details; + this.percent = instance.percent; + this.recovered = instance.recovered; + this.reused = instance.reused; + this.total = instance.total; + + } /** * API name: {@code details} *

                                                                                  @@ -260,6 +270,12 @@ public RecoveryFiles build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java index e5018b95cd..f08981a725 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryIndexStatus.java @@ -256,6 +256,20 @@ public static class Builder extends WithJsonObjectBuilderBase private Long totalTimeInMillis; + public Builder() { + } + private Builder(RecoveryIndexStatus instance) { + this.bytes = instance.bytes; + this.files = instance.files; + this.size = instance.size; + this.sourceThrottleTime = instance.sourceThrottleTime; + this.sourceThrottleTimeInMillis = instance.sourceThrottleTimeInMillis; + this.targetThrottleTime = instance.targetThrottleTime; + this.targetThrottleTimeInMillis = instance.targetThrottleTimeInMillis; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * API name: {@code bytes} */ @@ -388,6 +402,12 @@ public RecoveryIndexStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java index a4e0285745..07a9f08020 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryOrigin.java @@ -337,6 +337,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String index; + public Builder() { + } + private Builder(RecoveryOrigin instance) { + this.hostname = instance.hostname; + this.host = instance.host; + this.transportAddress = instance.transportAddress; + this.id = instance.id; + this.ip = instance.ip; + this.name = instance.name; + this.bootstrapNewHistoryUuid = instance.bootstrapNewHistoryUuid; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.version = instance.version; + this.restoreuuid = instance.restoreuuid; + this.index = instance.index; + + } /** * API name: {@code hostname} */ @@ -451,6 +468,12 @@ public RecoveryOrigin build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java index 13db1e9f13..3c9762d80d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStartStatus.java @@ -170,6 +170,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Long totalTimeInMillis; + public Builder() { + } + private Builder(RecoveryStartStatus instance) { + this.checkIndexTime = instance.checkIndexTime; + this.checkIndexTimeInMillis = instance.checkIndexTimeInMillis; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * API name: {@code check_index_time} */ @@ -234,6 +243,12 @@ public RecoveryStartStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java index ef97a864e6..b870d7f355 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryStatus.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List shards; + public Builder() { + } + private Builder(RecoveryStatus instance) { + this.shards = instance.shards; + + } /** * Required - API name: {@code shards} *

                                                                                  @@ -166,6 +172,12 @@ public RecoveryStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java index 4b5eb22168..439b8e85db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/ShardRecovery.java @@ -363,6 +363,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement private VerifyIndex verifyIndex; + public Builder() { + } + private Builder(ShardRecovery instance) { + this.id = instance.id; + this.index = instance.index; + this.primary = instance.primary; + this.source = instance.source; + this.stage = instance.stage; + this.start = instance.start; + this.startTime = instance.startTime; + this.startTimeInMillis = instance.startTimeInMillis; + this.stopTime = instance.stopTime; + this.stopTimeInMillis = instance.stopTimeInMillis; + this.target = instance.target; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + this.translog = instance.translog; + this.type = instance.type; + this.verifyIndex = instance.verifyIndex; + + } /** * Required - API name: {@code id} */ @@ -558,6 +579,12 @@ public ShardRecovery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java index c86e685813..244659f811 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/TranslogStatus.java @@ -193,6 +193,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(TranslogStatus instance) { + this.percent = instance.percent; + this.recovered = instance.recovered; + this.total = instance.total; + this.totalOnStart = instance.totalOnStart; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * Required - API name: {@code percent} */ @@ -266,6 +277,12 @@ public TranslogStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java index 529e1268e8..772786b858 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/VerifyIndex.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalTimeInMillis; + public Builder() { + } + private Builder(VerifyIndex instance) { + this.checkIndexTime = instance.checkIndexTime; + this.checkIndexTimeInMillis = instance.checkIndexTimeInMillis; + this.totalTime = instance.totalTime; + this.totalTimeInMillis = instance.totalTimeInMillis; + + } /** * API name: {@code check_index_time} */ @@ -231,6 +240,12 @@ public VerifyIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java index 982e693ae9..6754252f44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/reload_search_analyzers/ReloadDetails.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List reloadedNodeIds; + public Builder() { + } + private Builder(ReloadDetails instance) { + this.index = instance.index; + this.reloadedAnalyzers = instance.reloadedAnalyzers; + this.reloadedNodeIds = instance.reloadedNodeIds; + + } /** * Required - API name: {@code index} */ @@ -224,6 +232,12 @@ public ReloadDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/remove_block/RemoveIndicesBlockStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/remove_block/RemoveIndicesBlockStatus.java index e44aa8e49a..77454903c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/remove_block/RemoveIndicesBlockStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/remove_block/RemoveIndicesBlockStatus.java @@ -156,6 +156,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause exception; + public Builder() { + } + private Builder(RemoveIndicesBlockStatus instance) { + this.name = instance.name; + this.unblocked = instance.unblocked; + this.exception = instance.exception; + + } /** * Required - API name: {@code name} */ @@ -205,6 +213,12 @@ public RemoveIndicesBlockStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java index 6fcd056baa..8376fa8d4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_cluster/ResolveClusterInfo.java @@ -207,6 +207,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ElasticsearchVersionMinInfo version; + public Builder() { + } + private Builder(ResolveClusterInfo instance) { + this.connected = instance.connected; + this.skipUnavailable = instance.skipUnavailable; + this.matchingIndices = instance.matchingIndices; + this.error = instance.error; + this.version = instance.version; + + } /** * Required - Whether the remote cluster is connected to the local (querying) * cluster. @@ -289,6 +299,12 @@ public ResolveClusterInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java index fb78dbddd8..3515dae835 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexAliasItem.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List indices; + public Builder() { + } + private Builder(ResolveIndexAliasItem instance) { + this.name = instance.name; + this.indices = instance.indices; + + } /** * Required - API name: {@code name} */ @@ -183,6 +190,12 @@ public ResolveIndexAliasItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java index 0640f73300..f8f084e062 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexDataStreamsItem.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private List backingIndices; + public Builder() { + } + private Builder(ResolveIndexDataStreamsItem instance) { + this.name = instance.name; + this.timestampField = instance.timestampField; + this.backingIndices = instance.backingIndices; + + } /** * Required - API name: {@code name} */ @@ -206,6 +214,12 @@ public ResolveIndexDataStreamsItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java index 9efd1884ba..d46e8ea37b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/resolve_index/ResolveIndexItem.java @@ -198,6 +198,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexMode mode; + public Builder() { + } + private Builder(ResolveIndexItem instance) { + this.name = instance.name; + this.aliases = instance.aliases; + this.attributes = instance.attributes; + this.dataStream = instance.dataStream; + this.mode = instance.mode; + + } /** * Required - API name: {@code name} */ @@ -280,6 +290,12 @@ public ResolveIndexItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java index cd1d29d3fb..93e97a905d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/rollover/RolloverConditions.java @@ -406,6 +406,26 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long minPrimaryShardDocs; + public Builder() { + } + private Builder(RolloverConditions instance) { + this.minAge = instance.minAge; + this.maxAge = instance.maxAge; + this.maxAgeMillis = instance.maxAgeMillis; + this.minDocs = instance.minDocs; + this.maxDocs = instance.maxDocs; + this.maxSize = instance.maxSize; + this.maxSizeBytes = instance.maxSizeBytes; + this.minSize = instance.minSize; + this.minSizeBytes = instance.minSizeBytes; + this.maxPrimaryShardSize = instance.maxPrimaryShardSize; + this.maxPrimaryShardSizeBytes = instance.maxPrimaryShardSizeBytes; + this.minPrimaryShardSize = instance.minPrimaryShardSize; + this.minPrimaryShardSizeBytes = instance.minPrimaryShardSizeBytes; + this.maxPrimaryShardDocs = instance.maxPrimaryShardDocs; + this.minPrimaryShardDocs = instance.minPrimaryShardDocs; + + } /** * API name: {@code min_age} */ @@ -564,6 +584,12 @@ public RolloverConditions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java index f0073db907..55ab20debd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/IndexSegment.java @@ -129,6 +129,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Map> shards; + public Builder() { + } + private Builder(IndexSegment instance) { + this.shards = instance.shards; + + } /** * Required - API name: {@code shards} *

                                                                                  @@ -167,6 +173,12 @@ public IndexSegment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java index fd5cdbe0cf..cac697246a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/Segment.java @@ -243,6 +243,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String version; + public Builder() { + } + private Builder(Segment instance) { + this.attributes = instance.attributes; + this.committed = instance.committed; + this.compound = instance.compound; + this.deletedDocs = instance.deletedDocs; + this.generation = instance.generation; + this.search = instance.search; + this.sizeInBytes = instance.sizeInBytes; + this.numDocs = instance.numDocs; + this.version = instance.version; + + } /** * Required - API name: {@code attributes} *

                                                                                  @@ -345,6 +359,12 @@ public Segment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java index b72d4d0f34..e6ca346581 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardSegmentRouting.java @@ -144,6 +144,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String state; + public Builder() { + } + private Builder(ShardSegmentRouting instance) { + this.node = instance.node; + this.primary = instance.primary; + this.state = instance.state; + + } /** * Required - API name: {@code node} */ @@ -186,6 +194,12 @@ public ShardSegmentRouting build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java index 3e3478ce37..3684849a84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/segments/ShardsSegment.java @@ -168,6 +168,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map segments; + public Builder() { + } + private Builder(ShardsSegment instance) { + this.numCommittedSegments = instance.numCommittedSegments; + this.routing = instance.routing; + this.numSearchSegments = instance.numSearchSegments; + this.segments = instance.segments; + + } /** * Required - API name: {@code num_committed_segments} */ @@ -246,6 +255,12 @@ public ShardsSegment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java index 9c5d625d48..0db660e5c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/IndicesShardStores.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Map shards; + public Builder() { + } + private Builder(IndicesShardStores instance) { + this.shards = instance.shards; + + } /** * Required - API name: {@code shards} *

                                                                                  @@ -171,6 +177,12 @@ public IndicesShardStores build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java index a935847813..c622df878a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStore.java @@ -201,6 +201,14 @@ public final Builder node(Function private String type; + public Builder() { + } + private Builder(ShardStoreException instance) { + this.reason = instance.reason; + this.type = instance.type; + + } /** * Required - API name: {@code reason} */ @@ -162,6 +169,12 @@ public ShardStoreException build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreNode.java index a5cec49d99..a6c06ab4e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreNode.java @@ -213,6 +213,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String transportAddress; + public Builder() { + } + private Builder(ShardStoreNode instance) { + this.attributes = instance.attributes; + this.ephemeralId = instance.ephemeralId; + this.externalId = instance.externalId; + this.name = instance.name; + this.roles = instance.roles; + this.transportAddress = instance.transportAddress; + + } /** * Required - API name: {@code attributes} *

                                                                                  @@ -303,6 +314,12 @@ public ShardStoreNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreWrapper.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreWrapper.java index 664366120a..ff014c94a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreWrapper.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/shard_stores/ShardStoreWrapper.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List stores; + public Builder() { + } + private Builder(ShardStoreWrapper instance) { + this.stores = instance.stores; + + } /** * Required - API name: {@code stores} *

                                                                                  @@ -166,6 +172,12 @@ public ShardStoreWrapper build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java index 1235ad9a46..4be452f377 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List indexPatterns; + public Builder() { + } + private Builder(Overlapping instance) { + this.name = instance.name; + this.indexPatterns = instance.indexPatterns; + + } /** * Required - API name: {@code name} */ @@ -181,6 +188,12 @@ public Overlapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java index 516a1f06ab..06c6c8d88b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java @@ -153,6 +153,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private IndexSettings settings; + public Builder() { + } + private Builder(Template instance) { + this.aliases = instance.aliases; + this.mappings = instance.mappings; + this.settings = instance.settings; + + } /** * Required - API name: {@code aliases} *

                                                                                  @@ -230,6 +238,12 @@ public Template build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java index 0c8360f8ea..bcd8a77046 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java @@ -529,6 +529,30 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ShardsTotalStats shardStats; + public Builder() { + } + private Builder(IndexStats instance) { + this.completion = instance.completion; + this.docs = instance.docs; + this.fielddata = instance.fielddata; + this.flush = instance.flush; + this.get = instance.get; + this.indexing = instance.indexing; + this.indices = instance.indices; + this.merges = instance.merges; + this.queryCache = instance.queryCache; + this.recovery = instance.recovery; + this.refresh = instance.refresh; + this.requestCache = instance.requestCache; + this.search = instance.search; + this.segments = instance.segments; + this.store = instance.store; + this.translog = instance.translog; + this.warmer = instance.warmer; + this.bulk = instance.bulk; + this.shardStats = instance.shardStats; + + } /** * Contains statistics about completions across all shards assigned to the node. *

                                                                                  @@ -908,6 +932,12 @@ public IndexStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndicesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndicesStats.java index f97546dcbd..517a61fac5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndicesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndicesStats.java @@ -228,6 +228,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexMetadataState status; + public Builder() { + } + private Builder(IndicesStats instance) { + this.primaries = instance.primaries; + this.shards = instance.shards; + this.total = instance.total; + this.uuid = instance.uuid; + this.health = instance.health; + this.status = instance.status; + + } /** * API name: {@code primaries} */ @@ -320,6 +331,12 @@ public IndicesStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/MappingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/MappingStats.java index 293d790f74..cf27184a96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/MappingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/MappingStats.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalEstimatedOverheadInBytes; + public Builder() { + } + private Builder(MappingStats instance) { + this.totalCount = instance.totalCount; + this.totalEstimatedOverhead = instance.totalEstimatedOverhead; + this.totalEstimatedOverheadInBytes = instance.totalEstimatedOverheadInBytes; + + } /** * Required - API name: {@code total_count} */ @@ -189,6 +197,12 @@ public MappingStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardCommit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardCommit.java index 3f67b9c791..15a2e1d537 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardCommit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardCommit.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map userData; + public Builder() { + } + private Builder(ShardCommit instance) { + this.generation = instance.generation; + this.id = instance.id; + this.numDocs = instance.numDocs; + this.userData = instance.userData; + + } /** * Required - API name: {@code generation} */ @@ -229,6 +238,12 @@ public ShardCommit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardFileSizeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardFileSizeInfo.java index 2b8d880123..ecf51160e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardFileSizeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardFileSizeInfo.java @@ -208,6 +208,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long count; + public Builder() { + } + private Builder(ShardFileSizeInfo instance) { + this.description = instance.description; + this.sizeInBytes = instance.sizeInBytes; + this.minSizeInBytes = instance.minSizeInBytes; + this.maxSizeInBytes = instance.maxSizeInBytes; + this.averageSizeInBytes = instance.averageSizeInBytes; + this.count = instance.count; + + } /** * Required - API name: {@code description} */ @@ -274,6 +285,12 @@ public ShardFileSizeInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardLease.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardLease.java index 0b192129d1..905e4f30d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardLease.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardLease.java @@ -156,6 +156,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String source; + public Builder() { + } + private Builder(ShardLease instance) { + this.id = instance.id; + this.retainingSeqNo = instance.retainingSeqNo; + this.timestamp = instance.timestamp; + this.source = instance.source; + + } /** * Required - API name: {@code id} */ @@ -206,6 +215,12 @@ public ShardLease build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardPath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardPath.java index cf3c8e15c2..7c6a1d59c7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardPath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardPath.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String statePath; + public Builder() { + } + private Builder(ShardPath instance) { + this.dataPath = instance.dataPath; + this.isCustomDataPath = instance.isCustomDataPath; + this.statePath = instance.statePath; + + } /** * Required - API name: {@code data_path} */ @@ -183,6 +191,12 @@ public ShardPath build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardQueryCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardQueryCache.java index 8c98f52993..705dbe7636 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardQueryCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardQueryCache.java @@ -200,6 +200,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalCount; + public Builder() { + } + private Builder(ShardQueryCache instance) { + this.cacheCount = instance.cacheCount; + this.cacheSize = instance.cacheSize; + this.evictions = instance.evictions; + this.hitCount = instance.hitCount; + this.memorySizeInBytes = instance.memorySizeInBytes; + this.missCount = instance.missCount; + this.totalCount = instance.totalCount; + + } /** * Required - API name: {@code cache_count} */ @@ -274,6 +286,12 @@ public ShardQueryCache build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRetentionLeases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRetentionLeases.java index c0b22de853..7d7f762061 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRetentionLeases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRetentionLeases.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private List leases; + public Builder() { + } + private Builder(ShardRetentionLeases instance) { + this.primaryTerm = instance.primaryTerm; + this.version = instance.version; + this.leases = instance.leases; + + } /** * Required - API name: {@code primary_term} */ @@ -215,6 +223,12 @@ public ShardRetentionLeases build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRouting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRouting.java index f8d94185df..ad9b8935ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRouting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardRouting.java @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ShardRoutingState state; + public Builder() { + } + private Builder(ShardRouting instance) { + this.node = instance.node; + this.primary = instance.primary; + this.relocatingNode = instance.relocatingNode; + this.state = instance.state; + + } /** * Required - API name: {@code node} */ @@ -211,6 +220,12 @@ public ShardRouting build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardSequenceNumber.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardSequenceNumber.java index 8d7680702a..a2395efbde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardSequenceNumber.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardSequenceNumber.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long maxSeqNo; + public Builder() { + } + private Builder(ShardSequenceNumber instance) { + this.globalCheckpoint = instance.globalCheckpoint; + this.localCheckpoint = instance.localCheckpoint; + this.maxSeqNo = instance.maxSeqNo; + + } /** * Required - API name: {@code global_checkpoint} */ @@ -184,6 +192,12 @@ public ShardSequenceNumber build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardStats.java index b8f1376bcf..dced8d6e3e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardStats.java @@ -638,6 +638,37 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndicesStats indices; + public Builder() { + } + private Builder(ShardStats instance) { + this.commit = instance.commit; + this.completion = instance.completion; + this.docs = instance.docs; + this.fielddata = instance.fielddata; + this.flush = instance.flush; + this.get = instance.get; + this.indexing = instance.indexing; + this.mappings = instance.mappings; + this.merges = instance.merges; + this.shardPath = instance.shardPath; + this.queryCache = instance.queryCache; + this.recovery = instance.recovery; + this.refresh = instance.refresh; + this.requestCache = instance.requestCache; + this.retentionLeases = instance.retentionLeases; + this.routing = instance.routing; + this.search = instance.search; + this.segments = instance.segments; + this.seqNo = instance.seqNo; + this.store = instance.store; + this.translog = instance.translog; + this.warmer = instance.warmer; + this.bulk = instance.bulk; + this.shards = instance.shards; + this.shardStats = instance.shardStats; + this.indices = instance.indices; + + } /** * API name: {@code commit} */ @@ -1052,6 +1083,12 @@ public ShardStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardsTotalStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardsTotalStats.java index 2920b38c1c..e7ae66c5b6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardsTotalStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/ShardsTotalStats.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long totalCount; + public Builder() { + } + private Builder(ShardsTotalStats instance) { + this.totalCount = instance.totalCount; + + } /** * Required - API name: {@code total_count} */ @@ -136,6 +142,12 @@ public ShardsTotalStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java index 38e6ac1c96..f7123a8e4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/AddAction.java @@ -371,6 +371,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean mustExist; + public Builder() { + } + private Builder(AddAction instance) { + this.alias = instance.alias; + this.aliases = instance.aliases; + this.filter = instance.filter; + this.index = instance.index; + this.indices = instance.indices; + this.indexRouting = instance.indexRouting; + this.isHidden = instance.isHidden; + this.isWriteIndex = instance.isWriteIndex; + this.routing = instance.routing; + this.searchRouting = instance.searchRouting; + this.mustExist = instance.mustExist; + + } /** * Alias for the action. Index alias names support date math. *

                                                                                  @@ -598,6 +614,12 @@ public AddAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java index 21c169487e..0366148893 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveAction.java @@ -223,6 +223,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean mustExist; + public Builder() { + } + private Builder(RemoveAction instance) { + this.alias = instance.alias; + this.aliases = instance.aliases; + this.index = instance.index; + this.indices = instance.indices; + this.mustExist = instance.mustExist; + + } /** * Alias for the action. Index alias names support date math. *

                                                                                  @@ -319,6 +329,12 @@ public RemoveAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java index 0ce9edb10b..b1c8eb2316 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/update_aliases/RemoveIndexAction.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean mustExist; + public Builder() { + } + private Builder(RemoveIndexAction instance) { + this.index = instance.index; + this.indices = instance.indices; + this.mustExist = instance.mustExist; + + } /** * Data stream or index for the action. Supports wildcards (*). *

                                                                                  @@ -238,6 +246,12 @@ public RemoveIndexAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java index f52f930690..152286470a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/validate_query/IndicesValidationExplanation.java @@ -169,6 +169,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean valid; + public Builder() { + } + private Builder(IndicesValidationExplanation instance) { + this.error = instance.error; + this.explanation = instance.explanation; + this.index = instance.index; + this.valid = instance.valid; + + } /** * API name: {@code error} */ @@ -219,6 +228,12 @@ public IndicesValidationExplanation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AdaptiveAllocations.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AdaptiveAllocations.java index b5162810b8..fd29c73ec2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AdaptiveAllocations.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AdaptiveAllocations.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer minNumberOfAllocations; + public Builder() { + } + private Builder(AdaptiveAllocations instance) { + this.enabled = instance.enabled; + this.maxNumberOfAllocations = instance.maxNumberOfAllocations; + this.minNumberOfAllocations = instance.minNumberOfAllocations; + + } /** * Turn on adaptive_allocations. *

                                                                                  @@ -217,6 +225,12 @@ public AdaptiveAllocations build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Ai21ServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Ai21ServiceSettings.java index 8835979e95..2adacab94f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Ai21ServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Ai21ServiceSettings.java @@ -177,6 +177,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(Ai21ServiceSettings instance) { + this.modelId = instance.modelId; + this.apiKey = instance.apiKey; + this.rateLimit = instance.rateLimit; + + } /** * Required - The name of the model to use for the inference task. Refer to the * AI21 models documentation for the list of supported models and versions. @@ -254,6 +262,12 @@ public Ai21ServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudServiceSettings.java index 6615923a55..4953664759 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudServiceSettings.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase private String workspace; + public Builder() { + } + private Builder(AlibabaCloudServiceSettings instance) { + this.apiKey = instance.apiKey; + this.host = instance.host; + this.rateLimit = instance.rateLimit; + this.serviceId = instance.serviceId; + this.workspace = instance.workspace; + + } /** * Required - A valid API key for the AlibabaCloud AI Search API. *

                                                                                  @@ -321,6 +331,12 @@ public AlibabaCloudServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudTaskSettings.java index 9738e36752..3850126416 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AlibabaCloudTaskSettings.java @@ -152,6 +152,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean returnToken; + public Builder() { + } + private Builder(AlibabaCloudTaskSettings instance) { + this.inputType = instance.inputType; + this.returnToken = instance.returnToken; + + } /** * For a sparse_embedding or text_embedding task, * specify the type of input passed to the model. Valid values are: @@ -199,6 +206,12 @@ public AlibabaCloudTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockServiceSettings.java index 483ba91543..a58e8a183c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockServiceSettings.java @@ -234,6 +234,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String secretKey; + public Builder() { + } + private Builder(AmazonBedrockServiceSettings instance) { + this.accessKey = instance.accessKey; + this.model = instance.model; + this.provider = instance.provider; + this.region = instance.region; + this.rateLimit = instance.rateLimit; + this.secretKey = instance.secretKey; + + } /** * Required - A valid AWS access key that has permissions to use Amazon Bedrock * and access to models for inference requests. @@ -347,6 +358,12 @@ public AmazonBedrockServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockTaskSettings.java index e408e72e0e..95ec4792a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonBedrockTaskSettings.java @@ -200,6 +200,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float topP; + public Builder() { + } + private Builder(AmazonBedrockTaskSettings instance) { + this.maxNewTokens = instance.maxNewTokens; + this.temperature = instance.temperature; + this.topK = instance.topK; + this.topP = instance.topP; + + } /** * For a completion task, it sets the maximum number for the output * tokens to be generated. @@ -271,6 +280,12 @@ public AmazonBedrockTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerServiceSettings.java index e79a225221..2c7821b296 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerServiceSettings.java @@ -307,6 +307,21 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer dimensions; + public Builder() { + } + private Builder(AmazonSageMakerServiceSettings instance) { + this.accessKey = instance.accessKey; + this.endpointName = instance.endpointName; + this.api = instance.api; + this.region = instance.region; + this.secretKey = instance.secretKey; + this.targetModel = instance.targetModel; + this.targetContainerHostname = instance.targetContainerHostname; + this.inferenceComponentName = instance.inferenceComponentName; + this.batchSize = instance.batchSize; + this.dimensions = instance.dimensions; + + } /** * Required - A valid AWS access key that has permissions to use Amazon * SageMaker and access to models for invoking requests. @@ -437,6 +452,12 @@ public AmazonSageMakerServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerTaskSettings.java index e6962eec5a..b1c1619366 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AmazonSageMakerTaskSettings.java @@ -214,6 +214,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String targetVariant; + public Builder() { + } + private Builder(AmazonSageMakerTaskSettings instance) { + this.customAttributes = instance.customAttributes; + this.enableExplanations = instance.enableExplanations; + this.inferenceId = instance.inferenceId; + this.sessionId = instance.sessionId; + this.targetVariant = instance.targetVariant; + + } /** * The AWS custom attributes passed verbatim through to the model running in the * SageMaker Endpoint. Values will be returned in the @@ -288,6 +298,12 @@ public AmazonSageMakerTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicServiceSettings.java index 2ea6e52c0a..4d15af3c41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicServiceSettings.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(AnthropicServiceSettings instance) { + this.apiKey = instance.apiKey; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key for the Anthropic API. *

                                                                                  @@ -220,6 +228,12 @@ public AnthropicServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicTaskSettings.java index 9ead56e15b..49eed99106 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AnthropicTaskSettings.java @@ -194,6 +194,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float topP; + public Builder() { + } + private Builder(AnthropicTaskSettings instance) { + this.maxTokens = instance.maxTokens; + this.temperature = instance.temperature; + this.topK = instance.topK; + this.topP = instance.topP; + + } /** * Required - For a completion task, it is the maximum number of * tokens to generate before stopping. @@ -263,6 +272,12 @@ public AnthropicTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioServiceSettings.java index 78c9cf50e4..71521dc6d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioServiceSettings.java @@ -220,6 +220,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(AzureAiStudioServiceSettings instance) { + this.apiKey = instance.apiKey; + this.endpointType = instance.endpointType; + this.target = instance.target; + this.provider = instance.provider; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key of your Azure AI Studio model deployment. This key * can be found on the overview page for your deployment in the management @@ -330,6 +340,12 @@ public AzureAiStudioServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioTaskSettings.java index 05b53305eb..0eff4a06ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioTaskSettings.java @@ -266,6 +266,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer topN; + public Builder() { + } + private Builder(AzureAiStudioTaskSettings instance) { + this.doSample = instance.doSample; + this.maxNewTokens = instance.maxNewTokens; + this.temperature = instance.temperature; + this.topP = instance.topP; + this.user = instance.user; + this.returnDocuments = instance.returnDocuments; + this.topN = instance.topN; + + } /** * For a completion task, instruct the inference process to perform * sampling. It has no effect unless temperature or @@ -365,6 +377,12 @@ public AzureAiStudioTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAIServiceSettings.java index 82240a5a2d..dce71b19ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAIServiceSettings.java @@ -235,6 +235,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String resourceName; + public Builder() { + } + private Builder(AzureOpenAIServiceSettings instance) { + this.apiKey = instance.apiKey; + this.apiVersion = instance.apiVersion; + this.deploymentId = instance.deploymentId; + this.entraId = instance.entraId; + this.rateLimit = instance.rateLimit; + this.resourceName = instance.resourceName; + + } /** * A valid API key for your Azure OpenAI account. You must specify either * api_key or entra_id. If you do not provide either @@ -347,6 +358,12 @@ public AzureOpenAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAITaskSettings.java index afb22a1c65..5054abad63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAITaskSettings.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String user; + public Builder() { + } + private Builder(AzureOpenAITaskSettings instance) { + this.user = instance.user; + + } /** * For a completion, chat_completion or * text_embedding task, specify the user issuing the request. This @@ -152,6 +158,12 @@ public AzureOpenAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ChatCompletionUnifiedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ChatCompletionUnifiedRequest.java index 46a96372ae..c1b596ea76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ChatCompletionUnifiedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ChatCompletionUnifiedRequest.java @@ -154,6 +154,14 @@ public static class Builder extends RequestBase.AbstractBuilder private RequestChatCompletion chatCompletionRequest; + public Builder() { + } + private Builder(ChatCompletionUnifiedRequest instance) { + this.inferenceId = instance.inferenceId; + this.timeout = instance.timeout; + this.chatCompletionRequest = instance.chatCompletionRequest; + + } /** * Required - The inference Id *

                                                                                  @@ -226,6 +234,12 @@ public ChatCompletionUnifiedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createChatCompletionUnifiedRequestDeserializer(); protected static JsonpDeserializer createChatCompletionUnifiedRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereServiceSettings.java index 5b2506475c..b5f62bf761 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereServiceSettings.java @@ -227,6 +227,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private CohereSimilarityType similarity; + public Builder() { + } + private Builder(CohereServiceSettings instance) { + this.apiKey = instance.apiKey; + this.embeddingType = instance.embeddingType; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + this.similarity = instance.similarity; + + } /** * Required - A valid API key for your Cohere account. You can find or create * your Cohere API keys on the Cohere API key settings page. @@ -336,6 +346,12 @@ public CohereServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereTaskSettings.java index 5b2c996148..f5477562d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereTaskSettings.java @@ -208,6 +208,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private CohereTruncateType truncate; + public Builder() { + } + private Builder(CohereTaskSettings instance) { + this.inputType = instance.inputType; + this.returnDocuments = instance.returnDocuments; + this.topN = instance.topN; + this.truncate = instance.truncate; + + } /** * Required - For a text_embedding task, the type of input passed * to the model. Valid values are: @@ -293,6 +302,12 @@ public CohereTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 5d4c973a65..ca6915c1ff 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 @@ -196,6 +196,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(CompletionRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.taskSettings = instance.taskSettings; + this.timeout = instance.timeout; + + } /** * Required - The inference Id *

                                                                                  @@ -279,6 +288,12 @@ public CompletionRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java index 3451494562..f42c4f6bb6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionResult.java @@ -112,6 +112,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String result; + public Builder() { + } + private Builder(CompletionResult instance) { + this.result = instance.result; + + } /** * Required - API name: {@code result} */ @@ -138,6 +144,12 @@ public CompletionResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionTool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionTool.java index 988ad8c298..35e91b5bf5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionTool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionTool.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private CompletionToolFunction function; + public Builder() { + } + private Builder(CompletionTool instance) { + this.type = instance.type; + this.function = instance.function; + + } /** * Required - The type of tool. *

                                                                                  @@ -178,6 +185,12 @@ public CompletionTool build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoice.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoice.java index 304b0f6b3e..1b445ce7a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoice.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoice.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase private CompletionToolChoiceFunction function; + public Builder() { + } + private Builder(CompletionToolChoice instance) { + this.type = instance.type; + this.function = instance.function; + + } /** * Required - The type of the tool. *

                                                                                  @@ -181,6 +188,12 @@ public CompletionToolChoice build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoiceFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoiceFunction.java index 8fda45a26b..42d2764a75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoiceFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolChoiceFunction.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String name; + public Builder() { + } + private Builder(CompletionToolChoiceFunction instance) { + this.name = instance.name; + + } /** * Required - The name of the function to call. *

                                                                                  @@ -144,6 +150,12 @@ public CompletionToolChoiceFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolFunction.java index 6ee2a8f624..8a5a298463 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CompletionToolFunction.java @@ -187,6 +187,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean strict; + public Builder() { + } + private Builder(CompletionToolFunction instance) { + this.description = instance.description; + this.name = instance.name; + this.parameters = instance.parameters; + this.strict = instance.strict; + + } /** * A description of what the function does. This is used by the model to choose * when and how to call the function. @@ -247,6 +256,12 @@ public CompletionToolFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContentObject.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContentObject.java index 7c3c38a029..acddd57bd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContentObject.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContentObject.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(ContentObject instance) { + this.text = instance.text; + this.type = instance.type; + + } /** * Required - The text content. *

                                                                                  @@ -168,6 +175,12 @@ public ContentObject build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAIServiceSettings.java index c96825c1d3..77110cbfcb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAIServiceSettings.java @@ -165,6 +165,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(ContextualAIServiceSettings instance) { + this.apiKey = instance.apiKey; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key for your Contexutual AI account. *

                                                                                  @@ -235,6 +243,12 @@ public ContextualAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAITaskSettings.java index 4d743c24c2..86593fbb4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAITaskSettings.java @@ -171,6 +171,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer topK; + public Builder() { + } + private Builder(ContextualAITaskSettings instance) { + this.instruction = instance.instruction; + this.returnDocuments = instance.returnDocuments; + this.topK = instance.topK; + + } /** * Instructions for the reranking model. Refer to https://docs.contextual.ai/api-reference/rerank/rerank#body-instruction @@ -224,6 +232,12 @@ public ContextualAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomRequestParams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomRequestParams.java index 6b71ea18c4..528f28b8a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomRequestParams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomRequestParams.java @@ -128,6 +128,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String content; + public Builder() { + } + private Builder(CustomRequestParams instance) { + this.content = instance.content; + + } /** * Required - The body structure of the request. It requires passing in the * string-escaped result of the JSON format HTTP request body. For example: @@ -169,6 +175,12 @@ public CustomRequestParams build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomResponseParams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomResponseParams.java index 620bf147c9..2075f39ddd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomResponseParams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomResponseParams.java @@ -267,6 +267,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private JsonData jsonParser; + public Builder() { + } + private Builder(CustomResponseParams instance) { + this.jsonParser = instance.jsonParser; + + } /** * Required - Specifies the JSON parser that is used to parse the response from * the custom service. Different task types require different json_parser @@ -447,6 +453,12 @@ public CustomResponseParams build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomServiceSettings.java index 454aa2a9ea..cbb146474f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomServiceSettings.java @@ -324,6 +324,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String url; + public Builder() { + } + private Builder(CustomServiceSettings instance) { + this.batchSize = instance.batchSize; + this.headers = instance.headers; + this.inputType = instance.inputType; + this.queryParameters = instance.queryParameters; + this.request = instance.request; + this.response = instance.response; + this.secretParameters = instance.secretParameters; + this.url = instance.url; + + } /** * Specifies the batch size used for the semantic_text field. If the field is * not provided, the default is 10. The batch size is the maximum number of @@ -502,6 +515,12 @@ public CustomServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java index a837df3438..f41a184ed2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java @@ -131,6 +131,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JsonData parameters; + public Builder() { + } + private Builder(CustomTaskSettings instance) { + this.parameters = instance.parameters; + + } /** * Specifies parameters that are required to run the custom service. The * parameters depend on the model your custom service uses. For example: @@ -170,6 +176,12 @@ public CustomTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeepSeekServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeepSeekServiceSettings.java index f513044726..8596ba350b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeepSeekServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeepSeekServiceSettings.java @@ -169,6 +169,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String url; + public Builder() { + } + private Builder(DeepSeekServiceSettings instance) { + this.apiKey = instance.apiKey; + this.modelId = instance.modelId; + this.url = instance.url; + + } /** * Required - A valid API key for your DeepSeek account. You can find or create * your DeepSeek API keys on the DeepSeek API key page. @@ -231,6 +239,12 @@ public DeepSeekServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteInferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteInferenceRequest.java index 3c3dbf1e1c..3c5d0a4c21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteInferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeleteInferenceRequest.java @@ -154,6 +154,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private TaskType taskType; + public Builder() { + } + private Builder(DeleteInferenceRequest instance) { + this.dryRun = instance.dryRun; + this.force = instance.force; + this.inferenceId = instance.inferenceId; + this.taskType = instance.taskType; + + } /** * When true, checks the semantic_text fields and inference processors that * reference the endpoint and returns them in a list, but does not delete the @@ -215,6 +224,12 @@ public DeleteInferenceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchServiceSettings.java index b44e4fd0a2..b11c0e7430 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchServiceSettings.java @@ -279,6 +279,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxChunksPerDoc; + public Builder() { + } + private Builder(ElasticsearchServiceSettings instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.deploymentId = instance.deploymentId; + this.modelId = instance.modelId; + this.numAllocations = instance.numAllocations; + this.numThreads = instance.numThreads; + this.longDocumentStrategy = instance.longDocumentStrategy; + this.maxChunksPerDoc = instance.maxChunksPerDoc; + + } /** * Adaptive allocations configuration details. If enabled is true, * the number of allocations of the model is set based on the current load the @@ -419,6 +431,12 @@ public ElasticsearchServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchTaskSettings.java index c52e4e6c7a..988b20223c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchTaskSettings.java @@ -121,6 +121,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean returnDocuments; + public Builder() { + } + private Builder(ElasticsearchTaskSettings instance) { + this.returnDocuments = instance.returnDocuments; + + } /** * For a rerank task, return the document instead of only the * index. @@ -150,6 +156,12 @@ public ElasticsearchTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElserServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElserServiceSettings.java index 165a3fcfa8..9db707491b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElserServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElserServiceSettings.java @@ -175,6 +175,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer numThreads; + public Builder() { + } + private Builder(ElserServiceSettings instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.numAllocations = instance.numAllocations; + this.numThreads = instance.numThreads; + + } /** * Adaptive allocations configuration details. If enabled is true, * the number of allocations of the model is set based on the current load the @@ -261,6 +269,12 @@ public ElserServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java index f103243d48..5acd833f6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GetInferenceRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private TaskType taskType; + public Builder() { + } + private Builder(GetInferenceRequest instance) { + this.inferenceId = instance.inferenceId; + this.taskType = instance.taskType; + + } /** * The inference Id *

                                                                                  @@ -158,6 +165,12 @@ public GetInferenceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleAiStudioServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleAiStudioServiceSettings.java index 19ad355c64..52601bbac0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleAiStudioServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleAiStudioServiceSettings.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(GoogleAiStudioServiceSettings instance) { + this.apiKey = instance.apiKey; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key of your Google Gemini account. *

                                                                                  @@ -220,6 +228,12 @@ public GoogleAiStudioServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java index 05cb76b4f0..cd6dfc6f12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAIServiceSettings.java @@ -357,6 +357,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer dimensions; + public Builder() { + } + private Builder(GoogleVertexAIServiceSettings instance) { + this.provider = instance.provider; + this.url = instance.url; + this.streamingUrl = instance.streamingUrl; + this.location = instance.location; + this.modelId = instance.modelId; + this.projectId = instance.projectId; + this.rateLimit = instance.rateLimit; + this.serviceAccountJson = instance.serviceAccountJson; + this.dimensions = instance.dimensions; + + } /** * The name of the Google Model Garden Provider for completion and * chat_completion tasks. In order for a Google Model Garden @@ -541,6 +555,12 @@ public GoogleVertexAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java index 73b7523a58..6597248fd2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GoogleVertexAITaskSettings.java @@ -198,6 +198,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxTokens; + public Builder() { + } + private Builder(GoogleVertexAITaskSettings instance) { + this.autoTruncate = instance.autoTruncate; + this.topN = instance.topN; + this.thinkingConfig = instance.thinkingConfig; + this.maxTokens = instance.maxTokens; + + } /** * For a text_embedding task, truncate inputs longer than the * maximum token length automatically. @@ -278,6 +287,12 @@ public GoogleVertexAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java index eb2af6aada..14ce6e634b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java @@ -176,6 +176,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(GroqServiceSettings instance) { + this.modelId = instance.modelId; + this.apiKey = instance.apiKey; + this.rateLimit = instance.rateLimit; + + } /** * Required - The name of the model to use for the inference task. Refer to the * Groq model documentation for the list of supported models and versions. @@ -252,6 +260,12 @@ public GroqServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceServiceSettings.java index 04f82ea044..da56f9cc83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceServiceSettings.java @@ -202,6 +202,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String modelId; + public Builder() { + } + private Builder(HuggingFaceServiceSettings instance) { + this.apiKey = instance.apiKey; + this.rateLimit = instance.rateLimit; + this.url = instance.url; + this.modelId = instance.modelId; + + } /** * Required - A valid access token for your HuggingFace account. You can create * or find your access tokens on the HuggingFace settings page. @@ -299,6 +308,12 @@ public HuggingFaceServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceTaskSettings.java index ff80da75a5..0a9eb20114 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceTaskSettings.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer topN; + public Builder() { + } + private Builder(HuggingFaceTaskSettings instance) { + this.returnDocuments = instance.returnDocuments; + this.topN = instance.topN; + + } /** * For a rerank task, return doc text within the results. *

                                                                                  @@ -183,6 +190,12 @@ public HuggingFaceTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceChunkingSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceChunkingSettings.java index 5e655de4bf..6b95ea149d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceChunkingSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceChunkingSettings.java @@ -274,6 +274,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String strategy; + public Builder() { + } + private Builder(InferenceChunkingSettings instance) { + this.maxChunkSize = instance.maxChunkSize; + this.overlap = instance.overlap; + this.sentenceOverlap = instance.sentenceOverlap; + this.separatorGroup = instance.separatorGroup; + this.separators = instance.separators; + this.strategy = instance.strategy; + + } /** * The maximum size of a chunk in words. This value cannot be lower than * 20 (for sentence strategy) or 10 (for @@ -414,6 +425,12 @@ public InferenceChunkingSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java index 98607c2311..243d9b024e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/InferenceRequest.java @@ -287,6 +287,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(InferenceRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.inputType = instance.inputType; + this.query = instance.query; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier for the inference endpoint. *

                                                                                  @@ -431,6 +443,12 @@ public InferenceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAIServiceSettings.java index 919594b33b..795d210e45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAIServiceSettings.java @@ -194,6 +194,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JinaAISimilarityType similarity; + public Builder() { + } + private Builder(JinaAIServiceSettings instance) { + this.apiKey = instance.apiKey; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + this.similarity = instance.similarity; + + } /** * Required - A valid API key of your JinaAI account. *

                                                                                  @@ -276,6 +285,12 @@ public JinaAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAITaskSettings.java index e8362f05ed..c429feb837 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/JinaAITaskSettings.java @@ -179,6 +179,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer topN; + public Builder() { + } + private Builder(JinaAITaskSettings instance) { + this.returnDocuments = instance.returnDocuments; + this.task = instance.task; + this.topN = instance.topN; + + } /** * For a rerank task, return the doc text within the results. *

                                                                                  @@ -242,6 +250,12 @@ public JinaAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/LlamaServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/LlamaServiceSettings.java index afd1f8e8cc..d472ec8949 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/LlamaServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/LlamaServiceSettings.java @@ -218,6 +218,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(LlamaServiceSettings instance) { + this.url = instance.url; + this.modelId = instance.modelId; + this.maxInputTokens = instance.maxInputTokens; + this.similarity = instance.similarity; + this.rateLimit = instance.rateLimit; + + } /** * Required - The URL endpoint of the Llama stack endpoint. URL must contain: *

                                                                                    @@ -316,6 +326,12 @@ public LlamaServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Message.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Message.java index 38ca93c7c9..d108187840 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Message.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Message.java @@ -228,6 +228,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List toolCalls; + public Builder() { + } + private Builder(Message instance) { + this.content = instance.content; + this.role = instance.role; + this.toolCallId = instance.toolCallId; + this.toolCalls = instance.toolCalls; + + } /** * The content of the message. *

                                                                                    @@ -423,6 +432,12 @@ public Message build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/MistralServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/MistralServiceSettings.java index 83fd9f6b2b..dcb453e245 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/MistralServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/MistralServiceSettings.java @@ -188,6 +188,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(MistralServiceSettings instance) { + this.apiKey = instance.apiKey; + this.maxInputTokens = instance.maxInputTokens; + this.model = instance.model; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key of your Mistral account. You can find your Mistral * API keys or you can create a new one on the API Keys page. @@ -267,6 +276,12 @@ public MistralServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java index b0474390dd..4895f40d00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaServiceSettings.java @@ -248,6 +248,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(NvidiaServiceSettings instance) { + this.apiKey = instance.apiKey; + this.url = instance.url; + this.modelId = instance.modelId; + this.maxInputTokens = instance.maxInputTokens; + this.similarity = instance.similarity; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key for your Nvidia endpoint. Can be found in * API Keys section of Nvidia account settings. @@ -364,6 +375,12 @@ public NvidiaServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java index c864af3ba9..87d81c43a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/NvidiaTaskSettings.java @@ -158,6 +158,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private CohereTruncateType truncate; + public Builder() { + } + private Builder(NvidiaTaskSettings instance) { + this.inputType = instance.inputType; + this.truncate = instance.truncate; + + } /** * For a text_embedding task, type of input sent to the Nvidia * endpoint. Valid values are: @@ -215,6 +222,12 @@ public NvidiaTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAIServiceSettings.java index 3841256279..de446ad704 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAIServiceSettings.java @@ -74,6 +74,9 @@ public class OpenAIServiceSettings implements JsonpSerializable { @Nullable private final RateLimitSetting rateLimit; + @Nullable + private final OpenAISimilarityType similarity; + @Nullable private final String url; @@ -86,6 +89,7 @@ private OpenAIServiceSettings(Builder builder) { this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); this.organizationId = builder.organizationId; this.rateLimit = builder.rateLimit; + this.similarity = builder.similarity; this.url = builder.url; } @@ -157,6 +161,17 @@ public final RateLimitSetting rateLimit() { return this.rateLimit; } + /** + * For a text_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. Defaults to dot_product. + *

                                                                                    + * API name: {@code similarity} + */ + @Nullable + public final OpenAISimilarityType similarity() { + return this.similarity; + } + /** * The URL endpoint to use for the requests. It can be changed for testing * purposes. @@ -200,6 +215,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.rateLimit.serialize(generator, mapper); } + if (this.similarity != null) { + generator.writeKey("similarity"); + this.similarity.serialize(generator, mapper); + } if (this.url != null) { generator.writeKey("url"); generator.write(this.url); @@ -235,9 +254,24 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + @Nullable + private OpenAISimilarityType similarity; + @Nullable private String url; + public Builder() { + } + private Builder(OpenAIServiceSettings instance) { + this.apiKey = instance.apiKey; + this.dimensions = instance.dimensions; + this.modelId = instance.modelId; + this.organizationId = instance.organizationId; + this.rateLimit = instance.rateLimit; + this.similarity = instance.similarity; + this.url = instance.url; + + } /** * Required - A valid API key of your OpenAI account. You can find your OpenAI * API keys in your OpenAI account under the API keys section. @@ -316,6 +350,17 @@ public final Builder rateLimit(Functiontext_embedding task, the similarity measure. One of + * cosine, dot_product, l2_norm. Defaults to dot_product. + *

                                                                                    + * API name: {@code similarity} + */ + public final Builder similarity(@Nullable OpenAISimilarityType value) { + this.similarity = value; + return this; + } + /** * The URL endpoint to use for the requests. It can be changed for testing * purposes. @@ -345,6 +390,12 @@ public OpenAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** @@ -360,6 +411,7 @@ protected static void setupOpenAIServiceSettingsDeserializer(ObjectDeserializer< op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); op.add(Builder::organizationId, JsonpDeserializer.stringDeserializer(), "organization_id"); op.add(Builder::rateLimit, RateLimitSetting._DESERIALIZER, "rate_limit"); + op.add(Builder::similarity, OpenAISimilarityType._DESERIALIZER, "similarity"); op.add(Builder::url, JsonpDeserializer.stringDeserializer(), "url"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAISimilarityType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAISimilarityType.java new file mode 100644 index 0000000000..56f2f99df1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAISimilarityType.java @@ -0,0 +1,69 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.inference; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum OpenAISimilarityType implements JsonEnum { + Cosine("cosine"), + + DotProduct("dot_product"), + + L2Norm("l2_norm"), + + ; + + private final String jsonValue; + + OpenAISimilarityType(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + OpenAISimilarityType.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java index f2b9427fe9..ff1f453751 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenAITaskSettings.java @@ -153,6 +153,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JsonData headers; + public Builder() { + } + private Builder(OpenAITaskSettings instance) { + this.user = instance.user; + this.headers = instance.headers; + + } /** * For a completion or text_embedding task, specify * the user issuing the request. This information can be used for abuse @@ -201,6 +208,12 @@ public OpenAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java index d053dee8ed..4ec75b0848 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiServiceSettings.java @@ -235,6 +235,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RateLimitSetting rateLimit; + public Builder() { + } + private Builder(OpenShiftAiServiceSettings instance) { + this.apiKey = instance.apiKey; + this.url = instance.url; + this.modelId = instance.modelId; + this.maxInputTokens = instance.maxInputTokens; + this.similarity = instance.similarity; + this.rateLimit = instance.rateLimit; + + } /** * Required - A valid API key for your OpenShift AI endpoint. Can be found in * Token authentication section of model related information. @@ -338,6 +349,12 @@ public OpenShiftAiServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java index 8887697c6d..81948e2f1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/OpenShiftAiTaskSettings.java @@ -145,6 +145,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer topN; + public Builder() { + } + private Builder(OpenShiftAiTaskSettings instance) { + this.returnDocuments = instance.returnDocuments; + this.topN = instance.topN; + + } /** * For a rerank task, whether to return the source documents in the * response. @@ -185,6 +192,12 @@ public OpenShiftAiTaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAi21Request.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAi21Request.java index 7ab3fe0964..403859e0d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAi21Request.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAi21Request.java @@ -180,6 +180,16 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAi21Request instance) { + this.ai21InferenceId = instance.ai21InferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -272,6 +282,12 @@ public PutAi21Request build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java index ada82dfab0..5e30b7e1c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAlibabacloudRequest.java @@ -232,6 +232,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAlibabacloudRequest instance) { + this.alibabacloudInferenceId = instance.alibabacloudInferenceId; + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -370,6 +382,12 @@ public PutAlibabacloudRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java index 076e630f35..d77492bbdb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonbedrockRequest.java @@ -241,6 +241,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAmazonbedrockRequest instance) { + this.amazonbedrockInferenceId = instance.amazonbedrockInferenceId; + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -379,6 +391,12 @@ public PutAmazonbedrockRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java index 642c2e1777..31ba88c5d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAmazonsagemakerRequest.java @@ -234,6 +234,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAmazonsagemakerRequest instance) { + this.amazonsagemakerInferenceId = instance.amazonsagemakerInferenceId; + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -376,6 +388,12 @@ public PutAmazonsagemakerRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java index d89b475287..4d707e09b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAnthropicRequest.java @@ -208,6 +208,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAnthropicRequest instance) { + this.anthropicInferenceId = instance.anthropicInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -323,6 +334,12 @@ public PutAnthropicRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java index 39fe28a3e8..5a940ba327 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureaistudioRequest.java @@ -232,6 +232,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAzureaistudioRequest instance) { + this.azureaistudioInferenceId = instance.azureaistudioInferenceId; + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -370,6 +382,12 @@ public PutAzureaistudioRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java index 5b2f217b21..32e9dc055c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutAzureopenaiRequest.java @@ -249,6 +249,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutAzureopenaiRequest instance) { + this.azureopenaiInferenceId = instance.azureopenaiInferenceId; + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -389,6 +401,12 @@ public PutAzureopenaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java index f66becc3e1..f9b8743312 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCohereRequest.java @@ -230,6 +230,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutCohereRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.cohereInferenceId = instance.cohereInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -367,6 +379,12 @@ public PutCohereRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java index c6019122c8..d10bb313f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutContextualaiRequest.java @@ -211,6 +211,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutContextualaiRequest instance) { + this.contextualaiInferenceId = instance.contextualaiInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -325,6 +336,12 @@ public PutContextualaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java index 15ff3c6e01..5dcf79698c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutCustomRequest.java @@ -270,6 +270,17 @@ public static class Builder extends RequestBase.AbstractBuilder private CustomTaskType taskType; + public Builder() { + } + private Builder(PutCustomRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.customInferenceId = instance.customInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + + } /** * The chunking configuration object. Applies only to the * sparse_embedding or text_embedding task types. Not @@ -386,6 +397,12 @@ public PutCustomRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java index e0325a1f4d..ace8cf44b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutDeepseekRequest.java @@ -183,6 +183,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutDeepseekRequest instance) { + this.deepseekInferenceId = instance.deepseekInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -275,6 +285,12 @@ public PutDeepseekRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java index 9883225f60..991d7e4e2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElasticsearchRequest.java @@ -260,6 +260,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutElasticsearchRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.elasticsearchInferenceId = instance.elasticsearchInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * sparse_embedding and text_embedding task types. Not @@ -399,6 +411,12 @@ public PutElasticsearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElserRequest.java index c6240551f1..54b992997d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutElserRequest.java @@ -234,6 +234,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutElserRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.elserInferenceId = instance.elserInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Note that for ELSER endpoints, the * max_chunk_size may not exceed 300. @@ -348,6 +359,12 @@ public PutElserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java index 56f296c822..2db3120fc2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGoogleaistudioRequest.java @@ -208,6 +208,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutGoogleaistudioRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.googleaistudioInferenceId = instance.googleaistudioInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -324,6 +335,12 @@ public PutGoogleaistudioRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java index 331554b6f8..ad2f8ad777 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGooglevertexaiRequest.java @@ -233,6 +233,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutGooglevertexaiRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.googlevertexaiInferenceId = instance.googlevertexaiInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -373,6 +385,12 @@ public PutGooglevertexaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java index 5564041b79..7894919cab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutGroqRequest.java @@ -180,6 +180,16 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutGroqRequest instance) { + this.groqInferenceId = instance.groqInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -272,6 +282,12 @@ public PutGroqRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java index d1a3b1f9af..050fb732a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutHuggingFaceRequest.java @@ -280,6 +280,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutHuggingFaceRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.huggingfaceInferenceId = instance.huggingfaceInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -420,6 +432,12 @@ public PutHuggingFaceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java index b088dabe40..69d3b1f1cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutJinaaiRequest.java @@ -235,6 +235,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutJinaaiRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.jinaaiInferenceId = instance.jinaaiInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -372,6 +384,12 @@ public PutJinaaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java index 8dda3b9eff..98ab6d618d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutLlamaRequest.java @@ -204,6 +204,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutLlamaRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.llamaInferenceId = instance.llamaInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -320,6 +331,12 @@ public PutLlamaRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java index eb3238fa40..e342e724a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutMistralRequest.java @@ -206,6 +206,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutMistralRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.mistralInferenceId = instance.mistralInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -322,6 +333,12 @@ public PutMistralRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java index 1cd7261bc3..8cc329c64e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutNvidiaRequest.java @@ -235,6 +235,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutNvidiaRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.nvidiaInferenceId = instance.nvidiaInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -380,6 +392,12 @@ public PutNvidiaRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java index 36d40ccf12..b773547c4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenaiRequest.java @@ -232,6 +232,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutOpenaiRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.openaiInferenceId = instance.openaiInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -371,6 +383,12 @@ public PutOpenaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java index 89f6b8c510..8b61764824 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutOpenshiftAiRequest.java @@ -238,6 +238,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutOpenshiftAiRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.openshiftaiInferenceId = instance.openshiftaiInferenceId; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -386,6 +398,12 @@ public PutOpenshiftAiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java index 88f5faba51..b8bfe8aad9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutRequest.java @@ -208,6 +208,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private InferenceEndpoint inferenceConfig; + public Builder() { + } + private Builder(PutRequest instance) { + this.inferenceId = instance.inferenceId; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + this.inferenceConfig = instance.inferenceConfig; + + } /** * Required - The inference Id *

                                                                                    @@ -291,6 +300,12 @@ public PutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); protected static JsonpDeserializer createPutRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java index 1fc6387210..f71af5cb97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutVoyageaiRequest.java @@ -234,6 +234,18 @@ public static class Builder extends RequestBase.AbstractBuilder private String voyageaiInferenceId; + public Builder() { + } + private Builder(PutVoyageaiRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskSettings = instance.taskSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + this.voyageaiInferenceId = instance.voyageaiInferenceId; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -372,6 +384,12 @@ public PutVoyageaiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java index de1a4a2e52..3d6d38979c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/PutWatsonxRequest.java @@ -209,6 +209,17 @@ public static class Builder extends RequestBase.AbstractBuilder private String watsonxInferenceId; + public Builder() { + } + private Builder(PutWatsonxRequest instance) { + this.chunkingSettings = instance.chunkingSettings; + this.service = instance.service; + this.serviceSettings = instance.serviceSettings; + this.taskType = instance.taskType; + this.timeout = instance.timeout; + this.watsonxInferenceId = instance.watsonxInferenceId; + + } /** * The chunking configuration object. Applies only to the * text_embedding task type. Not applicable to the @@ -325,6 +336,12 @@ public PutWatsonxRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java index 67eb8c70dd..45f79a9bfb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RankedDocument.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String text; + public Builder() { + } + private Builder(RankedDocument instance) { + this.index = instance.index; + this.relevanceScore = instance.relevanceScore; + this.text = instance.text; + + } /** * Required - API name: {@code index} */ @@ -194,6 +202,12 @@ public RankedDocument build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java index 2af3c0fcbe..11931fe4a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RateLimitSetting.java @@ -147,6 +147,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer requestsPerMinute; + public Builder() { + } + private Builder(RateLimitSetting instance) { + this.requestsPerMinute = instance.requestsPerMinute; + + } /** * The number of requests allowed per minute. By default, the number of requests * allowed per minute is set by each service as follows: @@ -202,6 +208,12 @@ public RateLimitSetting build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java index 112d514cd5..8225c06202 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/RequestChatCompletion.java @@ -337,6 +337,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float topP; + public Builder() { + } + private Builder(RequestChatCompletion instance) { + this.messages = instance.messages; + this.model = instance.model; + this.maxCompletionTokens = instance.maxCompletionTokens; + this.stop = instance.stop; + this.temperature = instance.temperature; + this.toolChoice = instance.toolChoice; + this.tools = instance.tools; + this.topP = instance.topP; + + } /** * Required - A list of objects representing the conversation. Requests should * generally only add new messages from the user (role user). The @@ -639,6 +652,12 @@ public RequestChatCompletion build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 ef0b9aa2a6..9a0a98c264 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 @@ -241,6 +241,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Integer topN; + public Builder() { + } + private Builder(RerankRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.query = instance.query; + this.returnDocuments = instance.returnDocuments; + this.taskSettings = instance.taskSettings; + this.timeout = instance.timeout; + this.topN = instance.topN; + + } /** * Required - The unique identifier for the inference endpoint. *

                                                                                    @@ -354,6 +366,12 @@ public RerankRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java index f3bdfe79e1..874cce7248 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingRequest.java @@ -181,6 +181,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(SparseEmbeddingRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.taskSettings = instance.taskSettings; + this.timeout = instance.timeout; + + } /** * Required - The inference Id *

                                                                                    @@ -264,6 +273,12 @@ public SparseEmbeddingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java index 7538e4951c..638ed666f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/SparseEmbeddingResult.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Map embedding; + public Builder() { + } + private Builder(SparseEmbeddingResult instance) { + this.embedding = instance.embedding; + + } /** * Required - API name: {@code embedding} *

                                                                                    @@ -162,6 +168,12 @@ public SparseEmbeddingResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java index 3d50756619..235b6da25e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/StreamCompletionRequest.java @@ -204,6 +204,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(StreamCompletionRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.taskSettings = instance.taskSettings; + this.timeout = instance.timeout; + + } /** * Required - The unique identifier for the inference endpoint. *

                                                                                    @@ -295,6 +304,12 @@ public StreamCompletionRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java index 2143fa6c47..5254330a4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingByteResult.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List embedding; + public Builder() { + } + private Builder(TextEmbeddingByteResult instance) { + this.embedding = instance.embedding; + + } /** * Required - API name: {@code embedding} *

                                                                                    @@ -161,6 +167,12 @@ public TextEmbeddingByteResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java index ced3bbe616..ad8a84bc6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingRequest.java @@ -219,6 +219,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(TextEmbeddingRequest instance) { + this.inferenceId = instance.inferenceId; + this.input = instance.input; + this.inputType = instance.inputType; + this.taskSettings = instance.taskSettings; + this.timeout = instance.timeout; + + } /** * Required - The inference Id *

                                                                                    @@ -328,6 +338,12 @@ public TextEmbeddingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java index a237a69459..f3c229bdfb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/TextEmbeddingResult.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List embedding; + public Builder() { + } + private Builder(TextEmbeddingResult instance) { + this.embedding = instance.embedding; + + } /** * Required - API name: {@code embedding} *

                                                                                    @@ -161,6 +167,12 @@ public TextEmbeddingResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ThinkingConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ThinkingConfig.java index bef7765632..7a1358dbb8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ThinkingConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ThinkingConfig.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer thinkingBudget; + public Builder() { + } + private Builder(ThinkingConfig instance) { + this.thinkingBudget = instance.thinkingBudget; + + } /** * Indicates the desired thinking budget in tokens. *

                                                                                    @@ -145,6 +151,12 @@ public ThinkingConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCall.java index 0be890b0e0..91a6ccbe21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCall.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(ToolCall instance) { + this.id = instance.id; + this.function = instance.function; + this.type = instance.type; + + } /** * Required - The identifier of the tool call. *

                                                                                    @@ -204,6 +212,12 @@ public ToolCall build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCallFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCallFunction.java index be30f4c9be..a38adff328 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCallFunction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ToolCallFunction.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(ToolCallFunction instance) { + this.arguments = instance.arguments; + this.name = instance.name; + + } /** * Required - The arguments to call the function with in JSON format. *

                                                                                    @@ -169,6 +176,12 @@ public ToolCallFunction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/UpdateInferenceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/UpdateInferenceRequest.java index e210ed71fc..5a48e9c6de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/UpdateInferenceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/UpdateInferenceRequest.java @@ -151,6 +151,14 @@ public static class Builder extends RequestBase.AbstractBuilder private InferenceEndpoint inferenceConfig; + public Builder() { + } + private Builder(UpdateInferenceRequest instance) { + this.inferenceId = instance.inferenceId; + this.taskType = instance.taskType; + this.inferenceConfig = instance.inferenceConfig; + + } /** * Required - The unique identifier of the inference endpoint. *

                                                                                    @@ -212,6 +220,12 @@ public UpdateInferenceRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createUpdateInferenceRequestDeserializer(); protected static JsonpDeserializer createUpdateInferenceRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAIServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAIServiceSettings.java index c83b218ccd..2a6fd48594 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAIServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAIServiceSettings.java @@ -197,6 +197,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Float embeddingType; + public Builder() { + } + private Builder(VoyageAIServiceSettings instance) { + this.dimensions = instance.dimensions; + this.modelId = instance.modelId; + this.rateLimit = instance.rateLimit; + this.embeddingType = instance.embeddingType; + + } /** * The number of dimensions for resulting output embeddings. This setting maps * to output_dimension in the VoyageAI documentation. Only for the @@ -281,6 +290,12 @@ public VoyageAIServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAITaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAITaskSettings.java index 501842d8c4..5be2993db7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAITaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/VoyageAITaskSettings.java @@ -194,6 +194,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean truncation; + public Builder() { + } + private Builder(VoyageAITaskSettings instance) { + this.inputType = instance.inputType; + this.returnDocuments = instance.returnDocuments; + this.topK = instance.topK; + this.truncation = instance.truncation; + + } /** * Type of the input text. Permitted values: ingest (maps to * document in the VoyageAI documentation), search @@ -258,6 +267,12 @@ public VoyageAITaskSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/WatsonxServiceSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/WatsonxServiceSettings.java index debc39845e..6e9cca9a72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/WatsonxServiceSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/WatsonxServiceSettings.java @@ -220,6 +220,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String url; + public Builder() { + } + private Builder(WatsonxServiceSettings instance) { + this.apiKey = instance.apiKey; + this.apiVersion = instance.apiVersion; + this.modelId = instance.modelId; + this.projectId = instance.projectId; + this.rateLimit = instance.rateLimit; + this.url = instance.url; + + } /** * Required - A valid API key of your Watsonx account. You can find your Watsonx * API keys or you can create a new one on the API keys page. @@ -324,6 +335,12 @@ public WatsonxServiceSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** 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 e989a59799..caf7036618 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 @@ -231,6 +231,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreEmptyValues; + public Builder() { + } + private Builder(AppendProcessor instance) { + this.field = instance.field; + this.value = instance.value; + this.mediaType = instance.mediaType; + this.copyFrom = instance.copyFrom; + this.allowDuplicates = instance.allowDuplicates; + this.ignoreEmptyValues = instance.ignoreEmptyValues; + + } /** * Required - The field to be appended to. Supports template snippets. *

                                                                                    @@ -331,6 +342,12 @@ public AppendProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java index 4cabffb365..ea0063198d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AttachmentProcessor.java @@ -277,6 +277,19 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String resourceName; + public Builder() { + } + private Builder(AttachmentProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.indexedChars = instance.indexedChars; + this.indexedCharsField = instance.indexedCharsField; + this.properties = instance.properties; + this.targetField = instance.targetField; + this.removeBinary = instance.removeBinary; + this.resourceName = instance.resourceName; + + } /** * Required - The field to get the base64 encoded field from. *

                                                                                    @@ -400,6 +413,12 @@ public AttachmentProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/BytesProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/BytesProcessor.java index a319fe068e..946429782a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/BytesProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/BytesProcessor.java @@ -156,6 +156,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(BytesProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The field to convert. *

                                                                                    @@ -207,6 +215,12 @@ public BytesProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CefProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CefProcessor.java index 8a3c40a098..0ce3843cbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CefProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CefProcessor.java @@ -200,6 +200,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String timezone; + public Builder() { + } + private Builder(CefProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + this.ignoreEmptyValues = instance.ignoreEmptyValues; + this.timezone = instance.timezone; + + } /** * Required - The field containing the CEF message. *

                                                                                    @@ -273,6 +283,12 @@ public CefProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CircleProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CircleProcessor.java index 00d2fe798d..04d3df34fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CircleProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CircleProcessor.java @@ -193,6 +193,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(CircleProcessor instance) { + this.errorDistance = instance.errorDistance; + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.shapeType = instance.shapeType; + this.targetField = instance.targetField; + + } /** * Required - The difference between the resulting inscribed distance from * center to side and the circle’s radius (measured in meters for @@ -267,6 +277,12 @@ public CircleProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CommunityIDProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CommunityIDProcessor.java index df31bb45c3..9b35b7bbde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CommunityIDProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CommunityIDProcessor.java @@ -341,6 +341,22 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(CommunityIDProcessor instance) { + this.sourceIp = instance.sourceIp; + this.sourcePort = instance.sourcePort; + this.destinationIp = instance.destinationIp; + this.destinationPort = instance.destinationPort; + this.ianaNumber = instance.ianaNumber; + this.icmpType = instance.icmpType; + this.icmpCode = instance.icmpCode; + this.transport = instance.transport; + this.targetField = instance.targetField; + this.seed = instance.seed; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Field containing the source IP address. *

                                                                                    @@ -475,6 +491,12 @@ public CommunityIDProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ConvertProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ConvertProcessor.java index 3df36477ee..08a8b57bf3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ConvertProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ConvertProcessor.java @@ -172,6 +172,15 @@ public static class Builder extends ProcessorBase.AbstractBuilder private ConvertType type; + public Builder() { + } + private Builder(ConvertProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + this.type = instance.type; + + } /** * Required - The field whose value is to be converted. *

                                                                                    @@ -233,6 +242,12 @@ public ConvertProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java index ff63037bf6..3f43d84539 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/CsvProcessor.java @@ -246,6 +246,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private Boolean trim; + public Builder() { + } + private Builder(CsvProcessor instance) { + this.emptyValue = instance.emptyValue; + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.quote = instance.quote; + this.separator = instance.separator; + this.targetFields = instance.targetFields; + this.trim = instance.trim; + + } /** * Value used to fill empty fields. Empty fields are skipped if this is not * provided. An empty field is one with no value (2 consecutive separators) or @@ -351,6 +363,12 @@ public CsvProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java index ace6e49b9a..dfdc18eda8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateIndexNameProcessor.java @@ -250,6 +250,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String timezone; + public Builder() { + } + private Builder(DateIndexNameProcessor instance) { + this.dateFormats = instance.dateFormats; + this.dateRounding = instance.dateRounding; + this.field = instance.field; + this.indexNameFormat = instance.indexNameFormat; + this.indexNamePrefix = instance.indexNamePrefix; + this.locale = instance.locale; + this.timezone = instance.timezone; + + } /** * An array of the expected date formats for parsing dates / timestamps in the * document being preprocessed. Can be a java time pattern or one of the @@ -364,6 +376,12 @@ public DateIndexNameProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java index 2fc7265d14..d2cc757b3c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DateProcessor.java @@ -222,6 +222,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String outputFormat; + public Builder() { + } + private Builder(DateProcessor instance) { + this.field = instance.field; + this.formats = instance.formats; + this.locale = instance.locale; + this.targetField = instance.targetField; + this.timezone = instance.timezone; + this.outputFormat = instance.outputFormat; + + } /** * Required - The field to get the date from. *

                                                                                    @@ -318,6 +329,12 @@ public DateProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteGeoipDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteGeoipDatabaseRequest.java index b434b27494..428288b74c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteGeoipDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteGeoipDatabaseRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteGeoipDatabaseRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Required - A comma-separated list of geoip database configurations to delete *

                                                                                    @@ -222,6 +230,12 @@ public DeleteGeoipDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteIpLocationDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteIpLocationDatabaseRequest.java index 5622c2bcc6..cbaa52382e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteIpLocationDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeleteIpLocationDatabaseRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteIpLocationDatabaseRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Required - A comma-separated list of IP location database configurations. *

                                                                                    @@ -227,6 +235,12 @@ public DeleteIpLocationDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java index 5b8b79434f..4f51f4f119 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DeletePipelineRequest.java @@ -137,6 +137,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeletePipelineRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Required - Pipeline ID or wildcard expression of pipeline IDs used to limit * the request. To delete all ingest pipelines in a cluster, use a value of @@ -209,6 +217,12 @@ public DeletePipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java index 71429590c2..6488732ab2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DissectProcessor.java @@ -171,6 +171,15 @@ public static class Builder extends ProcessorBase.AbstractBuilder private String pattern; + public Builder() { + } + private Builder(DissectProcessor instance) { + this.appendSeparator = instance.appendSeparator; + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.pattern = instance.pattern; + + } /** * The character(s) that separate the appended fields. *

                                                                                    @@ -231,6 +240,12 @@ public DissectProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Document.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Document.java index 379f8b986b..19232d8ef6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Document.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Document.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private JsonData source; + public Builder() { + } + private Builder(Document instance) { + this.id = instance.id; + this.index = instance.index; + this.source = instance.source; + + } /** * Unique identifier for the document. This ID must be unique within the * _index. @@ -207,6 +215,12 @@ public Document build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DocumentSimulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DocumentSimulation.java index 7d27bd5102..f5e9eb082b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DocumentSimulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DocumentSimulation.java @@ -281,6 +281,18 @@ public final Builder metadata(String key, String value) { @Nullable private VersionType versionType; + public Builder() { + } + private Builder(DocumentSimulation instance) { + this.id = instance.id; + this.index = instance.index; + this.ingest = instance.ingest; + this.routing = instance.routing; + this.source = instance.source; + this.version = instance.version; + this.versionType = instance.versionType; + + } /** * Required - Unique identifier for the document. This ID must be unique within * the _index. @@ -385,6 +397,12 @@ public DocumentSimulation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java index 05ba4dcef6..2353706c2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DotExpanderProcessor.java @@ -161,6 +161,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String path; + public Builder() { + } + private Builder(DotExpanderProcessor instance) { + this.field = instance.field; + this.override = instance.override; + this.path = instance.path; + + } /** * Required - The field to expand into an object field. If set to * *, all top-level fields will be expanded. @@ -216,6 +224,12 @@ public DotExpanderProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java index 8702d5a44b..f36dcd39a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/DropProcessor.java @@ -78,6 +78,11 @@ public Processor.Kind _processorKind() { */ public static class Builder extends ProcessorBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(DropProcessor instance) { + + } @Override protected Builder self() { return this; @@ -96,6 +101,12 @@ public DropProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java index ae531af701..1e568b467b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/EnrichProcessor.java @@ -243,6 +243,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder private String targetField; + public Builder() { + } + private Builder(EnrichProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.maxMatches = instance.maxMatches; + this.override = instance.override; + this.policyName = instance.policyName; + this.shapeRelation = instance.shapeRelation; + this.targetField = instance.targetField; + + } /** * Required - The field in the input document that matches the policies * match_field used to retrieve the enrichment data. Supports template snippets. @@ -343,6 +355,12 @@ public EnrichProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java index ee2b2610a0..004e6e861f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FailProcessor.java @@ -106,6 +106,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends ProcessorBase.AbstractBuilder implements ObjectBuilder { private String message; + public Builder() { + } + private Builder(FailProcessor instance) { + this.message = instance.message; + + } /** * Required - The error message thrown by the processor. Supports template * snippets. @@ -135,6 +141,12 @@ public FailProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FingerprintProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FingerprintProcessor.java index 0c17aa105d..9b3a750d37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FingerprintProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/FingerprintProcessor.java @@ -209,6 +209,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(FingerprintProcessor instance) { + this.fields = instance.fields; + this.targetField = instance.targetField; + this.salt = instance.salt; + this.method = instance.method; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Required - Array of fields to include in the fingerprint. For objects, the * processor hashes both the field key and value. For other fields, the @@ -297,6 +307,12 @@ public FingerprintProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java index c6953ec785..5a52573a4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ForeachProcessor.java @@ -148,6 +148,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder private Processor processor; + public Builder() { + } + private Builder(ForeachProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.processor = instance.processor; + + } /** * Required - Field containing array or object values. *

                                                                                    @@ -216,6 +224,12 @@ public ForeachProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoGridProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoGridProcessor.java index 594eb2339d..1227bd1168 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoGridProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoGridProcessor.java @@ -283,6 +283,20 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private GeoGridTargetFormat targetFormat; + public Builder() { + } + private Builder(GeoGridProcessor instance) { + this.field = instance.field; + this.tileType = instance.tileType; + this.targetField = instance.targetField; + this.parentField = instance.parentField; + this.childrenField = instance.childrenField; + this.nonChildrenField = instance.nonChildrenField; + this.precisionField = instance.precisionField; + this.ignoreMissing = instance.ignoreMissing; + this.targetFormat = instance.targetFormat; + + } /** * Required - The field to interpret as a geo-tile.= The field format is * determined by the tile_type. @@ -396,6 +410,12 @@ public GeoGridProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java index 13a0134f92..10268e3f9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpProcessor.java @@ -255,6 +255,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean downloadDatabaseOnPipelineCreation; + public Builder() { + } + private Builder(GeoIpProcessor instance) { + this.databaseFile = instance.databaseFile; + this.field = instance.field; + this.firstOnly = instance.firstOnly; + this.ignoreMissing = instance.ignoreMissing; + this.properties = instance.properties; + this.targetField = instance.targetField; + this.downloadDatabaseOnPipelineCreation = instance.downloadDatabaseOnPipelineCreation; + + } /** * The database filename referring to a database the module ships with * (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom @@ -368,6 +380,12 @@ public GeoIpProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetGeoipDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetGeoipDatabaseRequest.java index 9377ae8c4b..9582307106 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetGeoipDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetGeoipDatabaseRequest.java @@ -105,6 +105,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List id; + public Builder() { + } + private Builder(GetGeoipDatabaseRequest instance) { + this.id = instance.id; + + } /** * A comma-separated list of database configuration IDs to retrieve. Wildcard * (*) expressions are supported. To get all database @@ -151,6 +157,12 @@ public GetGeoipDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetIpLocationDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetIpLocationDatabaseRequest.java index 645226a1ed..a1c6d4dd52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetIpLocationDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetIpLocationDatabaseRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List id; + public Builder() { + } + private Builder(GetIpLocationDatabaseRequest instance) { + this.id = instance.id; + + } /** * Comma-separated list of database configuration IDs to retrieve. Wildcard * (*) expressions are supported. To get all database @@ -149,6 +155,12 @@ public GetIpLocationDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java index 0366202a00..7b14a90b2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GetPipelineRequest.java @@ -140,6 +140,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean summary; + public Builder() { + } + private Builder(GetPipelineRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.summary = instance.summary; + + } /** * Comma-separated list of pipeline IDs to retrieve. Wildcard (*) * expressions are supported. To get all ingest pipelines, omit this parameter @@ -201,6 +209,12 @@ public GetPipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java index 30ef801651..a5610d87c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GrokProcessor.java @@ -233,6 +233,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private Boolean traceMatch; + public Builder() { + } + private Builder(GrokProcessor instance) { + this.ecsCompatibility = instance.ecsCompatibility; + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.patternDefinitions = instance.patternDefinitions; + this.patterns = instance.patterns; + this.traceMatch = instance.traceMatch; + + } /** * Must be disabled or v1. If v1, the processor uses patterns with Elastic * Common Schema (ECS) field names. @@ -350,6 +361,12 @@ public GrokProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java index 6e2dc231c5..3567d4bfaf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GsubProcessor.java @@ -188,6 +188,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String targetField; + public Builder() { + } + private Builder(GsubProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.pattern = instance.pattern; + this.replacement = instance.replacement; + this.targetField = instance.targetField; + + } /** * Required - The field to apply the replacement to. *

                                                                                    @@ -259,6 +269,12 @@ public GsubProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/HtmlStripProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/HtmlStripProcessor.java index cb28022a37..16800ee801 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/HtmlStripProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/HtmlStripProcessor.java @@ -157,6 +157,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(HtmlStripProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The string-valued field to remove HTML tags from. *

                                                                                    @@ -208,6 +216,12 @@ public HtmlStripProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java index 20dff8ef63..719ff46f10 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigClassification.java @@ -219,6 +219,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String predictionFieldType; + public Builder() { + } + private Builder(InferenceConfigClassification instance) { + this.numTopClasses = instance.numTopClasses; + this.numTopFeatureImportanceValues = instance.numTopFeatureImportanceValues; + this.resultsField = instance.resultsField; + this.topClassesResultsField = instance.topClassesResultsField; + this.predictionFieldType = instance.predictionFieldType; + + } /** * Specifies the number of top class predictions to return. *

                                                                                    @@ -289,6 +299,12 @@ public InferenceConfigClassification build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java index 2eb41ccdea..872938718f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceConfigRegression.java @@ -152,6 +152,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer numTopFeatureImportanceValues; + public Builder() { + } + private Builder(InferenceConfigRegression instance) { + this.resultsField = instance.resultsField; + this.numTopFeatureImportanceValues = instance.numTopFeatureImportanceValues; + + } /** * The field that is added to incoming documents to contain the inference * prediction. @@ -191,6 +198,12 @@ public InferenceConfigRegression build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java index 7d733465e9..9f72ae9974 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InferenceProcessor.java @@ -238,6 +238,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(InferenceProcessor instance) { + this.modelId = instance.modelId; + this.targetField = instance.targetField; + this.fieldMap = instance.fieldMap; + this.inferenceConfig = instance.inferenceConfig; + this.inputOutput = instance.inputOutput; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Required - The ID or alias for the trained model, or the ID of the * deployment. @@ -388,6 +399,12 @@ public InferenceProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Ingest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Ingest.java index 32f1cae755..f60da0bb91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Ingest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Ingest.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String pipeline; + public Builder() { + } + private Builder(Ingest instance) { + this.redact = instance.redact; + this.timestamp = instance.timestamp; + this.pipeline = instance.pipeline; + + } /** * API name: {@code _redact} */ @@ -200,6 +208,12 @@ public Ingest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InputConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InputConfig.java index e98f14af25..b43a94d218 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InputConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/InputConfig.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String outputField; + public Builder() { + } + private Builder(InputConfig instance) { + this.inputField = instance.inputField; + this.outputField = instance.outputField; + + } /** * Required - API name: {@code input_field} */ @@ -159,6 +166,12 @@ public InputConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/IpLocationProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/IpLocationProcessor.java index 7d15c90b90..fd727c0424 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/IpLocationProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/IpLocationProcessor.java @@ -256,6 +256,18 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean downloadDatabaseOnPipelineCreation; + public Builder() { + } + private Builder(IpLocationProcessor instance) { + this.databaseFile = instance.databaseFile; + this.field = instance.field; + this.firstOnly = instance.firstOnly; + this.ignoreMissing = instance.ignoreMissing; + this.properties = instance.properties; + this.targetField = instance.targetField; + this.downloadDatabaseOnPipelineCreation = instance.downloadDatabaseOnPipelineCreation; + + } /** * The database filename referring to a database the module ships with * (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom @@ -369,6 +381,12 @@ public IpLocationProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java index daa5b40ee3..47033989ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JoinProcessor.java @@ -146,6 +146,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String targetField; + public Builder() { + } + private Builder(JoinProcessor instance) { + this.field = instance.field; + this.separator = instance.separator; + this.targetField = instance.targetField; + + } /** * Required - Field containing array values to join. *

                                                                                    @@ -195,6 +203,12 @@ public JoinProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java index 44bb836748..50afe8aea5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/JsonProcessor.java @@ -202,6 +202,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String targetField; + public Builder() { + } + private Builder(JsonProcessor instance) { + this.addToRoot = instance.addToRoot; + this.addToRootConflictStrategy = instance.addToRootConflictStrategy; + this.allowDuplicateKeys = instance.allowDuplicateKeys; + this.field = instance.field; + this.targetField = instance.targetField; + + } /** * Flag that forces the parsed JSON to be added at the top level of the * document. target_field must not be set when this option is @@ -278,6 +288,12 @@ public JsonProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/KeyValueProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/KeyValueProcessor.java index 72e4f74ecb..cdfeeda593 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/KeyValueProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/KeyValueProcessor.java @@ -332,6 +332,22 @@ public static class Builder extends ProcessorBase.AbstractBuilder private String valueSplit; + public Builder() { + } + private Builder(KeyValueProcessor instance) { + this.excludeKeys = instance.excludeKeys; + this.field = instance.field; + this.fieldSplit = instance.fieldSplit; + this.ignoreMissing = instance.ignoreMissing; + this.includeKeys = instance.includeKeys; + this.prefix = instance.prefix; + this.stripBrackets = instance.stripBrackets; + this.targetField = instance.targetField; + this.trimKey = instance.trimKey; + this.trimValue = instance.trimValue; + this.valueSplit = instance.valueSplit; + + } /** * List of keys to exclude from document. *

                                                                                    @@ -496,6 +512,12 @@ public KeyValueProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Local.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Local.java index 1f2cf6f1b4..b253d75ce2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Local.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Local.java @@ -118,6 +118,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String type; + public Builder() { + } + private Builder(Local instance) { + this.type = instance.type; + + } /** * Required - API name: {@code type} */ @@ -144,6 +150,12 @@ public Local build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/LowercaseProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/LowercaseProcessor.java index 3e2c961e7c..076b7d171a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/LowercaseProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/LowercaseProcessor.java @@ -157,6 +157,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(LowercaseProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The field to make lowercase. *

                                                                                    @@ -208,6 +216,12 @@ public LowercaseProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Maxmind.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Maxmind.java index ac93cf0c45..c4969f148d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Maxmind.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Maxmind.java @@ -126,6 +126,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String accountId; + public Builder() { + } + private Builder(Maxmind instance) { + this.accountId = instance.accountId; + + } /** * Required - API name: {@code account_id} */ @@ -152,6 +158,12 @@ public Maxmind build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/NetworkDirectionProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/NetworkDirectionProcessor.java index ed92fcf484..5e5f7278ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/NetworkDirectionProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/NetworkDirectionProcessor.java @@ -234,6 +234,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(NetworkDirectionProcessor instance) { + this.sourceIp = instance.sourceIp; + this.destinationIp = instance.destinationIp; + this.targetField = instance.targetField; + this.internalNetworks = instance.internalNetworks; + this.internalNetworksField = instance.internalNetworksField; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Field containing the source IP address. *

                                                                                    @@ -334,6 +345,12 @@ public NetworkDirectionProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java index 8f16c56029..9bc53ed13f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Pipeline.java @@ -359,6 +359,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FieldAccessPattern fieldAccessPattern; + public Builder() { + } + private Builder(Pipeline instance) { + this.description = instance.description; + this.onFailure = instance.onFailure; + this.processors = instance.processors; + this.version = instance.version; + this.deprecated = instance.deprecated; + this.meta = instance.meta; + this.createdDate = instance.createdDate; + this.createdDateMillis = instance.createdDateMillis; + this.modifiedDate = instance.modifiedDate; + this.modifiedDateMillis = instance.modifiedDateMillis; + this.fieldAccessPattern = instance.fieldAccessPattern; + + } /** * Description of the ingest pipeline. *

                                                                                    @@ -593,6 +609,12 @@ public Pipeline build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineConfig.java index cceeda8d12..be0e0e9f50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineConfig.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List processors; + public Builder() { + } + private Builder(PipelineConfig instance) { + this.description = instance.description; + this.version = instance.version; + this.processors = instance.processors; + + } /** * Description of the ingest pipeline. *

                                                                                    @@ -259,6 +267,12 @@ public PipelineConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessor.java index 4b0e700517..8fb9deadfe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessor.java @@ -131,6 +131,13 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissingPipeline; + public Builder() { + } + private Builder(PipelineProcessor instance) { + this.name = instance.name; + this.ignoreMissingPipeline = instance.ignoreMissingPipeline; + + } /** * Required - The name of the pipeline to execute. Supports template snippets. *

                                                                                    @@ -169,6 +176,12 @@ public PipelineProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessorResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessorResult.java index 557ca2b1c2..1dad7edef0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessorResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PipelineProcessorResult.java @@ -238,6 +238,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause error; + public Builder() { + } + private Builder(PipelineProcessorResult instance) { + this.doc = instance.doc; + this.tag = instance.tag; + this.processorType = instance.processorType; + this.status = instance.status; + this.description = instance.description; + this.ignoredError = instance.ignoredError; + this.error = instance.error; + + } /** * API name: {@code doc} */ @@ -333,6 +345,12 @@ public PipelineProcessorResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutGeoipDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutGeoipDatabaseRequest.java index 8f26070115..6583833a72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutGeoipDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutGeoipDatabaseRequest.java @@ -190,6 +190,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutGeoipDatabaseRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.maxmind = instance.maxmind; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * Required - ID of the database configuration to create or update. *

                                                                                    @@ -298,6 +308,12 @@ public PutGeoipDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutIpLocationDatabaseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutIpLocationDatabaseRequest.java index 521c35a4e3..8db376788d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutIpLocationDatabaseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutIpLocationDatabaseRequest.java @@ -161,6 +161,15 @@ public static class Builder extends RequestBase.AbstractBuilder private DatabaseConfiguration configuration; + public Builder() { + } + private Builder(PutIpLocationDatabaseRequest instance) { + this.id = instance.id; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + this.configuration = instance.configuration; + + } /** * Required - The database configuration identifier. *

                                                                                    @@ -264,6 +273,12 @@ public PutIpLocationDatabaseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutIpLocationDatabaseRequestDeserializer(); protected static JsonpDeserializer createPutIpLocationDatabaseRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java index ddfda6abe4..4e813b5988 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/PutPipelineRequest.java @@ -348,6 +348,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long version; + public Builder() { + } + private Builder(PutPipelineRequest instance) { + this.meta = instance.meta; + this.deprecated = instance.deprecated; + this.description = instance.description; + this.fieldAccessPattern = instance.fieldAccessPattern; + this.id = instance.id; + this.ifVersion = instance.ifVersion; + this.masterTimeout = instance.masterTimeout; + this.onFailure = instance.onFailure; + this.processors = instance.processors; + this.timeout = instance.timeout; + this.version = instance.version; + + } /** * Optional metadata about the ingest pipeline. May have any contents. This map * is not automatically generated by Elasticsearch. @@ -623,6 +639,12 @@ public PutPipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Redact.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Redact.java index a7d146be88..e760bc33a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Redact.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/Redact.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean isRedacted; + public Builder() { + } + private Builder(Redact instance) { + this.isRedacted = instance.isRedacted; + + } /** * Required - indicates if document has been redacted *

                                                                                    @@ -139,6 +145,12 @@ public Redact build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RedactProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RedactProcessor.java index 6e132452f6..f9ec0ba967 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RedactProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RedactProcessor.java @@ -274,6 +274,19 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean traceRedact; + public Builder() { + } + private Builder(RedactProcessor instance) { + this.field = instance.field; + this.patterns = instance.patterns; + this.patternDefinitions = instance.patternDefinitions; + this.prefix = instance.prefix; + this.suffix = instance.suffix; + this.ignoreMissing = instance.ignoreMissing; + this.skipIfUnlicensed = instance.skipIfUnlicensed; + this.traceRedact = instance.traceRedact; + + } /** * Required - The field to be redacted *

                                                                                    @@ -401,6 +414,12 @@ public RedactProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RegisteredDomainProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RegisteredDomainProcessor.java index 3b8e224596..f5827b1099 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RegisteredDomainProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RegisteredDomainProcessor.java @@ -156,6 +156,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(RegisteredDomainProcessor instance) { + this.field = instance.field; + this.targetField = instance.targetField; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Required - Field containing the source FQDN. *

                                                                                    @@ -206,6 +214,12 @@ public RegisteredDomainProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java index 4d6b1ebbc1..41fa113ca2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RemoveProcessor.java @@ -167,6 +167,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean ignoreMissing; + public Builder() { + } + private Builder(RemoveProcessor instance) { + this.field = instance.field; + this.keep = instance.keep; + this.ignoreMissing = instance.ignoreMissing; + + } /** * Required - Fields to be removed. Supports template snippets. *

                                                                                    @@ -247,6 +255,12 @@ public RemoveProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java index 60bac03cd6..9a32b5b493 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RenameProcessor.java @@ -148,6 +148,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder private String targetField; + public Builder() { + } + private Builder(RenameProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The field to be renamed. Supports template snippets. *

                                                                                    @@ -197,6 +205,12 @@ public RenameProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java index 89ea392749..64ac30730f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/RerouteProcessor.java @@ -186,6 +186,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private List namespace; + public Builder() { + } + private Builder(RerouteProcessor instance) { + this.destination = instance.destination; + this.dataset = instance.dataset; + this.namespace = instance.namespace; + + } /** * A static value for the target. Can’t be set when the dataset or namespace * option is set. @@ -305,6 +313,12 @@ public RerouteProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java index 665069b848..1f5f2c3d67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/ScriptProcessor.java @@ -189,6 +189,15 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private ScriptSource source; + public Builder() { + } + private Builder(ScriptProcessor instance) { + this.id = instance.id; + this.lang = instance.lang; + this.params = instance.params; + this.source = instance.source; + + } /** * ID of a stored script. If no source is specified, this parameter * is required. @@ -283,6 +292,12 @@ public ScriptProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java index cc5c532674..e9e6dc5561 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetProcessor.java @@ -229,6 +229,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private JsonData value; + public Builder() { + } + private Builder(SetProcessor instance) { + this.copyFrom = instance.copyFrom; + this.field = instance.field; + this.ignoreEmptyValue = instance.ignoreEmptyValue; + this.mediaType = instance.mediaType; + this.override = instance.override; + this.value = instance.value; + + } /** * The origin field which will be copied to field, cannot set * value simultaneously. Supported data types are @@ -318,6 +329,12 @@ public SetProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java index ace13f2afc..50cda67e1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SetSecurityUserProcessor.java @@ -135,6 +135,13 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private List properties; + public Builder() { + } + private Builder(SetSecurityUserProcessor instance) { + this.field = instance.field; + this.properties = instance.properties; + + } /** * Required - The field to store the user information into. *

                                                                                    @@ -187,6 +194,12 @@ public SetSecurityUserProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateDocumentResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateDocumentResult.java index d7eac437a3..857a20bedd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateDocumentResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateDocumentResult.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List processorResults; + public Builder() { + } + private Builder(SimulateDocumentResult instance) { + this.doc = instance.doc; + this.error = instance.error; + this.processorResults = instance.processorResults; + + } /** * API name: {@code doc} */ @@ -241,6 +249,12 @@ public SimulateDocumentResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java index 6b8db51a7b..8d351d48f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java @@ -186,6 +186,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean verbose; + public Builder() { + } + private Builder(SimulateRequest instance) { + this.docs = instance.docs; + this.id = instance.id; + this.pipeline = instance.pipeline; + this.verbose = instance.verbose; + + } /** * Required - Sample documents to test in the pipeline. *

                                                                                    @@ -284,6 +293,12 @@ public SimulateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java index b341590788..6fa2ff556e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SortProcessor.java @@ -152,6 +152,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String targetField; + public Builder() { + } + private Builder(SortProcessor instance) { + this.field = instance.field; + this.order = instance.order; + this.targetField = instance.targetField; + + } /** * Required - The field to be sorted. *

                                                                                    @@ -202,6 +210,12 @@ public SortProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java index db198998a8..e39df02793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SplitProcessor.java @@ -195,6 +195,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(SplitProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.preserveTrailing = instance.preserveTrailing; + this.separator = instance.separator; + this.targetField = instance.targetField; + + } /** * Required - The field to split. *

                                                                                    @@ -266,6 +276,12 @@ public SplitProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TerminateProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TerminateProcessor.java index d516beea9c..d9edd21143 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TerminateProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TerminateProcessor.java @@ -81,6 +81,11 @@ public Processor.Kind _processorKind() { public static class Builder extends ProcessorBase.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(TerminateProcessor instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public TerminateProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java index a5431a8122..68d3599ad8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/TrimProcessor.java @@ -153,6 +153,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder imple @Nullable private String targetField; + public Builder() { + } + private Builder(TrimProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The string-valued field to trim whitespace from. *

                                                                                    @@ -203,6 +211,12 @@ public TrimProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java index 4c6d5cc647..0866f29f87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UppercaseProcessor.java @@ -157,6 +157,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(UppercaseProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The field to make uppercase. *

                                                                                    @@ -208,6 +216,12 @@ public UppercaseProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UriPartsProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UriPartsProcessor.java index d9c01d76a8..5a0ead2248 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UriPartsProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UriPartsProcessor.java @@ -201,6 +201,16 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(UriPartsProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.keepOriginal = instance.keepOriginal; + this.removeIfSuccessful = instance.removeIfSuccessful; + this.targetField = instance.targetField; + + } /** * Required - Field containing the URI string. *

                                                                                    @@ -273,6 +283,12 @@ public UriPartsProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java index 72d614c33f..aded21368e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UrlDecodeProcessor.java @@ -157,6 +157,14 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private String targetField; + public Builder() { + } + private Builder(UrlDecodeProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.targetField = instance.targetField; + + } /** * Required - The field to decode. *

                                                                                    @@ -208,6 +216,12 @@ public UrlDecodeProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java index a02eaa72d4..0384b3885d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/UserAgentProcessor.java @@ -228,6 +228,17 @@ public static class Builder extends ProcessorBase.AbstractBuilder @Nullable private Boolean extractDeviceType; + public Builder() { + } + private Builder(UserAgentProcessor instance) { + this.field = instance.field; + this.ignoreMissing = instance.ignoreMissing; + this.regexFile = instance.regexFile; + this.targetField = instance.targetField; + this.properties = instance.properties; + this.extractDeviceType = instance.extractDeviceType; + + } /** * Required - The field containing the user agent string. *

                                                                                    @@ -325,6 +336,12 @@ public UserAgentProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java index e9f4e215f5..b8f88972f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java @@ -201,6 +201,17 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer expiredDatabases; + public Builder() { + } + private Builder(GeoIpDownloadStatistics instance) { + this.successfulDownloads = instance.successfulDownloads; + this.failedDownloads = instance.failedDownloads; + this.totalDownloadTime = instance.totalDownloadTime; + this.databasesCount = instance.databasesCount; + this.skippedUpdates = instance.skippedUpdates; + this.expiredDatabases = instance.expiredDatabases; + + } /** * Required - Total number of successful database downloads. *

                                                                                    @@ -279,6 +290,12 @@ public GeoIpDownloadStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java index 2ea1843a30..ff3b1a3014 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String name; + public Builder() { + } + private Builder(GeoIpNodeDatabaseName instance) { + this.name = instance.name; + + } /** * Required - Name of the database. *

                                                                                    @@ -143,6 +149,12 @@ public GeoIpNodeDatabaseName build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java index ff467214c1..95f651b9fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List filesInTemp; + public Builder() { + } + private Builder(GeoIpNodeDatabases instance) { + this.databases = instance.databases; + this.filesInTemp = instance.filesInTemp; + + } /** * Required - Downloaded databases for the node. *

                                                                                    @@ -233,6 +240,12 @@ public GeoIpNodeDatabases build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_geoip_database/DatabaseConfigurationMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_geoip_database/DatabaseConfigurationMetadata.java index 12297d42fb..9f269b2e82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_geoip_database/DatabaseConfigurationMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_geoip_database/DatabaseConfigurationMetadata.java @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase private DatabaseConfiguration database; + public Builder() { + } + private Builder(DatabaseConfigurationMetadata instance) { + this.id = instance.id; + this.version = instance.version; + this.modifiedDateMillis = instance.modifiedDateMillis; + this.database = instance.database; + + } /** * Required - API name: {@code id} */ @@ -219,6 +228,12 @@ public DatabaseConfigurationMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_ip_location_database/DatabaseConfigurationMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_ip_location_database/DatabaseConfigurationMetadata.java index df6efe918e..a5b14fff90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_ip_location_database/DatabaseConfigurationMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/get_ip_location_database/DatabaseConfigurationMetadata.java @@ -185,6 +185,16 @@ public static class Builder extends WithJsonObjectBuilderBase private DatabaseConfigurationFull database; + public Builder() { + } + private Builder(DatabaseConfigurationMetadata instance) { + this.id = instance.id; + this.version = instance.version; + this.modifiedDateMillis = instance.modifiedDateMillis; + this.modifiedDate = instance.modifiedDate; + this.database = instance.database; + + } /** * Required - API name: {@code id} */ @@ -251,6 +261,12 @@ public DatabaseConfigurationMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java index 391311835a..8fb49d9ea1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/DeleteLicenseRequest.java @@ -122,6 +122,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteLicenseRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * The period to wait for a connection to the master node. *

                                                                                    @@ -180,6 +187,12 @@ public DeleteLicenseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java index ba9999685b..7a284546ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/GetLicenseRequest.java @@ -136,6 +136,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean local; + public Builder() { + } + private Builder(GetLicenseRequest instance) { + this.acceptEnterprise = instance.acceptEnterprise; + this.local = instance.local; + + } /** * If true, this parameter returns enterprise for Enterprise * license types. If false, this parameter returns platinum for @@ -184,6 +191,12 @@ public GetLicenseRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java index 9f65029d35..ab5e8a2943 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/License.java @@ -261,6 +261,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String uid; + public Builder() { + } + private Builder(License instance) { + this.expiryDateInMillis = instance.expiryDateInMillis; + this.issueDateInMillis = instance.issueDateInMillis; + this.startDateInMillis = instance.startDateInMillis; + this.issuedTo = instance.issuedTo; + this.issuer = instance.issuer; + this.maxNodes = instance.maxNodes; + this.maxResourceUnits = instance.maxResourceUnits; + this.signature = instance.signature; + this.type = instance.type; + this.uid = instance.uid; + + } /** * Required - API name: {@code expiry_date_in_millis} */ @@ -359,6 +374,12 @@ public License build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java index c683145a97..3fe37fdfe4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostRequest.java @@ -207,6 +207,16 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PostRequest instance) { + this.acknowledge = instance.acknowledge; + this.license = instance.license; + this.licenses = instance.licenses; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Specifies whether you acknowledge the license changes. *

                                                                                    @@ -325,6 +335,12 @@ public PostRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java index 4de8ce8f3d..5ff35a1091 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartBasicRequest.java @@ -149,6 +149,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PostStartBasicRequest instance) { + this.acknowledge = instance.acknowledge; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * Whether the user has acknowledged acknowledge messages *

                                                                                    @@ -217,6 +225,12 @@ public PostStartBasicRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java index 41271d2ea0..230446d748 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/PostStartTrialRequest.java @@ -146,6 +146,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String type; + public Builder() { + } + private Builder(PostStartTrialRequest instance) { + this.acknowledge = instance.acknowledge; + this.masterTimeout = instance.masterTimeout; + this.type = instance.type; + + } /** * Whether the user has acknowledged acknowledge messages *

                                                                                    @@ -203,6 +211,12 @@ public PostStartTrialRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java index f16e7adcae..232f5ece36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/get/LicenseInformation.java @@ -299,6 +299,23 @@ public static class Builder extends WithJsonObjectBuilderBase private Long startDateInMillis; + public Builder() { + } + private Builder(LicenseInformation instance) { + this.expiryDate = instance.expiryDate; + this.expiryDateInMillis = instance.expiryDateInMillis; + this.issueDate = instance.issueDate; + this.issueDateInMillis = instance.issueDateInMillis; + this.issuedTo = instance.issuedTo; + this.issuer = instance.issuer; + this.maxNodes = instance.maxNodes; + this.maxResourceUnits = instance.maxResourceUnits; + this.status = instance.status; + this.type = instance.type; + this.uid = instance.uid; + this.startDateInMillis = instance.startDateInMillis; + + } /** * API name: {@code expiry_date} */ @@ -413,6 +430,12 @@ public LicenseInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java index a47162db52..2fb2d33bc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/license/post/Acknowledgement.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String message; + public Builder() { + } + private Builder(Acknowledgement instance) { + this.license = instance.license; + this.message = instance.message; + + } /** * Required - API name: {@code license} *

                                                                                    @@ -179,6 +186,12 @@ public Acknowledgement build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java index 8e07a2282f..2f639cc48a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java @@ -104,6 +104,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeletePipelineRequest instance) { + this.id = instance.id; + + } /** * Required - An identifier for the pipeline. *

                                                                                    @@ -132,6 +138,12 @@ public DeletePipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java index b3e608143b..205e19d840 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List id; + public Builder() { + } + private Builder(GetPipelineRequest instance) { + this.id = instance.id; + + } /** * A comma-separated list of pipeline identifiers. *

                                                                                    @@ -144,6 +150,12 @@ public GetPipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java index 3619ab418b..2ef4a293aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java @@ -201,6 +201,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String username; + public Builder() { + } + private Builder(Pipeline instance) { + this.description = instance.description; + this.lastModified = instance.lastModified; + this.pipeline = instance.pipeline; + this.pipelineMetadata = instance.pipelineMetadata; + this.pipelineSettings = instance.pipelineSettings; + this.username = instance.username; + + } /** * Required - A description of the pipeline. This description is not used by * Elasticsearch or Logstash. @@ -303,6 +314,12 @@ public Pipeline build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java index 5c42ae5802..f65129e595 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String version; + public Builder() { + } + private Builder(PipelineMetadata instance) { + this.type = instance.type; + this.version = instance.version; + + } /** * Required - API name: {@code type} */ @@ -160,6 +167,12 @@ public PipelineMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java index 2e2a940fd9..cf36514b27 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java @@ -207,6 +207,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer queueCheckpointWrites; + public Builder() { + } + private Builder(PipelineSettings instance) { + this.pipelineWorkers = instance.pipelineWorkers; + this.pipelineBatchSize = instance.pipelineBatchSize; + this.pipelineBatchDelay = instance.pipelineBatchDelay; + this.queueType = instance.queueType; + this.queueMaxBytes = instance.queueMaxBytes; + this.queueCheckpointWrites = instance.queueCheckpointWrites; + + } /** * Required - The number of workers that will, in parallel, execute the filter * and output stages of the pipeline. @@ -291,6 +302,12 @@ public PipelineSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java index 323934b609..4d4c2783f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java @@ -127,6 +127,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Pipeline pipeline; + public Builder() { + } + private Builder(PutPipelineRequest instance) { + this.id = instance.id; + this.pipeline = instance.pipeline; + + } /** * Required - An identifier for the pipeline. Pipeline IDs must begin with a * letter or underscore and contain only letters, underscores, dashes, hyphens @@ -180,6 +187,12 @@ public PutPipelineRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutPipelineRequestDeserializer(); protected static JsonpDeserializer createPutPipelineRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java index 9529193c57..a15cd1e6b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java @@ -107,6 +107,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String index; + public Builder() { + } + private Builder(DeprecationsRequest instance) { + this.index = instance.index; + + } /** * Comma-separate list of data streams or indices to check. Wildcard (*) * expressions are supported. @@ -136,6 +142,12 @@ public DeprecationsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java index 6d03a9bd9b..4505751972 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java @@ -213,6 +213,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map meta; + public Builder() { + } + private Builder(Deprecation instance) { + this.details = instance.details; + this.level = instance.level; + this.message = instance.message; + this.url = instance.url; + this.resolveDuringRollingUpgrade = instance.resolveDuringRollingUpgrade; + this.meta = instance.meta; + + } /** * Optional details about the deprecation warning. *

                                                                                    @@ -300,6 +311,12 @@ public Deprecation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeature.java index 46c09d3f3e..9820715a46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeature.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List indices; + public Builder() { + } + private Builder(MigrationFeature instance) { + this.featureName = instance.featureName; + this.minimumIndexVersion = instance.minimumIndexVersion; + this.migrationStatus = instance.migrationStatus; + this.indices = instance.indices; + + } /** * Required - API name: {@code feature_name} */ @@ -237,6 +246,12 @@ public MigrationFeature build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeatureIndexInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeatureIndexInfo.java index 1ef7257605..52a0556366 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeatureIndexInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/get_feature_upgrade_status/MigrationFeatureIndexInfo.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause failureCause; + public Builder() { + } + private Builder(MigrationFeatureIndexInfo instance) { + this.index = instance.index; + this.version = instance.version; + this.failureCause = instance.failureCause; + + } /** * Required - API name: {@code index} */ @@ -199,6 +207,12 @@ public MigrationFeatureIndexInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/post_feature_upgrade/MigrationFeature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/post_feature_upgrade/MigrationFeature.java index c0d96a589a..5640353347 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/post_feature_upgrade/MigrationFeature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/post_feature_upgrade/MigrationFeature.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String featureName; + public Builder() { + } + private Builder(MigrationFeature instance) { + this.featureName = instance.featureName; + + } /** * Required - API name: {@code feature_name} */ @@ -137,6 +143,12 @@ public MigrationFeature build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AdaptiveAllocationsSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AdaptiveAllocationsSettings.java index 12b8372bf4..f9378065a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AdaptiveAllocationsSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AdaptiveAllocationsSettings.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxNumberOfAllocations; + public Builder() { + } + private Builder(AdaptiveAllocationsSettings instance) { + this.enabled = instance.enabled; + this.minNumberOfAllocations = instance.minNumberOfAllocations; + this.maxNumberOfAllocations = instance.maxNumberOfAllocations; + + } /** * Required - If true, adaptive_allocations is enabled *

                                                                                    @@ -213,6 +221,12 @@ public AdaptiveAllocationsSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java index f11a8bdec3..23183dde71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfig.java @@ -407,6 +407,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String summaryCountFieldName; + public Builder() { + } + private Builder(AnalysisConfig instance) { + this.bucketSpan = instance.bucketSpan; + this.categorizationAnalyzer = instance.categorizationAnalyzer; + this.categorizationFieldName = instance.categorizationFieldName; + this.categorizationFilters = instance.categorizationFilters; + this.detectors = instance.detectors; + this.influencers = instance.influencers; + this.latency = instance.latency; + this.modelPruneWindow = instance.modelPruneWindow; + this.multivariateByFields = instance.multivariateByFields; + this.perPartitionCategorization = instance.perPartitionCategorization; + this.summaryCountFieldName = instance.summaryCountFieldName; + + } /** * The size of the interval that the analysis is aggregated into, typically * between 5m and 1h. This value should be either a @@ -734,6 +750,12 @@ public AnalysisConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java index 7a606494b3..a459adc79a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisConfigRead.java @@ -379,6 +379,22 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String summaryCountFieldName; + public Builder() { + } + private Builder(AnalysisConfigRead instance) { + this.bucketSpan = instance.bucketSpan; + this.categorizationAnalyzer = instance.categorizationAnalyzer; + this.categorizationFieldName = instance.categorizationFieldName; + this.categorizationFilters = instance.categorizationFilters; + this.detectors = instance.detectors; + this.influencers = instance.influencers; + this.modelPruneWindow = instance.modelPruneWindow; + this.latency = instance.latency; + this.multivariateByFields = instance.multivariateByFields; + this.perPartitionCategorization = instance.perPartitionCategorization; + this.summaryCountFieldName = instance.summaryCountFieldName; + + } /** * Required - The size of the interval that the analysis is aggregated into, * typically between 5m and 1h. @@ -667,6 +683,12 @@ public AnalysisConfigRead build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java index 4b1e582408..9f4ee353bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisLimits.java @@ -161,6 +161,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String modelMemoryLimit; + public Builder() { + } + private Builder(AnalysisLimits instance) { + this.categorizationExamplesLimit = instance.categorizationExamplesLimit; + this.modelMemoryLimit = instance.modelMemoryLimit; + + } /** * The maximum number of examples stored per category in memory and in the * results data store. If you increase this value, more examples are available, @@ -220,6 +227,12 @@ public AnalysisLimits build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java index 26518986d8..68eb5c37d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String modelMemoryLimit; + public Builder() { + } + private Builder(AnalysisMemoryLimit instance) { + this.modelMemoryLimit = instance.modelMemoryLimit; + + } /** * Required - Limits can be applied for the resources required to hold the * mathematical models in memory. These limits are approximate and can be set @@ -148,6 +154,12 @@ public AnalysisMemoryLimit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Anomaly.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Anomaly.java index 3eb8752fdb..e258b9bed5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Anomaly.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Anomaly.java @@ -632,6 +632,35 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List typical; + public Builder() { + } + private Builder(Anomaly instance) { + this.actual = instance.actual; + this.anomalyScoreExplanation = instance.anomalyScoreExplanation; + this.bucketSpan = instance.bucketSpan; + this.byFieldName = instance.byFieldName; + this.byFieldValue = instance.byFieldValue; + this.causes = instance.causes; + this.detectorIndex = instance.detectorIndex; + this.fieldName = instance.fieldName; + this.function = instance.function; + this.functionDescription = instance.functionDescription; + this.geoResults = instance.geoResults; + this.influencers = instance.influencers; + this.initialRecordScore = instance.initialRecordScore; + this.isInterim = instance.isInterim; + this.jobId = instance.jobId; + this.overFieldName = instance.overFieldName; + this.overFieldValue = instance.overFieldValue; + this.partitionFieldName = instance.partitionFieldName; + this.partitionFieldValue = instance.partitionFieldValue; + this.probability = instance.probability; + this.recordScore = instance.recordScore; + this.resultType = instance.resultType; + this.timestamp = instance.timestamp; + this.typical = instance.typical; + + } /** * The actual value for the bucket. *

                                                                                    @@ -1050,6 +1079,12 @@ public Anomaly build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyCause.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyCause.java index 9ca0aab26a..bf1d17b427 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyCause.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyCause.java @@ -402,6 +402,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List typical; + public Builder() { + } + private Builder(AnomalyCause instance) { + this.actual = instance.actual; + this.byFieldName = instance.byFieldName; + this.byFieldValue = instance.byFieldValue; + this.correlatedByFieldValue = instance.correlatedByFieldValue; + this.fieldName = instance.fieldName; + this.function = instance.function; + this.functionDescription = instance.functionDescription; + this.geoResults = instance.geoResults; + this.influencers = instance.influencers; + this.overFieldName = instance.overFieldName; + this.overFieldValue = instance.overFieldValue; + this.partitionFieldName = instance.partitionFieldName; + this.partitionFieldValue = instance.partitionFieldValue; + this.probability = instance.probability; + this.typical = instance.typical; + + } /** * API name: {@code actual} *

                                                                                    @@ -592,6 +612,12 @@ public AnomalyCause build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyExplanation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyExplanation.java index 90542f4b7d..ba9dc0140c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyExplanation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnomalyExplanation.java @@ -324,6 +324,21 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double upperConfidenceBound; + public Builder() { + } + private Builder(AnomalyExplanation instance) { + this.anomalyCharacteristicsImpact = instance.anomalyCharacteristicsImpact; + this.anomalyLength = instance.anomalyLength; + this.anomalyType = instance.anomalyType; + this.highVariancePenalty = instance.highVariancePenalty; + this.incompleteBucketPenalty = instance.incompleteBucketPenalty; + this.lowerConfidenceBound = instance.lowerConfidenceBound; + this.multiBucketImpact = instance.multiBucketImpact; + this.singleBucketImpact = instance.singleBucketImpact; + this.typicalValue = instance.typicalValue; + this.upperConfidenceBound = instance.upperConfidenceBound; + + } /** * Impact from the duration and magnitude of the detected anomaly relative to * the historical average. @@ -446,6 +461,12 @@ public AnomalyExplanation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java index 760c41b35d..37cdc1763e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ApiKeyAuthorization.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String name; + public Builder() { + } + private Builder(ApiKeyAuthorization instance) { + this.id = instance.id; + this.name = instance.name; + + } /** * Required - The identifier for the API key. *

                                                                                    @@ -169,6 +176,12 @@ public ApiKeyAuthorization build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java index 9e8c19875f..a2adf02294 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java @@ -302,6 +302,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DateTime timestampString; + public Builder() { + } + private Builder(BucketInfluencer instance) { + this.anomalyScore = instance.anomalyScore; + this.bucketSpan = instance.bucketSpan; + this.influencerFieldName = instance.influencerFieldName; + this.initialAnomalyScore = instance.initialAnomalyScore; + this.isInterim = instance.isInterim; + this.jobId = instance.jobId; + this.probability = instance.probability; + this.rawAnomalyScore = instance.rawAnomalyScore; + this.resultType = instance.resultType; + this.timestamp = instance.timestamp; + this.timestampString = instance.timestampString; + + } /** * Required - A normalized score between 0-100, which is calculated for each * bucket influencer. This score might be updated as newer data is analyzed. @@ -439,6 +455,12 @@ public BucketInfluencer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java index 360c9243cc..64da61bf2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketSummary.java @@ -311,6 +311,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DateTime timestampString; + public Builder() { + } + private Builder(BucketSummary instance) { + this.anomalyScore = instance.anomalyScore; + this.bucketInfluencers = instance.bucketInfluencers; + this.bucketSpan = instance.bucketSpan; + this.eventCount = instance.eventCount; + this.initialAnomalyScore = instance.initialAnomalyScore; + this.isInterim = instance.isInterim; + this.jobId = instance.jobId; + this.processingTimeMs = instance.processingTimeMs; + this.resultType = instance.resultType; + this.timestamp = instance.timestamp; + this.timestampString = instance.timestampString; + + } /** * Required - The maximum anomaly score, between 0-100, for any of the bucket * influencers. This is an overall, rate-limited score for the job. All the @@ -470,6 +486,12 @@ public BucketSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java index 20c86c0ae1..c65b4fdebc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java @@ -259,6 +259,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer forceTimeShift; + public Builder() { + } + private Builder(CalendarEvent instance) { + this.calendarId = instance.calendarId; + this.eventId = instance.eventId; + this.description = instance.description; + this.endTime = instance.endTime; + this.startTime = instance.startTime; + this.skipResult = instance.skipResult; + this.skipModelUpdate = instance.skipModelUpdate; + this.forceTimeShift = instance.forceTimeShift; + + } /** * A string that uniquely identifies a calendar. *

                                                                                    @@ -358,6 +371,12 @@ public CalendarEvent build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java index 7f7460f26c..e8f3866617 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CategorizationAnalyzerDefinition.java @@ -196,6 +196,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Tokenizer tokenizer; + public Builder() { + } + private Builder(CategorizationAnalyzerDefinition instance) { + this.charFilter = instance.charFilter; + this.filter = instance.filter; + this.tokenizer = instance.tokenizer; + + } /** * One or more character filters. In addition to the built-in character filters, * other plugins can provide more character filters. If this property is not @@ -353,6 +361,12 @@ public CategorizationAnalyzerDefinition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java index 82f4342a3d..89adfc5841 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java @@ -387,6 +387,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String mlcategory; + public Builder() { + } + private Builder(Category instance) { + this.categoryId = instance.categoryId; + this.examples = instance.examples; + this.grokPattern = instance.grokPattern; + this.jobId = instance.jobId; + this.maxMatchingLength = instance.maxMatchingLength; + this.partitionFieldName = instance.partitionFieldName; + this.partitionFieldValue = instance.partitionFieldValue; + this.regex = instance.regex; + this.terms = instance.terms; + this.numMatches = instance.numMatches; + this.preferredToCategories = instance.preferredToCategories; + this.p = instance.p; + this.resultType = instance.resultType; + this.mlcategory = instance.mlcategory; + + } /** * Required - A unique identifier for the category. category_id is unique at the * job level, even when per-partition categorization is enabled. @@ -587,6 +606,12 @@ public Category build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java index a54db291bb..f1a70924d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ChunkingConfig.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time timeSpan; + public Builder() { + } + private Builder(ChunkingConfig instance) { + this.mode = instance.mode; + this.timeSpan = instance.timeSpan; + + } /** * Required - If the mode is auto, the chunk size is dynamically * calculated; this is the recommended value when the datafeed does not use @@ -194,6 +201,12 @@ public ChunkingConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java index adbee3b38f..3dd9896e9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClassificationInferenceOptions.java @@ -245,6 +245,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String topClassesResultsField; + public Builder() { + } + private Builder(ClassificationInferenceOptions instance) { + this.numTopClasses = instance.numTopClasses; + this.numTopFeatureImportanceValues = instance.numTopFeatureImportanceValues; + this.predictionFieldType = instance.predictionFieldType; + this.resultsField = instance.resultsField; + this.topClassesResultsField = instance.topClassesResultsField; + + } /** * Specifies the number of top class predictions to return. Defaults to 0. *

                                                                                    @@ -317,6 +327,12 @@ public ClassificationInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java index b882c1d42a..00953780f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ClearTrainedModelDeploymentCacheRequest.java @@ -105,6 +105,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String modelId; + public Builder() { + } + private Builder(ClearTrainedModelDeploymentCacheRequest instance) { + this.modelId = instance.modelId; + + } /** * Required - The unique identifier of the trained model. *

                                                                                    @@ -133,6 +139,12 @@ public ClearTrainedModelDeploymentCacheRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java index 38496eabb0..60294568d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CloseJobRequest.java @@ -199,6 +199,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(CloseJobRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.force = instance.force; + this.jobId = instance.jobId; + this.timeout = instance.timeout; + + } /** * Refer to the description for the allow_no_match query parameter. *

                                                                                    @@ -271,6 +280,12 @@ public CloseJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java index 20ad46a057..6b14d8eee2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataCounts.java @@ -419,6 +419,30 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sparseBucketCount; + public Builder() { + } + private Builder(DataCounts instance) { + this.bucketCount = instance.bucketCount; + this.earliestRecordTimestamp = instance.earliestRecordTimestamp; + this.emptyBucketCount = instance.emptyBucketCount; + this.inputBytes = instance.inputBytes; + this.inputFieldCount = instance.inputFieldCount; + this.inputRecordCount = instance.inputRecordCount; + this.invalidDateCount = instance.invalidDateCount; + this.jobId = instance.jobId; + this.lastDataTime = instance.lastDataTime; + this.latestEmptyBucketTimestamp = instance.latestEmptyBucketTimestamp; + this.latestRecordTimestamp = instance.latestRecordTimestamp; + this.latestSparseBucketTimestamp = instance.latestSparseBucketTimestamp; + this.latestBucketTimestamp = instance.latestBucketTimestamp; + this.logTime = instance.logTime; + this.missingFieldCount = instance.missingFieldCount; + this.outOfOrderTimestampCount = instance.outOfOrderTimestampCount; + this.processedFieldCount = instance.processedFieldCount; + this.processedRecordCount = instance.processedRecordCount; + this.sparseBucketCount = instance.sparseBucketCount; + + } /** * Required - API name: {@code bucket_count} */ @@ -589,6 +613,12 @@ public DataCounts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java index fb037c7a04..6c8130c55a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataDescription.java @@ -190,6 +190,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String fieldDelimiter; + public Builder() { + } + private Builder(DataDescription instance) { + this.format = instance.format; + this.timeField = instance.timeField; + this.timeFormat = instance.timeFormat; + this.fieldDelimiter = instance.fieldDelimiter; + + } /** * Only JSON format is supported at this time. *

                                                                                    @@ -255,6 +264,12 @@ public DataDescription build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java index 9c3fe92ca2..11d645cfa5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Datafeed.java @@ -438,6 +438,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndicesOptions indicesOptions; + public Builder() { + } + private Builder(Datafeed instance) { + this.aggregations = instance.aggregations; + this.authorization = instance.authorization; + this.chunkingConfig = instance.chunkingConfig; + this.datafeedId = instance.datafeedId; + this.frequency = instance.frequency; + this.indices = instance.indices; + this.indexes = instance.indexes; + this.jobId = instance.jobId; + this.maxEmptySearches = instance.maxEmptySearches; + this.query = instance.query; + this.queryDelay = instance.queryDelay; + this.scriptFields = instance.scriptFields; + this.scrollSize = instance.scrollSize; + this.delayedDataCheckConfig = instance.delayedDataCheckConfig; + this.runtimeMappings = instance.runtimeMappings; + this.indicesOptions = instance.indicesOptions; + + } /** * API name: {@code aggregations} *

                                                                                    @@ -767,6 +788,12 @@ public Datafeed build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java index 2ee14cb636..39e92a2775 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedAuthorization.java @@ -171,6 +171,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String serviceAccount; + public Builder() { + } + private Builder(DatafeedAuthorization instance) { + this.apiKey = instance.apiKey; + this.roles = instance.roles; + this.serviceAccount = instance.serviceAccount; + + } /** * If an API key was used for the most recent update to the datafeed, its name * and identifier are listed in the response. @@ -247,6 +255,12 @@ public DatafeedAuthorization build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java index a5d572748f..da08f28f63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java @@ -469,6 +469,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer scrollSize; + public Builder() { + } + private Builder(DatafeedConfig instance) { + this.aggregations = instance.aggregations; + this.chunkingConfig = instance.chunkingConfig; + this.datafeedId = instance.datafeedId; + this.delayedDataCheckConfig = instance.delayedDataCheckConfig; + this.frequency = instance.frequency; + this.indices = instance.indices; + this.indicesOptions = instance.indicesOptions; + this.jobId = instance.jobId; + this.maxEmptySearches = instance.maxEmptySearches; + this.query = instance.query; + this.queryDelay = instance.queryDelay; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.scrollSize = instance.scrollSize; + + } /** * If set, the datafeed performs aggregation searches. Support for aggregations * is limited and should be used only with low cardinality data. @@ -870,6 +889,12 @@ public DatafeedConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java index c00a9b2964..c82d5e3c56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedRunningState.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private RunningStateSearchInterval searchInterval; + public Builder() { + } + private Builder(DatafeedRunningState instance) { + this.realTimeConfigured = instance.realTimeConfigured; + this.realTimeRunning = instance.realTimeRunning; + this.searchInterval = instance.searchInterval; + + } /** * Required - Indicates if the datafeed is "real-time"; meaning that * the datafeed has no configured end time. @@ -221,6 +229,12 @@ public DatafeedRunningState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java index 176d1d8041..f526605058 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedStats.java @@ -226,6 +226,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DatafeedRunningState runningState; + public Builder() { + } + private Builder(DatafeedStats instance) { + this.assignmentExplanation = instance.assignmentExplanation; + this.datafeedId = instance.datafeedId; + this.node = instance.node; + this.state = instance.state; + this.timingStats = instance.timingStats; + this.runningState = instance.runningState; + + } /** * For started datafeeds only, contains messages relating to the selection of a * node. @@ -344,6 +355,12 @@ public DatafeedStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java index 8886d7f51a..64193714e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedTimingStats.java @@ -228,6 +228,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double averageSearchTimePerBucketMs; + public Builder() { + } + private Builder(DatafeedTimingStats instance) { + this.bucketCount = instance.bucketCount; + this.exponentialAverageSearchTimePerHourMs = instance.exponentialAverageSearchTimePerHourMs; + this.exponentialAverageCalculationContext = instance.exponentialAverageCalculationContext; + this.jobId = instance.jobId; + this.searchCount = instance.searchCount; + this.totalSearchTimeMs = instance.totalSearchTimeMs; + this.averageSearchTimePerBucketMs = instance.averageSearchTimePerBucketMs; + + } /** * Required - The number of buckets processed. *

                                                                                    @@ -324,6 +336,12 @@ public DatafeedTimingStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java index b6757e2b6a..ac8de20c20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisAnalyzedFields.java @@ -154,6 +154,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List excludes; + public Builder() { + } + private Builder(DataframeAnalysisAnalyzedFields instance) { + this.includes = instance.includes; + this.excludes = instance.excludes; + + } /** * An array of strings that defines the fields that will be excluded from the * analysis. You do not need to add fields with unsupported data types to @@ -226,6 +233,12 @@ public DataframeAnalysisAnalyzedFields build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java index 2577845250..88ba83db2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisClassification.java @@ -141,6 +141,13 @@ public static class Builder extends DataframeAnalysisBase.AbstractBuilder private Map frequencyMap; + public Builder() { + } + private Builder(DataframeAnalysisFeatureProcessorFrequencyEncoding instance) { + this.featureName = instance.featureName; + this.field = instance.field; + this.frequencyMap = instance.frequencyMap; + + } /** * Required - The resulting feature name. *

                                                                                    @@ -233,6 +241,12 @@ public DataframeAnalysisFeatureProcessorFrequencyEncoding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java index 67f5acc85e..6b6fdb937f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java @@ -137,6 +137,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List processors; + public Builder() { + } + private Builder(DataframeAnalysisFeatureProcessorMultiEncoding instance) { + this.processors = instance.processors; + + } /** * Required - The ordered array of custom processors to execute. Must be more * than 1. @@ -181,6 +187,12 @@ public DataframeAnalysisFeatureProcessorMultiEncoding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java index ff1bbf45fb..17f8116f9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java @@ -244,6 +244,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean custom; + public Builder() { + } + private Builder(DataframeAnalysisFeatureProcessorNGramEncoding instance) { + this.featurePrefix = instance.featurePrefix; + this.field = instance.field; + this.length = instance.length; + this.nGrams = instance.nGrams; + this.start = instance.start; + this.custom = instance.custom; + + } /** * The feature name prefix. Defaults to ngram_<start>_<length>. *

                                                                                    @@ -338,6 +349,12 @@ public DataframeAnalysisFeatureProcessorNGramEncoding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java index 6e3ba3e050..5a44b58cb1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String hotMap; + public Builder() { + } + private Builder(DataframeAnalysisFeatureProcessorOneHotEncoding instance) { + this.field = instance.field; + this.hotMap = instance.hotMap; + + } /** * Required - The name of the field to encode. *

                                                                                    @@ -182,6 +189,12 @@ public DataframeAnalysisFeatureProcessorOneHotEncoding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java index 3cf2236715..711eb55777 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java @@ -190,6 +190,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Map targetMap; + public Builder() { + } + private Builder(DataframeAnalysisFeatureProcessorTargetMeanEncoding instance) { + this.defaultValue = instance.defaultValue; + this.featureName = instance.featureName; + this.field = instance.field; + this.targetMap = instance.targetMap; + + } /** * Required - The default value if field value is not found in the target_map. *

                                                                                    @@ -262,6 +271,12 @@ public DataframeAnalysisFeatureProcessorTargetMeanEncoding build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java index ad20ba737c..20520dbb44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisOutlierDetection.java @@ -255,6 +255,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean standardizationEnabled; + public Builder() { + } + private Builder(DataframeAnalysisOutlierDetection instance) { + this.computeFeatureInfluence = instance.computeFeatureInfluence; + this.featureInfluenceThreshold = instance.featureInfluenceThreshold; + this.method = instance.method; + this.nNeighbors = instance.nNeighbors; + this.outlierFraction = instance.outlierFraction; + this.standardizationEnabled = instance.standardizationEnabled; + + } /** * Specifies whether the feature influence calculation is enabled. *

                                                                                    @@ -346,6 +357,12 @@ public DataframeAnalysisOutlierDetection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java index 1923c55eb8..29ebc1a837 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisRegression.java @@ -139,6 +139,13 @@ public static class Builder extends DataframeAnalysisBase.AbstractBuildermse (mean squared error), msle (mean squared @@ -180,6 +187,12 @@ public DataframeAnalysisRegression build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java index 476c7e20f6..088b117297 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java @@ -262,6 +262,19 @@ public static class Builder extends WithJsonObjectBuilderBase private DataframeState state; + public Builder() { + } + private Builder(DataframeAnalytics instance) { + this.analysisStats = instance.analysisStats; + this.assignmentExplanation = instance.assignmentExplanation; + this.dataCounts = instance.dataCounts; + this.id = instance.id; + this.memoryUsage = instance.memoryUsage; + this.node = instance.node; + this.progress = instance.progress; + this.state = instance.state; + + } /** * An object containing information about the analysis job. *

                                                                                    @@ -444,6 +457,12 @@ public DataframeAnalytics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java index eeed69d0f7..fc6cbe05ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsAuthorization.java @@ -173,6 +173,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String serviceAccount; + public Builder() { + } + private Builder(DataframeAnalyticsAuthorization instance) { + this.apiKey = instance.apiKey; + this.roles = instance.roles; + this.serviceAccount = instance.serviceAccount; + + } /** * If an API key was used for the most recent update to the job, its name and * identifier are listed in the response. @@ -249,6 +257,12 @@ public DataframeAnalyticsAuthorization build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java index 728b9a0d90..93fde112cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(DataframeAnalyticsDestination instance) { + this.index = instance.index; + this.resultsField = instance.resultsField; + + } /** * Required - Defines the destination index to store the results of the data * frame analytics job. @@ -180,6 +187,12 @@ public DataframeAnalyticsDestination build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java index bcdc5c5a06..fe964ac8cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java @@ -222,6 +222,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String reason; + public Builder() { + } + private Builder(DataframeAnalyticsFieldSelection instance) { + this.isIncluded = instance.isIncluded; + this.isRequired = instance.isRequired; + this.featureType = instance.featureType; + this.mappingTypes = instance.mappingTypes; + this.name = instance.name; + this.reason = instance.reason; + + } /** * Required - Whether the field is selected to be included in the analysis. *

                                                                                    @@ -315,6 +326,12 @@ public DataframeAnalyticsFieldSelection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java index 62f97c3a21..c753b98492 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String expectedMemoryWithoutDisk; + public Builder() { + } + private Builder(DataframeAnalyticsMemoryEstimation instance) { + this.expectedMemoryWithDisk = instance.expectedMemoryWithDisk; + this.expectedMemoryWithoutDisk = instance.expectedMemoryWithoutDisk; + + } /** * Required - Estimated memory usage under the assumption that overflowing to * disk is allowed during data frame analytics. expected_memory_with_disk is @@ -181,6 +188,12 @@ public DataframeAnalyticsMemoryEstimation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java index 9c3574634b..edc6dbc5da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java @@ -208,6 +208,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeAnalysisAnalyzedFields source; + public Builder() { + } + private Builder(DataframeAnalyticsSource instance) { + this.index = instance.index; + this.query = instance.query; + this.runtimeMappings = instance.runtimeMappings; + this.source = instance.source; + + } /** * Required - Index or indices on which to perform the analysis. It can be a * single index or index pattern as well as an array of indices or patterns. @@ -360,6 +369,12 @@ public DataframeAnalyticsSource build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java index a53a79e4f3..e447ebc8d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java @@ -154,6 +154,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer trainingDocsCount; + public Builder() { + } + private Builder(DataframeAnalyticsStatsDataCounts instance) { + this.skippedDocsCount = instance.skippedDocsCount; + this.testDocsCount = instance.testDocsCount; + this.trainingDocsCount = instance.trainingDocsCount; + + } /** * Required - The number of documents that are skipped during the analysis * because they contained values that are not supported by the analysis. For @@ -207,6 +215,12 @@ public DataframeAnalyticsStatsDataCounts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java index d7d291afd9..4544d1518d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java @@ -196,6 +196,16 @@ public static class Builder extends WithJsonObjectBuilderBase private ValidationLoss validationLoss; + public Builder() { + } + private Builder(DataframeAnalyticsStatsHyperparameters instance) { + this.hyperparameters = instance.hyperparameters; + this.iteration = instance.iteration; + this.timestamp = instance.timestamp; + this.timingStats = instance.timingStats; + this.validationLoss = instance.validationLoss; + + } /** * Required - An object containing the parameters of the classification analysis * job. @@ -296,6 +306,12 @@ public DataframeAnalyticsStatsHyperparameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java index fa50073093..f9687067e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java @@ -180,6 +180,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long timestamp; + public Builder() { + } + private Builder(DataframeAnalyticsStatsMemoryUsage instance) { + this.memoryReestimateBytes = instance.memoryReestimateBytes; + this.peakUsageBytes = instance.peakUsageBytes; + this.status = instance.status; + this.timestamp = instance.timestamp; + + } /** * This value is present when the status is hard_limit and it is a new estimate * of how much memory the job needs. @@ -239,6 +248,12 @@ public DataframeAnalyticsStatsMemoryUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java index 487d7e3279..54691dd367 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsOutlierDetection.java @@ -161,6 +161,14 @@ public static class Builder extends WithJsonObjectBuilderBase private TimingStats timingStats; + public Builder() { + } + private Builder(DataframeAnalyticsStatsOutlierDetection instance) { + this.parameters = instance.parameters; + this.timestamp = instance.timestamp; + this.timingStats = instance.timingStats; + + } /** * Required - The list of job parameters specified by the user or determined by * algorithmic heuristics. @@ -233,6 +241,12 @@ public DataframeAnalyticsStatsOutlierDetection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java index 38528d0abc..3166e17ec2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer progressPercent; + public Builder() { + } + private Builder(DataframeAnalyticsStatsProgress instance) { + this.phase = instance.phase; + this.progressPercent = instance.progressPercent; + + } /** * Required - Defines the phase of the data frame analytics job. *

                                                                                    @@ -174,6 +181,12 @@ public DataframeAnalyticsStatsProgress build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java index 99cfa324c1..e7a1d5cd76 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSummary.java @@ -352,6 +352,24 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map meta; + public Builder() { + } + private Builder(DataframeAnalyticsSummary instance) { + this.allowLazyStart = instance.allowLazyStart; + this.analysis = instance.analysis; + this.analyzedFields = instance.analyzedFields; + this.authorization = instance.authorization; + this.createTime = instance.createTime; + this.description = instance.description; + this.dest = instance.dest; + this.id = instance.id; + this.maxNumThreads = instance.maxNumThreads; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.source = instance.source; + this.version = instance.version; + this.meta = instance.meta; + + } /** * API name: {@code allow_lazy_start} */ @@ -541,6 +559,12 @@ public DataframeAnalyticsSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java index cc3248853b..e07b34a5fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java @@ -196,6 +196,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeEvaluationClassificationMetrics metrics; + public Builder() { + } + private Builder(DataframeEvaluationClassification instance) { + this.actualField = instance.actualField; + this.predictedField = instance.predictedField; + this.topClassesField = instance.topClassesField; + this.metrics = instance.metrics; + + } /** * Required - The field of the index which contains the ground truth. The data * type of this field can be boolean or integer. If the data type is integer, @@ -269,6 +278,12 @@ public DataframeEvaluationClassification build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java index a9f63955da..d3fee85dcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java @@ -139,6 +139,13 @@ public static class Builder extends DataframeEvaluationMetrics.AbstractBuilder multiclassConfusionMatrix; + public Builder() { + } + private Builder(DataframeEvaluationClassificationMetrics instance) { + this.accuracy = instance.accuracy; + this.multiclassConfusionMatrix = instance.multiclassConfusionMatrix; + + } /** * Accuracy of predictions (per-class and overall). *

                                                                                    @@ -206,6 +213,12 @@ public DataframeEvaluationClassificationMetrics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java index 175f91bead..ca0193f65a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java @@ -148,6 +148,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean includeCurve; + public Builder() { + } + private Builder(DataframeEvaluationClassificationMetricsAucRoc instance) { + this.className = instance.className; + this.includeCurve = instance.includeCurve; + + } /** * Name of the only class that is treated as positive during AUC ROC * calculation. Other classes are treated as negative ("one-vs-all" @@ -190,6 +197,12 @@ public DataframeEvaluationClassificationMetricsAucRoc build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java index 626f3675bd..def45aecc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java @@ -169,6 +169,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeEvaluationOutlierDetectionMetrics metrics; + public Builder() { + } + private Builder(DataframeEvaluationOutlierDetection instance) { + this.actualField = instance.actualField; + this.predictedProbabilityField = instance.predictedProbabilityField; + this.metrics = instance.metrics; + + } /** * Required - The field of the index which contains the ground truth. The data * type of this field can be boolean or integer. If the data type is integer, @@ -231,6 +239,12 @@ public DataframeEvaluationOutlierDetection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java index 7dad7c5e08..f54e7c6f57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java @@ -113,6 +113,12 @@ public static class Builder extends DataframeEvaluationMetrics.AbstractBuilder confusionMatrix; + public Builder() { + } + private Builder(DataframeEvaluationOutlierDetectionMetrics instance) { + this.confusionMatrix = instance.confusionMatrix; + + } /** * Accuracy of predictions (per-class and overall). *

                                                                                    @@ -155,6 +161,12 @@ public DataframeEvaluationOutlierDetectionMetrics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java index 0477e33eaf..e57c83d48c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeEvaluationRegressionMetrics metrics; + public Builder() { + } + private Builder(DataframeEvaluationRegression instance) { + this.actualField = instance.actualField; + this.predictedField = instance.predictedField; + this.metrics = instance.metrics; + + } /** * Required - The field of the index which contains the ground truth. The data * type of this field must be numerical. @@ -231,6 +239,12 @@ public DataframeEvaluationRegression build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java index c03f009d10..f630b13ae7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java @@ -201,6 +201,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map rSquared; + public Builder() { + } + private Builder(DataframeEvaluationRegressionMetrics instance) { + this.mse = instance.mse; + this.msle = instance.msle; + this.huber = instance.huber; + this.rSquared = instance.rSquared; + + } /** * Average squared difference between the predicted values and the actual * (ground truth) value. For more information, read this wiki article. @@ -313,6 +322,12 @@ public DataframeEvaluationRegressionMetrics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java index 750080c2c9..4c80b694cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double delta; + public Builder() { + } + private Builder(DataframeEvaluationRegressionMetricsHuber instance) { + this.delta = instance.delta; + + } /** * Approximates 1/2 (prediction - actual)2 for values much less than delta and * approximates a straight line with slope delta for values much larger than @@ -153,6 +159,12 @@ public DataframeEvaluationRegressionMetricsHuber build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java index a8d69f847e..2b76465e94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double offset; + public Builder() { + } + private Builder(DataframeEvaluationRegressionMetricsMsle instance) { + this.offset = instance.offset; + + } /** * Defines the transition point at which you switch from minimizing quadratic * error to minimizing quadratic log error. Defaults to 1. @@ -151,6 +157,12 @@ public DataframeEvaluationRegressionMetricsMsle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java index 75ee9f7cfb..88ef27f6eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DelayedDataCheckConfig.java @@ -144,6 +144,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean enabled; + public Builder() { + } + private Builder(DelayedDataCheckConfig instance) { + this.checkWindow = instance.checkWindow; + this.enabled = instance.enabled; + + } /** * The window of time that is searched for late data. This window of time ends * with the latest finalized bucket. It defaults to null, which causes an @@ -202,6 +209,12 @@ public DelayedDataCheckConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java index 06eb755054..ff69dc4d81 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarEventRequest.java @@ -113,6 +113,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String eventId; + public Builder() { + } + private Builder(DeleteCalendarEventRequest instance) { + this.calendarId = instance.calendarId; + this.eventId = instance.eventId; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                    @@ -152,6 +159,12 @@ public DeleteCalendarEventRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java index ddd02337ed..0ec186c950 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarJobRequest.java @@ -114,6 +114,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List jobId; + public Builder() { + } + private Builder(DeleteCalendarJobRequest instance) { + this.calendarId = instance.calendarId; + this.jobId = instance.jobId; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                    @@ -168,6 +175,12 @@ public DeleteCalendarJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java index 95deab3223..a1d010bc8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteCalendarRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String calendarId; + public Builder() { + } + private Builder(DeleteCalendarRequest instance) { + this.calendarId = instance.calendarId; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                    @@ -127,6 +133,12 @@ public DeleteCalendarRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java index b6e936935b..db852a1fef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDataFrameAnalyticsRequest.java @@ -135,6 +135,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteDataFrameAnalyticsRequest instance) { + this.force = instance.force; + this.id = instance.id; + this.timeout = instance.timeout; + + } /** * If true, it deletes a job that is not stopped; this method is * quicker than stopping and deleting the job. @@ -193,6 +201,12 @@ public DeleteDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java index 437e97d700..e6a428c7ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteDatafeedRequest.java @@ -118,6 +118,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean force; + public Builder() { + } + private Builder(DeleteDatafeedRequest instance) { + this.datafeedId = instance.datafeedId; + this.force = instance.force; + + } /** * Required - A numerical character string that uniquely identifies the * datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -160,6 +167,12 @@ public DeleteDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java index e402d638fc..6bac934d18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteExpiredDataRequest.java @@ -172,6 +172,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteExpiredDataRequest instance) { + this.jobId = instance.jobId; + this.requestsPerSecond = instance.requestsPerSecond; + this.timeout = instance.timeout; + + } /** * Identifier for an anomaly detection job. It can be a job identifier, a group * name, or a wildcard expression. @@ -231,6 +239,12 @@ public DeleteExpiredDataRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java index d02a249b8f..c32907c0dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteFilterRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String filterId; + public Builder() { + } + private Builder(DeleteFilterRequest instance) { + this.filterId = instance.filterId; + + } /** * Required - A string that uniquely identifies a filter. *

                                                                                    @@ -128,6 +134,12 @@ public DeleteFilterRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java index 6e151054ed..5b8a94aba3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteForecastRequest.java @@ -160,6 +160,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteForecastRequest instance) { + this.allowNoForecasts = instance.allowNoForecasts; + this.forecastId = instance.forecastId; + this.jobId = instance.jobId; + this.timeout = instance.timeout; + + } /** * Specifies whether an error occurs when there are no forecasts. In particular, * if this parameter is set to false and there are no forecasts @@ -235,6 +244,12 @@ public DeleteForecastRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java index f119d7c849..f1004f705c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteJobRequest.java @@ -158,6 +158,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(DeleteJobRequest instance) { + this.deleteUserAnnotations = instance.deleteUserAnnotations; + this.force = instance.force; + this.jobId = instance.jobId; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Specifies whether annotations that have been added by the user should be * deleted along with any auto-generated annotations when the job is reset. @@ -219,6 +228,12 @@ public DeleteJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java index a1342e5745..150648939e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteModelSnapshotRequest.java @@ -116,6 +116,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String snapshotId; + public Builder() { + } + private Builder(DeleteModelSnapshotRequest instance) { + this.jobId = instance.jobId; + this.snapshotId = instance.snapshotId; + + } /** * Required - Identifier for the anomaly detection job. *

                                                                                    @@ -154,6 +161,12 @@ public DeleteModelSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java index d08489c7f8..28b511b5e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelAliasRequest.java @@ -117,6 +117,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String modelId; + public Builder() { + } + private Builder(DeleteTrainedModelAliasRequest instance) { + this.modelAlias = instance.modelAlias; + this.modelId = instance.modelId; + + } /** * Required - The model alias to delete. *

                                                                                    @@ -155,6 +162,12 @@ public DeleteTrainedModelAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java index c47ebb1788..d8d45a0ed1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DeleteTrainedModelRequest.java @@ -137,6 +137,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteTrainedModelRequest instance) { + this.force = instance.force; + this.modelId = instance.modelId; + this.timeout = instance.timeout; + + } /** * Forcefully deletes a trained model that is referenced by ingest pipelines or * has a started deployment. @@ -197,6 +205,12 @@ public DeleteTrainedModelRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java index 0ca53f6b0c..a8fb563d6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectionRule.java @@ -180,6 +180,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map scope; + public Builder() { + } + private Builder(DetectionRule instance) { + this.actions = instance.actions; + this.conditions = instance.conditions; + this.scope = instance.scope; + + } /** * The set of actions to be triggered when the rule applies. If more than one * action is specified the effects of all actions are combined. @@ -312,6 +320,12 @@ public DetectionRule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java index 2e1bbe6fbb..978cb31b8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Detector.java @@ -339,6 +339,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean useNull; + public Builder() { + } + private Builder(Detector instance) { + this.byFieldName = instance.byFieldName; + this.customRules = instance.customRules; + this.detectorDescription = instance.detectorDescription; + this.detectorIndex = instance.detectorIndex; + this.excludeFrequent = instance.excludeFrequent; + this.fieldName = instance.fieldName; + this.function = instance.function; + this.overFieldName = instance.overFieldName; + this.partitionFieldName = instance.partitionFieldName; + this.useNull = instance.useNull; + + } /** * The field used to split the data. In particular, this property is used for * analyzing the splits with respect to their own history. It is used for @@ -504,6 +519,12 @@ public Detector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java index 8b0f36d16a..7e68208ce6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorRead.java @@ -335,6 +335,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean useNull; + public Builder() { + } + private Builder(DetectorRead instance) { + this.byFieldName = instance.byFieldName; + this.customRules = instance.customRules; + this.detectorDescription = instance.detectorDescription; + this.detectorIndex = instance.detectorIndex; + this.excludeFrequent = instance.excludeFrequent; + this.fieldName = instance.fieldName; + this.function = instance.function; + this.overFieldName = instance.overFieldName; + this.partitionFieldName = instance.partitionFieldName; + this.useNull = instance.useNull; + + } /** * The field used to split the data. In particular, this property is used for * analyzing the splits with respect to their own history. It is used for @@ -503,6 +518,12 @@ public DetectorRead build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorUpdate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorUpdate.java index e2f43219da..e23159998c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorUpdate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DetectorUpdate.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List customRules; + public Builder() { + } + private Builder(DetectorUpdate instance) { + this.detectorIndex = instance.detectorIndex; + this.description = instance.description; + this.customRules = instance.customRules; + + } /** * Required - A unique identifier for the detector. This identifier is based on * the order of the detectors in the analysis_config, starting at @@ -251,6 +259,12 @@ public DetectorUpdate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeCompact.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeCompact.java index fd5083c992..97a9662a3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeCompact.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeCompact.java @@ -184,6 +184,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Map attributes; + public Builder() { + } + private Builder(DiscoveryNodeCompact instance) { + this.name = instance.name; + this.ephemeralId = instance.ephemeralId; + this.id = instance.id; + this.transportAddress = instance.transportAddress; + this.attributes = instance.attributes; + + } /** * Required - API name: {@code name} */ @@ -254,6 +264,12 @@ public DiscoveryNodeCompact build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeContent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeContent.java index 0cc50c8575..ced72c2318 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeContent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DiscoveryNodeContent.java @@ -280,6 +280,20 @@ public final Builder id(String value) { private Integer maxIndexVersion; + public Builder() { + } + private Builder(DiscoveryNodeContent instance) { + this.name = instance.name; + this.ephemeralId = instance.ephemeralId; + this.transportAddress = instance.transportAddress; + this.externalId = instance.externalId; + this.attributes = instance.attributes; + this.roles = instance.roles; + this.version = instance.version; + this.minIndexVersion = instance.minIndexVersion; + this.maxIndexVersion = instance.maxIndexVersion; + + } /** * API name: {@code name} */ @@ -394,6 +408,12 @@ public DiscoveryNodeContent build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java index 963b264e81..a18c8bdfbe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EstimateModelMemoryRequest.java @@ -190,6 +190,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map overallCardinality; + public Builder() { + } + private Builder(EstimateModelMemoryRequest instance) { + this.analysisConfig = instance.analysisConfig; + this.maxBucketCardinality = instance.maxBucketCardinality; + this.overallCardinality = instance.overallCardinality; + + } /** * For a list of the properties that you can specify in the * analysis_config component of the body of this API. @@ -299,6 +307,12 @@ public EstimateModelMemoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java index 1118a2996a..6b7d86e1fa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java @@ -161,6 +161,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Query query; + public Builder() { + } + private Builder(EvaluateDataFrameRequest instance) { + this.evaluation = instance.evaluation; + this.index = instance.index; + this.query = instance.query; + + } /** * Required - Defines the type of evaluation you want to perform. *

                                                                                    @@ -248,6 +256,12 @@ public EvaluateDataFrameRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java index ab4bccc404..0534ce2271 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java @@ -324,6 +324,20 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DataframeAnalyticsSource source; + public Builder() { + } + private Builder(ExplainDataFrameAnalyticsRequest instance) { + this.allowLazyStart = instance.allowLazyStart; + this.analysis = instance.analysis; + this.analyzedFields = instance.analyzedFields; + this.description = instance.description; + this.dest = instance.dest; + this.id = instance.id; + this.maxNumThreads = instance.maxNumThreads; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.source = instance.source; + + } /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. @@ -509,6 +523,12 @@ public ExplainDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExponentialAverageCalculationContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExponentialAverageCalculationContext.java index 3cacb6d424..96386ae5c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExponentialAverageCalculationContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExponentialAverageCalculationContext.java @@ -157,6 +157,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double previousExponentialAverageMs; + public Builder() { + } + private Builder(ExponentialAverageCalculationContext instance) { + this.incrementalMetricValueMs = instance.incrementalMetricValueMs; + this.latestTimestamp = instance.latestTimestamp; + this.previousExponentialAverageMs = instance.previousExponentialAverageMs; + + } /** * Required - API name: {@code incremental_metric_value_ms} */ @@ -199,6 +207,12 @@ public ExponentialAverageCalculationContext build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java index 787d248319..9587778656 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceOptions.java @@ -223,6 +223,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(FillMaskInferenceOptions instance) { + this.maskToken = instance.maskToken; + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.vocabulary = instance.vocabulary; + + } /** * The string/token which will be removed from incoming documents and replaced * with the inference prediction(s). In a response, this field contains the mask @@ -322,6 +332,12 @@ public FillMaskInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java index 5a13f6bea9..c5c21f3467 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FillMaskInferenceUpdateOptions.java @@ -175,6 +175,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(FillMaskInferenceUpdateOptions instance) { + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + + } /** * Specifies the number of top class predictions to return. Defaults to 0. *

                                                                                    @@ -234,6 +242,12 @@ public FillMaskInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java index c6733ad8ce..b2fc113400 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Filter.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List items; + public Builder() { + } + private Builder(Filter instance) { + this.description = instance.description; + this.filterId = instance.filterId; + this.items = instance.items; + + } /** * A description of the filter. *

                                                                                    @@ -222,6 +230,12 @@ public Filter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java index 509885f1f4..31f61b8711 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FilterRef.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private FilterType filterType; + public Builder() { + } + private Builder(FilterRef instance) { + this.filterId = instance.filterId; + this.filterType = instance.filterType; + + } /** * Required - The identifier for the filter. *

                                                                                    @@ -174,6 +181,12 @@ public FilterRef build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java index 9d5b39a3b4..f5b0ff1fef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/FlushJobRequest.java @@ -231,6 +231,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private DateTime start; + public Builder() { + } + private Builder(FlushJobRequest instance) { + this.advanceTime = instance.advanceTime; + this.calcInterim = instance.calcInterim; + this.end = instance.end; + this.jobId = instance.jobId; + this.skipTime = instance.skipTime; + this.start = instance.start; + + } /** * Refer to the description for the advance_time query parameter. *

                                                                                    @@ -309,6 +320,12 @@ public FlushJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java index fda54c37e9..5ba9a18534 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java @@ -185,6 +185,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String maxModelMemory; + public Builder() { + } + private Builder(ForecastRequest instance) { + this.duration = instance.duration; + this.expiresIn = instance.expiresIn; + this.jobId = instance.jobId; + this.maxModelMemory = instance.maxModelMemory; + + } /** * Refer to the description for the duration query parameter. *

                                                                                    @@ -263,6 +272,12 @@ public ForecastRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java index 833680cecb..c3dd436d83 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GeoResults.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String typicalPoint; + public Builder() { + } + private Builder(GeoResults instance) { + this.actualPoint = instance.actualPoint; + this.typicalPoint = instance.typicalPoint; + + } /** * The actual value for the bucket formatted as a geo_point. *

                                                                                    @@ -177,6 +184,12 @@ public GeoResults build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java index 17ee11390d..0bf65c1baa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetBucketsRequest.java @@ -343,6 +343,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime timestamp; + public Builder() { + } + private Builder(GetBucketsRequest instance) { + this.anomalyScore = instance.anomalyScore; + this.desc = instance.desc; + this.end = instance.end; + this.excludeInterim = instance.excludeInterim; + this.expand = instance.expand; + this.from = instance.from; + this.jobId = instance.jobId; + this.page = instance.page; + this.size = instance.size; + this.sort = instance.sort; + this.start = instance.start; + this.timestamp = instance.timestamp; + + } /** * Refer to the description for the anomaly_score query parameter. *

                                                                                    @@ -488,6 +505,12 @@ public GetBucketsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java index ae515543de..324f93a8fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarEventsRequest.java @@ -188,6 +188,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime start; + public Builder() { + } + private Builder(GetCalendarEventsRequest instance) { + this.calendarId = instance.calendarId; + this.end = instance.end; + this.from = instance.from; + this.jobId = instance.jobId; + this.size = instance.size; + this.start = instance.start; + + } /** * Required - A string that uniquely identifies a calendar. You can get * information for multiple calendars by using a comma-separated list of ids or @@ -271,6 +282,12 @@ public GetCalendarEventsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java index d72bf26eea..a6246e1613 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java @@ -176,6 +176,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetCalendarsRequest instance) { + this.calendarId = instance.calendarId; + this.from = instance.from; + this.page = instance.page; + this.size = instance.size; + + } /** * A string that uniquely identifies a calendar. You can get information for * multiple calendars by using a comma-separated list of ids or a wildcard @@ -248,6 +257,12 @@ public GetCalendarsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java index 1ce75887e5..280691bea2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java @@ -209,6 +209,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetCategoriesRequest instance) { + this.categoryId = instance.categoryId; + this.from = instance.from; + this.jobId = instance.jobId; + this.page = instance.page; + this.partitionFieldValue = instance.partitionFieldValue; + this.size = instance.size; + + } /** * Identifier for the category, which is unique in the job. If you specify * neither the category ID nor the partition_field_value, the API returns @@ -302,6 +313,12 @@ public GetCategoriesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java index eb3c19dcdd..97896f091c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java @@ -189,6 +189,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetDataFrameAnalyticsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.excludeGenerated = instance.excludeGenerated; + this.from = instance.from; + this.id = instance.id; + this.size = instance.size; + + } /** * Specifies what to do when the request: *

                                                                                      @@ -273,6 +283,12 @@ public GetDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java index 1f573f0c80..11214cebd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java @@ -184,6 +184,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean verbose; + public Builder() { + } + private Builder(GetDataFrameAnalyticsStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.from = instance.from; + this.id = instance.id; + this.size = instance.size; + this.verbose = instance.verbose; + + } /** * Specifies what to do when the request: *
                                                                                        @@ -266,6 +276,12 @@ public GetDataFrameAnalyticsStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java index a4aacbe23b..6239c9574a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedStatsRequest.java @@ -139,6 +139,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List datafeedId; + public Builder() { + } + private Builder(GetDatafeedStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.datafeedId = instance.datafeedId; + + } /** * Specifies what to do when the request: *
                                                                                          @@ -207,6 +214,12 @@ public GetDatafeedStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java index c4045e0366..bfeb52ade1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDatafeedsRequest.java @@ -156,6 +156,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean excludeGenerated; + public Builder() { + } + private Builder(GetDatafeedsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.datafeedId = instance.datafeedId; + this.excludeGenerated = instance.excludeGenerated; + + } /** * Specifies what to do when the request: *
                                                                                            @@ -236,6 +244,12 @@ public GetDatafeedsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java index 9a01d258e5..6741abfdad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetFiltersRequest.java @@ -136,6 +136,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetFiltersRequest instance) { + this.filterId = instance.filterId; + this.from = instance.from; + this.size = instance.size; + + } /** * A string that uniquely identifies a filter. *

                                                                                            @@ -198,6 +206,12 @@ public GetFiltersRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java index 787b2d1e6b..66e96b1471 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java @@ -283,6 +283,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime start; + public Builder() { + } + private Builder(GetInfluencersRequest instance) { + this.desc = instance.desc; + this.end = instance.end; + this.excludeInterim = instance.excludeInterim; + this.from = instance.from; + this.influencerScore = instance.influencerScore; + this.jobId = instance.jobId; + this.page = instance.page; + this.size = instance.size; + this.sort = instance.sort; + this.start = instance.start; + + } /** * If true, the results are sorted in descending order. *

                                                                                            @@ -416,6 +431,12 @@ public GetInfluencersRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java index e44f1b6a98..644cf3497f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobStatsRequest.java @@ -129,6 +129,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String jobId; + public Builder() { + } + private Builder(GetJobStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.jobId = instance.jobId; + + } /** * Specifies what to do when the request: *

                                                                                              @@ -180,6 +187,12 @@ public GetJobStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java index 679898911a..3db8edc4b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetJobsRequest.java @@ -153,6 +153,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List jobId; + public Builder() { + } + private Builder(GetJobsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.excludeGenerated = instance.excludeGenerated; + this.jobId = instance.jobId; + + } /** * Specifies what to do when the request: *
                                                                                                @@ -232,6 +240,12 @@ public GetJobsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java index 0efdf99f87..cd9f6c87f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetMemoryStatsRequest.java @@ -140,6 +140,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(GetMemoryStatsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + + } /** * 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. @@ -211,6 +219,12 @@ public GetMemoryStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java index 29d3f8a1d3..67bc30f9de 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotUpgradeStatsRequest.java @@ -144,6 +144,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String snapshotId; + public Builder() { + } + private Builder(GetModelSnapshotUpgradeStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.jobId = instance.jobId; + this.snapshotId = instance.snapshotId; + + } /** * Specifies what to do when the request: *
                                                                                                  @@ -206,6 +214,12 @@ public GetModelSnapshotUpgradeStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java index 70e608c2b6..9000cf291b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java @@ -276,6 +276,20 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime start; + public Builder() { + } + private Builder(GetModelSnapshotsRequest instance) { + this.desc = instance.desc; + this.end = instance.end; + this.from = instance.from; + this.jobId = instance.jobId; + this.page = instance.page; + this.size = instance.size; + this.snapshotId = instance.snapshotId; + this.sort = instance.sort; + this.start = instance.start; + + } /** * Refer to the description for the desc query parameter. *

                                                                                                  @@ -393,6 +407,12 @@ public GetModelSnapshotsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java index 2a86f962cf..09ce84f4c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java @@ -295,6 +295,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer topN; + public Builder() { + } + private Builder(GetOverallBucketsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.bucketSpan = instance.bucketSpan; + this.end = instance.end; + this.excludeInterim = instance.excludeInterim; + this.jobId = instance.jobId; + this.overallScore = instance.overallScore; + this.start = instance.start; + this.topN = instance.topN; + + } /** * Refer to the description for the allow_no_match query parameter. *

                                                                                                  @@ -409,6 +422,12 @@ public GetOverallBucketsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java index 296151b7a0..2a2b7432a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java @@ -311,6 +311,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime start; + public Builder() { + } + private Builder(GetRecordsRequest instance) { + this.desc = instance.desc; + this.end = instance.end; + this.excludeInterim = instance.excludeInterim; + this.from = instance.from; + this.jobId = instance.jobId; + this.page = instance.page; + this.recordScore = instance.recordScore; + this.size = instance.size; + this.sort = instance.sort; + this.start = instance.start; + + } /** * Refer to the description for the desc query parameter. *

                                                                                                  @@ -435,6 +450,12 @@ public GetRecordsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java index 31d96413d2..4885948641 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java @@ -234,6 +234,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List tags; + public Builder() { + } + private Builder(GetTrainedModelsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.decompressDefinition = instance.decompressDefinition; + this.excludeGenerated = instance.excludeGenerated; + this.from = instance.from; + this.include = instance.include; + this.modelId = instance.modelId; + this.size = instance.size; + this.tags = instance.tags; + + } /** * Specifies what to do when the request: *

                                                                                                    @@ -381,6 +394,12 @@ public GetTrainedModelsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java index 96be8d1cec..e0258778b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java @@ -166,6 +166,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetTrainedModelsStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.from = instance.from; + this.modelId = instance.modelId; + this.size = instance.size; + + } /** * Specifies what to do when the request: *
                                                                                                      @@ -248,6 +257,12 @@ public GetTrainedModelsStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java index c21d964902..722b698f4f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java @@ -199,6 +199,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double value; + public Builder() { + } + private Builder(Hyperparameter instance) { + this.absoluteImportance = instance.absoluteImportance; + this.name = instance.name; + this.relativeImportance = instance.relativeImportance; + this.supplied = instance.supplied; + this.value = instance.value; + + } /** * A positive number showing how much the parameter influences the variation of * the loss function. For hyperparameters with values that are not specified by @@ -274,6 +284,12 @@ public Hyperparameter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java index 1eb7e0c984..8c82ca7927 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameters.java @@ -458,6 +458,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Double softTreeDepthTolerance; + public Builder() { + } + private Builder(Hyperparameters instance) { + this.alpha = instance.alpha; + this.lambda = instance.lambda; + this.gamma = instance.gamma; + this.eta = instance.eta; + this.etaGrowthRatePerTree = instance.etaGrowthRatePerTree; + this.featureBagFraction = instance.featureBagFraction; + this.downsampleFactor = instance.downsampleFactor; + this.maxAttemptsToAddTree = instance.maxAttemptsToAddTree; + this.maxOptimizationRoundsPerHyperparameter = instance.maxOptimizationRoundsPerHyperparameter; + this.maxTrees = instance.maxTrees; + this.numFolds = instance.numFolds; + this.numSplitsPerFeature = instance.numSplitsPerFeature; + this.softTreeDepthLimit = instance.softTreeDepthLimit; + this.softTreeDepthTolerance = instance.softTreeDepthTolerance; + + } /** * Advanced configuration option. Machine learning uses loss guided tree * growing, which means that the decision trees grow where the regularized loss @@ -670,6 +689,12 @@ public Hyperparameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java index e2d73c3ea2..c02938eb03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferTrainedModelRequest.java @@ -189,6 +189,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(InferTrainedModelRequest instance) { + this.docs = instance.docs; + this.inferenceConfig = instance.inferenceConfig; + this.modelId = instance.modelId; + this.timeout = instance.timeout; + + } /** * Required - An array of objects to pass to the model for inference. The * objects should contain a fields matching your configured trained model input. @@ -296,6 +305,12 @@ public InferTrainedModelRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java index 1b229c7a36..d698d4489b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceResponseResult.java @@ -331,6 +331,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List featureImportance; + public Builder() { + } + private Builder(InferenceResponseResult instance) { + this.entities = instance.entities; + this.isTruncated = instance.isTruncated; + this.predictedValue = instance.predictedValue; + this.predictedValueSequence = instance.predictedValueSequence; + this.predictionProbability = instance.predictionProbability; + this.predictionScore = instance.predictionScore; + this.topClasses = instance.topClasses; + this.warning = instance.warning; + this.featureImportance = instance.featureImportance; + + } /** * If the model is trained for named entity recognition (NER) tasks, the * response contains the recognized entities. @@ -553,6 +567,12 @@ public InferenceResponseResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java index d59fc7e65c..fc90711490 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influence.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List influencerFieldValues; + public Builder() { + } + private Builder(Influence instance) { + this.influencerFieldName = instance.influencerFieldName; + this.influencerFieldValues = instance.influencerFieldValues; + + } /** * Required - API name: {@code influencer_field_name} */ @@ -182,6 +189,12 @@ public Influence build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java index 0b9dda503e..85de267cdd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Influencer.java @@ -309,6 +309,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String foo; + public Builder() { + } + private Builder(Influencer instance) { + this.bucketSpan = instance.bucketSpan; + this.influencerScore = instance.influencerScore; + this.influencerFieldName = instance.influencerFieldName; + this.influencerFieldValue = instance.influencerFieldValue; + this.initialInfluencerScore = instance.initialInfluencerScore; + this.isInterim = instance.isInterim; + this.jobId = instance.jobId; + this.probability = instance.probability; + this.resultType = instance.resultType; + this.timestamp = instance.timestamp; + this.foo = instance.foo; + + } /** * Required - The length of the bucket in seconds. This value matches the bucket * span that is specified in the job. @@ -452,6 +468,12 @@ public Influencer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java index 99d381bc57..fd52419638 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Job.java @@ -615,6 +615,34 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long resultsRetentionDays; + public Builder() { + } + private Builder(Job instance) { + this.allowLazyOpen = instance.allowLazyOpen; + this.analysisConfig = instance.analysisConfig; + this.analysisLimits = instance.analysisLimits; + this.backgroundPersistInterval = instance.backgroundPersistInterval; + this.blocked = instance.blocked; + this.createTime = instance.createTime; + this.customSettings = instance.customSettings; + this.dailyModelSnapshotRetentionAfterDays = instance.dailyModelSnapshotRetentionAfterDays; + this.dataDescription = instance.dataDescription; + this.datafeedConfig = instance.datafeedConfig; + this.deleting = instance.deleting; + this.description = instance.description; + this.finishedTime = instance.finishedTime; + this.groups = instance.groups; + this.jobId = instance.jobId; + this.jobType = instance.jobType; + this.jobVersion = instance.jobVersion; + this.modelPlotConfig = instance.modelPlotConfig; + this.modelSnapshotId = instance.modelSnapshotId; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.renormalizationWindowDays = instance.renormalizationWindowDays; + this.resultsIndexName = instance.resultsIndexName; + this.resultsRetentionDays = instance.resultsRetentionDays; + + } /** * Required - Advanced configuration option. Specifies whether this job can open * when there is insufficient machine learning node capacity for it to be @@ -989,6 +1017,12 @@ public Job build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java index f3792e34fd..e5eb23b4f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String taskId; + public Builder() { + } + private Builder(JobBlocked instance) { + this.reason = instance.reason; + this.taskId = instance.taskId; + + } /** * Required - API name: {@code reason} */ @@ -164,6 +171,12 @@ public JobBlocked build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java index 301ebebc20..394e9e10a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java @@ -504,6 +504,28 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long resultsRetentionDays; + public Builder() { + } + private Builder(JobConfig instance) { + this.allowLazyOpen = instance.allowLazyOpen; + this.analysisConfig = instance.analysisConfig; + this.analysisLimits = instance.analysisLimits; + this.backgroundPersistInterval = instance.backgroundPersistInterval; + this.customSettings = instance.customSettings; + this.dailyModelSnapshotRetentionAfterDays = instance.dailyModelSnapshotRetentionAfterDays; + this.dataDescription = instance.dataDescription; + this.datafeedConfig = instance.datafeedConfig; + this.description = instance.description; + this.groups = instance.groups; + this.jobId = instance.jobId; + this.jobType = instance.jobType; + this.modelPlotConfig = instance.modelPlotConfig; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.renormalizationWindowDays = instance.renormalizationWindowDays; + this.resultsIndexName = instance.resultsIndexName; + this.resultsRetentionDays = instance.resultsRetentionDays; + + } /** * Advanced configuration option. Specifies whether this job can open when there * is insufficient machine learning node capacity for it to be immediately @@ -809,6 +831,12 @@ public JobConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java index d49106f99f..aa8dad0db6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobForecastStatistics.java @@ -214,6 +214,17 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer forecastedJobs; + public Builder() { + } + private Builder(JobForecastStatistics instance) { + this.memoryBytes = instance.memoryBytes; + this.processingTimeMs = instance.processingTimeMs; + this.records = instance.records; + this.status = instance.status; + this.total = instance.total; + this.forecastedJobs = instance.forecastedJobs; + + } /** * API name: {@code memory_bytes} */ @@ -313,6 +324,12 @@ public JobForecastStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java index 567e1c1149..3b4d9586c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStatistics.java @@ -154,6 +154,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double total; + public Builder() { + } + private Builder(JobStatistics instance) { + this.avg = instance.avg; + this.max = instance.max; + this.min = instance.min; + this.total = instance.total; + + } /** * Required - API name: {@code avg} */ @@ -204,6 +213,12 @@ public JobStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java index e13134d086..0a79399bcf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobStats.java @@ -298,6 +298,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean deleting; + public Builder() { + } + private Builder(JobStats instance) { + this.assignmentExplanation = instance.assignmentExplanation; + this.dataCounts = instance.dataCounts; + this.forecastsStats = instance.forecastsStats; + this.jobId = instance.jobId; + this.modelSizeStats = instance.modelSizeStats; + this.node = instance.node; + this.openTime = instance.openTime; + this.state = instance.state; + this.timingStats = instance.timingStats; + this.deleting = instance.deleting; + + } /** * For open anomaly detection jobs only, contains messages relating to the * selection of a node to run the job. @@ -482,6 +497,12 @@ public JobStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java index 8d03860b4f..8dc86c2203 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobTimingStats.java @@ -242,6 +242,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Double minimumBucketProcessingTimeMs; + public Builder() { + } + private Builder(JobTimingStats instance) { + this.averageBucketProcessingTimeMs = instance.averageBucketProcessingTimeMs; + this.bucketCount = instance.bucketCount; + this.exponentialAverageBucketProcessingTimeMs = instance.exponentialAverageBucketProcessingTimeMs; + this.exponentialAverageBucketProcessingTimePerHourMs = instance.exponentialAverageBucketProcessingTimePerHourMs; + this.jobId = instance.jobId; + this.totalBucketProcessingTimeMs = instance.totalBucketProcessingTimeMs; + this.maximumBucketProcessingTimeMs = instance.maximumBucketProcessingTimeMs; + this.minimumBucketProcessingTimeMs = instance.minimumBucketProcessingTimeMs; + + } /** * API name: {@code average_bucket_processing_time_ms} */ @@ -325,6 +338,12 @@ public JobTimingStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/LearningToRankConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/LearningToRankConfig.java index 2ec0be9d24..14f1917a23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/LearningToRankConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/LearningToRankConfig.java @@ -180,6 +180,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer numTopFeatureImportanceValues; + public Builder() { + } + private Builder(LearningToRankConfig instance) { + this.defaultParams = instance.defaultParams; + this.featureExtractors = instance.featureExtractors; + this.numTopFeatureImportanceValues = instance.numTopFeatureImportanceValues; + + } /** * API name: {@code default_params} *

                                                                                                      @@ -247,6 +255,12 @@ public LearningToRankConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPackageConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPackageConfig.java index a3a820af07..ea92b3dc85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPackageConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPackageConfig.java @@ -388,6 +388,25 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String vocabularyFile; + public Builder() { + } + private Builder(ModelPackageConfig instance) { + this.createTime = instance.createTime; + this.description = instance.description; + this.inferenceConfig = instance.inferenceConfig; + this.metadata = instance.metadata; + this.minimumVersion = instance.minimumVersion; + this.modelRepository = instance.modelRepository; + this.modelType = instance.modelType; + this.packagedModelId = instance.packagedModelId; + this.platformArchitecture = instance.platformArchitecture; + this.prefixStrings = instance.prefixStrings; + this.size = instance.size; + this.sha256 = instance.sha256; + this.tags = instance.tags; + this.vocabularyFile = instance.vocabularyFile; + + } /** * API name: {@code create_time} */ @@ -562,6 +581,12 @@ public ModelPackageConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java index 7c0795d347..513d4b2322 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelPlotConfig.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String terms; + public Builder() { + } + private Builder(ModelPlotConfig instance) { + this.annotationsEnabled = instance.annotationsEnabled; + this.enabled = instance.enabled; + this.terms = instance.terms; + + } /** * If true, enables calculation and storage of the model change annotations for * each entity that is being analyzed. @@ -220,6 +228,12 @@ public ModelPlotConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java index 5cddbaa108..22c2e7ba1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSizeStats.java @@ -464,6 +464,33 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timestamp; + public Builder() { + } + private Builder(ModelSizeStats instance) { + this.bucketAllocationFailuresCount = instance.bucketAllocationFailuresCount; + this.jobId = instance.jobId; + this.logTime = instance.logTime; + this.memoryStatus = instance.memoryStatus; + this.modelBytes = instance.modelBytes; + this.modelBytesExceeded = instance.modelBytesExceeded; + this.modelBytesMemoryLimit = instance.modelBytesMemoryLimit; + this.outputMemoryAllocatorBytes = instance.outputMemoryAllocatorBytes; + this.peakModelBytes = instance.peakModelBytes; + this.assignmentMemoryBasis = instance.assignmentMemoryBasis; + this.resultType = instance.resultType; + this.totalByFieldCount = instance.totalByFieldCount; + this.totalOverFieldCount = instance.totalOverFieldCount; + this.totalPartitionFieldCount = instance.totalPartitionFieldCount; + this.categorizationStatus = instance.categorizationStatus; + this.categorizedDocCount = instance.categorizedDocCount; + this.deadCategoryCount = instance.deadCategoryCount; + this.failedCategoryCount = instance.failedCategoryCount; + this.frequentCategoryCount = instance.frequentCategoryCount; + this.rareCategoryCount = instance.rareCategoryCount; + this.totalCategoryCount = instance.totalCategoryCount; + this.timestamp = instance.timestamp; + + } /** * Required - API name: {@code bucket_allocation_failures_count} */ @@ -658,6 +685,12 @@ public ModelSizeStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java index 923974cf93..ef95c61279 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java @@ -293,6 +293,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long timestamp; + public Builder() { + } + private Builder(ModelSnapshot instance) { + this.description = instance.description; + this.jobId = instance.jobId; + this.latestRecordTimeStamp = instance.latestRecordTimeStamp; + this.latestResultTimeStamp = instance.latestResultTimeStamp; + this.minVersion = instance.minVersion; + this.modelSizeStats = instance.modelSizeStats; + this.retain = instance.retain; + this.snapshotDocCount = instance.snapshotDocCount; + this.snapshotId = instance.snapshotId; + this.timestamp = instance.timestamp; + + } /** * An optional description of the job. *

                                                                                                      @@ -425,6 +440,12 @@ public ModelSnapshot build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java index f8339aee56..596291585e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshotUpgrade.java @@ -177,6 +177,16 @@ public static class Builder extends WithJsonObjectBuilderBase private String assignmentExplanation; + public Builder() { + } + private Builder(ModelSnapshotUpgrade instance) { + this.jobId = instance.jobId; + this.snapshotId = instance.snapshotId; + this.state = instance.state; + this.node = instance.node; + this.assignmentExplanation = instance.assignmentExplanation; + + } /** * Required - API name: {@code job_id} */ @@ -242,6 +252,12 @@ public ModelSnapshotUpgrade build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java index 828a446dd5..3536940ae9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceOptions.java @@ -198,6 +198,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(NerInferenceOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.classificationLabels = instance.classificationLabels; + this.vocabulary = instance.vocabulary; + + } /** * The tokenization options *

                                                                                                      @@ -295,6 +304,12 @@ public NerInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java index 300a737cc8..49a60b04a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NerInferenceUpdateOptions.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(NerInferenceUpdateOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + + } /** * The tokenization options to update when inferring *

                                                                                                      @@ -200,6 +207,12 @@ public NerInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java index 66f26ff8fa..825509a0e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpBertTokenizationConfig.java @@ -82,6 +82,11 @@ public TokenizationConfig.Kind _tokenizationConfigKind() { public static class Builder extends CommonTokenizationConfig.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(NlpBertTokenizationConfig instance) { + + } @Override protected Builder self() { return this; @@ -100,6 +105,12 @@ public NlpBertTokenizationConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java index 574d0dd1c1..d33b21f48a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpRobertaTokenizationConfig.java @@ -114,6 +114,12 @@ public static class Builder extends CommonTokenizationConfig.AbstractBuilder @@ -142,6 +148,12 @@ public NlpRobertaTokenizationConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java index 87d9fa55f2..dbd06ac3a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/NlpTokenizationUpdateOptions.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer span; + public Builder() { + } + private Builder(NlpTokenizationUpdateOptions instance) { + this.truncate = instance.truncate; + this.span = instance.span; + + } /** * Truncate options to apply *

                                                                                                      @@ -179,6 +186,12 @@ public NlpTokenizationUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java index 439b5d151e..a75ab05489 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OpenJobRequest.java @@ -141,6 +141,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(OpenJobRequest instance) { + this.jobId = instance.jobId; + this.timeout = instance.timeout; + + } /** * Required - Identifier for the anomaly detection job. *

                                                                                                      @@ -188,6 +195,12 @@ public OpenJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java index 1c5f655a4c..57aaa24913 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OutlierDetectionParameters.java @@ -246,6 +246,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean standardizationEnabled; + public Builder() { + } + private Builder(OutlierDetectionParameters instance) { + this.computeFeatureInfluence = instance.computeFeatureInfluence; + this.featureInfluenceThreshold = instance.featureInfluenceThreshold; + this.method = instance.method; + this.nNeighbors = instance.nNeighbors; + this.outlierFraction = instance.outlierFraction; + this.standardizationEnabled = instance.standardizationEnabled; + + } /** * Specifies whether the feature influence calculation is enabled. *

                                                                                                      @@ -337,6 +348,12 @@ public OutlierDetectionParameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java index c5d80a4b3f..726d2c5249 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java @@ -234,6 +234,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DateTime timestampString; + public Builder() { + } + private Builder(OverallBucket instance) { + this.bucketSpan = instance.bucketSpan; + this.isInterim = instance.isInterim; + this.jobs = instance.jobs; + this.overallScore = instance.overallScore; + this.resultType = instance.resultType; + this.timestamp = instance.timestamp; + this.timestampString = instance.timestampString; + + } /** * Required - The length of the bucket in seconds. Matches the job with the * longest bucket_span value. @@ -350,6 +362,12 @@ public OverallBucket build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java index 7c0d44323c..74e7231e52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucketJob.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double maxAnomalyScore; + public Builder() { + } + private Builder(OverallBucketJob instance) { + this.jobId = instance.jobId; + this.maxAnomalyScore = instance.maxAnomalyScore; + + } /** * Required - API name: {@code job_id} */ @@ -160,6 +167,12 @@ public OverallBucketJob build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java index 8c227bf883..0a3a0159f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Page.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer size; + public Builder() { + } + private Builder(Page instance) { + this.from = instance.from; + this.size = instance.size; + + } /** * Skips the specified number of items. *

                                                                                                      @@ -177,6 +184,12 @@ public Page build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java index 6c51ebb497..c2698f0d21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceOptions.java @@ -172,6 +172,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(PassThroughInferenceOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.vocabulary = instance.vocabulary; + + } /** * The tokenization options *

                                                                                                      @@ -245,6 +253,12 @@ public PassThroughInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java index e75641622a..36bd2abae5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PassThroughInferenceUpdateOptions.java @@ -152,6 +152,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(PassThroughInferenceUpdateOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + + } /** * The tokenization options to update when inferring *

                                                                                                      @@ -201,6 +208,12 @@ public PassThroughInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java index 259e076625..cdeab51e3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean stopOnWarn; + public Builder() { + } + private Builder(PerPartitionCategorization instance) { + this.enabled = instance.enabled; + this.stopOnWarn = instance.stopOnWarn; + + } /** * To enable this setting, you must also set the * partition_field_name property to the same value in every @@ -196,6 +203,12 @@ public PerPartitionCategorization build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java index 891b044be2..f8bf63d3bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java @@ -140,6 +140,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List events; + public Builder() { + } + private Builder(PostCalendarEventsRequest instance) { + this.calendarId = instance.calendarId; + this.events = instance.events; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                                      @@ -209,6 +216,12 @@ public PostCalendarEventsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java index 480da75949..fd5779e619 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java @@ -181,6 +181,15 @@ public static class Builder extends RequestBase.AbstractBuilder tDataSerializer; + public Builder() { + } + private Builder(PostDataRequest instance) { + this.jobId = instance.jobId; + this.resetEnd = instance.resetEnd; + this.resetStart = instance.resetStart; + this.data = instance.data; + + } /** * Required - Identifier for the anomaly detection job. The job must have a * state of open to receive and process the data. @@ -269,6 +278,12 @@ public PostDataRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } /** * Json deserializer for {@link PostDataRequest} based on named deserializers * provided by the calling {@code JsonMapper}. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java index 83fa9a8d7d..3e51d7443c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java @@ -144,6 +144,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String id; + public Builder() { + } + private Builder(PreviewDataFrameAnalyticsRequest instance) { + this.config = instance.config; + this.id = instance.id; + + } /** * A data frame analytics config as described in create data frame analytics * jobs. Note that id and dest don’t need to be @@ -196,6 +203,12 @@ public PreviewDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java index 1acc15aa33..13c1a8b343 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedRequest.java @@ -214,6 +214,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DateTime start; + public Builder() { + } + private Builder(PreviewDatafeedRequest instance) { + this.datafeedConfig = instance.datafeedConfig; + this.datafeedId = instance.datafeedId; + this.end = instance.end; + this.jobConfig = instance.jobConfig; + this.start = instance.start; + + } /** * The datafeed definition to preview. *

                                                                                                      @@ -316,6 +326,12 @@ public PreviewDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java index 7d83c284f4..11ce0a38f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java @@ -114,6 +114,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List jobId; + public Builder() { + } + private Builder(PutCalendarJobRequest instance) { + this.calendarId = instance.calendarId; + this.jobId = instance.jobId; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                                      @@ -168,6 +175,12 @@ public PutCalendarJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java index 42d8c96817..33b514820f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarRequest.java @@ -161,6 +161,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List jobIds; + public Builder() { + } + private Builder(PutCalendarRequest instance) { + this.calendarId = instance.calendarId; + this.description = instance.description; + this.jobIds = instance.jobIds; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                                      @@ -223,6 +231,12 @@ public PutCalendarRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java index 4d8008d77f..08961c7899 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java @@ -413,6 +413,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String version; + public Builder() { + } + private Builder(PutDataFrameAnalyticsRequest instance) { + this.meta = instance.meta; + this.allowLazyStart = instance.allowLazyStart; + this.analysis = instance.analysis; + this.analyzedFields = instance.analyzedFields; + this.description = instance.description; + this.dest = instance.dest; + this.headers = instance.headers; + this.id = instance.id; + this.maxNumThreads = instance.maxNumThreads; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.source = instance.source; + this.version = instance.version; + + } /** * API name: {@code _meta} *

                                                                                                      @@ -698,6 +715,12 @@ public PutDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java index 3fc28502e2..8785ac50e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDatafeedRequest.java @@ -586,6 +586,30 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer scrollSize; + public Builder() { + } + private Builder(PutDatafeedRequest instance) { + this.aggregations = instance.aggregations; + this.allowNoIndices = instance.allowNoIndices; + this.chunkingConfig = instance.chunkingConfig; + this.datafeedId = instance.datafeedId; + this.delayedDataCheckConfig = instance.delayedDataCheckConfig; + this.expandWildcards = instance.expandWildcards; + this.frequency = instance.frequency; + this.headers = instance.headers; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.indices = instance.indices; + this.indicesOptions = instance.indicesOptions; + this.jobId = instance.jobId; + this.maxEmptySearches = instance.maxEmptySearches; + this.query = instance.query; + this.queryDelay = instance.queryDelay; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.scrollSize = instance.scrollSize; + + } /** * If set, the datafeed performs aggregation searches. Support for aggregations * is limited and should be used only with low cardinality data. @@ -1070,6 +1094,12 @@ public PutDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java index eb36ab9a28..40995d019e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutFilterRequest.java @@ -167,6 +167,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List items; + public Builder() { + } + private Builder(PutFilterRequest instance) { + this.description = instance.description; + this.filterId = instance.filterId; + this.items = instance.items; + + } /** * A description of the filter. *

                                                                                                      @@ -233,6 +241,12 @@ public PutFilterRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java index 110d144999..b4fbe5ff50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutJobRequest.java @@ -573,6 +573,31 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Long resultsRetentionDays; + public Builder() { + } + private Builder(PutJobRequest instance) { + this.allowLazyOpen = instance.allowLazyOpen; + this.allowNoIndices = instance.allowNoIndices; + this.analysisConfig = instance.analysisConfig; + this.analysisLimits = instance.analysisLimits; + this.backgroundPersistInterval = instance.backgroundPersistInterval; + this.customSettings = instance.customSettings; + this.dailyModelSnapshotRetentionAfterDays = instance.dailyModelSnapshotRetentionAfterDays; + this.dataDescription = instance.dataDescription; + this.datafeedConfig = instance.datafeedConfig; + this.description = instance.description; + this.expandWildcards = instance.expandWildcards; + this.groups = instance.groups; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.jobId = instance.jobId; + this.modelPlotConfig = instance.modelPlotConfig; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.renormalizationWindowDays = instance.renormalizationWindowDays; + this.resultsIndexName = instance.resultsIndexName; + this.resultsRetentionDays = instance.resultsRetentionDays; + + } /** * Advanced configuration option. Specifies whether this job can open when there * is insufficient machine learning node capacity for it to be immediately @@ -963,6 +988,12 @@ public PutJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java index 642c161d06..61571b2182 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java @@ -145,6 +145,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean reassign; + public Builder() { + } + private Builder(PutTrainedModelAliasRequest instance) { + this.modelAlias = instance.modelAlias; + this.modelId = instance.modelId; + this.reassign = instance.reassign; + + } /** * Required - The alias to create or update. This value cannot end in numbers. *

                                                                                                      @@ -195,6 +203,12 @@ public PutTrainedModelAliasRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java index 67cf89d903..2d57dd8433 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelDefinitionPartRequest.java @@ -188,6 +188,16 @@ public static class Builder extends RequestBase.AbstractBuilder private Integer totalParts; + public Builder() { + } + private Builder(PutTrainedModelDefinitionPartRequest instance) { + this.definition = instance.definition; + this.modelId = instance.modelId; + this.part = instance.part; + this.totalDefinitionLength = instance.totalDefinitionLength; + this.totalParts = instance.totalParts; + + } /** * Required - The definition part for the model. Must be a base64 encoded * string. @@ -262,6 +272,12 @@ public PutTrainedModelDefinitionPartRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index 4d204426f4..d600c7865d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -417,6 +417,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(PutTrainedModelRequest instance) { + this.compressedDefinition = instance.compressedDefinition; + this.deferDefinitionDecompression = instance.deferDefinitionDecompression; + this.definition = instance.definition; + this.description = instance.description; + this.inferenceConfig = instance.inferenceConfig; + this.input = instance.input; + this.metadata = instance.metadata; + this.modelId = instance.modelId; + this.modelSizeBytes = instance.modelSizeBytes; + this.modelType = instance.modelType; + this.platformArchitecture = instance.platformArchitecture; + this.prefixStrings = instance.prefixStrings; + this.tags = instance.tags; + this.waitForCompletion = instance.waitForCompletion; + + } /** * The compressed (GZipped and Base64 encoded) inference definition of the * model. If compressed_definition is specified, then definition cannot be @@ -662,6 +681,12 @@ public PutTrainedModelRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java index 907cdb2da6..000f720399 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelVocabularyRequest.java @@ -195,6 +195,15 @@ public static class Builder extends RequestBase.AbstractBuilder private List vocabulary; + public Builder() { + } + private Builder(PutTrainedModelVocabularyRequest instance) { + this.merges = instance.merges; + this.modelId = instance.modelId; + this.scores = instance.scores; + this.vocabulary = instance.vocabulary; + + } /** * The optional model merges if required by the tokenizer. *

                                                                                                      @@ -295,6 +304,12 @@ public PutTrainedModelVocabularyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QueryFeatureExtractor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QueryFeatureExtractor.java index 02c9d33720..0b4684610f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QueryFeatureExtractor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QueryFeatureExtractor.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Query query; + public Builder() { + } + private Builder(QueryFeatureExtractor instance) { + this.defaultScore = instance.defaultScore; + this.featureName = instance.featureName; + this.query = instance.query; + + } /** * API name: {@code default_score} */ @@ -207,6 +215,12 @@ public QueryFeatureExtractor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java index 802d31647e..70b47189fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceOptions.java @@ -198,6 +198,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxAnswerLength; + public Builder() { + } + private Builder(QuestionAnsweringInferenceOptions instance) { + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.maxAnswerLength = instance.maxAnswerLength; + + } /** * Specifies the number of top class predictions to return. Defaults to 0. *

                                                                                                      @@ -276,6 +285,12 @@ public QuestionAnsweringInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java index b59d39c703..72c1767e4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/QuestionAnsweringInferenceUpdateOptions.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxAnswerLength; + public Builder() { + } + private Builder(QuestionAnsweringInferenceUpdateOptions instance) { + this.question = instance.question; + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.maxAnswerLength = instance.maxAnswerLength; + + } /** * Required - The question to answer given the inference context *

                                                                                                      @@ -294,6 +304,12 @@ public QuestionAnsweringInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java index 61999e6272..93dccca902 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RegressionInferenceOptions.java @@ -175,6 +175,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer numTopFeatureImportanceValues; + public Builder() { + } + private Builder(RegressionInferenceOptions instance) { + this.resultsField = instance.resultsField; + this.numTopFeatureImportanceValues = instance.numTopFeatureImportanceValues; + + } /** * The field that is added to incoming documents to contain the inference * prediction. Defaults to predicted_value. @@ -214,6 +221,12 @@ public RegressionInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java index 8ca6cdf19d..c2180be6ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java @@ -134,6 +134,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(ResetJobRequest instance) { + this.deleteUserAnnotations = instance.deleteUserAnnotations; + this.jobId = instance.jobId; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Specifies whether annotations that have been added by the user should be * deleted along with any auto-generated annotations when the job is reset. @@ -183,6 +191,12 @@ public ResetJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java index d18f7eb8ac..e4384eb3d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RevertModelSnapshotRequest.java @@ -162,6 +162,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String snapshotId; + public Builder() { + } + private Builder(RevertModelSnapshotRequest instance) { + this.deleteInterveningResults = instance.deleteInterveningResults; + this.jobId = instance.jobId; + this.snapshotId = instance.snapshotId; + + } /** * Refer to the description for the delete_intervening_results * query parameter. @@ -213,6 +221,12 @@ public RevertModelSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java index b9643fe42c..70a546d10d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RuleCondition.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double value; + public Builder() { + } + private Builder(RuleCondition instance) { + this.appliesTo = instance.appliesTo; + this.operator = instance.operator; + this.value = instance.value; + + } /** * Required - Specifies the result property to which the condition applies. If * your detector uses lat_long, metric, @@ -202,6 +210,12 @@ public RuleCondition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java index ddbbf566f6..ca3872c83c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/RunningStateSearchInterval.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Long startMs; + public Builder() { + } + private Builder(RunningStateSearchInterval instance) { + this.end = instance.end; + this.endMs = instance.endMs; + this.start = instance.start; + this.startMs = instance.startMs; + + } /** * The end time. *

                                                                                                      @@ -253,6 +262,12 @@ public RunningStateSearchInterval build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java index eeed8ce568..ac34d003b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/SetUpgradeModeRequest.java @@ -131,6 +131,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(SetUpgradeModeRequest instance) { + this.enabled = instance.enabled; + this.timeout = instance.timeout; + + } /** * When true, it enables upgrade_mode which * temporarily halts all job and datafeed tasks and prohibits new job and @@ -180,6 +187,12 @@ public SetUpgradeModeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java index b34def9dbf..13c23f3ee2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java @@ -153,6 +153,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(StartDataFrameAnalyticsRequest instance) { + this.id = instance.id; + this.timeout = instance.timeout; + + } /** * Required - Identifier for the data frame analytics job. This identifier can * contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and @@ -204,6 +211,12 @@ public StartDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java index 5dd7e4487f..eb1888df46 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDatafeedRequest.java @@ -198,6 +198,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(StartDatafeedRequest instance) { + this.datafeedId = instance.datafeedId; + this.end = instance.end; + this.start = instance.start; + this.timeout = instance.timeout; + + } /** * Required - A numerical character string that uniquely identifies the * datafeed. This identifier can contain lowercase alphanumeric characters (a-z @@ -268,6 +277,12 @@ public StartDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java index 8ef2c95aa0..e115ff68a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartTrainedModelDeploymentRequest.java @@ -295,6 +295,21 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DeploymentAllocationState waitFor; + public Builder() { + } + private Builder(StartTrainedModelDeploymentRequest instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.cacheSize = instance.cacheSize; + this.deploymentId = instance.deploymentId; + this.modelId = instance.modelId; + this.numberOfAllocations = instance.numberOfAllocations; + this.priority = instance.priority; + this.queueCapacity = instance.queueCapacity; + this.threadsPerAllocation = instance.threadsPerAllocation; + this.timeout = instance.timeout; + this.waitFor = instance.waitFor; + + } /** * Adaptive allocations configuration. When enabled, the number of allocations * is set based on the current load. If adaptive_allocations is enabled, do not @@ -453,6 +468,12 @@ public StartTrainedModelDeploymentRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java index 23d349c47e..8e91114f43 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java @@ -199,6 +199,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(StopDataFrameAnalyticsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.force = instance.force; + this.id = instance.id; + this.timeout = instance.timeout; + + } /** * Specifies what to do when the request: *

                                                                                                        @@ -281,6 +290,12 @@ public StopDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java index b664f831c9..38ef1489c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDatafeedRequest.java @@ -209,6 +209,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(StopDatafeedRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.closeJob = instance.closeJob; + this.datafeedId = instance.datafeedId; + this.force = instance.force; + this.timeout = instance.timeout; + + } /** * Refer to the description for the allow_no_match query parameter. *

                                                                                                        @@ -289,6 +299,12 @@ public StopDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java index fa6a8274eb..708db79793 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopTrainedModelDeploymentRequest.java @@ -189,6 +189,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String modelId; + public Builder() { + } + private Builder(StopTrainedModelDeploymentRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.force = instance.force; + this.id = instance.id; + this.modelId = instance.modelId; + + } /** * Specifies what to do when the request: contains wildcard expressions and * there are no deployments that match; contains the _all string or @@ -254,6 +263,12 @@ public StopTrainedModelDeploymentRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java index c57c0ff6a7..3b516b0493 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceOptions.java @@ -224,6 +224,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(TextClassificationInferenceOptions instance) { + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.classificationLabels = instance.classificationLabels; + this.vocabulary = instance.vocabulary; + + } /** * Specifies the number of top class predictions to return. Defaults to 0. *

                                                                                                        @@ -333,6 +343,12 @@ public TextClassificationInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java index f0dc9658aa..8105db3eda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextClassificationInferenceUpdateOptions.java @@ -203,6 +203,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List classificationLabels; + public Builder() { + } + private Builder(TextClassificationInferenceUpdateOptions instance) { + this.numTopClasses = instance.numTopClasses; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.classificationLabels = instance.classificationLabels; + + } /** * Specifies the number of top class predictions to return. Defaults to 0. *

                                                                                                        @@ -288,6 +297,12 @@ public TextClassificationInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java index 231358994c..635a808ab9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java @@ -195,6 +195,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(TextEmbeddingInferenceOptions instance) { + this.embeddingSize = instance.embeddingSize; + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.vocabulary = instance.vocabulary; + + } /** * The number of dimensions in the embedding output *

                                                                                                        @@ -278,6 +287,12 @@ public TextEmbeddingInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java index 88f3965171..cea16239e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceUpdateOptions.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(TextEmbeddingInferenceUpdateOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + + } /** * API name: {@code tokenization} */ @@ -195,6 +202,12 @@ public TextEmbeddingInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java index 65f2aea38a..36f31dcb01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java @@ -172,6 +172,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Vocabulary vocabulary; + public Builder() { + } + private Builder(TextExpansionInferenceOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.vocabulary = instance.vocabulary; + + } /** * The tokenization options *

                                                                                                        @@ -245,6 +253,12 @@ public TextExpansionInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java index 0ff3241616..57c6245ca7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java @@ -150,6 +150,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String resultsField; + public Builder() { + } + private Builder(TextExpansionInferenceUpdateOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + + } /** * API name: {@code tokenization} */ @@ -195,6 +202,12 @@ public TextExpansionInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java index 5feea4e8c8..b094af2e50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long iterationTime; + public Builder() { + } + private Builder(TimingStats instance) { + this.elapsedTime = instance.elapsedTime; + this.iterationTime = instance.iterationTime; + + } /** * Required - Runtime of the analysis in milliseconds. *

                                                                                                        @@ -173,6 +180,12 @@ public TimingStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java index c6bc3de24e..dc0c494980 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TopClassEntry.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Double classScore; + public Builder() { + } + private Builder(TopClassEntry instance) { + this.className = instance.className; + this.classProbability = instance.classProbability; + this.classScore = instance.classScore; + + } /** * Required - API name: {@code class_name} */ @@ -183,6 +191,12 @@ public TopClassEntry build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java index 0b7e48fa60..d94f0a0688 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase private List classes; + public Builder() { + } + private Builder(TotalFeatureImportance instance) { + this.featureName = instance.featureName; + this.importance = instance.importance; + this.classes = instance.classes; + + } /** * Required - The feature for which this importance was calculated. *

                                                                                                        @@ -274,6 +282,12 @@ public TotalFeatureImportance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java index 2c6bb2aa86..f1aae252db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List importance; + public Builder() { + } + private Builder(TotalFeatureImportanceClass instance) { + this.className = instance.className; + this.importance = instance.importance; + + } /** * Required - The target class value. Could be a string, boolean, or number. *

                                                                                                        @@ -210,6 +217,12 @@ public TotalFeatureImportanceClass build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java index 3fa4c50d0d..103f2ba2b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java @@ -154,6 +154,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer min; + public Builder() { + } + private Builder(TotalFeatureImportanceStatistics instance) { + this.meanMagnitude = instance.meanMagnitude; + this.max = instance.max; + this.min = instance.min; + + } /** * Required - The average magnitude of this feature across all the training * data. This value is the average of the absolute values of the importance for @@ -206,6 +214,12 @@ public TotalFeatureImportanceStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java index d0f4aa0169..2615287187 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignment.java @@ -233,6 +233,18 @@ public static class Builder extends WithJsonObjectBuilderBase private TrainedModelAssignmentTaskParameters taskParameters; + public Builder() { + } + private Builder(TrainedModelAssignment instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.assignmentState = instance.assignmentState; + this.maxAssignedAllocations = instance.maxAssignedAllocations; + this.reason = instance.reason; + this.routingTable = instance.routingTable; + this.startTime = instance.startTime; + this.taskParameters = instance.taskParameters; + + } /** * API name: {@code adaptive_allocations} */ @@ -355,6 +367,12 @@ public TrainedModelAssignment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingStateAndReason.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingStateAndReason.java index c35bd63949..055eccea6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingStateAndReason.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingStateAndReason.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase private RoutingState routingState; + public Builder() { + } + private Builder(TrainedModelAssignmentRoutingStateAndReason instance) { + this.reason = instance.reason; + this.routingState = instance.routingState; + + } /** * The reason for the current state. It is usually populated only when the * routing_state is failed. @@ -178,6 +185,12 @@ public TrainedModelAssignmentRoutingStateAndReason build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java index 4fcd7a2f77..207f73cdab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentRoutingTable.java @@ -174,6 +174,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer targetAllocations; + public Builder() { + } + private Builder(TrainedModelAssignmentRoutingTable instance) { + this.reason = instance.reason; + this.routingState = instance.routingState; + this.currentAllocations = instance.currentAllocations; + this.targetAllocations = instance.targetAllocations; + + } /** * The reason for the current state. It is usually populated only when the * routing_state is failed. @@ -233,6 +242,12 @@ public TrainedModelAssignmentRoutingTable build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java index 7c4c678992..595fe2cafb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java @@ -273,6 +273,21 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer threadsPerAllocation; + public Builder() { + } + private Builder(TrainedModelAssignmentTaskParameters instance) { + this.modelBytes = instance.modelBytes; + this.modelId = instance.modelId; + this.deploymentId = instance.deploymentId; + this.cacheSize = instance.cacheSize; + this.numberOfAllocations = instance.numberOfAllocations; + this.priority = instance.priority; + this.perDeploymentMemoryBytes = instance.perDeploymentMemoryBytes; + this.perAllocationMemoryBytes = instance.perAllocationMemoryBytes; + this.queueCapacity = instance.queueCapacity; + this.threadsPerAllocation = instance.threadsPerAllocation; + + } /** * Required - The size of the trained model in bytes. *

                                                                                                        @@ -386,6 +401,12 @@ public TrainedModelAssignmentTaskParameters build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java index 40e6c2f240..7d19f33ebe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List fieldNames; + public Builder() { + } + private Builder(TrainedModelConfigInput instance) { + this.fieldNames = instance.fieldNames; + + } /** * Required - An array of input field names for the model. *

                                                                                                        @@ -166,6 +172,12 @@ public TrainedModelConfigInput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java index 55ea95b0d3..ef717826cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java @@ -206,6 +206,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List totalFeatureImportance; + public Builder() { + } + private Builder(TrainedModelConfigMetadata instance) { + this.modelAliases = instance.modelAliases; + this.featureImportanceBaseline = instance.featureImportanceBaseline; + this.hyperparameters = instance.hyperparameters; + this.totalFeatureImportance = instance.totalFeatureImportance; + + } /** * API name: {@code model_aliases} *

                                                                                                        @@ -357,6 +366,12 @@ public TrainedModelConfigMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java index 7c569bedbd..faa351b0f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentAllocationStatus.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer targetAllocationCount; + public Builder() { + } + private Builder(TrainedModelDeploymentAllocationStatus instance) { + this.allocationCount = instance.allocationCount; + this.state = instance.state; + this.targetAllocationCount = instance.targetAllocationCount; + + } /** * Required - The current number of nodes where the model is allocated. *

                                                                                                        @@ -198,6 +206,12 @@ public TrainedModelDeploymentAllocationStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java index afa0c4a8db..6b745983bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentNodesStats.java @@ -478,6 +478,29 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer timeoutCount; + public Builder() { + } + private Builder(TrainedModelDeploymentNodesStats instance) { + this.averageInferenceTimeMs = instance.averageInferenceTimeMs; + this.averageInferenceTimeMsLastMinute = instance.averageInferenceTimeMsLastMinute; + this.averageInferenceTimeMsExcludingCacheHits = instance.averageInferenceTimeMsExcludingCacheHits; + this.errorCount = instance.errorCount; + this.inferenceCount = instance.inferenceCount; + this.inferenceCacheHitCount = instance.inferenceCacheHitCount; + this.inferenceCacheHitCountLastMinute = instance.inferenceCacheHitCountLastMinute; + this.lastAccess = instance.lastAccess; + this.node = instance.node; + this.numberOfAllocations = instance.numberOfAllocations; + this.numberOfPendingRequests = instance.numberOfPendingRequests; + this.peakThroughputPerMinute = instance.peakThroughputPerMinute; + this.rejectedExecutionCount = instance.rejectedExecutionCount; + this.routingState = instance.routingState; + this.startTime = instance.startTime; + this.threadsPerAllocation = instance.threadsPerAllocation; + this.throughputLastMinute = instance.throughputLastMinute; + this.timeoutCount = instance.timeoutCount; + + } /** * The average time for each inference call to complete on this node. *

                                                                                                        @@ -689,6 +712,12 @@ public TrainedModelDeploymentNodesStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java index b96340dfd5..0952749669 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java @@ -474,6 +474,29 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer timeoutCount; + public Builder() { + } + private Builder(TrainedModelDeploymentStats instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.allocationStatus = instance.allocationStatus; + this.cacheSize = instance.cacheSize; + this.deploymentId = instance.deploymentId; + this.errorCount = instance.errorCount; + this.inferenceCount = instance.inferenceCount; + this.modelId = instance.modelId; + this.nodes = instance.nodes; + this.numberOfAllocations = instance.numberOfAllocations; + this.peakThroughputPerMinute = instance.peakThroughputPerMinute; + this.priority = instance.priority; + this.queueCapacity = instance.queueCapacity; + this.rejectedExecutionCount = instance.rejectedExecutionCount; + this.reason = instance.reason; + this.startTime = instance.startTime; + this.state = instance.state; + this.threadsPerAllocation = instance.threadsPerAllocation; + this.timeoutCount = instance.timeoutCount; + + } /** * API name: {@code adaptive_allocations} */ @@ -720,6 +743,12 @@ public TrainedModelDeploymentStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java index c41da1c7e1..6a54965d6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelEntities.java @@ -174,6 +174,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer endPos; + public Builder() { + } + private Builder(TrainedModelEntities instance) { + this.className = instance.className; + this.classProbability = instance.classProbability; + this.entity = instance.entity; + this.startPos = instance.startPos; + this.endPos = instance.endPos; + + } /** * Required - API name: {@code class_name} */ @@ -232,6 +242,12 @@ public TrainedModelEntities build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java index b9548f0edb..83f4f5fd13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceClassImportance.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Double importance; + public Builder() { + } + private Builder(TrainedModelInferenceClassImportance instance) { + this.className = instance.className; + this.importance = instance.importance; + + } /** * Required - API name: {@code class_name} */ @@ -164,6 +171,12 @@ public TrainedModelInferenceClassImportance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java index e09756fe18..76519b33d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceFeatureImportance.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List classes; + public Builder() { + } + private Builder(TrainedModelInferenceFeatureImportance instance) { + this.featureName = instance.featureName; + this.importance = instance.importance; + this.classes = instance.classes; + + } /** * Required - API name: {@code feature_name} */ @@ -225,6 +233,12 @@ public TrainedModelInferenceFeatureImportance build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java index 5bd85cee21..1ed2efce7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java @@ -190,6 +190,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long timestamp; + public Builder() { + } + private Builder(TrainedModelInferenceStats instance) { + this.cacheMissCount = instance.cacheMissCount; + this.failureCount = instance.failureCount; + this.inferenceCount = instance.inferenceCount; + this.missingAllFieldsCount = instance.missingAllFieldsCount; + this.timestamp = instance.timestamp; + + } /** * Required - The number of times the model was loaded for inference and was not * retrieved from the cache. If this number is close to the @@ -264,6 +274,12 @@ public TrainedModelInferenceStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java index 5dbdbff220..baabe75759 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocation.java @@ -111,6 +111,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private TrainedModelLocationIndex index; + public Builder() { + } + private Builder(TrainedModelLocation instance) { + this.index = instance.index; + + } /** * Required - API name: {@code index} */ @@ -145,6 +151,12 @@ public TrainedModelLocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java index 9214ecb320..2cb9a191e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelLocationIndex.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String name; + public Builder() { + } + private Builder(TrainedModelLocationIndex instance) { + this.name = instance.name; + + } /** * Required - API name: {@code name} */ @@ -139,6 +145,12 @@ public TrainedModelLocationIndex build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java index 5bfde58628..9ef240c9fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelPrefixStrings.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String search; + public Builder() { + } + private Builder(TrainedModelPrefixStrings instance) { + this.ingest = instance.ingest; + this.search = instance.search; + + } /** * String prepended to input at ingest *

                                                                                                        @@ -180,6 +187,12 @@ public TrainedModelPrefixStrings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java index e2ad33d65c..c75c7fcf63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelSizeStats.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String requiredNativeMemoryBytes; + public Builder() { + } + private Builder(TrainedModelSizeStats instance) { + this.modelSizeBytes = instance.modelSizeBytes; + this.requiredNativeMemoryBytes = instance.requiredNativeMemoryBytes; + + } /** * Required - The size of the model in bytes. *

                                                                                                        @@ -170,6 +177,12 @@ public TrainedModelSizeStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java index 986f480a3b..68c61cb3fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java @@ -222,6 +222,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer pipelineCount; + public Builder() { + } + private Builder(TrainedModelStats instance) { + this.deploymentStats = instance.deploymentStats; + this.inferenceStats = instance.inferenceStats; + this.ingest = instance.ingest; + this.modelId = instance.modelId; + this.modelSizeStats = instance.modelSizeStats; + this.pipelineCount = instance.pipelineCount; + + } /** * A collection of deployment stats, which is present when the models are * deployed. @@ -350,6 +361,12 @@ public TrainedModelStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java index 8ec2b8be58..859af99574 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TransformAuthorization.java @@ -172,6 +172,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String serviceAccount; + public Builder() { + } + private Builder(TransformAuthorization instance) { + this.apiKey = instance.apiKey; + this.roles = instance.roles; + this.serviceAccount = instance.serviceAccount; + + } /** * If an API key was used for the most recent update to the transform, its name * and identifier are listed in the response. @@ -248,6 +256,12 @@ public TransformAuthorization build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java index ae28dd5d88..190a3a909f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java @@ -215,6 +215,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String modelMemoryLimit; + public Builder() { + } + private Builder(UpdateDataFrameAnalyticsRequest instance) { + this.allowLazyStart = instance.allowLazyStart; + this.description = instance.description; + this.id = instance.id; + this.maxNumThreads = instance.maxNumThreads; + this.modelMemoryLimit = instance.modelMemoryLimit; + + } /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. @@ -293,6 +303,12 @@ public UpdateDataFrameAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java index b967c4eaf4..d38a64bdc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedRequest.java @@ -548,6 +548,29 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer scrollSize; + public Builder() { + } + private Builder(UpdateDatafeedRequest instance) { + this.aggregations = instance.aggregations; + this.allowNoIndices = instance.allowNoIndices; + this.chunkingConfig = instance.chunkingConfig; + this.datafeedId = instance.datafeedId; + this.delayedDataCheckConfig = instance.delayedDataCheckConfig; + this.expandWildcards = instance.expandWildcards; + this.frequency = instance.frequency; + this.ignoreThrottled = instance.ignoreThrottled; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.indices = instance.indices; + this.indicesOptions = instance.indicesOptions; + this.jobId = instance.jobId; + this.maxEmptySearches = instance.maxEmptySearches; + this.query = instance.query; + this.queryDelay = instance.queryDelay; + this.runtimeMappings = instance.runtimeMappings; + this.scriptFields = instance.scriptFields; + this.scrollSize = instance.scrollSize; + + } /** * If set, the datafeed performs aggregation searches. Support for aggregations * is limited and should be used only with low cardinality data. @@ -1024,6 +1047,12 @@ public UpdateDatafeedRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java index 19c14f78dd..020a039575 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateFilterRequest.java @@ -189,6 +189,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List removeItems; + public Builder() { + } + private Builder(UpdateFilterRequest instance) { + this.addItems = instance.addItems; + this.description = instance.description; + this.filterId = instance.filterId; + this.removeItems = instance.removeItems; + + } /** * The items to add to the filter. *

                                                                                                        @@ -275,6 +284,12 @@ public UpdateFilterRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java index c26e86d08b..2e4a536ba7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java @@ -486,6 +486,27 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long resultsRetentionDays; + public Builder() { + } + private Builder(UpdateJobRequest instance) { + this.allowLazyOpen = instance.allowLazyOpen; + this.analysisLimits = instance.analysisLimits; + this.backgroundPersistInterval = instance.backgroundPersistInterval; + this.categorizationFilters = instance.categorizationFilters; + this.customSettings = instance.customSettings; + this.dailyModelSnapshotRetentionAfterDays = instance.dailyModelSnapshotRetentionAfterDays; + this.description = instance.description; + this.detectors = instance.detectors; + this.groups = instance.groups; + this.jobId = instance.jobId; + this.modelPlotConfig = instance.modelPlotConfig; + this.modelPruneWindow = instance.modelPruneWindow; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.perPartitionCategorization = instance.perPartitionCategorization; + this.renormalizationWindowDays = instance.renormalizationWindowDays; + this.resultsRetentionDays = instance.resultsRetentionDays; + + } /** * Advanced configuration option. Specifies whether this job can open when there * is insufficient machine learning node capacity for it to be immediately @@ -801,6 +822,12 @@ public UpdateJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java index 368cb6bc07..316220df67 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateModelSnapshotRequest.java @@ -177,6 +177,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String snapshotId; + public Builder() { + } + private Builder(UpdateModelSnapshotRequest instance) { + this.description = instance.description; + this.jobId = instance.jobId; + this.retain = instance.retain; + this.snapshotId = instance.snapshotId; + + } /** * A description of the model snapshot. *

                                                                                                        @@ -237,6 +246,12 @@ public UpdateModelSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateTrainedModelDeploymentRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateTrainedModelDeploymentRequest.java index 021083f77b..70a8aad1a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateTrainedModelDeploymentRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateTrainedModelDeploymentRequest.java @@ -169,6 +169,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer numberOfAllocations; + public Builder() { + } + private Builder(UpdateTrainedModelDeploymentRequest instance) { + this.adaptiveAllocations = instance.adaptiveAllocations; + this.modelId = instance.modelId; + this.numberOfAllocations = instance.numberOfAllocations; + + } /** * Adaptive allocations configuration. When enabled, the number of allocations * is set based on the current load. If adaptive_allocations is enabled, do not @@ -238,6 +246,12 @@ public UpdateTrainedModelDeploymentRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java index 8ab9b8da3f..f5253fe394 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java @@ -157,6 +157,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(UpgradeJobSnapshotRequest instance) { + this.jobId = instance.jobId; + this.snapshotId = instance.snapshotId; + this.timeout = instance.timeout; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Required - Identifier for the anomaly detection job. *

                                                                                                        @@ -226,6 +235,12 @@ public UpgradeJobSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java index c7d84909cb..9db91c3d74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private Detector detector; + public Builder() { + } + private Builder(ValidateDetectorRequest instance) { + this.detector = instance.detector; + + } /** * Required - Request body. */ @@ -144,6 +150,12 @@ public ValidateDetectorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createValidateDetectorRequestDeserializer(); protected static JsonpDeserializer createValidateDetectorRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java index f10625488c..9f1be7d3a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java @@ -275,6 +275,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String resultsIndexName; + public Builder() { + } + private Builder(ValidateRequest instance) { + this.analysisConfig = instance.analysisConfig; + this.analysisLimits = instance.analysisLimits; + this.dataDescription = instance.dataDescription; + this.description = instance.description; + this.jobId = instance.jobId; + this.modelPlot = instance.modelPlot; + this.modelSnapshotId = instance.modelSnapshotId; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.resultsIndexName = instance.resultsIndexName; + + } /** * API name: {@code analysis_config} */ @@ -393,6 +407,12 @@ public ValidateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java index 9b7084a3af..e548ae1119 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String lossType; + public Builder() { + } + private Builder(ValidationLoss instance) { + this.foldValues = instance.foldValues; + this.lossType = instance.lossType; + + } /** * Required - Validation loss values for every added decision tree during the * forest growing procedure. @@ -192,6 +199,12 @@ public ValidationLoss build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java index 76aee63275..adb57e45f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Vocabulary.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String index; + public Builder() { + } + private Builder(Vocabulary instance) { + this.index = instance.index; + + } /** * Required - API name: {@code index} */ @@ -136,6 +142,12 @@ public Vocabulary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/XlmRobertaTokenizationConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/XlmRobertaTokenizationConfig.java index e02830b95b..fb86ff2079 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/XlmRobertaTokenizationConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/XlmRobertaTokenizationConfig.java @@ -81,6 +81,11 @@ public TokenizationConfig.Kind _tokenizationConfigKind() { public static class Builder extends CommonTokenizationConfig.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(XlmRobertaTokenizationConfig instance) { + + } @Override protected Builder self() { return this; @@ -99,6 +104,12 @@ public XlmRobertaTokenizationConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java index 5a92a00587..730c973c41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceOptions.java @@ -252,6 +252,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List labels; + public Builder() { + } + private Builder(ZeroShotClassificationInferenceOptions instance) { + this.tokenization = instance.tokenization; + this.hypothesisTemplate = instance.hypothesisTemplate; + this.classificationLabels = instance.classificationLabels; + this.resultsField = instance.resultsField; + this.multiLabel = instance.multiLabel; + this.labels = instance.labels; + + } /** * The tokenization options to update when inferring *

                                                                                                        @@ -382,6 +393,12 @@ public ZeroShotClassificationInferenceOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java index e21b182d1d..6684116b9b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ZeroShotClassificationInferenceUpdateOptions.java @@ -202,6 +202,15 @@ public static class Builder extends WithJsonObjectBuilderBase private List labels; + public Builder() { + } + private Builder(ZeroShotClassificationInferenceUpdateOptions instance) { + this.tokenization = instance.tokenization; + this.resultsField = instance.resultsField; + this.multiLabel = instance.multiLabel; + this.labels = instance.labels; + + } /** * The tokenization options to update when inferring *

                                                                                                        @@ -286,6 +295,12 @@ public ZeroShotClassificationInferenceUpdateOptions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java index 7e3985d847..7d4a009ad5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixItem.java @@ -169,6 +169,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer otherPredictedClassDocCount; + public Builder() { + } + private Builder(ConfusionMatrixItem instance) { + this.actualClass = instance.actualClass; + this.actualClassDocCount = instance.actualClassDocCount; + this.predictedClasses = instance.predictedClasses; + this.otherPredictedClassDocCount = instance.otherPredictedClassDocCount; + + } /** * Required - API name: {@code actual_class} */ @@ -241,6 +250,12 @@ public ConfusionMatrixItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java index 9ea1997b43..443133282d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixPrediction.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer count; + public Builder() { + } + private Builder(ConfusionMatrixPrediction instance) { + this.predictedClass = instance.predictedClass; + this.count = instance.count; + + } /** * Required - API name: {@code predicted_class} */ @@ -163,6 +170,12 @@ public ConfusionMatrixPrediction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java index 0b5b39669d..b50159dbc8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer falseNegative; + public Builder() { + } + private Builder(ConfusionMatrixThreshold instance) { + this.truePositive = instance.truePositive; + this.falsePositive = instance.falsePositive; + this.trueNegative = instance.trueNegative; + this.falseNegative = instance.falseNegative; + + } /** * Required - True Positive *

                                                                                                        @@ -223,6 +232,12 @@ public ConfusionMatrixThreshold build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java index 0ecf205b9e..9c8fdc678c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummary.java @@ -210,6 +210,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeClassificationSummaryRecall recall; + public Builder() { + } + private Builder(DataframeClassificationSummary instance) { + this.aucRoc = instance.aucRoc; + this.accuracy = instance.accuracy; + this.multiclassConfusionMatrix = instance.multiclassConfusionMatrix; + this.precision = instance.precision; + this.recall = instance.recall; + + } /** * The AUC ROC (area under the curve of the receiver operating characteristic) * score and optionally the curve. It is calculated for a specific class @@ -334,6 +344,12 @@ public DataframeClassificationSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java index 7c7f85d4b3..94a44e8a26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryAccuracy.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Double overallAccuracy; + public Builder() { + } + private Builder(DataframeClassificationSummaryAccuracy instance) { + this.classes = instance.classes; + this.overallAccuracy = instance.overallAccuracy; + + } /** * Required - API name: {@code classes} *

                                                                                                        @@ -193,6 +200,12 @@ public DataframeClassificationSummaryAccuracy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java index 4ac1474e71..99e523c722 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryMulticlassConfusionMatrix.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer otherActualClassCount; + public Builder() { + } + private Builder(DataframeClassificationSummaryMulticlassConfusionMatrix instance) { + this.confusionMatrix = instance.confusionMatrix; + this.otherActualClassCount = instance.otherActualClassCount; + + } /** * Required - API name: {@code confusion_matrix} *

                                                                                                        @@ -194,6 +201,12 @@ public DataframeClassificationSummaryMulticlassConfusionMatrix build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java index 1860e9bc19..069c899763 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryPrecision.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Double avgPrecision; + public Builder() { + } + private Builder(DataframeClassificationSummaryPrecision instance) { + this.classes = instance.classes; + this.avgPrecision = instance.avgPrecision; + + } /** * Required - API name: {@code classes} *

                                                                                                        @@ -193,6 +200,12 @@ public DataframeClassificationSummaryPrecision build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java index 11548c0e39..197d0efaea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeClassificationSummaryRecall.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Double avgRecall; + public Builder() { + } + private Builder(DataframeClassificationSummaryRecall instance) { + this.classes = instance.classes; + this.avgRecall = instance.avgRecall; + + } /** * Required - API name: {@code classes} *

                                                                                                        @@ -193,6 +200,12 @@ public DataframeClassificationSummaryRecall build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java index 48608a34ba..e670806023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationClass.java @@ -98,6 +98,12 @@ public static class Builder extends DataframeEvaluationValue.AbstractBuilder { private String className; + public Builder() { + } + private Builder(DataframeEvaluationClass instance) { + this.className = instance.className; + + } /** * Required - API name: {@code class_name} */ @@ -124,6 +130,12 @@ public DataframeEvaluationClass build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java index 53909445b0..98f8c7cbad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRoc.java @@ -108,6 +108,12 @@ public static class Builder extends DataframeEvaluationValue.AbstractBuilder curve; + public Builder() { + } + private Builder(DataframeEvaluationSummaryAucRoc instance) { + this.curve = instance.curve; + + } /** * API name: {@code curve} *

                                                                                                        @@ -157,6 +163,12 @@ public DataframeEvaluationSummaryAucRoc build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java index 7b0f3d3314..66dcc3abf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeEvaluationSummaryAucRocCurveItem.java @@ -143,6 +143,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Double threshold; + public Builder() { + } + private Builder(DataframeEvaluationSummaryAucRocCurveItem instance) { + this.tpr = instance.tpr; + this.fpr = instance.fpr; + this.threshold = instance.threshold; + + } /** * Required - API name: {@code tpr} */ @@ -185,6 +193,12 @@ public DataframeEvaluationSummaryAucRocCurveItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java index 9253b4def0..35a41ef0ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeOutlierDetectionSummary.java @@ -208,6 +208,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map confusionMatrix; + public Builder() { + } + private Builder(DataframeOutlierDetectionSummary instance) { + this.aucRoc = instance.aucRoc; + this.precision = instance.precision; + this.recall = instance.recall; + this.confusionMatrix = instance.confusionMatrix; + + } /** * The AUC ROC (area under the curve of the receiver operating characteristic) * score and optionally the curve. @@ -345,6 +354,12 @@ public DataframeOutlierDetectionSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java index 2e3f4c6da7..e51bff7666 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/DataframeRegressionSummary.java @@ -188,6 +188,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeEvaluationValue rSquared; + public Builder() { + } + private Builder(DataframeRegressionSummary instance) { + this.huber = instance.huber; + this.mse = instance.mse; + this.msle = instance.msle; + this.rSquared = instance.rSquared; + + } /** * Pseudo Huber loss function. *

                                                                                                        @@ -292,6 +301,12 @@ public DataframeRegressionSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java index 79163e4292..882fc17ce5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List jobIds; + public Builder() { + } + private Builder(Calendar instance) { + this.calendarId = instance.calendarId; + this.description = instance.description; + this.jobIds = instance.jobIds; + + } /** * Required - A string that uniquely identifies a calendar. *

                                                                                                        @@ -222,6 +230,12 @@ public Calendar build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java index 18e0077003..99137792a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/JvmStats.java @@ -217,6 +217,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer javaInferenceMaxInBytes; + public Builder() { + } + private Builder(JvmStats instance) { + this.heapMax = instance.heapMax; + this.heapMaxInBytes = instance.heapMaxInBytes; + this.javaInference = instance.javaInference; + this.javaInferenceInBytes = instance.javaInferenceInBytes; + this.javaInferenceMax = instance.javaInferenceMax; + this.javaInferenceMaxInBytes = instance.javaInferenceMaxInBytes; + + } /** * Maximum amount of memory available for use by the heap. *

                                                                                                        @@ -297,6 +308,12 @@ public JvmStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java index 806b734a97..55cae0538c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemMlStats.java @@ -304,6 +304,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer nativeInferenceInBytes; + public Builder() { + } + private Builder(MemMlStats instance) { + this.anomalyDetectors = instance.anomalyDetectors; + this.anomalyDetectorsInBytes = instance.anomalyDetectorsInBytes; + this.dataFrameAnalytics = instance.dataFrameAnalytics; + this.dataFrameAnalyticsInBytes = instance.dataFrameAnalyticsInBytes; + this.max = instance.max; + this.maxInBytes = instance.maxInBytes; + this.nativeCodeOverhead = instance.nativeCodeOverhead; + this.nativeCodeOverheadInBytes = instance.nativeCodeOverheadInBytes; + this.nativeInference = instance.nativeInference; + this.nativeInferenceInBytes = instance.nativeInferenceInBytes; + + } /** * Amount of native memory set aside for anomaly detection jobs. *

                                                                                                        @@ -430,6 +445,12 @@ public MemMlStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java index dfeb2ab80f..18a4354a0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/MemStats.java @@ -198,6 +198,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private MemMlStats ml; + public Builder() { + } + private Builder(MemStats instance) { + this.adjustedTotal = instance.adjustedTotal; + this.adjustedTotalInBytes = instance.adjustedTotalInBytes; + this.total = instance.total; + this.totalInBytes = instance.totalInBytes; + this.ml = instance.ml; + + } /** * If the amount of physical memory has been overridden using the * es.total_memory_bytes system property then this reports the overridden value. @@ -282,6 +292,12 @@ public MemStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java index 418eed4ad0..c75605e44e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_memory_stats/Memory.java @@ -228,6 +228,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String ephemeralId; + public Builder() { + } + private Builder(Memory instance) { + this.attributes = instance.attributes; + this.jvm = instance.jvm; + this.mem = instance.mem; + this.name = instance.name; + this.roles = instance.roles; + this.transportAddress = instance.transportAddress; + this.ephemeralId = instance.ephemeralId; + + } /** * Required - API name: {@code attributes} *

                                                                                                        @@ -357,6 +369,12 @@ public Memory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java index 14215ef7a7..3531d086da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/AnomalyDetectors.java @@ -176,6 +176,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer dailyModelSnapshotRetentionAfterDays; + public Builder() { + } + private Builder(AnomalyDetectors instance) { + this.categorizationAnalyzer = instance.categorizationAnalyzer; + this.categorizationExamplesLimit = instance.categorizationExamplesLimit; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.modelSnapshotRetentionDays = instance.modelSnapshotRetentionDays; + this.dailyModelSnapshotRetentionAfterDays = instance.dailyModelSnapshotRetentionAfterDays; + + } /** * Required - API name: {@code categorization_analyzer} */ @@ -242,6 +252,12 @@ public AnomalyDetectors build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java index f76fde8fec..cb5063889c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Datafeeds.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Integer scrollSize; + public Builder() { + } + private Builder(Datafeeds instance) { + this.scrollSize = instance.scrollSize; + + } /** * Required - API name: {@code scroll_size} */ @@ -135,6 +141,12 @@ public Datafeeds build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java index a5388e0a6a..5d0eaf2368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Defaults.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Datafeeds datafeeds; + public Builder() { + } + private Builder(Defaults instance) { + this.anomalyDetectors = instance.anomalyDetectors; + this.datafeeds = instance.datafeeds; + + } /** * Required - API name: {@code anomaly_detectors} */ @@ -172,6 +179,12 @@ public Defaults build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java index b5832c1cdf..15014f752e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/Limits.java @@ -191,6 +191,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String totalMlMemory; + public Builder() { + } + private Builder(Limits instance) { + this.maxSingleMlNodeProcessors = instance.maxSingleMlNodeProcessors; + this.totalMlProcessors = instance.totalMlProcessors; + this.maxModelMemoryLimit = instance.maxModelMemoryLimit; + this.effectiveMaxModelMemoryLimit = instance.effectiveMaxModelMemoryLimit; + this.totalMlMemory = instance.totalMlMemory; + + } /** * API name: {@code max_single_ml_node_processors} */ @@ -249,6 +259,12 @@ public Limits build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java index 0a9d5784dc..54b6fb7943 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/info/NativeCode.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String version; + public Builder() { + } + private Builder(NativeCode instance) { + this.buildHash = instance.buildHash; + this.version = instance.version; + + } /** * Required - API name: {@code build_hash} */ @@ -159,6 +166,12 @@ public NativeCode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java index f6285e6240..0db3f98a95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/preview_data_frame_analytics/DataframePreviewConfig.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataframeAnalysisAnalyzedFields analyzedFields; + public Builder() { + } + private Builder(DataframePreviewConfig instance) { + this.source = instance.source; + this.analysis = instance.analysis; + this.modelMemoryLimit = instance.modelMemoryLimit; + this.maxNumThreads = instance.maxNumThreads; + this.analyzedFields = instance.analyzedFields; + + } /** * Required - API name: {@code source} */ @@ -283,6 +293,12 @@ public DataframePreviewConfig build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java index 69a0dd035e..a765675624 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java @@ -175,6 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Weights exponent; + public Builder() { + } + private Builder(AggregateOutput instance) { + this.logisticRegression = instance.logisticRegression; + this.weightedSum = instance.weightedSum; + this.weightedMode = instance.weightedMode; + this.exponent = instance.exponent; + + } /** * API name: {@code logistic_regression} */ @@ -253,6 +262,12 @@ public AggregateOutput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java index 194ab1f5ce..910282b17d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java @@ -138,6 +138,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private TrainedModel trainedModel; + public Builder() { + } + private Builder(Definition instance) { + this.preprocessors = instance.preprocessors; + this.trainedModel = instance.trainedModel; + + } /** * Collection of preprocessors *

                                                                                                        @@ -225,6 +232,12 @@ public Definition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java index 63c51ca49b..1008bd77a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java @@ -206,6 +206,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List trainedModels; + public Builder() { + } + private Builder(Ensemble instance) { + this.aggregateOutput = instance.aggregateOutput; + this.classificationLabels = instance.classificationLabels; + this.featureNames = instance.featureNames; + this.targetType = instance.targetType; + this.trainedModels = instance.trainedModels; + + } /** * API name: {@code aggregate_output} */ @@ -316,6 +326,12 @@ public Ensemble build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java index c8d94e911b..986bda6d01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java @@ -162,6 +162,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Map frequencyMap; + public Builder() { + } + private Builder(FrequencyEncodingPreprocessor instance) { + this.field = instance.field; + this.featureName = instance.featureName; + this.frequencyMap = instance.frequencyMap; + + } /** * Required - API name: {@code field} */ @@ -216,6 +224,12 @@ public FrequencyEncodingPreprocessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java index 53fe224c13..32225e5e71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List fieldNames; + public Builder() { + } + private Builder(Input instance) { + this.fieldNames = instance.fieldNames; + + } /** * Required - API name: {@code field_names} *

                                                                                                        @@ -157,6 +163,12 @@ public Input build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java index 163710abdb..2a0311ec4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Map hotMap; + public Builder() { + } + private Builder(OneHotEncodingPreprocessor instance) { + this.field = instance.field; + this.hotMap = instance.hotMap; + + } /** * Required - API name: {@code field} */ @@ -192,6 +199,12 @@ public OneHotEncodingPreprocessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java index aa831b0c44..65d6972ce7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Double defaultValue; + public Builder() { + } + private Builder(TargetMeanEncodingPreprocessor instance) { + this.field = instance.field; + this.featureName = instance.featureName; + this.targetMap = instance.targetMap; + this.defaultValue = instance.defaultValue; + + } /** * Required - API name: {@code field} */ @@ -239,6 +248,12 @@ public TargetMeanEncodingPreprocessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java index 48a08b506c..aa4fa035fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Ensemble ensemble; + public Builder() { + } + private Builder(TrainedModel instance) { + this.tree = instance.tree; + this.treeNode = instance.treeNode; + this.ensemble = instance.ensemble; + + } /** * The definition for a binary decision tree. *

                                                                                                        @@ -254,6 +262,12 @@ public TrainedModel build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java index 3a8759dc1d..7f68f31fa2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java @@ -185,6 +185,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List treeStructure; + public Builder() { + } + private Builder(TrainedModelTree instance) { + this.classificationLabels = instance.classificationLabels; + this.featureNames = instance.featureNames; + this.targetType = instance.targetType; + this.treeStructure = instance.treeStructure; + + } /** * API name: {@code classification_labels} *

                                                                                                        @@ -281,6 +290,12 @@ public TrainedModelTree build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java index bfcd72d40b..9e89466e2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java @@ -277,6 +277,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Double threshold; + public Builder() { + } + private Builder(TrainedModelTreeNode instance) { + this.decisionType = instance.decisionType; + this.defaultLeft = instance.defaultLeft; + this.leafValue = instance.leafValue; + this.leftChild = instance.leftChild; + this.nodeIndex = instance.nodeIndex; + this.rightChild = instance.rightChild; + this.splitFeature = instance.splitFeature; + this.splitGain = instance.splitGain; + this.threshold = instance.threshold; + + } /** * API name: {@code decision_type} */ @@ -367,6 +381,12 @@ public TrainedModelTreeNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java index 14754515d4..3afc5e7069 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Double weights; + public Builder() { + } + private Builder(Weights instance) { + this.weights = instance.weights; + + } /** * Required - API name: {@code weights} */ @@ -135,6 +141,12 @@ public Weights build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java index de98ef35ad..db88284b20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java @@ -162,6 +162,15 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List operations; + public Builder() { + } + private Builder(BulkRequest instance) { + this.interval = instance.interval; + this.systemApiVersion = instance.systemApiVersion; + this.systemId = instance.systemId; + this.operations = instance.operations; + + } /** * Required - Collection interval (e.g., '10s' or '10000ms') of the payload *

                                                                                                        @@ -261,6 +270,12 @@ public BulkRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java index fd089eef83..2aa7b74b0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/AdaptiveSelection.java @@ -257,6 +257,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String rank; + public Builder() { + } + private Builder(AdaptiveSelection instance) { + this.avgQueueSize = instance.avgQueueSize; + this.avgResponseTime = instance.avgResponseTime; + this.avgResponseTimeNs = instance.avgResponseTimeNs; + this.avgServiceTime = instance.avgServiceTime; + this.avgServiceTimeNs = instance.avgServiceTimeNs; + this.outgoingSearches = instance.outgoingSearches; + this.rank = instance.rank; + + } /** * The exponentially weighted moving average queue size of search requests on * the keyed node. @@ -371,6 +383,12 @@ public AdaptiveSelection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java index 0d0eaf5139..340f226208 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Breaker.java @@ -231,6 +231,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Float tripped; + public Builder() { + } + private Builder(Breaker instance) { + this.estimatedSize = instance.estimatedSize; + this.estimatedSizeInBytes = instance.estimatedSizeInBytes; + this.limitSize = instance.limitSize; + this.limitSizeInBytes = instance.limitSizeInBytes; + this.overhead = instance.overhead; + this.tripped = instance.tripped; + + } /** * Estimated memory used for the operation. *

                                                                                                        @@ -311,6 +322,12 @@ public Breaker build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java index a0f13652bd..44249abdf8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cgroup.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private CgroupMemory memory; + public Builder() { + } + private Builder(Cgroup instance) { + this.cpuacct = instance.cpuacct; + this.cpu = instance.cpu; + this.memory = instance.memory; + + } /** * Contains statistics about cpuacct control group for the node. *

                                                                                                        @@ -235,6 +243,12 @@ public Cgroup build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java index 7f2bf54cc6..b69e7c95e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpu.java @@ -189,6 +189,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private CgroupCpuStat stat; + public Builder() { + } + private Builder(CgroupCpu instance) { + this.controlGroup = instance.controlGroup; + this.cfsPeriodMicros = instance.cfsPeriodMicros; + this.cfsQuotaMicros = instance.cfsQuotaMicros; + this.stat = instance.stat; + + } /** * The cpu control group to which the Elasticsearch process * belongs. @@ -261,6 +270,12 @@ public CgroupCpu build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java index a965167bfb..48a91b7402 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupCpuStat.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timeThrottledNanos; + public Builder() { + } + private Builder(CgroupCpuStat instance) { + this.numberOfElapsedPeriods = instance.numberOfElapsedPeriods; + this.numberOfTimesThrottled = instance.numberOfTimesThrottled; + this.timeThrottledNanos = instance.timeThrottledNanos; + + } /** * The number of reporting periods (as specified by * cfs_period_micros) that have elapsed. @@ -215,6 +223,12 @@ public CgroupCpuStat build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java index e5e3abf6bb..a9de65f8e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CgroupMemory.java @@ -170,6 +170,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String usageInBytes; + public Builder() { + } + private Builder(CgroupMemory instance) { + this.controlGroup = instance.controlGroup; + this.limitInBytes = instance.limitInBytes; + this.usageInBytes = instance.usageInBytes; + + } /** * The memory control group to which the Elasticsearch process * belongs. @@ -227,6 +235,12 @@ public CgroupMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java index a8cdcbdf6a..f141fa4914 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClearRepositoriesMeteringArchiveRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List nodeId; + public Builder() { + } + private Builder(ClearRepositoriesMeteringArchiveRequest instance) { + this.maxArchiveVersion = instance.maxArchiveVersion; + this.nodeId = instance.nodeId; + + } /** * Required - Specifies the maximum archive_version to be cleared * from the archive. @@ -175,6 +182,12 @@ public ClearRepositoriesMeteringArchiveRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java index 0543f85d7d..7651ba7500 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Client.java @@ -340,6 +340,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String xOpaqueId; + public Builder() { + } + private Builder(Client instance) { + this.id = instance.id; + this.agent = instance.agent; + this.localAddress = instance.localAddress; + this.remoteAddress = instance.remoteAddress; + this.lastUri = instance.lastUri; + this.openedTimeMillis = instance.openedTimeMillis; + this.closedTimeMillis = instance.closedTimeMillis; + this.lastRequestTimeMillis = instance.lastRequestTimeMillis; + this.requestCount = instance.requestCount; + this.requestSizeBytes = instance.requestSizeBytes; + this.xOpaqueId = instance.xOpaqueId; + + } /** * Unique ID for the HTTP client. *

                                                                                                        @@ -470,6 +486,12 @@ public Client build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java index 11ea9d9951..858d49ab6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterAppliedStats.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List recordings; + public Builder() { + } + private Builder(ClusterAppliedStats instance) { + this.recordings = instance.recordings; + + } /** * API name: {@code recordings} *

                                                                                                        @@ -169,6 +175,12 @@ public ClusterAppliedStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java index ba45a086c5..b124687f2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateQueue.java @@ -161,6 +161,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long committed; + public Builder() { + } + private Builder(ClusterStateQueue instance) { + this.total = instance.total; + this.pending = instance.pending; + this.committed = instance.committed; + + } /** * Total number of cluster states in queue. *

                                                                                                        @@ -209,6 +217,12 @@ public ClusterStateQueue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java index 9ed71d87ba..220f7aab21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ClusterStateUpdate.java @@ -462,6 +462,26 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long notificationTimeMillis; + public Builder() { + } + private Builder(ClusterStateUpdate instance) { + this.count = instance.count; + this.computationTime = instance.computationTime; + this.computationTimeMillis = instance.computationTimeMillis; + this.publicationTime = instance.publicationTime; + this.publicationTimeMillis = instance.publicationTimeMillis; + this.contextConstructionTime = instance.contextConstructionTime; + this.contextConstructionTimeMillis = instance.contextConstructionTimeMillis; + this.commitTime = instance.commitTime; + this.commitTimeMillis = instance.commitTimeMillis; + this.completionTime = instance.completionTime; + this.completionTimeMillis = instance.completionTimeMillis; + this.masterApplyTime = instance.masterApplyTime; + this.masterApplyTimeMillis = instance.masterApplyTimeMillis; + this.notificationTime = instance.notificationTime; + this.notificationTimeMillis = instance.notificationTimeMillis; + + } /** * Required - The number of cluster state update attempts that did not change * the cluster state since the node started. @@ -749,6 +769,12 @@ public ClusterStateUpdate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java index 6423479284..3e5ab95828 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Context.java @@ -176,6 +176,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long compilationLimitTriggered; + public Builder() { + } + private Builder(Context instance) { + this.context = instance.context; + this.compilations = instance.compilations; + this.cacheEvictions = instance.cacheEvictions; + this.compilationLimitTriggered = instance.compilationLimitTriggered; + + } /** * API name: {@code context} */ @@ -226,6 +235,12 @@ public Context build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java index dc1e3a53c2..3e4af8a218 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Cpu.java @@ -265,6 +265,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map loadAverage; + public Builder() { + } + private Builder(Cpu instance) { + this.percent = instance.percent; + this.sys = instance.sys; + this.sysInMillis = instance.sysInMillis; + this.total = instance.total; + this.totalInMillis = instance.totalInMillis; + this.user = instance.user; + this.userInMillis = instance.userInMillis; + this.loadAverage = instance.loadAverage; + + } /** * API name: {@code percent} */ @@ -380,6 +393,12 @@ public Cpu build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java index a2387ae7df..ceda6193ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/CpuAcct.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long usageNanos; + public Builder() { + } + private Builder(CpuAcct instance) { + this.controlGroup = instance.controlGroup; + this.usageNanos = instance.usageNanos; + + } /** * The cpuacct control group to which the Elasticsearch process * belongs. @@ -182,6 +189,12 @@ public CpuAcct build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java index 5ba102336a..4409eb2223 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/DataPathStats.java @@ -436,6 +436,27 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String type; + public Builder() { + } + private Builder(DataPathStats instance) { + this.available = instance.available; + this.availableInBytes = instance.availableInBytes; + this.diskQueue = instance.diskQueue; + this.diskReads = instance.diskReads; + this.diskReadSize = instance.diskReadSize; + this.diskReadSizeInBytes = instance.diskReadSizeInBytes; + this.diskWrites = instance.diskWrites; + this.diskWriteSize = instance.diskWriteSize; + this.diskWriteSizeInBytes = instance.diskWriteSizeInBytes; + this.free = instance.free; + this.freeInBytes = instance.freeInBytes; + this.mount = instance.mount; + this.path = instance.path; + this.total = instance.total; + this.totalInBytes = instance.totalInBytes; + this.type = instance.type; + + } /** * Total amount of disk space available to this Java virtual machine on this * file store. @@ -602,6 +623,12 @@ public DataPathStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java index 02b94ebb41..40c27d0633 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Discovery.java @@ -213,6 +213,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ClusterAppliedStats clusterApplierStats; + public Builder() { + } + private Builder(Discovery instance) { + this.clusterStateQueue = instance.clusterStateQueue; + this.publishedClusterStates = instance.publishedClusterStates; + this.clusterStateUpdate = instance.clusterStateUpdate; + this.serializedClusterStates = instance.serializedClusterStates; + this.clusterApplierStats = instance.clusterApplierStats; + + } /** * Contains statistics for the cluster state queue of the node. *

                                                                                                        @@ -357,6 +367,12 @@ public Discovery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java index 02cc0ef236..9c8618589e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesAsyncClient.java @@ -24,6 +24,7 @@ import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.util.ObjectBuilder; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java index ed56c42f21..b7a48989ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ElasticsearchNodesClient.java @@ -25,6 +25,7 @@ import co.elastic.clients.transport.ElasticsearchTransport; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; import co.elastic.clients.transport.TransportOptions; import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.util.ObjectBuilder; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java index 2ef3de80d2..1e3da2fc40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ExtendedMemoryStats.java @@ -127,6 +127,13 @@ public static class Builder extends MemoryStats.AbstractBuilder @Nullable private Integer usedPercent; + public Builder() { + } + private Builder(ExtendedMemoryStats instance) { + this.freePercent = instance.freePercent; + this.usedPercent = instance.usedPercent; + + } /** * Percentage of free memory. *

                                                                                                        @@ -165,6 +172,12 @@ public ExtendedMemoryStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java index 4572365473..a37581d10b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystem.java @@ -189,6 +189,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IoStats ioStats; + public Builder() { + } + private Builder(FileSystem instance) { + this.data = instance.data; + this.timestamp = instance.timestamp; + this.total = instance.total; + this.ioStats = instance.ioStats; + + } /** * List of all file stores. *

                                                                                                        @@ -291,6 +300,12 @@ public FileSystem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java index efabe8958a..e90864440d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/FileSystemTotal.java @@ -234,6 +234,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalInBytes; + public Builder() { + } + private Builder(FileSystemTotal instance) { + this.available = instance.available; + this.availableInBytes = instance.availableInBytes; + this.free = instance.free; + this.freeInBytes = instance.freeInBytes; + this.total = instance.total; + this.totalInBytes = instance.totalInBytes; + + } /** * Total disk space available to this Java virtual machine on all file stores. * Depending on OS or process level restrictions, this might appear less than @@ -318,6 +329,12 @@ public FileSystemTotal build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java index 698b21acb1..2b8408fbd8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollector.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map collectors; + public Builder() { + } + private Builder(GarbageCollector instance) { + this.collectors = instance.collectors; + + } /** * Contains statistics about JVM garbage collectors for the node. *

                                                                                                        @@ -177,6 +183,12 @@ public GarbageCollector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java index 80907907e3..07b7c0ba87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GarbageCollectorTotal.java @@ -165,6 +165,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long collectionTimeInMillis; + public Builder() { + } + private Builder(GarbageCollectorTotal instance) { + this.collectionCount = instance.collectionCount; + this.collectionTime = instance.collectionTime; + this.collectionTimeInMillis = instance.collectionTimeInMillis; + + } /** * Total number of JVM garbage collectors that collect objects. *

                                                                                                        @@ -213,6 +221,12 @@ public GarbageCollectorTotal build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java index a8d5059c01..32fb41ff1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/GetRepositoriesMeteringInfoRequest.java @@ -108,6 +108,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List nodeId; + public Builder() { + } + private Builder(GetRepositoriesMeteringInfoRequest instance) { + this.nodeId = instance.nodeId; + + } /** * Required - Comma-separated list of node IDs or names used to limit returned * information. @@ -152,6 +158,12 @@ public GetRepositoriesMeteringInfoRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java index ce3a360360..a66401087c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HotThreadsRequest.java @@ -23,19 +23,24 @@ import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.ThreadType; import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.transport.Endpoint; import co.elastic.clients.transport.endpoints.SimpleEndpoint; -import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.transport.endpoints.TextEndpoint; +import co.elastic.clients.transport.endpoints.TextResponse; import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; - +import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.Long; import java.lang.String; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Nullable; @@ -224,6 +229,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private ThreadType type; + public Builder() { + } + private Builder(HotThreadsRequest instance) { + this.ignoreIdleThreads = instance.ignoreIdleThreads; + this.interval = instance.interval; + this.nodeId = instance.nodeId; + this.snapshots = instance.snapshots; + this.sort = instance.sort; + this.threads = instance.threads; + this.timeout = instance.timeout; + this.type = instance.type; + + } /** * If true, known idle threads (e.g. waiting in a socket select, or to get a * task from an empty queue) are filtered out. @@ -357,6 +375,12 @@ public HotThreadsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java index 7fba56526c..570066f995 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Http.java @@ -198,6 +198,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map routes; + public Builder() { + } + private Builder(Http instance) { + this.currentOpen = instance.currentOpen; + this.totalOpened = instance.totalOpened; + this.clients = instance.clients; + this.routes = instance.routes; + + } /** * Current number of open HTTP connections for the node. *

                                                                                                        @@ -315,6 +324,12 @@ public Http build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRoute.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRoute.java index c87e6ab49f..9e70c07e2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRoute.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRoute.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private HttpRouteResponses responses; + public Builder() { + } + private Builder(HttpRoute instance) { + this.requests = instance.requests; + this.responses = instance.responses; + + } /** * Required - API name: {@code requests} */ @@ -172,6 +179,12 @@ public HttpRoute build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteRequests.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteRequests.java index 99701d1ba2..fafacbca55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteRequests.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteRequests.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List sizeHistogram; + public Builder() { + } + private Builder(HttpRouteRequests instance) { + this.count = instance.count; + this.totalSizeInBytes = instance.totalSizeInBytes; + this.sizeHistogram = instance.sizeHistogram; + + } /** * Required - API name: {@code count} */ @@ -212,6 +220,12 @@ public HttpRouteRequests build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteResponses.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteResponses.java index 860a9417fb..b3fe2a54dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteResponses.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/HttpRouteResponses.java @@ -174,6 +174,15 @@ public static class Builder extends WithJsonObjectBuilderBase private List sizeHistogram; + public Builder() { + } + private Builder(HttpRouteResponses instance) { + this.count = instance.count; + this.totalSizeInBytes = instance.totalSizeInBytes; + this.handlingTimeHistogram = instance.handlingTimeHistogram; + this.sizeHistogram = instance.sizeHistogram; + + } /** * Required - API name: {@code count} */ @@ -267,6 +276,12 @@ public HttpRouteResponses build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java index 82d22c4cec..0467f9ebd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressure.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexingPressureMemory memory; + public Builder() { + } + private Builder(IndexingPressure instance) { + this.memory = instance.memory; + + } /** * Contains statistics for memory consumption from indexing load. *

                                                                                                        @@ -154,6 +160,12 @@ public IndexingPressure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java index a1b1bf3abb..3934998cfa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IndexingPressureMemory.java @@ -189,6 +189,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private PressureMemory total; + public Builder() { + } + private Builder(IndexingPressureMemory instance) { + this.limit = instance.limit; + this.limitInBytes = instance.limitInBytes; + this.current = instance.current; + this.total = instance.total; + + } /** * Configured memory limit for the indexing requests. Replica requests have an * automatic limit that is 1.5x this value. @@ -267,6 +276,12 @@ public IndexingPressureMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java index bece8ac0b3..d107b266ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Ingest.java @@ -145,6 +145,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IngestTotal total; + public Builder() { + } + private Builder(Ingest instance) { + this.pipelines = instance.pipelines; + this.total = instance.total; + + } /** * Contains statistics about ingest pipelines for the node. *

                                                                                                        @@ -217,6 +224,12 @@ public Ingest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestStats.java index 87d77ca306..7bc5bed76f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestStats.java @@ -247,6 +247,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long producedAsFirstPipelineInBytes; + public Builder() { + } + private Builder(IngestStats instance) { + this.count = instance.count; + this.current = instance.current; + this.failed = instance.failed; + this.processors = instance.processors; + this.timeInMillis = instance.timeInMillis; + this.ingestedAsFirstPipelineInBytes = instance.ingestedAsFirstPipelineInBytes; + this.producedAsFirstPipelineInBytes = instance.producedAsFirstPipelineInBytes; + + } /** * Required - Total number of documents ingested during the lifetime of this * node. @@ -362,6 +374,12 @@ public IngestStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java index 44465d2e4e..70ea589d0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IngestTotal.java @@ -165,6 +165,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long timeInMillis; + public Builder() { + } + private Builder(IngestTotal instance) { + this.count = instance.count; + this.current = instance.current; + this.failed = instance.failed; + this.timeInMillis = instance.timeInMillis; + + } /** * Required - Total number of documents ingested during the lifetime of this * node. @@ -226,6 +235,12 @@ public IngestTotal build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java index a9be3139d8..5975bfc15b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStatDevice.java @@ -233,6 +233,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long writeOperations; + public Builder() { + } + private Builder(IoStatDevice instance) { + this.deviceName = instance.deviceName; + this.operations = instance.operations; + this.readKilobytes = instance.readKilobytes; + this.readOperations = instance.readOperations; + this.writeKilobytes = instance.writeKilobytes; + this.writeOperations = instance.writeOperations; + + } /** * The Linux device name. *

                                                                                                        @@ -316,6 +327,12 @@ public IoStatDevice build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java index 5120404840..01906bf975 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/IoStats.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IoStatDevice total; + public Builder() { + } + private Builder(IoStats instance) { + this.devices = instance.devices; + this.total = instance.total; + + } /** * Array of disk metrics for each device that is backing an Elasticsearch data * path. These disk metrics are probed periodically and averages between the @@ -226,6 +233,12 @@ public IoStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java index 4a0306de9c..886dc9fe63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Jvm.java @@ -279,6 +279,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long uptimeInMillis; + public Builder() { + } + private Builder(Jvm instance) { + this.bufferPools = instance.bufferPools; + this.classes = instance.classes; + this.gc = instance.gc; + this.mem = instance.mem; + this.threads = instance.threads; + this.timestamp = instance.timestamp; + this.uptime = instance.uptime; + this.uptimeInMillis = instance.uptimeInMillis; + + } /** * Contains statistics about JVM buffer pools for the node. *

                                                                                                        @@ -440,6 +453,12 @@ public Jvm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java index b06426fd20..ed2354d5d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmClasses.java @@ -161,6 +161,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalUnloadedCount; + public Builder() { + } + private Builder(JvmClasses instance) { + this.currentLoadedCount = instance.currentLoadedCount; + this.totalLoadedCount = instance.totalLoadedCount; + this.totalUnloadedCount = instance.totalUnloadedCount; + + } /** * Number of classes currently loaded by JVM. *

                                                                                                        @@ -209,6 +217,12 @@ public JvmClasses build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java index 93888f92df..3bc7bdb976 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmMemoryStats.java @@ -278,6 +278,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map pools; + public Builder() { + } + private Builder(JvmMemoryStats instance) { + this.heapUsedInBytes = instance.heapUsedInBytes; + this.heapUsedPercent = instance.heapUsedPercent; + this.heapCommittedInBytes = instance.heapCommittedInBytes; + this.heapMaxInBytes = instance.heapMaxInBytes; + this.heapMax = instance.heapMax; + this.nonHeapUsedInBytes = instance.nonHeapUsedInBytes; + this.nonHeapCommittedInBytes = instance.nonHeapCommittedInBytes; + this.pools = instance.pools; + + } /** * Memory, in bytes, currently in use by the heap. *

                                                                                                        @@ -401,6 +414,12 @@ public JvmMemoryStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java index 53319a3e4d..cfe0cb5d39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/JvmThreads.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long peakCount; + public Builder() { + } + private Builder(JvmThreads instance) { + this.count = instance.count; + this.peakCount = instance.peakCount; + + } /** * Number of active threads in use by JVM. *

                                                                                                        @@ -177,6 +184,12 @@ public JvmThreads build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java index c4b886800e..0c0e6931af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/KeyedProcessor.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String type; + public Builder() { + } + private Builder(KeyedProcessor instance) { + this.stats = instance.stats; + this.type = instance.type; + + } /** * API name: {@code stats} */ @@ -176,6 +183,12 @@ public KeyedProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java index e1fc3f3861..072e8d2660 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeBufferPool.java @@ -206,6 +206,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long usedInBytes; + public Builder() { + } + private Builder(NodeBufferPool instance) { + this.count = instance.count; + this.totalCapacity = instance.totalCapacity; + this.totalCapacityInBytes = instance.totalCapacityInBytes; + this.used = instance.used; + this.usedInBytes = instance.usedInBytes; + + } /** * Number of buffer pools. *

                                                                                                        @@ -274,6 +284,12 @@ public NodeBufferPool build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java index 8da4fcda73..d83ea3e765 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodeReloadResult.java @@ -224,6 +224,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DateTime keystoreLastModifiedTime; + public Builder() { + } + private Builder(NodeReloadResult instance) { + this.name = instance.name; + this.reloadException = instance.reloadException; + this.secureSettingNames = instance.secureSettingNames; + this.keystorePath = instance.keystorePath; + this.keystoreDigest = instance.keystoreDigest; + this.keystoreLastModifiedTime = instance.keystoreLastModifiedTime; + + } /** * Required - API name: {@code name} */ @@ -319,6 +330,12 @@ public NodeReloadResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java index 037e382525..2d41a2f183 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesInfoRequest.java @@ -156,6 +156,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(NodesInfoRequest instance) { + this.flatSettings = instance.flatSettings; + this.metric = instance.metric; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + + } /** * If true, returns settings in flat format. *

                                                                                                        @@ -255,6 +264,12 @@ public NodesInfoRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java index 465efbcb7a..15a7c9e242 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesStatsRequest.java @@ -290,6 +290,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List types; + public Builder() { + } + private Builder(NodesStatsRequest instance) { + this.completionFields = instance.completionFields; + this.fielddataFields = instance.fielddataFields; + this.fields = instance.fields; + this.groups = instance.groups; + this.includeSegmentFileSizes = instance.includeSegmentFileSizes; + this.includeUnloadedSegments = instance.includeUnloadedSegments; + this.indexMetric = instance.indexMetric; + this.level = instance.level; + this.metric = instance.metric; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + this.types = instance.types; + + } /** * Comma-separated list or wildcard expressions of fields to include in * fielddata and suggest statistics. @@ -548,6 +565,12 @@ public NodesStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java index ecfa6c53d0..3e6263eb70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesUsageRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(NodesUsageRequest instance) { + this.metric = instance.metric; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + + } /** * Limits the information returned to the specific metrics. A comma-separated * list of the following options: _all, rest_actions, @@ -233,6 +241,12 @@ public NodesUsageRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java index e567ef0afc..e99ac60fb9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/OperatingSystem.java @@ -195,6 +195,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timestamp; + public Builder() { + } + private Builder(OperatingSystem instance) { + this.cpu = instance.cpu; + this.mem = instance.mem; + this.swap = instance.swap; + this.cgroup = instance.cgroup; + this.timestamp = instance.timestamp; + + } /** * API name: {@code cpu} */ @@ -281,6 +291,12 @@ public OperatingSystem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java index 33aba06f26..c59f654dee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Pool.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long peakMaxInBytes; + public Builder() { + } + private Builder(Pool instance) { + this.usedInBytes = instance.usedInBytes; + this.maxInBytes = instance.maxInBytes; + this.peakUsedInBytes = instance.peakUsedInBytes; + this.peakMaxInBytes = instance.peakMaxInBytes; + + } /** * Memory, in bytes, used by the heap. *

                                                                                                        @@ -241,6 +250,12 @@ public Pool build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java index e68c1647f3..b036940d8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PressureMemory.java @@ -429,6 +429,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long largeOperationRejections; + public Builder() { + } + private Builder(PressureMemory instance) { + this.all = instance.all; + this.allInBytes = instance.allInBytes; + this.combinedCoordinatingAndPrimary = instance.combinedCoordinatingAndPrimary; + this.combinedCoordinatingAndPrimaryInBytes = instance.combinedCoordinatingAndPrimaryInBytes; + this.coordinating = instance.coordinating; + this.coordinatingInBytes = instance.coordinatingInBytes; + this.primary = instance.primary; + this.primaryInBytes = instance.primaryInBytes; + this.replica = instance.replica; + this.replicaInBytes = instance.replicaInBytes; + this.coordinatingRejections = instance.coordinatingRejections; + this.primaryRejections = instance.primaryRejections; + this.replicaRejections = instance.replicaRejections; + this.primaryDocumentRejections = instance.primaryDocumentRejections; + this.largeOperationRejections = instance.largeOperationRejections; + + } /** * Memory consumed by indexing requests in the coordinating, primary, or replica * stage. @@ -600,6 +620,12 @@ public PressureMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java index bfb9cc0758..dbc72d758f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Process.java @@ -209,6 +209,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timestamp; + public Builder() { + } + private Builder(Process instance) { + this.cpu = instance.cpu; + this.mem = instance.mem; + this.openFileDescriptors = instance.openFileDescriptors; + this.maxFileDescriptors = instance.maxFileDescriptors; + this.timestamp = instance.timestamp; + + } /** * Contains CPU statistics for the node. *

                                                                                                        @@ -298,6 +308,12 @@ public Process build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java index a9b3af1d83..3ec5f1db7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Processor.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timeInMillis; + public Builder() { + } + private Builder(Processor instance) { + this.count = instance.count; + this.current = instance.current; + this.failed = instance.failed; + this.timeInMillis = instance.timeInMillis; + + } /** * Number of documents transformed by the processor. *

                                                                                                        @@ -241,6 +250,12 @@ public Processor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java index dccab7a230..dab1c80623 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/PublishedClusterStates.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long compatibleDiffs; + public Builder() { + } + private Builder(PublishedClusterStates instance) { + this.fullStates = instance.fullStates; + this.incompatibleDiffs = instance.incompatibleDiffs; + this.compatibleDiffs = instance.compatibleDiffs; + + } /** * Number of published cluster states. *

                                                                                                        @@ -212,6 +220,12 @@ public PublishedClusterStates build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java index 175b2c419c..4ba2a8527e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Recording.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long cumulativeExecutionTimeMillis; + public Builder() { + } + private Builder(Recording instance) { + this.name = instance.name; + this.cumulativeExecutionCount = instance.cumulativeExecutionCount; + this.cumulativeExecutionTime = instance.cumulativeExecutionTime; + this.cumulativeExecutionTimeMillis = instance.cumulativeExecutionTimeMillis; + + } /** * API name: {@code name} */ @@ -234,6 +243,12 @@ public Recording build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java index b97d633cc1..7251c45748 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ReloadSecureSettingsRequest.java @@ -172,6 +172,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ReloadSecureSettingsRequest instance) { + this.nodeId = instance.nodeId; + this.secureSettingsPassword = instance.secureSettingsPassword; + this.timeout = instance.timeout; + + } /** * The names of particular nodes in the cluster to target. *

                                                                                                        @@ -245,6 +253,12 @@ public ReloadSecureSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java index 5c93ac83af..b142fe2ad6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryLocation.java @@ -157,6 +157,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String bucket; + public Builder() { + } + private Builder(RepositoryLocation instance) { + this.basePath = instance.basePath; + this.container = instance.container; + this.bucket = instance.bucket; + + } /** * Required - API name: {@code base_path} */ @@ -203,6 +211,12 @@ public RepositoryLocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java index f9df9c39b1..48f6d4f5e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RepositoryMeteringInformation.java @@ -276,6 +276,20 @@ public static class Builder extends WithJsonObjectBuilderBase private RequestCounts requestCounts; + public Builder() { + } + private Builder(RepositoryMeteringInformation instance) { + this.repositoryName = instance.repositoryName; + this.repositoryType = instance.repositoryType; + this.repositoryLocation = instance.repositoryLocation; + this.repositoryEphemeralId = instance.repositoryEphemeralId; + this.repositoryStartedAt = instance.repositoryStartedAt; + this.repositoryStoppedAt = instance.repositoryStoppedAt; + this.archived = instance.archived; + this.clusterVersion = instance.clusterVersion; + this.requestCounts = instance.requestCounts; + + } /** * Required - Repository name. *

                                                                                                        @@ -415,6 +429,12 @@ public RepositoryMeteringInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java index 282dd7d9f7..017ae9731c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/RequestCounts.java @@ -341,6 +341,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long putmultipartobject; + public Builder() { + } + private Builder(RequestCounts instance) { + this.getblobproperties = instance.getblobproperties; + this.getblob = instance.getblob; + this.listblobs = instance.listblobs; + this.putblob = instance.putblob; + this.putblock = instance.putblock; + this.putblocklist = instance.putblocklist; + this.getobject = instance.getobject; + this.listobjects = instance.listobjects; + this.insertobject = instance.insertobject; + this.putobject = instance.putobject; + this.putmultipartobject = instance.putmultipartobject; + + } /** * Number of Get Blob Properties requests (Azure) *

                                                                                                        @@ -473,6 +489,12 @@ public RequestCounts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java index 2c6410223b..382106e655 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ScriptCache.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String context; + public Builder() { + } + private Builder(ScriptCache instance) { + this.cacheEvictions = instance.cacheEvictions; + this.compilationLimitTriggered = instance.compilationLimitTriggered; + this.compilations = instance.compilations; + this.context = instance.context; + + } /** * Total number of times the script cache has evicted old data. *

                                                                                                        @@ -240,6 +249,12 @@ public ScriptCache build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java index 14d1fe8406..4597f838e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Scripting.java @@ -215,6 +215,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List contexts; + public Builder() { + } + private Builder(Scripting instance) { + this.cacheEvictions = instance.cacheEvictions; + this.compilations = instance.compilations; + this.compilationsHistory = instance.compilationsHistory; + this.compilationLimitTriggered = instance.compilationLimitTriggered; + this.contexts = instance.contexts; + + } /** * Total number of times the script cache has evicted old data. *

                                                                                                        @@ -317,6 +327,12 @@ public Scripting build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java index a8b647f5e5..e183ae218e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterState.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private SerializedClusterStateDetail diffs; + public Builder() { + } + private Builder(SerializedClusterState instance) { + this.fullStates = instance.fullStates; + this.diffs = instance.diffs; + + } /** * Number of published cluster states. *

                                                                                                        @@ -193,6 +200,12 @@ public SerializedClusterState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java index aefa9d9128..6e32c76296 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SerializedClusterStateDetail.java @@ -199,6 +199,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long compressedSizeInBytes; + public Builder() { + } + private Builder(SerializedClusterStateDetail instance) { + this.count = instance.count; + this.uncompressedSize = instance.uncompressedSize; + this.uncompressedSizeInBytes = instance.uncompressedSizeInBytes; + this.compressedSize = instance.compressedSize; + this.compressedSizeInBytes = instance.compressedSizeInBytes; + + } /** * API name: {@code count} */ @@ -257,6 +267,12 @@ public SerializedClusterStateDetail build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SizeHttpHistogram.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SizeHttpHistogram.java index 0675d0dc4f..ac4d0b2121 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SizeHttpHistogram.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/SizeHttpHistogram.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long ltBytes; + public Builder() { + } + private Builder(SizeHttpHistogram instance) { + this.count = instance.count; + this.geBytes = instance.geBytes; + this.ltBytes = instance.ltBytes; + + } /** * Required - API name: {@code count} */ @@ -193,6 +201,12 @@ public SizeHttpHistogram build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java index 6c3546eda8..59e6006b68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java @@ -617,6 +617,33 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ShardStats indices; + public Builder() { + } + private Builder(Stats instance) { + this.adaptiveSelection = instance.adaptiveSelection; + this.breakers = instance.breakers; + this.fs = instance.fs; + this.host = instance.host; + this.http = instance.http; + this.ingest = instance.ingest; + this.ip = instance.ip; + this.jvm = instance.jvm; + this.name = instance.name; + this.os = instance.os; + this.process = instance.process; + this.roles = instance.roles; + this.script = instance.script; + this.scriptCache = instance.scriptCache; + this.threadPool = instance.threadPool; + this.timestamp = instance.timestamp; + this.transport = instance.transport; + this.transportAddress = instance.transportAddress; + this.attributes = instance.attributes; + this.discovery = instance.discovery; + this.indexingPressure = instance.indexingPressure; + this.indices = instance.indices; + + } /** * Statistics about adaptive replica selection. *

                                                                                                        @@ -1088,6 +1115,12 @@ public Stats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java index 4cf3d23214..51128b869b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/ThreadCount.java @@ -227,6 +227,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long threads; + public Builder() { + } + private Builder(ThreadCount instance) { + this.active = instance.active; + this.completed = instance.completed; + this.largest = instance.largest; + this.queue = instance.queue; + this.rejected = instance.rejected; + this.threads = instance.threads; + + } /** * Number of active threads in the thread pool. *

                                                                                                        @@ -305,6 +316,12 @@ public ThreadCount build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TimeHttpHistogram.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TimeHttpHistogram.java index 172044ef6f..acef22c28a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TimeHttpHistogram.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TimeHttpHistogram.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long ltMillis; + public Builder() { + } + private Builder(TimeHttpHistogram instance) { + this.count = instance.count; + this.geMillis = instance.geMillis; + this.ltMillis = instance.ltMillis; + + } /** * Required - API name: {@code count} */ @@ -193,6 +201,12 @@ public TimeHttpHistogram build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java index 21b288fb59..324467b10b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Transport.java @@ -337,6 +337,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalOutboundConnections; + public Builder() { + } + private Builder(Transport instance) { + this.inboundHandlingTimeHistogram = instance.inboundHandlingTimeHistogram; + this.outboundHandlingTimeHistogram = instance.outboundHandlingTimeHistogram; + this.rxCount = instance.rxCount; + this.rxSize = instance.rxSize; + this.rxSizeInBytes = instance.rxSizeInBytes; + this.serverOpen = instance.serverOpen; + this.txCount = instance.txCount; + this.txSize = instance.txSize; + this.txSizeInBytes = instance.txSizeInBytes; + this.totalOutboundConnections = instance.totalOutboundConnections; + + } /** * The distribution of the time spent handling each inbound message on a * transport thread, represented as a histogram. @@ -527,6 +542,12 @@ public Transport build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java index 20c05a970e..d5e4dea152 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/TransportHistogram.java @@ -166,6 +166,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long geMillis; + public Builder() { + } + private Builder(TransportHistogram instance) { + this.count = instance.count; + this.ltMillis = instance.ltMillis; + this.geMillis = instance.geMillis; + + } /** * The number of times a transport thread took a period of time within the * bounds of this bucket to handle an inbound message. @@ -217,6 +225,12 @@ public TransportHistogram build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java index 86a53a1aa6..f467f240ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/DeprecationIndexing.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(DeprecationIndexing instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -138,6 +144,12 @@ public DeprecationIndexing build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java index 90d74d6fb7..ce75035766 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java @@ -632,6 +632,38 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RemoveClusterServer remoteClusterServer; + public Builder() { + } + private Builder(NodeInfo instance) { + this.attributes = instance.attributes; + this.buildFlavor = instance.buildFlavor; + this.buildHash = instance.buildHash; + this.buildType = instance.buildType; + this.componentVersions = instance.componentVersions; + this.host = instance.host; + this.http = instance.http; + this.indexVersion = instance.indexVersion; + this.ip = instance.ip; + this.jvm = instance.jvm; + this.name = instance.name; + this.os = instance.os; + this.plugins = instance.plugins; + this.process = instance.process; + this.roles = instance.roles; + this.settings = instance.settings; + this.threadPool = instance.threadPool; + this.totalIndexingBuffer = instance.totalIndexingBuffer; + this.totalIndexingBufferInBytes = instance.totalIndexingBufferInBytes; + this.transport = instance.transport; + this.transportAddress = instance.transportAddress; + this.transportVersion = instance.transportVersion; + this.version = instance.version; + this.modules = instance.modules; + this.ingest = instance.ingest; + this.aggregations = instance.aggregations; + this.remoteClusterServer = instance.remoteClusterServer; + + } /** * Required - API name: {@code attributes} *

                                                                                                        @@ -1063,6 +1095,12 @@ public NodeInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java index 6c00d9d0d4..1dac672da0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAction.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String destructiveRequiresName; + public Builder() { + } + private Builder(NodeInfoAction instance) { + this.destructiveRequiresName = instance.destructiveRequiresName; + + } /** * Required - API name: {@code destructive_requires_name} */ @@ -137,6 +143,12 @@ public NodeInfoAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java index 3d5da2ea3f..f55e121201 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoAggregation.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List types; + public Builder() { + } + private Builder(NodeInfoAggregation instance) { + this.types = instance.types; + + } /** * Required - API name: {@code types} *

                                                                                                        @@ -160,6 +166,12 @@ public NodeInfoAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java index b0373372f0..2902b2d0bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoBootstrap.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String memoryLock; + public Builder() { + } + private Builder(NodeInfoBootstrap instance) { + this.memoryLock = instance.memoryLock; + + } /** * Required - API name: {@code memory_lock} */ @@ -136,6 +142,12 @@ public NodeInfoBootstrap build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java index 23df2b849f..048c153cbb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoClient.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String type; + public Builder() { + } + private Builder(NodeInfoClient instance) { + this.type = instance.type; + + } /** * Required - API name: {@code type} */ @@ -136,6 +142,12 @@ public NodeInfoClient build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java index 11e06bac8d..72d12a00f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoDiscover.java @@ -206,6 +206,14 @@ public final Builder settings(String key, JsonData value) { @Nullable private List seedProviders; + public Builder() { + } + private Builder(NodeInfoDiscover instance) { + this.seedHosts = instance.seedHosts; + this.type = instance.type; + this.seedProviders = instance.seedProviders; + + } /** * API name: {@code seed_hosts} *

                                                                                                        @@ -272,6 +280,12 @@ public NodeInfoDiscover build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java index d85e458b8f..e8bc7390c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoHttp.java @@ -170,6 +170,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String publishAddress; + public Builder() { + } + private Builder(NodeInfoHttp instance) { + this.boundAddress = instance.boundAddress; + this.maxContentLength = instance.maxContentLength; + this.maxContentLengthInBytes = instance.maxContentLengthInBytes; + this.publishAddress = instance.publishAddress; + + } /** * Required - API name: {@code bound_address} *

                                                                                                        @@ -232,6 +241,12 @@ public NodeInfoHttp build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java index 9c362d62af..4110e25afa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngest.java @@ -118,6 +118,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List processors; + public Builder() { + } + private Builder(NodeInfoIngest instance) { + this.processors = instance.processors; + + } /** * Required - API name: {@code processors} *

                                                                                                        @@ -166,6 +172,12 @@ public NodeInfoIngest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java index e6767efb49..3795f69783 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestDownloader.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String enabled; + public Builder() { + } + private Builder(NodeInfoIngestDownloader instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -139,6 +145,12 @@ public NodeInfoIngestDownloader build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java index 73d0b08485..700dacc8c3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestInfo.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private NodeInfoIngestDownloader downloader; + public Builder() { + } + private Builder(NodeInfoIngestInfo instance) { + this.downloader = instance.downloader; + + } /** * Required - API name: {@code downloader} */ @@ -146,6 +152,12 @@ public NodeInfoIngestInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java index b7b72e8ac1..c2f84fd018 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoIngestProcessor.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String type; + public Builder() { + } + private Builder(NodeInfoIngestProcessor instance) { + this.type = instance.type; + + } /** * Required - API name: {@code type} */ @@ -139,6 +145,12 @@ public NodeInfoIngestProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java index a2b19514fa..35a5e3c772 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoJvmMemory.java @@ -272,6 +272,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long nonHeapMaxInBytes; + public Builder() { + } + private Builder(NodeInfoJvmMemory instance) { + this.directMax = instance.directMax; + this.directMaxInBytes = instance.directMaxInBytes; + this.heapInit = instance.heapInit; + this.heapInitInBytes = instance.heapInitInBytes; + this.heapMax = instance.heapMax; + this.heapMaxInBytes = instance.heapMaxInBytes; + this.nonHeapInit = instance.nonHeapInit; + this.nonHeapInitInBytes = instance.nonHeapInitInBytes; + this.nonHeapMax = instance.nonHeapMax; + this.nonHeapMaxInBytes = instance.nonHeapMaxInBytes; + + } /** * API name: {@code direct_max} */ @@ -370,6 +385,12 @@ public NodeInfoJvmMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java index 685ad8654c..5ed30af006 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoMemory.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalInBytes; + public Builder() { + } + private Builder(NodeInfoMemory instance) { + this.total = instance.total; + this.totalInBytes = instance.totalInBytes; + + } /** * Required - API name: {@code total} */ @@ -160,6 +167,12 @@ public NodeInfoMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java index bd78b3a100..e9a9c9ea32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoOSCPU.java @@ -216,6 +216,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String vendor; + public Builder() { + } + private Builder(NodeInfoOSCPU instance) { + this.cacheSize = instance.cacheSize; + this.cacheSizeInBytes = instance.cacheSizeInBytes; + this.coresPerSocket = instance.coresPerSocket; + this.mhz = instance.mhz; + this.model = instance.model; + this.totalCores = instance.totalCores; + this.totalSockets = instance.totalSockets; + this.vendor = instance.vendor; + + } /** * Required - API name: {@code cache_size} */ @@ -298,6 +311,12 @@ public NodeInfoOSCPU build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java index 1cb88dc98e..383d9a7b52 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoPath.java @@ -183,6 +183,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List data; + public Builder() { + } + private Builder(NodeInfoPath instance) { + this.logs = instance.logs; + this.home = instance.home; + this.repo = instance.repo; + this.data = instance.data; + + } /** * API name: {@code logs} */ @@ -257,6 +266,12 @@ public NodeInfoPath build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java index 231927c9b6..82813e350d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositories.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private NodeInfoRepositoriesUrl url; + public Builder() { + } + private Builder(NodeInfoRepositories instance) { + this.url = instance.url; + + } /** * Required - API name: {@code url} */ @@ -145,6 +151,12 @@ public NodeInfoRepositories build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java index f0e72f4562..82bccf4ce0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoRepositoriesUrl.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String allowedUrls; + public Builder() { + } + private Builder(NodeInfoRepositoriesUrl instance) { + this.allowedUrls = instance.allowedUrls; + + } /** * Required - API name: {@code allowed_urls} */ @@ -139,6 +145,12 @@ public NodeInfoRepositoriesUrl build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java index 25e65781ce..90a810e36e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoScript.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String disableMaxCompilationsRate; + public Builder() { + } + private Builder(NodeInfoScript instance) { + this.allowedTypes = instance.allowedTypes; + this.disableMaxCompilationsRate = instance.disableMaxCompilationsRate; + + } /** * Required - API name: {@code allowed_types} */ @@ -165,6 +172,12 @@ public NodeInfoScript build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java index a2c5730f7b..dc8e77db4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearch.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private NodeInfoSearchRemote remote; + public Builder() { + } + private Builder(NodeInfoSearch instance) { + this.remote = instance.remote; + + } /** * Required - API name: {@code remote} */ @@ -142,6 +148,12 @@ public NodeInfoSearch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java index 33602fb21c..37ab8897e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSearchRemote.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String connect; + public Builder() { + } + private Builder(NodeInfoSearchRemote instance) { + this.connect = instance.connect; + + } /** * Required - API name: {@code connect} */ @@ -139,6 +145,12 @@ public NodeInfoSearchRemote build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java index 769a757e1d..95097c6564 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettings.java @@ -375,6 +375,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private NodeInfoSettingsIngest ingest; + public Builder() { + } + private Builder(NodeInfoSettings instance) { + this.cluster = instance.cluster; + this.node = instance.node; + this.path = instance.path; + this.repositories = instance.repositories; + this.discovery = instance.discovery; + this.action = instance.action; + this.client = instance.client; + this.http = instance.http; + this.bootstrap = instance.bootstrap; + this.transport = instance.transport; + this.network = instance.network; + this.xpack = instance.xpack; + this.script = instance.script; + this.search = instance.search; + this.ingest = instance.ingest; + + } /** * Required - API name: {@code cluster} */ @@ -623,6 +643,12 @@ public NodeInfoSettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java index 17c3f2bed5..f8f1427fc5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsCluster.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DeprecationIndexing deprecationIndexing; + public Builder() { + } + private Builder(NodeInfoSettingsCluster instance) { + this.name = instance.name; + this.routing = instance.routing; + this.election = instance.election; + this.initialMasterNodes = instance.initialMasterNodes; + this.deprecationIndexing = instance.deprecationIndexing; + + } /** * Required - API name: {@code name} */ @@ -287,6 +297,12 @@ public NodeInfoSettingsCluster build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java index 290519d014..bdac77c5c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsClusterElection.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String strategy; + public Builder() { + } + private Builder(NodeInfoSettingsClusterElection instance) { + this.strategy = instance.strategy; + + } /** * Required - API name: {@code strategy} */ @@ -140,6 +146,12 @@ public NodeInfoSettingsClusterElection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java index 98377c3a45..1c27af8697 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttp.java @@ -175,6 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String port; + public Builder() { + } + private Builder(NodeInfoSettingsHttp instance) { + this.type = instance.type; + this.typeDefault = instance.typeDefault; + this.compression = instance.compression; + this.port = instance.port; + + } /** * Required - API name: {@code type} */ @@ -233,6 +242,12 @@ public NodeInfoSettingsHttp build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java index 44a1d37c3b..020efbd92b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsHttpType.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String default_; + public Builder() { + } + private Builder(NodeInfoSettingsHttpType instance) { + this.default_ = instance.default_; + + } /** * Required - API name: {@code default} */ @@ -139,6 +145,12 @@ public NodeInfoSettingsHttpType build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java index c301843abd..c280cf3ff6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsIngest.java @@ -777,6 +777,45 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private NodeInfoIngestInfo inference; + public Builder() { + } + private Builder(NodeInfoSettingsIngest instance) { + this.attachment = instance.attachment; + this.append = instance.append; + this.csv = instance.csv; + this.convert = instance.convert; + this.date = instance.date; + this.dateIndexName = instance.dateIndexName; + this.dotExpander = instance.dotExpander; + this.enrich = instance.enrich; + this.fail = instance.fail; + this.foreach = instance.foreach; + this.json = instance.json; + this.userAgent = instance.userAgent; + this.kv = instance.kv; + this.geoip = instance.geoip; + this.grok = instance.grok; + this.gsub = instance.gsub; + this.join = instance.join; + this.lowercase = instance.lowercase; + this.remove = instance.remove; + this.rename = instance.rename; + this.script = instance.script; + this.set = instance.set; + this.sort = instance.sort; + this.split = instance.split; + this.trim = instance.trim; + this.uppercase = instance.uppercase; + this.urldecode = instance.urldecode; + this.bytes = instance.bytes; + this.dissect = instance.dissect; + this.setSecurityUser = instance.setSecurityUser; + this.pipeline = instance.pipeline; + this.drop = instance.drop; + this.circle = instance.circle; + this.inference = instance.inference; + + } /** * API name: {@code attachment} */ @@ -1306,6 +1345,12 @@ public NodeInfoSettingsIngest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java index 6e32f6f0d4..bce87f6ba0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNetwork.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List host; + public Builder() { + } + private Builder(NodeInfoSettingsNetwork instance) { + this.host = instance.host; + + } /** * API name: {@code host} *

                                                                                                        @@ -161,6 +167,12 @@ public NodeInfoSettingsNetwork build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java index 1daa038141..f51d13a5e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsNode.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String maxLocalStorageNodes; + public Builder() { + } + private Builder(NodeInfoSettingsNode instance) { + this.name = instance.name; + this.attr = instance.attr; + this.maxLocalStorageNodes = instance.maxLocalStorageNodes; + + } /** * Required - API name: {@code name} */ @@ -213,6 +221,12 @@ public NodeInfoSettingsNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java index f52ed9260f..d3f0222835 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransport.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean ignoreDeserializationErrors; + public Builder() { + } + private Builder(NodeInfoSettingsTransport instance) { + this.type = instance.type; + this.typeDefault = instance.typeDefault; + this.features = instance.features; + this.ignoreDeserializationErrors = instance.ignoreDeserializationErrors; + + } /** * Required - API name: {@code type} */ @@ -245,6 +254,12 @@ public NodeInfoSettingsTransport build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java index 883690645b..79237233dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportFeatures.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String xPack; + public Builder() { + } + private Builder(NodeInfoSettingsTransportFeatures instance) { + this.xPack = instance.xPack; + + } /** * Required - API name: {@code x-pack} */ @@ -140,6 +146,12 @@ public NodeInfoSettingsTransportFeatures build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java index ed1557c04e..300a73c898 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoSettingsTransportType.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String default_; + public Builder() { + } + private Builder(NodeInfoSettingsTransportType instance) { + this.default_ = instance.default_; + + } /** * Required - API name: {@code default} */ @@ -139,6 +145,12 @@ public NodeInfoSettingsTransportType build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java index 798fe30223..57bd50e29a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoTransport.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map profiles; + public Builder() { + } + private Builder(NodeInfoTransport instance) { + this.boundAddress = instance.boundAddress; + this.publishAddress = instance.publishAddress; + this.profiles = instance.profiles; + + } /** * Required - API name: {@code bound_address} *

                                                                                                        @@ -224,6 +232,12 @@ public NodeInfoTransport build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java index 1c25d2a2ad..e1f9d66153 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpack.java @@ -177,6 +177,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private NodeInfoXpackMl ml; + public Builder() { + } + private Builder(NodeInfoXpack instance) { + this.license = instance.license; + this.security = instance.security; + this.notification = instance.notification; + this.ml = instance.ml; + + } /** * API name: {@code license} */ @@ -261,6 +270,12 @@ public NodeInfoXpack build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java index d13eabaea8..42afa5d53a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicense.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private NodeInfoXpackLicenseType selfGenerated; + public Builder() { + } + private Builder(NodeInfoXpackLicense instance) { + this.selfGenerated = instance.selfGenerated; + + } /** * Required - API name: {@code self_generated} */ @@ -146,6 +152,12 @@ public NodeInfoXpackLicense build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java index 130404ec66..29e46eb6e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackLicenseType.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String type; + public Builder() { + } + private Builder(NodeInfoXpackLicenseType instance) { + this.type = instance.type; + + } /** * Required - API name: {@code type} */ @@ -139,6 +145,12 @@ public NodeInfoXpackLicenseType build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackMl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackMl.java index a35a486e7c..bca30ada19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackMl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackMl.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean useAutoMachineMemoryPercent; + public Builder() { + } + private Builder(NodeInfoXpackMl instance) { + this.useAutoMachineMemoryPercent = instance.useAutoMachineMemoryPercent; + + } /** * API name: {@code use_auto_machine_memory_percent} */ @@ -141,6 +147,12 @@ public NodeInfoXpackMl build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java index f020268740..c78fe4fbc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java @@ -174,6 +174,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private NodeInfoXpackSecurityAuthc authc; + public Builder() { + } + private Builder(NodeInfoXpackSecurity instance) { + this.http = instance.http; + this.enabled = instance.enabled; + this.transport = instance.transport; + this.authc = instance.authc; + + } /** * API name: {@code http} */ @@ -248,6 +257,12 @@ public NodeInfoXpackSecurity build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java index 7a1e0fb73c..2715727877 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthc.java @@ -137,6 +137,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private NodeInfoXpackSecurityAuthcToken token; + public Builder() { + } + private Builder(NodeInfoXpackSecurityAuthc instance) { + this.realms = instance.realms; + this.token = instance.token; + + } /** * API name: {@code realms} */ @@ -187,6 +194,12 @@ public NodeInfoXpackSecurityAuthc build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java index bc4bac84ca..75fefcceac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealms.java @@ -173,6 +173,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map pki; + public Builder() { + } + private Builder(NodeInfoXpackSecurityAuthcRealms instance) { + this.file = instance.file; + this.native_ = instance.native_; + this.pki = instance.pki; + + } /** * API name: {@code file} *

                                                                                                        @@ -281,6 +289,12 @@ public NodeInfoXpackSecurityAuthcRealms build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java index 9897f54a88..907796a192 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcRealmsStatus.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String order; + public Builder() { + } + private Builder(NodeInfoXpackSecurityAuthcRealmsStatus instance) { + this.enabled = instance.enabled; + this.order = instance.order; + + } /** * API name: {@code enabled} */ @@ -168,6 +175,12 @@ public NodeInfoXpackSecurityAuthcRealmsStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java index d3cbb6508a..81abf16e30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurityAuthcToken.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String enabled; + public Builder() { + } + private Builder(NodeInfoXpackSecurityAuthcToken instance) { + this.enabled = instance.enabled; + + } /** * Required - API name: {@code enabled} */ @@ -140,6 +146,12 @@ public NodeInfoXpackSecurityAuthcToken build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java index 2e77952b40..7780d4afb7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecuritySsl.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Map ssl; + public Builder() { + } + private Builder(NodeInfoXpackSecuritySsl instance) { + this.ssl = instance.ssl; + + } /** * Required - API name: {@code ssl} *

                                                                                                        @@ -161,6 +167,12 @@ public NodeInfoXpackSecuritySsl build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java index 93fcbeac0e..7bf382b18c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeJvmInfo.java @@ -306,6 +306,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List inputArguments; + public Builder() { + } + private Builder(NodeJvmInfo instance) { + this.gcCollectors = instance.gcCollectors; + this.mem = instance.mem; + this.memoryPools = instance.memoryPools; + this.pid = instance.pid; + this.startTimeInMillis = instance.startTimeInMillis; + this.version = instance.version; + this.vmName = instance.vmName; + this.vmVendor = instance.vmVendor; + this.vmVersion = instance.vmVersion; + this.usingBundledJdk = instance.usingBundledJdk; + this.usingCompressedOrdinaryObjectPointers = instance.usingCompressedOrdinaryObjectPointers; + this.inputArguments = instance.inputArguments; + + } /** * Required - API name: {@code gc_collectors} *

                                                                                                        @@ -463,6 +480,12 @@ public NodeJvmInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java index 87d9fa26ff..5474bb457d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java @@ -287,6 +287,21 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private NodeInfoMemory swap; + public Builder() { + } + private Builder(NodeOperatingSystemInfo instance) { + this.arch = instance.arch; + this.availableProcessors = instance.availableProcessors; + this.allocatedProcessors = instance.allocatedProcessors; + this.name = instance.name; + this.prettyName = instance.prettyName; + this.refreshIntervalInMillis = instance.refreshIntervalInMillis; + this.version = instance.version; + this.cpu = instance.cpu; + this.mem = instance.mem; + this.swap = instance.swap; + + } /** * Required - Name of the JVM architecture (ex: amd64, x86) *

                                                                                                        @@ -420,6 +435,12 @@ public NodeOperatingSystemInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java index 9225b06974..b2ccf053eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java @@ -148,6 +148,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long refreshIntervalInMillis; + public Builder() { + } + private Builder(NodeProcessInfo instance) { + this.id = instance.id; + this.mlockall = instance.mlockall; + this.refreshIntervalInMillis = instance.refreshIntervalInMillis; + + } /** * Required - Process identifier (PID) *

                                                                                                        @@ -197,6 +205,12 @@ public NodeProcessInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java index 5bbb1d7e22..909d5b45aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeThreadPoolInfo.java @@ -210,6 +210,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String type; + public Builder() { + } + private Builder(NodeThreadPoolInfo instance) { + this.core = instance.core; + this.keepAlive = instance.keepAlive; + this.max = instance.max; + this.queueSize = instance.queueSize; + this.size = instance.size; + this.type = instance.type; + + } /** * API name: {@code core} */ @@ -283,6 +294,12 @@ public NodeThreadPoolInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/RemoveClusterServer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/RemoveClusterServer.java index 692d7f9958..d2b26f849d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/RemoveClusterServer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/RemoveClusterServer.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String publishAddress; + public Builder() { + } + private Builder(RemoveClusterServer instance) { + this.boundAddress = instance.boundAddress; + this.publishAddress = instance.publishAddress; + + } /** * Required - API name: {@code bound_address} *

                                                                                                        @@ -182,6 +189,12 @@ public RemoveClusterServer build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java index 8f94b83a7a..7d66ac91a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/usage/NodeUsage.java @@ -176,6 +176,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map aggregations; + public Builder() { + } + private Builder(NodeUsage instance) { + this.restActions = instance.restActions; + this.since = instance.since; + this.timestamp = instance.timestamp; + this.aggregations = instance.aggregations; + + } /** * Required - API name: {@code rest_actions} *

                                                                                                        @@ -250,6 +259,12 @@ public NodeUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java index 3cef815c53..2f30caa3ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/TagsRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String projectRouting; + public Builder() { + } + private Builder(TagsRequest instance) { + this.projectRouting = instance.projectRouting; + + } /** * A Lucene query using project metadata tags used to filter which projects are * returned in the response, such as _alias:_origin or _alias:pr. @@ -129,6 +135,12 @@ public TagsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/tags/Tags.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/tags/Tags.java index 6116b3c1c8..2f522c6522 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/project/tags/Tags.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/project/tags/Tags.java @@ -197,6 +197,15 @@ public final Builder userDefinedTags(String key, String value) { private String organisation; + public Builder() { + } + private Builder(Tags instance) { + this.id = instance.id; + this.alias = instance.alias; + this.type = instance.type; + this.organisation = instance.organisation; + + } /** * Required - API name: {@code _id} */ @@ -247,6 +256,12 @@ public Tags build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java index 4504ced88e..3217aff327 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRuleRequest.java @@ -117,6 +117,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String rulesetId; + public Builder() { + } + private Builder(DeleteRuleRequest instance) { + this.ruleId = instance.ruleId; + this.rulesetId = instance.rulesetId; + + } /** * Required - The unique identifier of the query rule within the specified * ruleset to delete @@ -157,6 +164,12 @@ public DeleteRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java index f066d34fcc..89ba03e63a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/DeleteRulesetRequest.java @@ -101,6 +101,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String rulesetId; + public Builder() { + } + private Builder(DeleteRulesetRequest instance) { + this.rulesetId = instance.rulesetId; + + } /** * Required - The unique identifier of the query ruleset to delete *

                                                                                                        @@ -129,6 +135,12 @@ public DeleteRulesetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java index 1e83d54dc9..ecfc6f61eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRuleRequest.java @@ -113,6 +113,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String rulesetId; + public Builder() { + } + private Builder(GetRuleRequest instance) { + this.ruleId = instance.ruleId; + this.rulesetId = instance.rulesetId; + + } /** * Required - The unique identifier of the query rule within the specified * ruleset to retrieve @@ -153,6 +160,12 @@ public GetRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java index fe3c92ca95..c1db8947be 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/GetRulesetRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String rulesetId; + public Builder() { + } + private Builder(GetRulesetRequest instance) { + this.rulesetId = instance.rulesetId; + + } /** * Required - The unique identifier of the query ruleset *

                                                                                                        @@ -127,6 +133,12 @@ public GetRulesetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java index 9091daac3b..324c013a62 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/ListRulesetsRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(ListRulesetsRequest instance) { + this.from = instance.from; + this.size = instance.size; + + } /** * The offset from the first result to fetch. *

                                                                                                        @@ -157,6 +164,12 @@ public ListRulesetsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java index c15073f12c..d562e6fed3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRuleRequest.java @@ -218,6 +218,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private QueryRuleType type; + public Builder() { + } + private Builder(PutRuleRequest instance) { + this.actions = instance.actions; + this.criteria = instance.criteria; + this.priority = instance.priority; + this.ruleId = instance.ruleId; + this.rulesetId = instance.rulesetId; + this.type = instance.type; + + } /** * Required - The actions to take when the rule is matched. The format of this * action depends on the rule type. @@ -338,6 +349,12 @@ public PutRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java index a53115d793..490b5f609b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/PutRulesetRequest.java @@ -148,6 +148,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String rulesetId; + public Builder() { + } + private Builder(PutRulesetRequest instance) { + this.rules = instance.rules; + this.rulesetId = instance.rulesetId; + + } /** * Required - API name: {@code rules} *

                                                                                                        @@ -206,6 +213,12 @@ public PutRulesetRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleActions.java index 42bda9b02a..8317c8b620 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleActions.java @@ -158,6 +158,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List docs; + public Builder() { + } + private Builder(QueryRuleActions instance) { + this.ids = instance.ids; + this.docs = instance.docs; + + } /** * The unique document IDs of the documents to apply the rule to. Only one of * ids or docs may be specified and at least one must @@ -260,6 +267,12 @@ public QueryRuleActions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleCriteria.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleCriteria.java index 136eaa87f2..4ad25c55a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleCriteria.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/QueryRuleCriteria.java @@ -191,6 +191,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List values; + public Builder() { + } + private Builder(QueryRuleCriteria instance) { + this.type = instance.type; + this.metadata = instance.metadata; + this.values = instance.values; + + } /** * Required - The type of criteria. The following criteria types are supported: *

                                                                                                          @@ -284,6 +292,12 @@ public QueryRuleCriteria build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java index f8744bfd0c..a41ad3e43a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/TestRequest.java @@ -143,6 +143,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String rulesetId; + public Builder() { + } + private Builder(TestRequest instance) { + this.matchCriteria = instance.matchCriteria; + this.rulesetId = instance.rulesetId; + + } /** * Required - The match criteria to apply to rules in the given query ruleset. * Match criteria should match the keys defined in the @@ -200,6 +207,12 @@ public TestRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/list_rulesets/QueryRulesetListItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/list_rulesets/QueryRulesetListItem.java index 17805aa476..f6a1b38bf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/list_rulesets/QueryRulesetListItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/list_rulesets/QueryRulesetListItem.java @@ -192,6 +192,15 @@ public static class Builder extends WithJsonObjectBuilderBase private Map ruleTypeCounts; + public Builder() { + } + private Builder(QueryRulesetListItem instance) { + this.rulesetId = instance.rulesetId; + this.ruleTotalCount = instance.ruleTotalCount; + this.ruleCriteriaTypesCounts = instance.ruleCriteriaTypesCounts; + this.ruleTypeCounts = instance.ruleTypeCounts; + + } /** * Required - A unique identifier for the ruleset. *

                                                                                                          @@ -290,6 +299,12 @@ public QueryRulesetListItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/test/QueryRulesetMatchedRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/test/QueryRulesetMatchedRule.java index 897df01ebf..6b16de6d87 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/test/QueryRulesetMatchedRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/query_rules/test/QueryRulesetMatchedRule.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String ruleId; + public Builder() { + } + private Builder(QueryRulesetMatchedRule instance) { + this.rulesetId = instance.rulesetId; + this.ruleId = instance.ruleId; + + } /** * Required - Ruleset unique identifier *

                                                                                                          @@ -170,6 +177,12 @@ public QueryRulesetMatchedRule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java index 8401bc98dd..9e5db2b18e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DateHistogramGrouping.java @@ -253,6 +253,18 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String timeZone; + public Builder() { + } + private Builder(DateHistogramGrouping instance) { + this.delay = instance.delay; + this.field = instance.field; + this.format = instance.format; + this.interval = instance.interval; + this.calendarInterval = instance.calendarInterval; + this.fixedInterval = instance.fixedInterval; + this.timeZone = instance.timeZone; + + } /** * How long to wait before rolling up new documents. By default, the indexer * attempts to roll up all data that is available. However, it is not uncommon @@ -384,6 +396,12 @@ public DateHistogramGrouping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java index b3b67282dd..e5521b3945 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java @@ -126,6 +126,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeleteJobRequest instance) { + this.id = instance.id; + + } /** * Required - Identifier for the job. *

                                                                                                          @@ -154,6 +160,12 @@ public DeleteJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java index 37970526f5..a5eefe3988 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/FieldMetric.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List metrics; + public Builder() { + } + private Builder(FieldMetric instance) { + this.field = instance.field; + this.metrics = instance.metrics; + + } /** * Required - The field to collect metrics for. This must be a numeric of some * kind. @@ -194,6 +201,12 @@ public FieldMetric build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java index 97d962d82e..b96d1ca891 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java @@ -106,6 +106,12 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String id; + public Builder() { + } + private Builder(GetJobsRequest instance) { + this.id = instance.id; + + } /** * Identifier for the rollup job. If it is _all or omitted, the API * returns all rollup jobs. @@ -135,6 +141,12 @@ public GetJobsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java index f0f9ecbee9..8923c0828a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java @@ -116,6 +116,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String id; + public Builder() { + } + private Builder(GetRollupCapsRequest instance) { + this.id = instance.id; + + } /** * Index, indices or index-pattern to return rollup capabilities for. * _all may be used to fetch rollup capabilities from all jobs. @@ -145,6 +151,12 @@ public GetRollupCapsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java index 6411006607..81b1d4fe88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java @@ -113,6 +113,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List index; + public Builder() { + } + private Builder(GetRollupIndexCapsRequest instance) { + this.index = instance.index; + + } /** * Required - Data stream or index to check for rollup capabilities. Wildcard * (*) expressions are supported. @@ -157,6 +163,12 @@ public GetRollupIndexCapsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java index ebcb677737..fac799d6cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/Groupings.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private TermsGrouping terms; + public Builder() { + } + private Builder(Groupings instance) { + this.dateHistogram = instance.dateHistogram; + this.histogram = instance.histogram; + this.terms = instance.terms; + + } /** * A date histogram group aggregates a date field into time-based buckets. This * group is mandatory; you currently cannot roll up documents without a @@ -257,6 +265,12 @@ public Groupings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java index a0af832cff..14f4a97fc7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/HistogramGrouping.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long interval; + public Builder() { + } + private Builder(HistogramGrouping instance) { + this.fields = instance.fields; + this.interval = instance.interval; + + } /** * Required - The set of fields that you wish to build histograms for. All * fields specified must be some kind of numeric. Order does not matter. @@ -201,6 +208,12 @@ public HistogramGrouping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java index a16789dc7f..e1d7a20a50 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java @@ -325,6 +325,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(PutJobRequest instance) { + this.cron = instance.cron; + this.groups = instance.groups; + this.headers = instance.headers; + this.id = instance.id; + this.indexPattern = instance.indexPattern; + this.metrics = instance.metrics; + this.pageSize = instance.pageSize; + this.rollupIndex = instance.rollupIndex; + this.timeout = instance.timeout; + + } /** * Required - A cron string which defines the intervals when the rollup job * should be executed. When the interval triggers, the indexer attempts to @@ -531,6 +545,12 @@ public PutJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java index 68afb040de..146385f2d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchRequest.java @@ -223,6 +223,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(RollupSearchRequest instance) { + this.aggregations = instance.aggregations; + this.index = instance.index; + this.query = instance.query; + this.size = instance.size; + + } /** * Specifies aggregations. *

                                                                                                          @@ -377,6 +386,12 @@ public RollupSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java index bb408d5d29..3578960d12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java @@ -99,6 +99,12 @@ public final String id() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { private String id; + public Builder() { + } + private Builder(StartJobRequest instance) { + this.id = instance.id; + + } /** * Required - Identifier for the rollup job. *

                                                                                                          @@ -127,6 +133,12 @@ public StartJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java index 0eaf6dc491..dda9a18ef5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java @@ -155,6 +155,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(StopJobRequest instance) { + this.id = instance.id; + this.timeout = instance.timeout; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Required - Identifier for the rollup job. *

                                                                                                          @@ -224,6 +232,12 @@ public StopJobRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java index cfa84542ac..b45b04cd51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/TermsGrouping.java @@ -122,6 +122,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List fields; + public Builder() { + } + private Builder(TermsGrouping instance) { + this.fields = instance.fields; + + } /** * Required - The set of fields that you wish to collect terms for. This array * can contain fields that are both keyword and numerics. Order does not matter. @@ -166,6 +172,12 @@ public TermsGrouping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJob.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJob.java index 479781916c..0d6a4ce722 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJob.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJob.java @@ -148,6 +148,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private RollupJobStatus status; + public Builder() { + } + private Builder(RollupJob instance) { + this.config = instance.config; + this.stats = instance.stats; + this.status = instance.status; + + } /** * Required - The rollup job configuration. *

                                                                                                          @@ -230,6 +238,12 @@ public RollupJob build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobConfiguration.java index 4fae535b99..9ad19bafeb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobConfiguration.java @@ -230,6 +230,19 @@ public static class Builder extends WithJsonObjectBuilderBase private Time timeout; + public Builder() { + } + private Builder(RollupJobConfiguration instance) { + this.cron = instance.cron; + this.groups = instance.groups; + this.id = instance.id; + this.indexPattern = instance.indexPattern; + this.metrics = instance.metrics; + this.pageSize = instance.pageSize; + this.rollupIndex = instance.rollupIndex; + this.timeout = instance.timeout; + + } /** * Required - API name: {@code cron} */ @@ -347,6 +360,12 @@ public RollupJobConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStats.java index 097bc46217..68d513fa2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStats.java @@ -277,6 +277,23 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long processingTotal; + public Builder() { + } + private Builder(RollupJobStats instance) { + this.documentsProcessed = instance.documentsProcessed; + this.indexFailures = instance.indexFailures; + this.indexTimeInMs = instance.indexTimeInMs; + this.indexTotal = instance.indexTotal; + this.pagesProcessed = instance.pagesProcessed; + this.rollupsIndexed = instance.rollupsIndexed; + this.searchFailures = instance.searchFailures; + this.searchTimeInMs = instance.searchTimeInMs; + this.searchTotal = instance.searchTotal; + this.triggerCount = instance.triggerCount; + this.processingTimeInMs = instance.processingTimeInMs; + this.processingTotal = instance.processingTotal; + + } /** * Required - API name: {@code documents_processed} */ @@ -391,6 +408,12 @@ public RollupJobStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStatus.java index 69352d47c9..768aaeeff1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStatus.java @@ -158,6 +158,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean upgradedDocId; + public Builder() { + } + private Builder(RollupJobStatus instance) { + this.currentPosition = instance.currentPosition; + this.jobState = instance.jobState; + this.upgradedDocId = instance.upgradedDocId; + + } /** * API name: {@code current_position} *

                                                                                                          @@ -212,6 +220,12 @@ public RollupJobStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilities.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilities.java index ab07725022..98bf4aa530 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilities.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilities.java @@ -125,6 +125,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List rollupJobs; + public Builder() { + } + private Builder(RollupCapabilities instance) { + this.rollupJobs = instance.rollupJobs; + + } /** * Required - There can be multiple, independent jobs configured for a single * index or index pattern. Each of these jobs may have different configurations, @@ -185,6 +191,12 @@ public RollupCapabilities build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilitySummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilitySummary.java index ef50cf5292..e5b7f6e159 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilitySummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilitySummary.java @@ -175,6 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase private String rollupIndex; + public Builder() { + } + private Builder(RollupCapabilitySummary instance) { + this.fields = instance.fields; + this.indexPattern = instance.indexPattern; + this.jobId = instance.jobId; + this.rollupIndex = instance.rollupIndex; + + } /** * Required - API name: {@code fields} *

                                                                                                          @@ -237,6 +246,12 @@ public RollupCapabilitySummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupFieldSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupFieldSummary.java index 4103688891..9433372238 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupFieldSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupFieldSummary.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String timeZone; + public Builder() { + } + private Builder(RollupFieldSummary instance) { + this.agg = instance.agg; + this.calendarInterval = instance.calendarInterval; + this.timeZone = instance.timeZone; + + } /** * Required - API name: {@code agg} */ @@ -204,6 +212,12 @@ public RollupFieldSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/IndexCapabilities.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/IndexCapabilities.java index abfe5660cc..8d459bd7fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/IndexCapabilities.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/IndexCapabilities.java @@ -119,6 +119,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List rollupJobs; + public Builder() { + } + private Builder(IndexCapabilities instance) { + this.rollupJobs = instance.rollupJobs; + + } /** * Required - API name: {@code rollup_jobs} *

                                                                                                          @@ -166,6 +172,12 @@ public IndexCapabilities build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummary.java index 38d6a61f4b..7ec6a46b68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummary.java @@ -173,6 +173,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String rollupIndex; + public Builder() { + } + private Builder(RollupJobSummary instance) { + this.fields = instance.fields; + this.indexPattern = instance.indexPattern; + this.jobId = instance.jobId; + this.rollupIndex = instance.rollupIndex; + + } /** * Required - API name: {@code fields} *

                                                                                                          @@ -235,6 +244,12 @@ public RollupJobSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummaryField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummaryField.java index 353580804d..1fae4c4e37 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummaryField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummaryField.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time calendarInterval; + public Builder() { + } + private Builder(RollupJobSummaryField instance) { + this.agg = instance.agg; + this.timeZone = instance.timeZone; + this.calendarInterval = instance.calendarInterval; + + } /** * Required - API name: {@code agg} */ @@ -204,6 +212,12 @@ public RollupJobSummaryField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java index 2ed833b940..2bc1cdbeb1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private EventDataStream eventDataStream; + public Builder() { + } + private Builder(AnalyticsCollection instance) { + this.eventDataStream = instance.eventDataStream; + + } /** * Required - Data stream for the collection. *

                                                                                                          @@ -151,6 +157,12 @@ public AnalyticsCollection build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java index afdcdce2e4..652e849e65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String name; + public Builder() { + } + private Builder(DeleteBehavioralAnalyticsRequest instance) { + this.name = instance.name; + + } /** * Required - The name of the analytics collection to be deleted *

                                                                                                          @@ -130,6 +136,12 @@ public DeleteBehavioralAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java index ec47b7cce5..7f5015acd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String name; + public Builder() { + } + private Builder(DeleteSearchApplicationRequest instance) { + this.name = instance.name; + + } /** * Required - The name of the search application to delete. *

                                                                                                          @@ -130,6 +136,12 @@ public DeleteSearchApplicationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java index b670688c0d..108c363775 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String name; + public Builder() { + } + private Builder(EventDataStream instance) { + this.name = instance.name; + + } /** * Required - API name: {@code name} */ @@ -137,6 +143,12 @@ public EventDataStream build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java index 2464fe812b..ca87db04d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetBehavioralAnalyticsRequest instance) { + this.name = instance.name; + + } /** * A list of analytics collections to limit the returned information *

                                                                                                          @@ -144,6 +150,12 @@ public GetBehavioralAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java index 2c850ec020..92e42d8fba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java @@ -97,6 +97,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String name; + public Builder() { + } + private Builder(GetSearchApplicationRequest instance) { + this.name = instance.name; + + } /** * Required - The name of the search application *

                                                                                                          @@ -125,6 +131,12 @@ public GetSearchApplicationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java index f448b14d20..f2b6f09fe6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -134,6 +134,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Integer size; + public Builder() { + } + private Builder(ListRequest instance) { + this.from = instance.from; + this.q = instance.q; + this.size = instance.size; + + } /** * Starting offset. *

                                                                                                          @@ -182,6 +190,12 @@ public ListRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PostBehavioralAnalyticsEventRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PostBehavioralAnalyticsEventRequest.java index e64867c1c6..0a8777f0c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PostBehavioralAnalyticsEventRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PostBehavioralAnalyticsEventRequest.java @@ -156,6 +156,15 @@ public static class Builder extends RequestBase.AbstractBuilder private JsonData payload; + public Builder() { + } + private Builder(PostBehavioralAnalyticsEventRequest instance) { + this.collectionName = instance.collectionName; + this.debug = instance.debug; + this.eventType = instance.eventType; + this.payload = instance.payload; + + } /** * Required - The name of the behavioral analytics collection. *

                                                                                                          @@ -220,6 +229,12 @@ public PostBehavioralAnalyticsEventRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPostBehavioralAnalyticsEventRequestDeserializer(); protected static JsonpDeserializer createPostBehavioralAnalyticsEventRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java index b6f20966ab..928a49b6d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String name; + public Builder() { + } + private Builder(PutBehavioralAnalyticsRequest instance) { + this.name = instance.name; + + } /** * Required - The name of the analytics collection to be created or updated. *

                                                                                                          @@ -127,6 +133,12 @@ public PutBehavioralAnalyticsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java index 100047271d..66931a55e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java @@ -136,6 +136,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private SearchApplicationParameters searchApplication; + public Builder() { + } + private Builder(PutRequest instance) { + this.create = instance.create; + this.name = instance.name; + this.searchApplication = instance.searchApplication; + + } /** * If true, this request cannot replace or update existing Search * Applications. @@ -200,6 +208,12 @@ public PutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); protected static JsonpDeserializer createPutRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java index 329fd8b09d..0551f6d8fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/RenderQueryRequest.java @@ -149,6 +149,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map params; + public Builder() { + } + private Builder(RenderQueryRequest instance) { + this.name = instance.name; + this.params = instance.params; + + } /** * Required - The name of the search application to render teh query for. *

                                                                                                          @@ -197,6 +204,12 @@ public RenderQueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java index 0d1ccdcb4c..c940b5bade 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -148,6 +148,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map params; + public Builder() { + } + private Builder(SearchApplicationSearchRequest instance) { + this.name = instance.name; + this.params = instance.params; + + } /** * Required - The name of the search application to be searched. *

                                                                                                          @@ -202,6 +209,12 @@ public SearchApplicationSearchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java index fb022486f7..450d381593 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java @@ -115,6 +115,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Script script; + public Builder() { + } + private Builder(SearchApplicationTemplate instance) { + this.script = instance.script; + + } /** * Required - The associated mustache template. *

                                                                                                          @@ -152,6 +158,12 @@ public SearchApplicationTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java index 0eb75e1d07..e28caeb41d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/CacheStatsRequest.java @@ -118,6 +118,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List nodeId; + public Builder() { + } + private Builder(CacheStatsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + + } /** * API name: {@code master_timeout} */ @@ -175,6 +182,12 @@ public CacheStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java index cc926ca02e..7127f82f2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/ClearCacheRequest.java @@ -159,6 +159,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List index; + public Builder() { + } + private Builder(ClearCacheRequest instance) { + this.allowNoIndices = instance.allowNoIndices; + this.expandWildcards = instance.expandWildcards; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.index = instance.index; + + } /** * Whether to ignore if a wildcard indices expression resolves into no concrete * indices. (This includes _all string or when no indices have been @@ -252,6 +261,12 @@ public ClearCacheRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java index 9817759143..b0c627485b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/MountRequest.java @@ -280,6 +280,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(MountRequest instance) { + this.ignoreIndexSettings = instance.ignoreIndexSettings; + this.index = instance.index; + this.indexSettings = instance.indexSettings; + this.masterTimeout = instance.masterTimeout; + this.renamedIndex = instance.renamedIndex; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.storage = instance.storage; + this.waitForCompletion = instance.waitForCompletion; + + } /** * The names of settings that should be removed from the index when it is * mounted. @@ -434,6 +448,12 @@ public MountRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java index a6a11365f0..bcffb71972 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/SearchableSnapshotsStatsRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private StatsLevel level; + public Builder() { + } + private Builder(SearchableSnapshotsStatsRequest instance) { + this.index = instance.index; + this.level = instance.level; + + } /** * A comma-separated list of data streams and indices to retrieve statistics * for. @@ -173,6 +180,12 @@ public SearchableSnapshotsStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Node.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Node.java index c505096e9b..e7f02ccfc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Node.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Node.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Shared sharedCache; + public Builder() { + } + private Builder(Node instance) { + this.sharedCache = instance.sharedCache; + + } /** * Required - API name: {@code shared_cache} */ @@ -143,6 +149,12 @@ public Node build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Shared.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Shared.java index 645c72720d..c094463a0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Shared.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/cache_stats/Shared.java @@ -219,6 +219,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String regionSizeInBytes; + public Builder() { + } + private Builder(Shared instance) { + this.reads = instance.reads; + this.bytesReadInBytes = instance.bytesReadInBytes; + this.writes = instance.writes; + this.bytesWrittenInBytes = instance.bytesWrittenInBytes; + this.evictions = instance.evictions; + this.numRegions = instance.numRegions; + this.sizeInBytes = instance.sizeInBytes; + this.regionSizeInBytes = instance.regionSizeInBytes; + + } /** * Required - API name: {@code reads} */ @@ -301,6 +314,12 @@ public Shared build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/mount/MountedSnapshot.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/mount/MountedSnapshot.java index 53ee9be8ab..2f0d71e457 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/mount/MountedSnapshot.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/mount/MountedSnapshot.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ShardStatistics shards; + public Builder() { + } + private Builder(MountedSnapshot instance) { + this.snapshot = instance.snapshot; + this.indices = instance.indices; + this.shards = instance.shards; + + } /** * Required - API name: {@code snapshot} */ @@ -211,6 +219,12 @@ public MountedSnapshot build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Access.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Access.java index 7c6fa84f3c..d0cda03c22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Access.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Access.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List search; + public Builder() { + } + private Builder(Access instance) { + this.replication = instance.replication; + this.search = instance.search; + + } /** * A list of indices permission entries for cross-cluster replication. *

                                                                                                          @@ -234,6 +241,12 @@ public Access build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java index 8dd878a44d..1d7631513a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ActivateUserProfileRequest.java @@ -209,6 +209,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String username; + public Builder() { + } + private Builder(ActivateUserProfileRequest instance) { + this.accessToken = instance.accessToken; + this.grantType = instance.grantType; + this.password = instance.password; + this.username = instance.username; + + } /** * The user's Elasticsearch access token or JWT. Both access and * id JWT token types are supported and they depend on the @@ -274,6 +283,12 @@ public ActivateUserProfileRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java index 18f288c240..03fa335fd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApiKey.java @@ -476,6 +476,28 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List sort; + public Builder() { + } + private Builder(ApiKey instance) { + this.id = instance.id; + this.name = instance.name; + this.type = instance.type; + this.creation = instance.creation; + this.expiration = instance.expiration; + this.invalidated = instance.invalidated; + this.invalidation = instance.invalidation; + this.username = instance.username; + this.realm = instance.realm; + this.realmType = instance.realmType; + this.metadata = instance.metadata; + this.roleDescriptors = instance.roleDescriptors; + this.limitedBy = instance.limitedBy; + this.access = instance.access; + this.certificateIdentity = instance.certificateIdentity; + this.profileUid = instance.profileUid; + this.sort = instance.sort; + + } /** * Required - Id for the API key *

                                                                                                          @@ -843,6 +865,12 @@ public ApiKey build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java index 435593547d..77a7567ec9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationGlobalUserPrivileges.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private ManageUserPrivileges manage; + public Builder() { + } + private Builder(ApplicationGlobalUserPrivileges instance) { + this.manage = instance.manage; + + } /** * Required - API name: {@code manage} */ @@ -146,6 +152,12 @@ public ApplicationGlobalUserPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java index 5980290290..af3e421266 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ApplicationPrivileges.java @@ -166,6 +166,14 @@ public static class Builder extends WithJsonObjectBuilderBase private List resources; + public Builder() { + } + private Builder(ApplicationPrivileges instance) { + this.application = instance.application; + this.privileges = instance.privileges; + this.resources = instance.resources; + + } /** * Required - The name of the application to which this entry applies. *

                                                                                                          @@ -244,6 +252,12 @@ public ApplicationPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkDeleteRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkDeleteRoleRequest.java index a580fdbd1b..5942074479 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkDeleteRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkDeleteRoleRequest.java @@ -150,6 +150,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + public Builder() { + } + private Builder(BulkDeleteRoleRequest instance) { + this.names = instance.names; + this.refresh = instance.refresh; + + } /** * Required - An array of role names to delete *

                                                                                                          @@ -205,6 +212,12 @@ public BulkDeleteRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkError.java index cda37ffa9c..87d5b0db9c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkError.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map details; + public Builder() { + } + private Builder(BulkError instance) { + this.count = instance.count; + this.details = instance.details; + + } /** * Required - The number of errors *

                                                                                                          @@ -204,6 +211,12 @@ public BulkError build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkPutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkPutRoleRequest.java index daa4adc2b8..6cd7f6231d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkPutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkPutRoleRequest.java @@ -150,6 +150,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Map roles; + public Builder() { + } + private Builder(BulkPutRoleRequest instance) { + this.refresh = instance.refresh; + this.roles = instance.roles; + + } /** * If true (the default) then refresh the affected shards to make * this operation visible to search, if wait_for then wait for a @@ -219,6 +226,12 @@ public BulkPutRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java index fcfaa4d4e4..42fea2e06f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/BulkUpdateApiKeysRequest.java @@ -241,6 +241,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map roleDescriptors; + public Builder() { + } + private Builder(BulkUpdateApiKeysRequest instance) { + this.expiration = instance.expiration; + this.ids = instance.ids; + this.metadata = instance.metadata; + this.roleDescriptors = instance.roleDescriptors; + + } /** * Expiration time for the API keys. By default, API keys never expire. This * property can be omitted to leave the value unchanged. @@ -399,6 +408,12 @@ public BulkUpdateApiKeysRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java index d1968a48d3..9bc1be3e96 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ChangePasswordRequest.java @@ -186,6 +186,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String username; + public Builder() { + } + private Builder(ChangePasswordRequest instance) { + this.password = instance.password; + this.passwordHash = instance.passwordHash; + this.refresh = instance.refresh; + this.username = instance.username; + + } /** * The new password value. Passwords must be at least 6 characters long. *

                                                                                                          @@ -251,6 +260,12 @@ public ChangePasswordRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java index b8126ae2cb..3635c04cb9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearApiKeyCacheRequest.java @@ -105,6 +105,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List ids; + public Builder() { + } + private Builder(ClearApiKeyCacheRequest instance) { + this.ids = instance.ids; + + } /** * Required - Comma-separated list of API key IDs to evict from the API key * cache. To evict all API keys, use *. Does not support other @@ -151,6 +157,12 @@ public ClearApiKeyCacheRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java index 5b0812e3da..bc689328af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedPrivilegesRequest.java @@ -106,6 +106,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List application; + public Builder() { + } + private Builder(ClearCachedPrivilegesRequest instance) { + this.application = instance.application; + + } /** * Required - A comma-separated list of applications. To clear all applications, * use an asterism (*). It does not support other wildcard @@ -152,6 +158,12 @@ public ClearCachedPrivilegesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java index 22a41470e7..4f9facaae5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRealmsRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List usernames; + public Builder() { + } + private Builder(ClearCachedRealmsRequest instance) { + this.realms = instance.realms; + this.usernames = instance.usernames; + + } /** * Required - A comma-separated list of realms. To clear all realms, use an * asterisk (*). It does not support other wildcard patterns. @@ -195,6 +202,12 @@ public ClearCachedRealmsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java index 2dc463784a..d58596295a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedRolesRequest.java @@ -104,6 +104,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List name; + public Builder() { + } + private Builder(ClearCachedRolesRequest instance) { + this.name = instance.name; + + } /** * Required - A comma-separated list of roles to evict from the role cache. To * evict all roles, use an asterisk (*). It does not support other @@ -150,6 +156,12 @@ public ClearCachedRolesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java index 31ca8d8d7b..7c41c3d513 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClearCachedServiceTokensRequest.java @@ -144,6 +144,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String service; + public Builder() { + } + private Builder(ClearCachedServiceTokensRequest instance) { + this.name = instance.name; + this.namespace = instance.namespace; + this.service = instance.service; + + } /** * Required - A comma-separated list of token names to evict from the service * account token caches. Use a wildcard (*) to evict all tokens @@ -213,6 +221,12 @@ public ClearCachedServiceTokensRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java index bfc92a0a92..acf7e9311b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ClusterNode.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String name; + public Builder() { + } + private Builder(ClusterNode instance) { + this.name = instance.name; + + } /** * Required - API name: {@code name} */ @@ -136,6 +142,12 @@ public ClusterNode build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java index 58f4cbfc91..aca8d8a63b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java @@ -250,6 +250,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map roleDescriptors; + public Builder() { + } + private Builder(CreateApiKeyRequest instance) { + this.expiration = instance.expiration; + this.metadata = instance.metadata; + this.name = instance.name; + this.refresh = instance.refresh; + this.roleDescriptors = instance.roleDescriptors; + + } /** * The expiration time for the API key. By default, API keys never expire. *

                                                                                                          @@ -413,6 +423,12 @@ public CreateApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateCrossClusterApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateCrossClusterApiKeyRequest.java index a321b76b38..f911445320 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateCrossClusterApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateCrossClusterApiKeyRequest.java @@ -243,6 +243,16 @@ public static class Builder extends RequestBase.AbstractBuilder private String name; + public Builder() { + } + private Builder(CreateCrossClusterApiKeyRequest instance) { + this.access = instance.access; + this.certificateIdentity = instance.certificateIdentity; + this.expiration = instance.expiration; + this.metadata = instance.metadata; + this.name = instance.name; + + } /** * Required - The access to be granted to this API key. The access is composed * of permissions for cross-cluster search and cross-cluster replication. At @@ -364,6 +374,12 @@ public CreateCrossClusterApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java index e5821713fb..613092924c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateServiceTokenRequest.java @@ -166,6 +166,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String service; + public Builder() { + } + private Builder(CreateServiceTokenRequest instance) { + this.name = instance.name; + this.namespace = instance.namespace; + this.refresh = instance.refresh; + this.service = instance.service; + + } /** * The name for the service account token. If omitted, a random name will be * generated. @@ -238,6 +247,12 @@ public CreateServiceTokenRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreatedStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreatedStatus.java index 71b0209a27..78ad51a279 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreatedStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreatedStatus.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean created; + public Builder() { + } + private Builder(CreatedStatus instance) { + this.created = instance.created; + + } /** * Required - API name: {@code created} */ @@ -135,6 +141,12 @@ public CreatedStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DelegatePkiRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DelegatePkiRequest.java index 2c0cd6f71c..5698ba45df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DelegatePkiRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DelegatePkiRequest.java @@ -148,6 +148,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private List x509CertificateChain; + public Builder() { + } + private Builder(DelegatePkiRequest instance) { + this.x509CertificateChain = instance.x509CertificateChain; + + } /** * Required - The X509Certificate chain, which is represented as an ordered * string array. Each string in the array is a base64-encoded (Section 4 of @@ -204,6 +210,12 @@ public DelegatePkiRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java index 8fe99e423e..874124d3da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeletePrivilegesRequest.java @@ -143,6 +143,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + public Builder() { + } + private Builder(DeletePrivilegesRequest instance) { + this.application = instance.application; + this.name = instance.name; + this.refresh = instance.refresh; + + } /** * Required - The name of the application. Application privileges are always * associated with exactly one application. @@ -209,6 +217,12 @@ public DeletePrivilegesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java index afb3bd1610..bdbd5f45ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleMappingRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + public Builder() { + } + private Builder(DeleteRoleMappingRequest instance) { + this.name = instance.name; + this.refresh = instance.refresh; + + } /** * Required - The distinct name that identifies the role mapping. The name is * used solely as an identifier to facilitate interaction via the API; it does @@ -168,6 +175,12 @@ public DeleteRoleMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java index 98a8e43d85..d6b34e66ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteRoleRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Refresh refresh; + public Builder() { + } + private Builder(DeleteRoleRequest instance) { + this.name = instance.name; + this.refresh = instance.refresh; + + } /** * Required - The name of the role. *

                                                                                                          @@ -162,6 +169,12 @@ public DeleteRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java index 2568b64f68..aacfacfe20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteServiceTokenRequest.java @@ -148,6 +148,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String service; + public Builder() { + } + private Builder(DeleteServiceTokenRequest instance) { + this.name = instance.name; + this.namespace = instance.namespace; + this.refresh = instance.refresh; + this.service = instance.service; + + } /** * Required - The name of the service account token. *

                                                                                                          @@ -209,6 +218,12 @@ public DeleteServiceTokenRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java index e5a07adc79..5fb26287f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DeleteUserRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String username; + public Builder() { + } + private Builder(DeleteUserRequest instance) { + this.refresh = instance.refresh; + this.username = instance.username; + + } /** * If true (the default) then refresh the affected shards to make * this operation visible to search, if wait_for then wait for a @@ -160,6 +167,12 @@ public DeleteUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java index 02b5b67ecc..50c1c79706 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserProfileRequest.java @@ -130,6 +130,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String uid; + public Builder() { + } + private Builder(DisableUserProfileRequest instance) { + this.refresh = instance.refresh; + this.uid = instance.uid; + + } /** * If 'true', Elasticsearch refreshes the affected shards to make this operation * visible to search. If 'wait_for', it waits for a refresh to make this @@ -170,6 +177,12 @@ public DisableUserProfileRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java index 4a1cb1575e..d97055d691 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/DisableUserRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String username; + public Builder() { + } + private Builder(DisableUserRequest instance) { + this.refresh = instance.refresh; + this.username = instance.username; + + } /** * If true (the default) then refresh the affected shards to make * this operation visible to search, if wait_for then wait for a @@ -161,6 +168,12 @@ public DisableUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java index e8e4f77983..2abd0350ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserProfileRequest.java @@ -129,6 +129,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String uid; + public Builder() { + } + private Builder(EnableUserProfileRequest instance) { + this.refresh = instance.refresh; + this.uid = instance.uid; + + } /** * If 'true', Elasticsearch refreshes the affected shards to make this operation * visible to search. If 'wait_for', it waits for a refresh to make this @@ -169,6 +176,12 @@ public EnableUserProfileRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java index bdf797cdcd..eba7202067 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/EnableUserRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String username; + public Builder() { + } + private Builder(EnableUserRequest instance) { + this.refresh = instance.refresh; + this.username = instance.username; + + } /** * If true (the default) then refresh the affected shards to make * this operation visible to search, if wait_for then wait for a @@ -161,6 +168,12 @@ public EnableUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java index 9d77f2d3c5..38306f9f89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/FieldSecurity.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List grant; + public Builder() { + } + private Builder(FieldSecurity instance) { + this.except = instance.except; + this.grant = instance.grant; + + } /** * API name: {@code except} *

                                                                                                          @@ -201,6 +208,12 @@ public FieldSecurity build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java index 8dde456dfd..18838a0033 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetApiKeyRequest.java @@ -244,6 +244,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withProfileUid; + public Builder() { + } + private Builder(GetApiKeyRequest instance) { + this.activeOnly = instance.activeOnly; + this.id = instance.id; + this.name = instance.name; + this.owner = instance.owner; + this.realmName = instance.realmName; + this.username = instance.username; + this.withLimitedBy = instance.withLimitedBy; + this.withProfileUid = instance.withProfileUid; + + } /** * A boolean flag that can be used to query API keys that are currently active. * An API key is considered active if it is neither invalidated, nor expired at @@ -360,6 +373,12 @@ public GetApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java index 273f0772d3..c4b817bfc0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetPrivilegesRequest.java @@ -128,6 +128,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetPrivilegesRequest instance) { + this.application = instance.application; + this.name = instance.name; + + } /** * The name of the application. Application privileges are always associated * with exactly one application. If you do not specify this parameter, the API @@ -184,6 +191,12 @@ public GetPrivilegesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java index dcd36c31b8..1166418636 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleMappingRequest.java @@ -110,6 +110,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetRoleMappingRequest instance) { + this.name = instance.name; + + } /** * The distinct name that identifies the role mapping. The name is used solely * as an identifier to facilitate interaction via the API; it does not affect @@ -160,6 +166,12 @@ public GetRoleMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java index aecf52d333..bdb32455fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetRoleRequest.java @@ -104,6 +104,12 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List name; + public Builder() { + } + private Builder(GetRoleRequest instance) { + this.name = instance.name; + + } /** * The name of the role. You can specify multiple roles as a comma-separated * list. If you do not specify this parameter, the API returns information about @@ -150,6 +156,12 @@ public GetRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetSecuritySettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetSecuritySettingsRequest.java index 154147c53c..3e0635111e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetSecuritySettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetSecuritySettingsRequest.java @@ -108,6 +108,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetSecuritySettingsRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -147,6 +153,12 @@ public GetSecuritySettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java index a0283e83f8..3314589120 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceAccountsRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String service; + public Builder() { + } + private Builder(GetServiceAccountsRequest instance) { + this.namespace = instance.namespace; + this.service = instance.service; + + } /** * The name of the namespace. Omit this parameter to retrieve information about * all service accounts. If you omit this parameter, you must also omit the @@ -166,6 +173,12 @@ public GetServiceAccountsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java index 89c36bc17e..ec3bd79416 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetServiceCredentialsRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String service; + public Builder() { + } + private Builder(GetServiceCredentialsRequest instance) { + this.namespace = instance.namespace; + this.service = instance.service; + + } /** * Required - The name of the namespace. *

                                                                                                          @@ -163,6 +170,12 @@ public GetServiceCredentialsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java index cb8ba1b2ad..ef7cf7f1c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetTokenRequest.java @@ -260,6 +260,17 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private String username; + public Builder() { + } + private Builder(GetTokenRequest instance) { + this.grantType = instance.grantType; + this.kerberosTicket = instance.kerberosTicket; + this.password = instance.password; + this.refreshToken = instance.refreshToken; + this.scope = instance.scope; + this.username = instance.username; + + } /** * The type of grant. Supported grant types are: password, * _kerberos, client_credentials, and @@ -350,6 +361,12 @@ public GetTokenRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java index a755c121be..5226350461 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserProfileRequest.java @@ -126,6 +126,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List uid; + public Builder() { + } + private Builder(GetUserProfileRequest instance) { + this.data = instance.data; + this.uid = instance.uid; + + } /** * A comma-separated list of filters for the data field of the * profile document. To return all content use data=*. To return a @@ -200,6 +207,12 @@ public GetUserProfileRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java index 13f97d4418..621c37719f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean withProfileUid; + public Builder() { + } + private Builder(GetUserRequest instance) { + this.username = instance.username; + this.withProfileUid = instance.withProfileUid; + + } /** * An identifier for the user. You can specify multiple usernames as a * comma-separated list. If you omit this parameter, the API retrieves @@ -177,6 +184,12 @@ public GetUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java index 3e641701ca..22e7a62968 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private ApplicationGlobalUserPrivileges application; + public Builder() { + } + private Builder(GlobalPrivilege instance) { + this.application = instance.application; + + } /** * Required - API name: {@code application} */ @@ -143,6 +149,12 @@ public GlobalPrivilege build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java index a220ed8fc3..3fe88b206d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GrantApiKeyRequest.java @@ -275,6 +275,18 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String username; + public Builder() { + } + private Builder(GrantApiKeyRequest instance) { + this.accessToken = instance.accessToken; + this.apiKey = instance.apiKey; + this.grantType = instance.grantType; + this.password = instance.password; + this.refresh = instance.refresh; + this.runAs = instance.runAs; + this.username = instance.username; + + } /** * The user's access token. If you specify the access_token grant * type, this parameter is required. It is not valid with other grant types. @@ -379,6 +391,12 @@ public GrantApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java index 10e277d640..25ba675881 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java @@ -195,6 +195,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String user; + public Builder() { + } + private Builder(HasPrivilegesRequest instance) { + this.application = instance.application; + this.cluster = instance.cluster; + this.index = instance.index; + this.user = instance.user; + + } /** * API name: {@code application} *

                                                                                                          @@ -319,6 +328,12 @@ public HasPrivilegesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java index f05c777ac1..bb0a096973 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesUserProfileRequest.java @@ -152,6 +152,13 @@ public static class Builder extends RequestBase.AbstractBuilder private List uids; + public Builder() { + } + private Builder(HasPrivilegesUserProfileRequest instance) { + this.privileges = instance.privileges; + this.uids = instance.uids; + + } /** * Required - An object containing all the privileges to be checked. *

                                                                                                          @@ -215,6 +222,12 @@ public HasPrivilegesUserProfileRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java index c5eb622cc2..8329427997 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/IndicesPrivileges.java @@ -227,6 +227,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(IndicesPrivileges instance) { + this.fieldSecurity = instance.fieldSecurity; + this.names = instance.names; + this.privileges = instance.privileges; + this.query = instance.query; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * The document fields that the owners of the role have read access to. *

                                                                                                          @@ -386,6 +396,12 @@ public IndicesPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java index b23b1c3ed9..606a1b1366 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateApiKeyRequest.java @@ -268,6 +268,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String username; + public Builder() { + } + private Builder(InvalidateApiKeyRequest instance) { + this.id = instance.id; + this.ids = instance.ids; + this.name = instance.name; + this.owner = instance.owner; + this.realmName = instance.realmName; + this.username = instance.username; + + } /** * API name: {@code id} */ @@ -372,6 +383,12 @@ public InvalidateApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java index 2932deea7d..04ce9781d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/InvalidateTokenRequest.java @@ -206,6 +206,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String username; + public Builder() { + } + private Builder(InvalidateTokenRequest instance) { + this.realmName = instance.realmName; + this.refreshToken = instance.refreshToken; + this.token = instance.token; + this.username = instance.username; + + } /** * The name of an authentication realm. This parameter cannot be used with * either refresh_token or token. @@ -270,6 +279,12 @@ public InvalidateTokenRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java index 512a55fc1d..7b57f945f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ManageUserPrivileges.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List applications; + public Builder() { + } + private Builder(ManageUserPrivileges instance) { + this.applications = instance.applications; + + } /** * Required - API name: {@code applications} *

                                                                                                          @@ -160,6 +166,12 @@ public ManageUserPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/NodeSecurityStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/NodeSecurityStats.java index 3065179d54..0af8876986 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/NodeSecurityStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/NodeSecurityStats.java @@ -112,6 +112,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private RolesStats roles; + public Builder() { + } + private Builder(NodeSecurityStats instance) { + this.roles = instance.roles; + + } /** * Required - Role statistics. *

                                                                                                          @@ -149,6 +155,12 @@ public NodeSecurityStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcAuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcAuthenticateRequest.java index 2ac3499fed..29ad9687b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcAuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcAuthenticateRequest.java @@ -190,6 +190,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String state; + public Builder() { + } + private Builder(OidcAuthenticateRequest instance) { + this.nonce = instance.nonce; + this.realm = instance.realm; + this.redirectUri = instance.redirectUri; + this.state = instance.state; + + } /** * Required - Associate a client session with an ID token and mitigate replay * attacks. This value needs to be the same as the one that was provided to the @@ -259,6 +268,12 @@ public OidcAuthenticateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcLogoutRequest.java index 175bb983e1..e4d8324276 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcLogoutRequest.java @@ -148,6 +148,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String token; + public Builder() { + } + private Builder(OidcLogoutRequest instance) { + this.refreshToken = instance.refreshToken; + this.token = instance.token; + + } /** * The refresh token to be invalidated. *

                                                                                                          @@ -186,6 +193,12 @@ public OidcLogoutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcPrepareAuthenticationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcPrepareAuthenticationRequest.java index c6bf12ce36..23c4646b09 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcPrepareAuthenticationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/OidcPrepareAuthenticationRequest.java @@ -234,6 +234,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String state; + public Builder() { + } + private Builder(OidcPrepareAuthenticationRequest instance) { + this.iss = instance.iss; + this.loginHint = instance.loginHint; + this.nonce = instance.nonce; + this.realm = instance.realm; + this.state = instance.state; + + } /** * In the case of a third party initiated single sign on, this is the issuer * identifier for the OP that the RP is to send the authentication request to. @@ -316,6 +326,12 @@ public OidcPrepareAuthenticationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java index 8e959bcb38..0739582db3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java @@ -180,6 +180,13 @@ public static class Builder extends RequestBase.AbstractBuilder private Map> privileges = new HashMap<>(); + public Builder() { + } + private Builder(PutPrivilegesRequest instance) { + this.refresh = instance.refresh; + this.privileges = instance.privileges; + + } /** * If true (the default) then refresh the affected shards to make * this operation visible to search, if wait_for then wait for a @@ -241,6 +248,12 @@ public PutPrivilegesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createPutPrivilegesRequestDeserializer(); protected static JsonpDeserializer createPutPrivilegesRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java index 0b713bdd37..f1779ec436 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleMappingRequest.java @@ -328,6 +328,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List runAs; + public Builder() { + } + private Builder(PutRoleMappingRequest instance) { + this.enabled = instance.enabled; + this.metadata = instance.metadata; + this.name = instance.name; + this.refresh = instance.refresh; + this.roleTemplates = instance.roleTemplates; + this.roles = instance.roles; + this.rules = instance.rules; + this.runAs = instance.runAs; + + } /** * Mappings that have enabled set to false are ignored * when role mapping is performed. @@ -534,6 +547,12 @@ public PutRoleMappingRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java index edc4007b63..8fd8a03c4d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java @@ -409,6 +409,23 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Map transientMetadata; + public Builder() { + } + private Builder(PutRoleRequest instance) { + this.applications = instance.applications; + this.cluster = instance.cluster; + this.description = instance.description; + this.global = instance.global; + this.indices = instance.indices; + this.metadata = instance.metadata; + this.name = instance.name; + this.refresh = instance.refresh; + this.remoteCluster = instance.remoteCluster; + this.remoteIndices = instance.remoteIndices; + this.runAs = instance.runAs; + this.transientMetadata = instance.transientMetadata; + + } /** * A list of application privilege entries. *

                                                                                                          @@ -777,6 +794,12 @@ public PutRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java index aec520bc07..45ed1f94c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutUserRequest.java @@ -316,6 +316,20 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String username; + public Builder() { + } + private Builder(PutUserRequest instance) { + this.email = instance.email; + this.enabled = instance.enabled; + this.fullName = instance.fullName; + this.metadata = instance.metadata; + this.password = instance.password; + this.passwordHash = instance.passwordHash; + this.refresh = instance.refresh; + this.roles = instance.roles; + this.username = instance.username; + + } /** * The email of the user. *

                                                                                                          @@ -474,6 +488,12 @@ public PutUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java index 6e7ef5df98..8deb78c62e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryApiKeysRequest.java @@ -336,6 +336,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withProfileUid; + public Builder() { + } + private Builder(QueryApiKeysRequest instance) { + this.aggregations = instance.aggregations; + this.from = instance.from; + this.query = instance.query; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.sort = instance.sort; + this.withLimitedBy = instance.withLimitedBy; + this.withProfileUid = instance.withProfileUid; + + } /** * Any aggregations to run over the corpus of returned API keys. Aggregations * and queries work together. Aggregations are computed only on the API keys @@ -698,6 +711,12 @@ public QueryApiKeysRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java index cf93788cca..e885457e44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryRoleRequest.java @@ -244,6 +244,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List sort; + public Builder() { + } + private Builder(QueryRoleRequest instance) { + this.from = instance.from; + this.query = instance.query; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.sort = instance.sort; + + } /** * The starting document offset. It must not be negative. By default, you cannot * page through more than 10,000 hits using the from and @@ -486,6 +496,12 @@ public QueryRoleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryUserRequest.java index 5e48ae1505..d23b496b14 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/QueryUserRequest.java @@ -262,6 +262,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean withProfileUid; + public Builder() { + } + private Builder(QueryUserRequest instance) { + this.from = instance.from; + this.query = instance.query; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.sort = instance.sort; + this.withProfileUid = instance.withProfileUid; + + } /** * The starting document offset. It must not be negative. By default, you cannot * page through more than 10,000 hits using the from and @@ -506,6 +517,12 @@ public QueryUserRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java index ed951f5fff..b3575d50ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RealmInfo.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(RealmInfo instance) { + this.name = instance.name; + this.type = instance.type; + + } /** * Required - API name: {@code name} */ @@ -159,6 +166,12 @@ public RealmInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteClusterPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteClusterPrivileges.java index 619b3d03bd..c75c950ed5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteClusterPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteClusterPrivileges.java @@ -151,6 +151,13 @@ public static class Builder extends WithJsonObjectBuilderBase private List privileges; + public Builder() { + } + private Builder(RemoteClusterPrivileges instance) { + this.clusters = instance.clusters; + this.privileges = instance.privileges; + + } /** * Required - A list of cluster aliases to which the permissions in this entry * apply. @@ -221,6 +228,12 @@ public RemoteClusterPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteIndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteIndicesPrivileges.java index 5e3166870f..bacc595220 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteIndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteIndicesPrivileges.java @@ -251,6 +251,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(RemoteIndicesPrivileges instance) { + this.clusters = instance.clusters; + this.fieldSecurity = instance.fieldSecurity; + this.names = instance.names; + this.privileges = instance.privileges; + this.query = instance.query; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * Required - A list of cluster aliases to which the permissions in this entry * apply. @@ -418,6 +429,12 @@ public RemoteIndicesPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java index c0d90fc5e6..bf97f1e51a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RemoteUserIndicesPrivileges.java @@ -249,6 +249,17 @@ public static class Builder extends WithJsonObjectBuilderBase private List clusters; + public Builder() { + } + private Builder(RemoteUserIndicesPrivileges instance) { + this.fieldSecurity = instance.fieldSecurity; + this.names = instance.names; + this.privileges = instance.privileges; + this.query = instance.query; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + this.clusters = instance.clusters; + + } /** * The document fields that the owners of the role have read access to. *

                                                                                                          @@ -444,6 +455,12 @@ public RemoteUserIndicesPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ReplicationAccess.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ReplicationAccess.java index 5bd2ca9e15..b22cb2f53d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ReplicationAccess.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/ReplicationAccess.java @@ -147,6 +147,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(ReplicationAccess instance) { + this.names = instance.names; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * Required - A list of indices (or index name patterns) to which the * permissions in this entry apply. @@ -202,6 +209,12 @@ public ReplicationAccess build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Restriction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Restriction.java index e1a34ec0a5..a23bfd43e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Restriction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/Restriction.java @@ -124,6 +124,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List workflows; + public Builder() { + } + private Builder(Restriction instance) { + this.workflows = instance.workflows; + + } /** * Required - A list of workflows to which the API key is restricted. NOTE: In * order to use a role restriction, an API key must be created with a single @@ -185,6 +191,12 @@ public Restriction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java index fa456d6eaf..0c4297645e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleDescriptorRead.java @@ -375,6 +375,22 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map transientMetadata; + public Builder() { + } + private Builder(RoleDescriptorRead instance) { + this.cluster = instance.cluster; + this.indices = instance.indices; + this.remoteIndices = instance.remoteIndices; + this.remoteCluster = instance.remoteCluster; + this.global = instance.global; + this.applications = instance.applications; + this.metadata = instance.metadata; + this.runAs = instance.runAs; + this.description = instance.description; + this.restriction = instance.restriction; + this.transientMetadata = instance.transientMetadata; + + } /** * Required - A list of cluster privileges. These privileges define the cluster * level actions that API keys are able to execute. @@ -719,6 +735,12 @@ public RoleDescriptorRead build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java index d528104887..21396567f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleMapping.java @@ -198,6 +198,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private RoleMappingRule rules; + public Builder() { + } + private Builder(RoleMapping instance) { + this.enabled = instance.enabled; + this.metadata = instance.metadata; + this.roles = instance.roles; + this.roleTemplates = instance.roleTemplates; + this.rules = instance.rules; + + } /** * Required - API name: {@code enabled} */ @@ -316,6 +326,12 @@ public RoleMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java index 7bca0e0420..200dd91968 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplate.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Script template; + public Builder() { + } + private Builder(RoleTemplate instance) { + this.format = instance.format; + this.template = instance.template; + + } /** * API name: {@code format} */ @@ -170,6 +177,12 @@ public RoleTemplate build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateQuery.java index 0331dc71d0..4b0d70a378 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateQuery.java @@ -123,6 +123,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private RoleTemplateScript template; + public Builder() { + } + private Builder(RoleTemplateQuery instance) { + this.template = instance.template; + + } /** * When you create a role, you can specify a query that defines the document * level security permissions. You can optionally use Mustache templates in the @@ -172,6 +178,12 @@ public RoleTemplateQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java index f23a00872c..3f30414a8c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RoleTemplateScript.java @@ -217,6 +217,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map options; + public Builder() { + } + private Builder(RoleTemplateScript instance) { + this.source = instance.source; + this.id = instance.id; + this.params = instance.params; + this.lang = instance.lang; + this.options = instance.options; + + } /** * API name: {@code source} */ @@ -327,6 +337,12 @@ public RoleTemplateScript build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RolesStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RolesStats.java index a6a7efcf8c..8e8cd3510e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RolesStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/RolesStats.java @@ -112,6 +112,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private SecurityRolesDls dls; + public Builder() { + } + private Builder(RolesStats instance) { + this.dls = instance.dls; + + } /** * Required - Document-level security (DLS) statistics. *

                                                                                                          @@ -149,6 +155,12 @@ public RolesStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java index beb4ec403f..2d3e9691b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlAuthenticateRequest.java @@ -188,6 +188,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String realm; + public Builder() { + } + private Builder(SamlAuthenticateRequest instance) { + this.content = instance.content; + this.ids = instance.ids; + this.realm = instance.realm; + + } /** * Required - The SAML response as it was sent by the user's browser, usually a * Base64 encoded XML document. @@ -254,6 +262,12 @@ public SamlAuthenticateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java index fa9770bcce..7f09b4eaa5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlCompleteLogoutRequest.java @@ -204,6 +204,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String realm; + public Builder() { + } + private Builder(SamlCompleteLogoutRequest instance) { + this.content = instance.content; + this.ids = instance.ids; + this.queryString = instance.queryString; + this.realm = instance.realm; + + } /** * If the SAML IdP sends the logout response with the HTTP-Post binding, this * field must be set to the value of the SAMLResponse form parameter from the @@ -282,6 +291,12 @@ public SamlCompleteLogoutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java index 8b3eb858ca..391f0196af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlInvalidateRequest.java @@ -186,6 +186,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String realm; + public Builder() { + } + private Builder(SamlInvalidateRequest instance) { + this.acs = instance.acs; + this.queryString = instance.queryString; + this.realm = instance.realm; + + } /** * The Assertion Consumer Service URL that matches the one of the SAML realm in * Elasticsearch that should be used. You must specify either this parameter or @@ -247,6 +255,12 @@ public SamlInvalidateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java index dc2fcef7aa..0c91143c71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlLogoutRequest.java @@ -151,6 +151,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String token; + public Builder() { + } + private Builder(SamlLogoutRequest instance) { + this.refreshToken = instance.refreshToken; + this.token = instance.token; + + } /** * The refresh token that was returned as a response to calling the SAML * authenticate API. Alternatively, the most recent refresh token that was @@ -193,6 +200,12 @@ public SamlLogoutRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java index 6f9df7ead4..b4a1db88a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlPrepareAuthenticationRequest.java @@ -190,6 +190,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String relayState; + public Builder() { + } + private Builder(SamlPrepareAuthenticationRequest instance) { + this.acs = instance.acs; + this.realm = instance.realm; + this.relayState = instance.relayState; + + } /** * The Assertion Consumer Service URL that matches the one of the SAML realms in * Elasticsearch. The realm is used to generate the authentication request. You @@ -244,6 +252,12 @@ public SamlPrepareAuthenticationRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java index 28cf00ccb5..de3d0cc4f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SamlServiceProviderMetadataRequest.java @@ -106,6 +106,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String realmName; + public Builder() { + } + private Builder(SamlServiceProviderMetadataRequest instance) { + this.realmName = instance.realmName; + + } /** * Required - The name of the SAML realm in Elasticsearch. *

                                                                                                          @@ -134,6 +140,12 @@ public SamlServiceProviderMetadataRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SearchAccess.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SearchAccess.java index a5084d55d5..4f777e76e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SearchAccess.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SearchAccess.java @@ -196,6 +196,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(SearchAccess instance) { + this.fieldSecurity = instance.fieldSecurity; + this.names = instance.names; + this.query = instance.query; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * The document fields that the owners of the role have read access to. *

                                                                                                          @@ -297,6 +306,12 @@ public SearchAccess build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SecuritySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SecuritySettings.java index 7447cda654..c08d4001d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SecuritySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SecuritySettings.java @@ -116,6 +116,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private IndexSettings index; + public Builder() { + } + private Builder(SecuritySettings instance) { + this.index = instance.index; + + } /** * API name: {@code index} */ @@ -149,6 +155,12 @@ public SecuritySettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java index f0d0f17743..6c44b4dcc7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/SuggestUserProfilesRequest.java @@ -210,6 +210,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Long size; + public Builder() { + } + private Builder(SuggestUserProfilesRequest instance) { + this.data = instance.data; + this.hint = instance.hint; + this.name = instance.name; + this.size = instance.size; + + } /** * A comma-separated list of filters for the data field of the * profile document. To return all content use data=*. To return a @@ -309,6 +318,12 @@ public SuggestUserProfilesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java index 1758b1c45e..0cae7af039 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateApiKeyRequest.java @@ -229,6 +229,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map roleDescriptors; + public Builder() { + } + private Builder(UpdateApiKeyRequest instance) { + this.expiration = instance.expiration; + this.id = instance.id; + this.metadata = instance.metadata; + this.roleDescriptors = instance.roleDescriptors; + + } /** * The expiration time for the API key. By default, API keys never expire. This * property can be omitted to leave the expiration unchanged. @@ -371,6 +380,12 @@ public UpdateApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateCrossClusterApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateCrossClusterApiKeyRequest.java index 20e3117284..cbd80485a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateCrossClusterApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateCrossClusterApiKeyRequest.java @@ -243,6 +243,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Map metadata; + public Builder() { + } + private Builder(UpdateCrossClusterApiKeyRequest instance) { + this.access = instance.access; + this.certificateIdentity = instance.certificateIdentity; + this.expiration = instance.expiration; + this.id = instance.id; + this.metadata = instance.metadata; + + } /** * Required - The access to be granted to this API key. The access is composed * of permissions for cross cluster search and cross cluster replication. At @@ -363,6 +373,12 @@ public UpdateCrossClusterApiKeyRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateSettingsRequest.java index 5ea84823af..1953179c28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateSettingsRequest.java @@ -215,6 +215,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(UpdateSettingsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.security = instance.security; + this.securityProfile = instance.securityProfile; + this.securityTokens = instance.securityTokens; + this.timeout = instance.timeout; + + } /** * 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. @@ -334,6 +344,12 @@ public UpdateSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java index 101efce587..fb727e4bdd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UpdateUserProfileDataRequest.java @@ -253,6 +253,17 @@ public static class Builder extends RequestBase.AbstractBuilder private String uid; + public Builder() { + } + private Builder(UpdateUserProfileDataRequest instance) { + this.data = instance.data; + this.ifPrimaryTerm = instance.ifPrimaryTerm; + this.ifSeqNo = instance.ifSeqNo; + this.labels = instance.labels; + this.refresh = instance.refresh; + this.uid = instance.uid; + + } /** * Non-searchable data that you want to associate with the user profile. This * field supports a nested data structure. Within the data object, @@ -375,6 +386,12 @@ public UpdateUserProfileDataRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java index e8002d1b3f..0c547f215b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserIndicesPrivileges.java @@ -229,6 +229,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(UserIndicesPrivileges instance) { + this.fieldSecurity = instance.fieldSecurity; + this.names = instance.names; + this.privileges = instance.privileges; + this.query = instance.query; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * The document fields that the owners of the role have read access to. *

                                                                                                          @@ -410,6 +420,12 @@ public UserIndicesPrivileges build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java index 473fd43eac..724889126f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileHitMetadata.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long seqNo; + public Builder() { + } + private Builder(UserProfileHitMetadata instance) { + this.primaryTerm = instance.primaryTerm; + this.seqNo = instance.seqNo; + + } /** * Required - API name: {@code _primary_term} */ @@ -161,6 +168,12 @@ public UserProfileHitMetadata build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java index 4bd16a5ece..3b8e01460e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/UserProfileUser.java @@ -208,6 +208,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String username; + public Builder() { + } + private Builder(UserProfileUser instance) { + this.email = instance.email; + this.fullName = instance.fullName; + this.realmName = instance.realmName; + this.realmDomain = instance.realmDomain; + this.roles = instance.roles; + this.username = instance.username; + + } /** * API name: {@code email} */ @@ -286,6 +297,12 @@ public UserProfileUser build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/AuthenticateApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/AuthenticateApiKey.java index f5fee19414..6e9fee6834 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/AuthenticateApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/AuthenticateApiKey.java @@ -170,6 +170,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean internal; + public Builder() { + } + private Builder(AuthenticateApiKey instance) { + this.id = instance.id; + this.name = instance.name; + this.managedBy = instance.managedBy; + this.internal = instance.internal; + + } /** * Required - API name: {@code id} */ @@ -220,6 +229,12 @@ public AuthenticateApiKey build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java index 25218b7e74..dabc11ed1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/authenticate/ServiceToken.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String type; + public Builder() { + } + private Builder(ServiceToken instance) { + this.name = instance.name; + this.type = instance.type; + + } /** * Required - API name: {@code name} */ @@ -165,6 +172,12 @@ public ServiceToken build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java index 02a843e0f4..51c2533fae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/create_service_token/Token.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String value; + public Builder() { + } + private Builder(Token instance) { + this.name = instance.name; + this.value = instance.value; + + } /** * Required - API name: {@code name} */ @@ -160,6 +167,12 @@ public Token build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/Authentication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/Authentication.java index d55aa2003e..0a70363cdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/Authentication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/Authentication.java @@ -310,6 +310,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map apiKey; + public Builder() { + } + private Builder(Authentication instance) { + this.username = instance.username; + this.roles = instance.roles; + this.fullName = instance.fullName; + this.email = instance.email; + this.token = instance.token; + this.metadata = instance.metadata; + this.enabled = instance.enabled; + this.authenticationRealm = instance.authenticationRealm; + this.lookupRealm = instance.lookupRealm; + this.authenticationType = instance.authenticationType; + this.apiKey = instance.apiKey; + + } /** * Required - API name: {@code username} */ @@ -479,6 +495,12 @@ public Authentication build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/AuthenticationRealm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/AuthenticationRealm.java index 5ea349fcfb..614b97ec79 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/AuthenticationRealm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delegate_pki/AuthenticationRealm.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String domain; + public Builder() { + } + private Builder(AuthenticationRealm instance) { + this.name = instance.name; + this.type = instance.type; + this.domain = instance.domain; + + } /** * Required - API name: {@code name} */ @@ -191,6 +199,12 @@ public AuthenticationRealm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java index b5a004ba84..ac93571d35 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/delete_privileges/FoundStatus.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean found; + public Builder() { + } + private Builder(FoundStatus instance) { + this.found = instance.found; + + } /** * Required - API name: {@code found} */ @@ -136,6 +142,12 @@ public FoundStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java index 69383cda49..f8f8c56d8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/enroll_kibana/Token.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String value; + public Builder() { + } + private Builder(Token instance) { + this.name = instance.name; + this.value = instance.value; + + } /** * Required - The name of the bearer token for the elastic/kibana * service account. @@ -173,6 +180,12 @@ public Token build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java index 97908847bd..df8dd30c30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_role/Role.java @@ -378,6 +378,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map>>> global; + public Builder() { + } + private Builder(Role instance) { + this.cluster = instance.cluster; + this.indices = instance.indices; + this.remoteIndices = instance.remoteIndices; + this.remoteCluster = instance.remoteCluster; + this.metadata = instance.metadata; + this.description = instance.description; + this.runAs = instance.runAs; + this.transientMetadata = instance.transientMetadata; + this.applications = instance.applications; + this.roleTemplates = instance.roleTemplates; + this.global = instance.global; + + } /** * Required - API name: {@code cluster} *

                                                                                                          @@ -663,6 +679,12 @@ public Role build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java index e659a09dea..66a738099e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_accounts/RoleDescriptorWrapper.java @@ -113,6 +113,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private RoleDescriptorRead roleDescriptor; + public Builder() { + } + private Builder(RoleDescriptorWrapper instance) { + this.roleDescriptor = instance.roleDescriptor; + + } /** * Required - API name: {@code role_descriptor} */ @@ -147,6 +153,12 @@ public RoleDescriptorWrapper build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java index 2a4a3f7bfe..d3f6fb2b3f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map fileTokens; + public Builder() { + } + private Builder(NodesCredentials instance) { + this.nodeStats = instance.nodeStats; + this.fileTokens = instance.fileTokens; + + } /** * Required - General status showing how nodes respond to the above collection * request @@ -217,6 +224,12 @@ public NodesCredentials build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java index 1d109dc558..0798e30480 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java @@ -122,6 +122,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List nodes; + public Builder() { + } + private Builder(NodesCredentialsFileToken instance) { + this.nodes = instance.nodes; + + } /** * Required - API name: {@code nodes} *

                                                                                                          @@ -160,6 +166,12 @@ public NodesCredentialsFileToken build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticatedUser.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticatedUser.java index 3aebb85999..8475580320 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticatedUser.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticatedUser.java @@ -148,6 +148,15 @@ public static class Builder extends User.AbstractBuilder implements Obj private String authenticationType; + public Builder() { + } + private Builder(AuthenticatedUser instance) { + this.authenticationRealm = instance.authenticationRealm; + this.lookupRealm = instance.lookupRealm; + this.authenticationProvider = instance.authenticationProvider; + this.authenticationType = instance.authenticationType; + + } /** * Required - API name: {@code authentication_realm} */ @@ -220,6 +229,12 @@ public AuthenticatedUser build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticationProvider.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticationProvider.java index 67030b99a8..dc42ab742c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticationProvider.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/AuthenticationProvider.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String name; + public Builder() { + } + private Builder(AuthenticationProvider instance) { + this.type = instance.type; + this.name = instance.name; + + } /** * Required - API name: {@code type} */ @@ -162,6 +169,12 @@ public AuthenticationProvider build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/UserRealm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/UserRealm.java index 3a969d959d..8ba39cf319 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/UserRealm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_token/UserRealm.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(UserRealm instance) { + this.name = instance.name; + this.type = instance.type; + + } /** * Required - API name: {@code name} */ @@ -159,6 +166,12 @@ public UserRealm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_user_profile/GetUserProfileErrors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_user_profile/GetUserProfileErrors.java index a864c9e2b9..c73dd1bd38 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_user_profile/GetUserProfileErrors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_user_profile/GetUserProfileErrors.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Map details; + public Builder() { + } + private Builder(GetUserProfileErrors instance) { + this.count = instance.count; + this.details = instance.details; + + } /** * Required - API name: {@code count} */ @@ -195,6 +202,12 @@ public GetUserProfileErrors build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java index 29711f792a..aab7f28e55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/grant_api_key/GrantApiKey.java @@ -204,6 +204,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map metadata; + public Builder() { + } + private Builder(GrantApiKey instance) { + this.name = instance.name; + this.expiration = instance.expiration; + this.roleDescriptors = instance.roleDescriptors; + this.metadata = instance.metadata; + + } /** * Required - API name: {@code name} */ @@ -309,6 +318,12 @@ public GrantApiKey build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java index 3c8f4fddc1..3dfead024a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/ApplicationPrivilegesCheck.java @@ -168,6 +168,14 @@ public static class Builder extends WithJsonObjectBuilderBase private List resources; + public Builder() { + } + private Builder(ApplicationPrivilegesCheck instance) { + this.application = instance.application; + this.privileges = instance.privileges; + this.resources = instance.resources; + + } /** * Required - The name of the application. *

                                                                                                          @@ -250,6 +258,12 @@ public ApplicationPrivilegesCheck build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java index 8929e3f1f0..6d1a59e225 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java @@ -180,6 +180,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean allowRestrictedIndices; + public Builder() { + } + private Builder(IndexPrivilegesCheck instance) { + this.names = instance.names; + this.privileges = instance.privileges; + this.allowRestrictedIndices = instance.allowRestrictedIndices; + + } /** * Required - A list of indices. *

                                                                                                          @@ -278,6 +286,12 @@ public IndexPrivilegesCheck build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/HasPrivilegesUserProfileErrors.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/HasPrivilegesUserProfileErrors.java index c519ca660b..c4190ab5e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/HasPrivilegesUserProfileErrors.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/HasPrivilegesUserProfileErrors.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Map details; + public Builder() { + } + private Builder(HasPrivilegesUserProfileErrors instance) { + this.count = instance.count; + this.details = instance.details; + + } /** * Required - API name: {@code count} */ @@ -196,6 +203,12 @@ public HasPrivilegesUserProfileErrors build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java index e6f6357ebf..66086c02cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java @@ -173,6 +173,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List index; + public Builder() { + } + private Builder(PrivilegesCheck instance) { + this.application = instance.application; + this.cluster = instance.cluster; + this.index = instance.index; + + } /** * API name: {@code application} *

                                                                                                          @@ -287,6 +295,12 @@ public PrivilegesCheck build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/put_privileges/Actions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/put_privileges/Actions.java index cb70a1f7e0..fd02326169 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/put_privileges/Actions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/put_privileges/Actions.java @@ -186,6 +186,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map metadata; + public Builder() { + } + private Builder(Actions instance) { + this.actions = instance.actions; + this.application = instance.application; + this.name = instance.name; + this.metadata = instance.metadata; + + } /** * Required - API name: {@code actions} *

                                                                                                          @@ -260,6 +269,12 @@ public Actions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java index 79e912df54..20dee011a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_api_keys/ApiKeyFiltersAggregation.java @@ -201,6 +201,15 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder @@ -270,6 +279,12 @@ public ApiKeyFiltersAggregation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_role/QueryRole.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_role/QueryRole.java index bde9226f67..d1d7632c06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_role/QueryRole.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_role/QueryRole.java @@ -124,6 +124,13 @@ public static class Builder extends RoleDescriptor.AbstractBuilder impl private String name; + public Builder() { + } + private Builder(QueryRole instance) { + this.sort = instance.sort; + this.name = instance.name; + + } /** * API name: {@code _sort} *

                                                                                                          @@ -233,6 +240,12 @@ public QueryRole build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_user/QueryUser.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_user/QueryUser.java index 1ad22fdf40..fc07c0d74a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_user/QueryUser.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/query_user/QueryUser.java @@ -108,6 +108,12 @@ public static class Builder extends User.AbstractBuilder implements Obj @Nullable private List sort; + public Builder() { + } + private Builder(QueryUser instance) { + this.sort = instance.sort; + + } /** * API name: {@code _sort} *

                                                                                                          @@ -207,6 +213,12 @@ public QueryUser build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java index 17fe49772a..41d7480ebe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/Hint.java @@ -158,6 +158,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map> labels; + public Builder() { + } + private Builder(Hint instance) { + this.uids = instance.uids; + this.labels = instance.labels; + + } /** * A list of profile UIDs to match against. *

                                                                                                          @@ -226,6 +233,12 @@ public Hint build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java index dca6656a46..e3d47c89b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/suggest_user_profiles/TotalUserProfiles.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String relation; + public Builder() { + } + private Builder(TotalUserProfiles instance) { + this.value = instance.value; + this.relation = instance.relation; + + } /** * Required - API name: {@code value} */ @@ -161,6 +168,12 @@ public TotalUserProfiles build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java index 42d7363c15..0406ec3e65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java @@ -145,6 +145,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteNodeRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + this.timeout = instance.timeout; + + } /** * 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. @@ -215,6 +223,12 @@ public DeleteNodeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java index bb3842669b..5a6ec7c761 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java @@ -127,6 +127,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private List nodeId; + public Builder() { + } + private Builder(GetNodeRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + + } /** * 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. @@ -190,6 +197,12 @@ public GetNodeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java index fe71ff12d3..b70f1e3556 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java @@ -269,6 +269,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Type type; + public Builder() { + } + private Builder(PutNodeRequest instance) { + this.allocationDelay = instance.allocationDelay; + this.masterTimeout = instance.masterTimeout; + this.nodeId = instance.nodeId; + this.reason = instance.reason; + this.targetNodeName = instance.targetNodeName; + this.timeout = instance.timeout; + this.type = instance.type; + + } /** * Only valid if type is restart. Controls how long Elasticsearch will wait for * the node to restart and join the cluster before reassigning its shards to @@ -402,6 +414,12 @@ public PutNodeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java index 68e3895d42..029ce3d368 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java @@ -218,6 +218,19 @@ public static class Builder extends WithJsonObjectBuilderBase private PluginsStatus plugins; + public Builder() { + } + private Builder(NodeShutdownStatus instance) { + this.nodeId = instance.nodeId; + this.type = instance.type; + this.reason = instance.reason; + this.shutdownStartedmillis = instance.shutdownStartedmillis; + this.status = instance.status; + this.shardMigration = instance.shardMigration; + this.persistentTasks = instance.persistentTasks; + this.plugins = instance.plugins; + + } /** * Required - API name: {@code node_id} */ @@ -323,6 +336,12 @@ public NodeShutdownStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java index f2cbe23abe..8058373fb2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private ShutdownStatus status; + public Builder() { + } + private Builder(PersistentTaskStatus instance) { + this.status = instance.status; + + } /** * Required - API name: {@code status} */ @@ -138,6 +144,12 @@ public PersistentTaskStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java index 88495fac71..eb19eb2370 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private ShutdownStatus status; + public Builder() { + } + private Builder(PluginsStatus instance) { + this.status = instance.status; + + } /** * Required - API name: {@code status} */ @@ -136,6 +142,12 @@ public PluginsStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java index 3ebc75d1ca..660693ced7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private ShutdownStatus status; + public Builder() { + } + private Builder(ShardMigrationStatus instance) { + this.status = instance.status; + + } /** * Required - API name: {@code status} */ @@ -138,6 +144,12 @@ public ShardMigrationStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java index 3fdb5fe944..00a54ffb17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/IngestRequest.java @@ -318,6 +318,19 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Map pipelineSubstitutions; + public Builder() { + } + private Builder(IngestRequest instance) { + this.componentTemplateSubstitutions = instance.componentTemplateSubstitutions; + this.docs = instance.docs; + this.index = instance.index; + this.indexTemplateSubstitutions = instance.indexTemplateSubstitutions; + this.mappingAddition = instance.mappingAddition; + this.mergeType = instance.mergeType; + this.pipeline = instance.pipeline; + this.pipelineSubstitutions = instance.pipelineSubstitutions; + + } /** * A map of component template names to substitute component template definition * objects. @@ -547,6 +560,12 @@ public IngestRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/IngestDocumentSimulation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/IngestDocumentSimulation.java index 5512790815..7d1a40de85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/IngestDocumentSimulation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/IngestDocumentSimulation.java @@ -332,6 +332,19 @@ public final Builder metadata(String key, String value) { @Nullable private TypeMapping effectiveMapping; + public Builder() { + } + private Builder(IngestDocumentSimulation instance) { + this.id = instance.id; + this.index = instance.index; + this.source = instance.source; + this.version = instance.version; + this.executedPipelines = instance.executedPipelines; + this.ignoredFields = instance.ignoredFields; + this.error = instance.error; + this.effectiveMapping = instance.effectiveMapping; + + } /** * Required - Identifier for the document. *

                                                                                                          @@ -495,6 +508,12 @@ public IngestDocumentSimulation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/SimulateIngestDocumentResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/SimulateIngestDocumentResult.java index afc93eb0ec..52a42da1a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/SimulateIngestDocumentResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/simulate/ingest/SimulateIngestDocumentResult.java @@ -117,6 +117,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private IngestDocumentSimulation doc; + public Builder() { + } + private Builder(SimulateIngestDocumentResult instance) { + this.doc = instance.doc; + + } /** * API name: {@code doc} */ @@ -151,6 +157,12 @@ public SimulateIngestDocumentResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java index d155b30623..4e614ffe6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/DeleteLifecycleRequest.java @@ -137,6 +137,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.policyId = instance.policyId; + this.timeout = instance.timeout; + + } /** * 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. @@ -207,6 +215,12 @@ public DeleteLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java index a9a138f415..7dd609027b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteLifecycleRequest.java @@ -138,6 +138,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ExecuteLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.policyId = instance.policyId; + this.timeout = instance.timeout; + + } /** * 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. @@ -208,6 +216,12 @@ public ExecuteLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java index 6a5fd3b0b1..daff631ae3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/ExecuteRetentionRequest.java @@ -122,6 +122,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(ExecuteRetentionRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -182,6 +189,12 @@ public ExecuteRetentionRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java index 217a8fb819..cf773740ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetLifecycleRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(GetLifecycleRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.policyId = instance.policyId; + this.timeout = instance.timeout; + + } /** * 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. @@ -223,6 +231,12 @@ public GetLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java index 98efdfaba7..078dcf4164 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetSlmStatusRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(GetSlmStatusRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -184,6 +191,12 @@ public GetSlmStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java index 846a81ded3..958082fc65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/GetStatsRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(GetStatsRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -179,6 +186,12 @@ public GetStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/InProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/InProgress.java index e084ea6955..a2c96d582e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/InProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/InProgress.java @@ -156,6 +156,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String uuid; + public Builder() { + } + private Builder(InProgress instance) { + this.name = instance.name; + this.startTimeMillis = instance.startTimeMillis; + this.state = instance.state; + this.uuid = instance.uuid; + + } /** * Required - API name: {@code name} */ @@ -206,6 +215,12 @@ public InProgress build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Invocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Invocation.java index e89b12328b..608d379dcd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Invocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Invocation.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private DateTime time; + public Builder() { + } + private Builder(Invocation instance) { + this.snapshotName = instance.snapshotName; + this.time = instance.time; + + } /** * Required - API name: {@code snapshot_name} */ @@ -160,6 +167,12 @@ public Invocation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java index 4b81cbe8cd..03bc3b9aa4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/PutLifecycleRequest.java @@ -271,6 +271,19 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(PutLifecycleRequest instance) { + this.config = instance.config; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.policyId = instance.policyId; + this.repository = instance.repository; + this.retention = instance.retention; + this.schedule = instance.schedule; + this.timeout = instance.timeout; + + } /** * Configuration for each snapshot created by the policy. *

                                                                                                          @@ -419,6 +432,12 @@ public PutLifecycleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Retention.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Retention.java index c2aaf7019e..6eae095410 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Retention.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Retention.java @@ -153,6 +153,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer minCount; + public Builder() { + } + private Builder(Retention instance) { + this.expireAfter = instance.expireAfter; + this.maxCount = instance.maxCount; + this.minCount = instance.minCount; + + } /** * Required - Time period after which a snapshot is considered expired and * eligible for deletion. SLM deletes expired snapshots based on the @@ -218,6 +226,12 @@ public Retention build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmConfiguration.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmConfiguration.java index dcdc9795df..1d093b150f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmConfiguration.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmConfiguration.java @@ -257,6 +257,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean partial; + public Builder() { + } + private Builder(SlmConfiguration instance) { + this.ignoreUnavailable = instance.ignoreUnavailable; + this.indices = instance.indices; + this.includeGlobalState = instance.includeGlobalState; + this.featureStates = instance.featureStates; + this.metadata = instance.metadata; + this.partial = instance.partial; + + } /** * If false, the snapshot fails if any data stream or index in indices is * missing or closed. If true, the snapshot ignores missing or closed data @@ -404,6 +415,12 @@ public SlmConfiguration build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmPolicy.java index 743407f860..6c19cbae28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SlmPolicy.java @@ -180,6 +180,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String schedule; + public Builder() { + } + private Builder(SlmPolicy instance) { + this.config = instance.config; + this.name = instance.name; + this.repository = instance.repository; + this.retention = instance.retention; + this.schedule = instance.schedule; + + } /** * API name: {@code config} */ @@ -252,6 +262,12 @@ public SlmPolicy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotLifecycle.java index f12ee0cb04..de237188b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotLifecycle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotLifecycle.java @@ -278,6 +278,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Statistics stats; + public Builder() { + } + private Builder(SnapshotLifecycle instance) { + this.inProgress = instance.inProgress; + this.lastFailure = instance.lastFailure; + this.lastSuccess = instance.lastSuccess; + this.modifiedDate = instance.modifiedDate; + this.modifiedDateMillis = instance.modifiedDateMillis; + this.nextExecution = instance.nextExecution; + this.nextExecutionMillis = instance.nextExecutionMillis; + this.policy = instance.policy; + this.version = instance.version; + this.stats = instance.stats; + + } /** * API name: {@code in_progress} */ @@ -418,6 +433,12 @@ public SnapshotLifecycle build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotPolicyStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotPolicyStats.java index e009306e5b..2e574f5994 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotPolicyStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/SnapshotPolicyStats.java @@ -174,6 +174,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long snapshotDeletionFailures; + public Builder() { + } + private Builder(SnapshotPolicyStats instance) { + this.policy = instance.policy; + this.snapshotsTaken = instance.snapshotsTaken; + this.snapshotsFailed = instance.snapshotsFailed; + this.snapshotsDeleted = instance.snapshotsDeleted; + this.snapshotDeletionFailures = instance.snapshotDeletionFailures; + + } /** * Required - API name: {@code policy} */ @@ -232,6 +242,12 @@ public SnapshotPolicyStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java index 0a357c15e8..85e85ab18d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StartSlmRequest.java @@ -122,6 +122,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(StartSlmRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -186,6 +193,12 @@ public StartSlmRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Statistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Statistics.java index e6b8a27d5b..cacd9a8e5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Statistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/Statistics.java @@ -297,6 +297,21 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalSnapshotsTaken; + public Builder() { + } + private Builder(Statistics instance) { + this.retentionDeletionTime = instance.retentionDeletionTime; + this.retentionDeletionTimeMillis = instance.retentionDeletionTimeMillis; + this.retentionFailed = instance.retentionFailed; + this.retentionRuns = instance.retentionRuns; + this.retentionTimedOut = instance.retentionTimedOut; + this.policy = instance.policy; + this.totalSnapshotsDeleted = instance.totalSnapshotsDeleted; + this.totalSnapshotDeletionFailures = instance.totalSnapshotDeletionFailures; + this.totalSnapshotsFailed = instance.totalSnapshotsFailed; + this.totalSnapshotsTaken = instance.totalSnapshotsTaken; + + } /** * API name: {@code retention_deletion_time} */ @@ -402,6 +417,12 @@ public Statistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java index 45ed0cc243..acd9bfb9a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/slm/StopSlmRequest.java @@ -130,6 +130,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time timeout; + public Builder() { + } + private Builder(StopSlmRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -194,6 +201,12 @@ public StopSlmRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java index b3f606986d..8a4d98c90a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepository.java @@ -112,6 +112,12 @@ public static class Builder extends RepositoryBase.AbstractBuilder @Nullable private AzureRepositorySettings settings; + public Builder() { + } + private Builder(AzureRepository instance) { + this.settings = instance.settings; + + } /** * The repository settings. *

                                                                                                          @@ -150,6 +156,12 @@ public AzureRepository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java index 13affce01d..7c2c0a7290 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/AzureRepositorySettings.java @@ -266,6 +266,18 @@ public static class Builder extends RepositorySettingsBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(CleanupRepositoryRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * The period to wait for a connection to the master node. If the master node is * not available before the timeout expires, the request fails and returns an @@ -222,6 +230,12 @@ public CleanupRepositoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java index e46546f7fd..65cd33529c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CloneSnapshotRequest.java @@ -180,6 +180,16 @@ public static class Builder extends RequestBase.AbstractBuilder private String targetSnapshot; + public Builder() { + } + private Builder(CloneSnapshotRequest instance) { + this.indices = instance.indices; + this.masterTimeout = instance.masterTimeout; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.targetSnapshot = instance.targetSnapshot; + + } /** * Required - A comma-separated list of indices to include in the snapshot. * Multi-target syntax is supported. @@ -263,6 +273,12 @@ public CloneSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java index b260227788..d4dda1511a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateRepositoryRequest.java @@ -194,6 +194,16 @@ public static class Builder extends RequestBase.AbstractBuilder private Repository repository; + public Builder() { + } + private Builder(CreateRepositoryRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + this.verify = instance.verify; + this.repository = instance.repository; + + } /** * The period to wait for the master node. If the master node is not available * before the timeout expires, the request fails and returns an error. To @@ -308,6 +318,12 @@ public CreateRepositoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } public static final JsonpDeserializer _DESERIALIZER = createCreateRepositoryRequestDeserializer(); protected static JsonpDeserializer createCreateRepositoryRequestDeserializer() { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java index bd0a8789d5..38ee5253f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java @@ -371,6 +371,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(CreateSnapshotRequest instance) { + this.expandWildcards = instance.expandWildcards; + this.featureStates = instance.featureStates; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeGlobalState = instance.includeGlobalState; + this.indices = instance.indices; + this.masterTimeout = instance.masterTimeout; + this.metadata = instance.metadata; + this.partial = instance.partial; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Determines how wildcard patterns in the indices parameter match * data streams and indices. It supports comma-separated values such as @@ -625,6 +641,12 @@ public CreateSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java index f7dccb5c53..0f313d5a82 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteRepositoryRequest.java @@ -145,6 +145,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(DeleteRepositoryRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * The period to wait for the master node. If the master node is not available * before the timeout expires, the request fails and returns an error. To @@ -239,6 +247,12 @@ public DeleteRepositoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java index 39fcb08782..9135ff9c93 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/DeleteSnapshotRequest.java @@ -153,6 +153,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(DeleteSnapshotRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.waitForCompletion = instance.waitForCompletion; + + } /** * The period to wait for the master node. If the master node is not available * before the timeout expires, the request fails and returns an error. To @@ -242,6 +251,12 @@ public DeleteSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java index 04e3085743..50d0fe15af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/FileCountSnapshotStats.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long sizeInBytes; + public Builder() { + } + private Builder(FileCountSnapshotStats instance) { + this.fileCount = instance.fileCount; + this.sizeInBytes = instance.sizeInBytes; + + } /** * Required - API name: {@code file_count} */ @@ -162,6 +169,12 @@ public FileCountSnapshotStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java index b408446e81..e391e72d27 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepository.java @@ -107,6 +107,12 @@ public static class Builder extends RepositoryBase.AbstractBuilder ObjectBuilder { private GcsRepositorySettings settings; + public Builder() { + } + private Builder(GcsRepository instance) { + this.settings = instance.settings; + + } /** * Required - The repository settings. *

                                                                                                          @@ -145,6 +151,12 @@ public GcsRepository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java index 5c74760c94..8f1e11fb6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GcsRepositorySettings.java @@ -213,6 +213,16 @@ public static class Builder extends RepositorySettingsBase.AbstractBuilder @@ -304,6 +314,12 @@ public GcsRepositorySettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java index de169e9093..22632ceb71 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetRepositoryRequest.java @@ -143,6 +143,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List name; + public Builder() { + } + private Builder(GetRepositoryRequest instance) { + this.local = instance.local; + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + + } /** * If true, the request gets information from the local node only. * If false, the request gets information from the master node. @@ -229,6 +237,12 @@ public GetRepositoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java index 87ece34772..cc7fb6ea6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/GetSnapshotRequest.java @@ -405,6 +405,27 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean verbose; + public Builder() { + } + private Builder(GetSnapshotRequest instance) { + this.after = instance.after; + this.fromSortValue = instance.fromSortValue; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeRepository = instance.includeRepository; + this.indexDetails = instance.indexDetails; + this.indexNames = instance.indexNames; + this.masterTimeout = instance.masterTimeout; + this.offset = instance.offset; + this.order = instance.order; + this.repository = instance.repository; + this.size = instance.size; + this.slmPolicyFilter = instance.slmPolicyFilter; + this.snapshot = instance.snapshot; + this.sort = instance.sort; + this.state = instance.state; + this.verbose = instance.verbose; + + } /** * An offset identifier to start pagination from as returned by the next field * in the response body. @@ -675,6 +696,12 @@ public GetSnapshotRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java index 3e5b2d3eaa..d257d723af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/IndexDetails.java @@ -163,6 +163,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long maxSegmentsPerShard; + public Builder() { + } + private Builder(IndexDetails instance) { + this.shardCount = instance.shardCount; + this.size = instance.size; + this.sizeInBytes = instance.sizeInBytes; + this.maxSegmentsPerShard = instance.maxSegmentsPerShard; + + } /** * Required - API name: {@code shard_count} */ @@ -213,6 +222,12 @@ public IndexDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java index 21e3099637..3c7c2e5e04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/InfoFeatureState.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List indices; + public Builder() { + } + private Builder(InfoFeatureState instance) { + this.featureName = instance.featureName; + this.indices = instance.indices; + + } /** * Required - API name: {@code feature_name} */ @@ -181,6 +188,12 @@ public InfoFeatureState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java index 7a45f4faa3..00bb181645 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepository.java @@ -108,6 +108,12 @@ public static class Builder extends RepositoryBase.AbstractBuilder ObjectBuilder { private ReadOnlyUrlRepositorySettings settings; + public Builder() { + } + private Builder(ReadOnlyUrlRepository instance) { + this.settings = instance.settings; + + } /** * Required - The repository settings. *

                                                                                                          @@ -146,6 +152,12 @@ public ReadOnlyUrlRepository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java index ff2e01c031..654fef1112 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ReadOnlyUrlRepositorySettings.java @@ -188,6 +188,15 @@ public static class Builder extends RepositorySettingsBase.AbstractBuilder @@ -275,6 +284,12 @@ public ReadOnlyUrlRepositorySettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryAnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryAnalyzeRequest.java index 059a4258dc..06ff9504e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryAnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryAnalyzeRequest.java @@ -502,6 +502,24 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(RepositoryAnalyzeRequest instance) { + this.blobCount = instance.blobCount; + this.concurrency = instance.concurrency; + this.detailed = instance.detailed; + this.earlyReadNodeCount = instance.earlyReadNodeCount; + this.maxBlobSize = instance.maxBlobSize; + this.maxTotalDataSize = instance.maxTotalDataSize; + this.name = instance.name; + this.rareActionProbability = instance.rareActionProbability; + this.rarelyAbortWrites = instance.rarelyAbortWrites; + this.readNodeCount = instance.readNodeCount; + this.registerOperationCount = instance.registerOperationCount; + this.seed = instance.seed; + this.timeout = instance.timeout; + + } /** * The total number of blobs to write to the repository during the test. For * realistic experiments, set this parameter to at least 2000. @@ -682,6 +700,12 @@ public RepositoryAnalyzeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java index e2754dc739..d6a614e0e1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RepositoryVerifyIntegrityRequest.java @@ -314,6 +314,20 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean verifyBlobContents; + public Builder() { + } + private Builder(RepositoryVerifyIntegrityRequest instance) { + this.blobThreadPoolConcurrency = instance.blobThreadPoolConcurrency; + this.indexSnapshotVerificationConcurrency = instance.indexSnapshotVerificationConcurrency; + this.indexVerificationConcurrency = instance.indexVerificationConcurrency; + this.maxBytesPerSec = instance.maxBytesPerSec; + this.maxFailedShardSnapshots = instance.maxFailedShardSnapshots; + this.metaThreadPoolConcurrency = instance.metaThreadPoolConcurrency; + this.name = instance.name; + this.snapshotVerificationConcurrency = instance.snapshotVerificationConcurrency; + this.verifyBlobContents = instance.verifyBlobContents; + + } /** * If verify_blob_contents is true, this parameter * specifies how many blobs to verify at once. @@ -448,6 +462,12 @@ public RepositoryVerifyIntegrityRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java index dc6a2bba16..b4793dd98e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/RestoreRequest.java @@ -487,6 +487,25 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(RestoreRequest instance) { + this.featureStates = instance.featureStates; + this.ignoreIndexSettings = instance.ignoreIndexSettings; + this.ignoreUnavailable = instance.ignoreUnavailable; + this.includeAliases = instance.includeAliases; + this.includeGlobalState = instance.includeGlobalState; + this.indexSettings = instance.indexSettings; + this.indices = instance.indices; + this.masterTimeout = instance.masterTimeout; + this.partial = instance.partial; + this.renamePattern = instance.renamePattern; + this.renameReplacement = instance.renameReplacement; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.waitForCompletion = instance.waitForCompletion; + + } /** * The feature states to restore. If include_global_state is * true, the request restores all feature states in the snapshot by @@ -800,6 +819,12 @@ public RestoreRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java index c0bd5c7008..a6d4ddac45 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3Repository.java @@ -112,6 +112,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends RepositoryBase.AbstractBuilder implements ObjectBuilder { private S3RepositorySettings settings; + public Builder() { + } + private Builder(S3Repository instance) { + this.settings = instance.settings; + + } /** * Required - The repository settings. *

                                                                                                          @@ -163,6 +169,12 @@ public S3Repository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java index f688f56b3f..d3f4ad718d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/S3RepositorySettings.java @@ -470,6 +470,26 @@ public static class Builder extends RepositorySettingsBase.AbstractBuilder implement private Long total; + public Builder() { + } + private Builder(ShardsStats instance) { + this.done = instance.done; + this.failed = instance.failed; + this.finalizing = instance.finalizing; + this.initializing = instance.initializing; + this.started = instance.started; + this.total = instance.total; + + } /** * Required - The number of shards that initialized, started, and finalized * successfully. @@ -276,6 +287,12 @@ public ShardsStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummary.java index d2639d29d1..9fa2911d63 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummary.java @@ -179,6 +179,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long timeInMillis; + public Builder() { + } + private Builder(ShardsStatsSummary instance) { + this.incremental = instance.incremental; + this.total = instance.total; + this.startTimeInMillis = instance.startTimeInMillis; + this.time = instance.time; + this.timeInMillis = instance.timeInMillis; + + } /** * Required - API name: {@code incremental} */ @@ -259,6 +269,12 @@ public ShardsStatsSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummaryItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummaryItem.java index db393a2625..c0739c2704 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummaryItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/ShardsStatsSummaryItem.java @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long sizeInBytes; + public Builder() { + } + private Builder(ShardsStatsSummaryItem instance) { + this.fileCount = instance.fileCount; + this.sizeInBytes = instance.sizeInBytes; + + } /** * Required - API name: {@code file_count} */ @@ -161,6 +168,12 @@ public ShardsStatsSummaryItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java index b0d25c4558..95ade261a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepository.java @@ -108,6 +108,12 @@ public static class Builder extends RepositoryBase.AbstractBuilder ObjectBuilder { private SharedFileSystemRepositorySettings settings; + public Builder() { + } + private Builder(SharedFileSystemRepository instance) { + this.settings = instance.settings; + + } /** * Required - The repository settings. *

                                                                                                          @@ -146,6 +152,12 @@ public SharedFileSystemRepository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java index 9a32c8988f..6f2f17ec80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SharedFileSystemRepositorySettings.java @@ -166,6 +166,14 @@ public static class Builder extends RepositorySettingsBase.AbstractBuilderpath.repo @@ -232,6 +240,12 @@ public SharedFileSystemRepositorySettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java index a5a610f87d..859dcba89c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotIndexStats.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private SnapshotStats stats; + public Builder() { + } + private Builder(SnapshotIndexStats instance) { + this.shards = instance.shards; + this.shardsStats = instance.shardsStats; + this.stats = instance.stats; + + } /** * Required - API name: {@code shards} *

                                                                                                          @@ -230,6 +238,12 @@ public SnapshotIndexStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java index b18478a1ad..507458b180 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotInfo.java @@ -531,6 +531,32 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private List featureStates; + public Builder() { + } + private Builder(SnapshotInfo instance) { + this.dataStreams = instance.dataStreams; + this.duration = instance.duration; + this.durationInMillis = instance.durationInMillis; + this.endTime = instance.endTime; + this.endTimeInMillis = instance.endTimeInMillis; + this.failures = instance.failures; + this.includeGlobalState = instance.includeGlobalState; + this.indices = instance.indices; + this.indexDetails = instance.indexDetails; + this.metadata = instance.metadata; + this.reason = instance.reason; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + this.shards = instance.shards; + this.startTime = instance.startTime; + this.startTimeInMillis = instance.startTimeInMillis; + this.state = instance.state; + this.uuid = instance.uuid; + this.version = instance.version; + this.versionId = instance.versionId; + this.featureStates = instance.featureStates; + + } /** * Required - API name: {@code data_streams} *

                                                                                                          @@ -830,6 +856,12 @@ public SnapshotInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java index e409acfb00..a9b6225ef0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java @@ -194,6 +194,17 @@ public static class Builder extends WithJsonObjectBuilderBase private String status; + public Builder() { + } + private Builder(SnapshotShardFailure instance) { + this.index = instance.index; + this.nodeId = instance.nodeId; + this.reason = instance.reason; + this.shardId = instance.shardId; + this.indexUuid = instance.indexUuid; + this.status = instance.status; + + } /** * Required - API name: {@code index} */ @@ -260,6 +271,12 @@ public SnapshotShardFailure build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java index 72033c9c5c..bf91bb9d41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardsStatus.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase private ShardsStatsSummary stats; + public Builder() { + } + private Builder(SnapshotShardsStatus instance) { + this.stage = instance.stage; + this.stats = instance.stats; + + } /** * Required - API name: {@code stage} */ @@ -167,6 +174,12 @@ public SnapshotShardsStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java index 211629a553..0e4f590c3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStats.java @@ -190,6 +190,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FileCountSnapshotStats total; + public Builder() { + } + private Builder(SnapshotStats instance) { + this.incremental = instance.incremental; + this.startTimeInMillis = instance.startTimeInMillis; + this.time = instance.time; + this.timeInMillis = instance.timeInMillis; + this.total = instance.total; + + } /** * Required - The number and size of files that still need to be copied as part * of the incremental snapshot. For completed snapshots, this property indicates @@ -292,6 +302,12 @@ public SnapshotStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java index edb2b28e5c..4b43bf5384 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotStatusRequest.java @@ -193,6 +193,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List snapshot; + public Builder() { + } + private Builder(SnapshotStatusRequest instance) { + this.ignoreUnavailable = instance.ignoreUnavailable; + this.masterTimeout = instance.masterTimeout; + this.repository = instance.repository; + this.snapshot = instance.snapshot; + + } /** * If false, the request returns an error for any snapshots that * are unavailable. If true, the request ignores snapshots that are @@ -284,6 +293,12 @@ public SnapshotStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java index 952dc99c1e..b5c1a94ea5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepository.java @@ -108,6 +108,12 @@ public static class Builder extends RepositoryBase.AbstractBuilder ObjectBuilder { private SourceOnlyRepositorySettings settings; + public Builder() { + } + private Builder(SourceOnlyRepository instance) { + this.settings = instance.settings; + + } /** * Required - The repository settings. *

                                                                                                          @@ -146,6 +152,12 @@ public SourceOnlyRepository build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java index e4b3bc3993..e6e8ed7c13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SourceOnlyRepositorySettings.java @@ -168,6 +168,14 @@ public static class Builder extends RepositorySettingsBase.AbstractBuildertype parameter. Source repositories can use @@ -233,6 +241,12 @@ public SourceOnlyRepositorySettings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java index f4e42766d9..700cdb4a24 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/Status.java @@ -248,6 +248,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String uuid; + public Builder() { + } + private Builder(Status instance) { + this.includeGlobalState = instance.includeGlobalState; + this.indices = instance.indices; + this.repository = instance.repository; + this.shardsStats = instance.shardsStats; + this.snapshot = instance.snapshot; + this.state = instance.state; + this.stats = instance.stats; + this.uuid = instance.uuid; + + } /** * Required - Indicates whether the current cluster state is included in the * snapshot. @@ -393,6 +406,12 @@ public Status build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java index 8193dc8923..081e389dde 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/VerifyRepositoryRequest.java @@ -140,6 +140,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(VerifyRepositoryRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.name = instance.name; + this.timeout = instance.timeout; + + } /** * The period to wait for the master node. If the master node is not available * before the timeout expires, the request fails and returns an error. To @@ -218,6 +226,12 @@ public VerifyRepositoryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java index f80bd9f057..53c340e740 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/cleanup_repository/CleanupRepositoryResults.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long deletedBytes; + public Builder() { + } + private Builder(CleanupRepositoryResults instance) { + this.deletedBlobs = instance.deletedBlobs; + this.deletedBytes = instance.deletedBytes; + + } /** * Required - The number of binary large objects (blobs) removed from the * snapshot repository during cleanup operations. A non-zero value indicates @@ -173,6 +180,12 @@ public CleanupRepositoryResults build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java index 00cdfb9f5d..df43ab0ebf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/get/SnapshotResponseItem.java @@ -160,6 +160,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause error; + public Builder() { + } + private Builder(SnapshotResponseItem instance) { + this.repository = instance.repository; + this.snapshots = instance.snapshots; + this.error = instance.error; + + } /** * Required - API name: {@code repository} */ @@ -230,6 +238,12 @@ public SnapshotResponseItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/BlobDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/BlobDetails.java index 0345b5ed77..bc64a7248b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/BlobDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/BlobDetails.java @@ -233,6 +233,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sizeBytes; + public Builder() { + } + private Builder(BlobDetails instance) { + this.name = instance.name; + this.overwritten = instance.overwritten; + this.readEarly = instance.readEarly; + this.readEnd = instance.readEnd; + this.readStart = instance.readStart; + this.reads = instance.reads; + this.size = instance.size; + this.sizeBytes = instance.sizeBytes; + + } /** * Required - The name of the blob. *

                                                                                                          @@ -339,6 +352,12 @@ public BlobDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/DetailsInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/DetailsInfo.java index a6c376ff9a..56ec96f836 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/DetailsInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/DetailsInfo.java @@ -252,6 +252,19 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SnapshotNodeInfo writerNode; + public Builder() { + } + private Builder(DetailsInfo instance) { + this.blob = instance.blob; + this.overwriteElapsed = instance.overwriteElapsed; + this.overwriteElapsedNanos = instance.overwriteElapsedNanos; + this.writeElapsed = instance.writeElapsed; + this.writeElapsedNanos = instance.writeElapsedNanos; + this.writeThrottled = instance.writeThrottled; + this.writeThrottledNanos = instance.writeThrottledNanos; + this.writerNode = instance.writerNode; + + } /** * Required - A description of the blob that was written and read. *

                                                                                                          @@ -407,6 +420,12 @@ public DetailsInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadBlobDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadBlobDetails.java index f276897195..23ab71c05a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadBlobDetails.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadBlobDetails.java @@ -297,6 +297,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long throttledNanos; + public Builder() { + } + private Builder(ReadBlobDetails instance) { + this.beforeWriteComplete = instance.beforeWriteComplete; + this.elapsed = instance.elapsed; + this.elapsedNanos = instance.elapsedNanos; + this.firstByteTime = instance.firstByteTime; + this.firstByteTimeNanos = instance.firstByteTimeNanos; + this.found = instance.found; + this.node = instance.node; + this.throttled = instance.throttled; + this.throttledNanos = instance.throttledNanos; + + } /** * Indicates whether the read operation may have started before the write * operation was complete. @@ -460,6 +474,12 @@ public ReadBlobDetails build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadSummaryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadSummaryInfo.java index fc58b6ecbf..ec514c59a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadSummaryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/ReadSummaryInfo.java @@ -297,6 +297,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalWaitNanos; + public Builder() { + } + private Builder(ReadSummaryInfo instance) { + this.count = instance.count; + this.maxWait = instance.maxWait; + this.maxWaitNanos = instance.maxWaitNanos; + this.totalElapsed = instance.totalElapsed; + this.totalElapsedNanos = instance.totalElapsedNanos; + this.totalSize = instance.totalSize; + this.totalSizeBytes = instance.totalSizeBytes; + this.totalThrottled = instance.totalThrottled; + this.totalThrottledNanos = instance.totalThrottledNanos; + this.totalWait = instance.totalWait; + this.totalWaitNanos = instance.totalWaitNanos; + + } /** * Required - The number of read operations performed in the test. *

                                                                                                          @@ -475,6 +491,12 @@ public ReadSummaryInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SnapshotNodeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SnapshotNodeInfo.java index 9ebef315c6..fbf1e89e17 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SnapshotNodeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SnapshotNodeInfo.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String name; + public Builder() { + } + private Builder(SnapshotNodeInfo instance) { + this.id = instance.id; + this.name = instance.name; + + } /** * Required - API name: {@code id} */ @@ -160,6 +167,12 @@ public SnapshotNodeInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SummaryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SummaryInfo.java index d96a5527d3..2c8e0e2d59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SummaryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/SummaryInfo.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private WriteSummaryInfo write; + public Builder() { + } + private Builder(SummaryInfo instance) { + this.read = instance.read; + this.write = instance.write; + + } /** * Required - A collection of statistics that summarise the results of the read * operations in the test. @@ -191,6 +198,12 @@ public SummaryInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/WriteSummaryInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/WriteSummaryInfo.java index 9bb9eec375..14da3349ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/WriteSummaryInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/repository_analyze/WriteSummaryInfo.java @@ -222,6 +222,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long totalThrottledNanos; + public Builder() { + } + private Builder(WriteSummaryInfo instance) { + this.count = instance.count; + this.totalElapsed = instance.totalElapsed; + this.totalElapsedNanos = instance.totalElapsedNanos; + this.totalSize = instance.totalSize; + this.totalSizeBytes = instance.totalSizeBytes; + this.totalThrottled = instance.totalThrottled; + this.totalThrottledNanos = instance.totalThrottledNanos; + + } /** * Required - The number of write operations performed in the test. *

                                                                                                          @@ -332,6 +344,12 @@ public WriteSummaryInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java index 951f3dd5b1..4ad2b5e8a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/restore/SnapshotRestore.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ShardStatistics shards; + public Builder() { + } + private Builder(SnapshotRestore instance) { + this.indices = instance.indices; + this.snapshot = instance.snapshot; + this.shards = instance.shards; + + } /** * Required - API name: {@code indices} *

                                                                                                          @@ -211,6 +219,12 @@ public SnapshotRestore build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java index 1e39b358e8..0b9e4c9b9e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/verify_repository/CompactNodeInfo.java @@ -115,6 +115,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String name; + public Builder() { + } + private Builder(CompactNodeInfo instance) { + this.name = instance.name; + + } /** * Required - A human-readable name for the node. You can set this name using * the node.name property in elasticsearch.yml. The @@ -145,6 +151,12 @@ public CompactNodeInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java index efe617454e..7bd493a4f8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/ClearCursorRequest.java @@ -113,6 +113,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String cursor; + public Builder() { + } + private Builder(ClearCursorRequest instance) { + this.cursor = instance.cursor; + + } /** * Required - Cursor to clear. *

                                                                                                          @@ -141,6 +147,12 @@ public ClearCursorRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java index 237f4fd3a4..96be3347b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/Column.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; + public Builder() { + } + private Builder(Column instance) { + this.name = instance.name; + this.type = instance.type; + + } /** * Required - API name: {@code name} */ @@ -159,6 +166,12 @@ public Column build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java index a765af9c5f..d1ada4d5ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/DeleteAsyncRequest.java @@ -107,6 +107,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeleteAsyncRequest instance) { + this.id = instance.id; + + } /** * Required - The identifier for the search. *

                                                                                                          @@ -135,6 +141,12 @@ public DeleteAsyncRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java index 542c7220bd..fd7036c62b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncRequest.java @@ -174,6 +174,16 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(GetAsyncRequest instance) { + this.delimiter = instance.delimiter; + this.format = instance.format; + this.id = instance.id; + this.keepAlive = instance.keepAlive; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * The separator for CSV results. The API supports this parameter only for CSV * responses. @@ -267,6 +277,12 @@ public GetAsyncRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java index 8a60896fcb..80eea0d126 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/GetAsyncStatusRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(GetAsyncStatusRequest instance) { + this.id = instance.id; + + } /** * Required - The identifier for the search. *

                                                                                                          @@ -128,6 +134,12 @@ public GetAsyncStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java index 014bd31d77..6245a38411 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -557,6 +557,30 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Time waitForCompletionTimeout; + public Builder() { + } + private Builder(QueryRequest instance) { + this.allowPartialSearchResults = instance.allowPartialSearchResults; + this.catalog = instance.catalog; + this.columnar = instance.columnar; + this.cursor = instance.cursor; + this.fetchSize = instance.fetchSize; + this.fieldMultiValueLeniency = instance.fieldMultiValueLeniency; + this.filter = instance.filter; + this.format = instance.format; + this.indexUsingFrozen = instance.indexUsingFrozen; + this.keepAlive = instance.keepAlive; + this.keepOnCompletion = instance.keepOnCompletion; + this.pageTimeout = instance.pageTimeout; + this.params = instance.params; + this.projectRouting = instance.projectRouting; + this.query = instance.query; + this.requestTimeout = instance.requestTimeout; + this.runtimeMappings = instance.runtimeMappings; + this.timeZone = instance.timeZone; + this.waitForCompletionTimeout = instance.waitForCompletionTimeout; + + } /** * If true, the response has partial results when there are shard * request timeouts or shard failures. If false, the API returns an @@ -899,6 +923,12 @@ public QueryRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java index a5d3e04475..8612a11507 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/TranslateRequest.java @@ -187,6 +187,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String timeZone; + public Builder() { + } + private Builder(TranslateRequest instance) { + this.fetchSize = instance.fetchSize; + this.filter = instance.filter; + this.query = instance.query; + this.timeZone = instance.timeZone; + + } /** * The maximum number of rows (or entries) to return in one response. *

                                                                                                          @@ -264,6 +273,12 @@ public TranslateRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java index 4515edefe2..c0cfa950df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java @@ -250,6 +250,19 @@ public static class Builder extends WithJsonObjectBuilderBase private String subjectDn; + public Builder() { + } + private Builder(CertificateInformation instance) { + this.alias = instance.alias; + this.expiry = instance.expiry; + this.format = instance.format; + this.hasPrivateKey = instance.hasPrivateKey; + this.issuer = instance.issuer; + this.path = instance.path; + this.serialNumber = instance.serialNumber; + this.subjectDn = instance.subjectDn; + + } /** * If the path refers to a container file (a jks keystore, or a PKCS#12 file), * it is the alias of the certificate. Otherwise, it is null. @@ -353,6 +366,12 @@ public CertificateInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsDisableRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsDisableRequest.java index c361eb4ed1..1811a3ee00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsDisableRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsDisableRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(LogsDisableRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -180,6 +187,12 @@ public LogsDisableRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsEnableRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsEnableRequest.java index 5d5dee7d95..dc0510f0ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsEnableRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/LogsEnableRequest.java @@ -125,6 +125,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(LogsEnableRequest instance) { + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * 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. @@ -185,6 +192,12 @@ public LogsEnableRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/StreamsStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/StreamsStatusRequest.java index 7d567958b4..65e3bdc03a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/StreamsStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/StreamsStatusRequest.java @@ -102,6 +102,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(StreamsStatusRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -141,6 +147,12 @@ public StreamsStatusRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/status/LogsStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/status/LogsStatus.java index 3ff19579c1..2a968021f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/status/LogsStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/streams/status/LogsStatus.java @@ -111,6 +111,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Boolean enabled; + public Builder() { + } + private Builder(LogsStatus instance) { + this.enabled = instance.enabled; + + } /** * Required - If true, the logs stream feature is enabled. *

                                                                                                          @@ -139,6 +145,12 @@ public LogsStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java index e930e1357f..f6a1b53cff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRequest.java @@ -118,6 +118,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeleteSynonymRequest instance) { + this.id = instance.id; + + } /** * Required - The synonyms set identifier to delete. *

                                                                                                          @@ -146,6 +152,12 @@ public DeleteSynonymRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java index 82384569d5..a951bb325f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/DeleteSynonymRuleRequest.java @@ -134,6 +134,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String setId; + public Builder() { + } + private Builder(DeleteSynonymRuleRequest instance) { + this.refresh = instance.refresh; + this.ruleId = instance.ruleId; + this.setId = instance.setId; + + } /** * If true, the request will refresh the analyzers with the deleted * synonym rule and wait for the new synonyms to be available before returning. @@ -185,6 +193,12 @@ public DeleteSynonymRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java index dd9f1a5ee2..c490f3427a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRequest.java @@ -131,6 +131,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetSynonymRequest instance) { + this.from = instance.from; + this.id = instance.id; + this.size = instance.size; + + } /** * The starting offset for query rules to retrieve. *

                                                                                                          @@ -179,6 +187,12 @@ public GetSynonymRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java index 29789f312b..af28549e92 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymRuleRequest.java @@ -114,6 +114,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String setId; + public Builder() { + } + private Builder(GetSynonymRuleRequest instance) { + this.ruleId = instance.ruleId; + this.setId = instance.setId; + + } /** * Required - The ID of the synonym rule to retrieve. *

                                                                                                          @@ -152,6 +159,12 @@ public GetSynonymRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java index 9a8ab0ef37..54a6e5b806 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/GetSynonymsSetsRequest.java @@ -119,6 +119,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Integer size; + public Builder() { + } + private Builder(GetSynonymsSetsRequest instance) { + this.from = instance.from; + this.size = instance.size; + + } /** * The starting offset for synonyms sets to retrieve. *

                                                                                                          @@ -157,6 +164,12 @@ public GetSynonymsSetsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java index 70970fc19f..cd4ef7d060 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRequest.java @@ -169,6 +169,14 @@ public static class Builder extends RequestBase.AbstractBuilder private List synonymsSet; + public Builder() { + } + private Builder(PutSynonymRequest instance) { + this.id = instance.id; + this.refresh = instance.refresh; + this.synonymsSet = instance.synonymsSet; + + } /** * Required - The ID of the synonyms set to be created or updated. *

                                                                                                          @@ -245,6 +253,12 @@ public PutSynonymRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java index aa8d717b44..1dd71508c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/PutSynonymRuleRequest.java @@ -172,6 +172,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String synonyms; + public Builder() { + } + private Builder(PutSynonymRuleRequest instance) { + this.refresh = instance.refresh; + this.ruleId = instance.ruleId; + this.setId = instance.setId; + this.synonyms = instance.synonyms; + + } /** * If true, the request will refresh the analyzers with the new * synonym rule and wait for the new synonyms to be available before returning. @@ -234,6 +243,12 @@ public PutSynonymRuleRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java index 7c09cc4828..0408b567f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/SynonymRule.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String synonyms; + public Builder() { + } + private Builder(SynonymRule instance) { + this.id = instance.id; + this.synonyms = instance.synonyms; + + } /** * The identifier for the synonym rule. If you do not specify a synonym rule ID * when you create a rule, an identifier is created automatically by @@ -176,6 +183,12 @@ public SynonymRule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java index 468e01389f..c7c6715f56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/synonyms/get_synonyms_sets/SynonymsSetItem.java @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer count; + public Builder() { + } + private Builder(SynonymsSetItem instance) { + this.synonymsSet = instance.synonymsSet; + this.count = instance.count; + + } /** * Required - Synonyms set identifier *

                                                                                                          @@ -169,6 +176,12 @@ public SynonymsSetItem build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java index 87ad1e2467..c679bb8df2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java @@ -183,6 +183,16 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(CancelRequest instance) { + this.actions = instance.actions; + this.nodes = instance.nodes; + this.parentTaskId = instance.parentTaskId; + this.taskId = instance.taskId; + this.waitForCompletion = instance.waitForCompletion; + + } /** * A comma-separated list or wildcard expression of actions that is used to * limit the request. @@ -283,6 +293,12 @@ public CancelRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java index a393c43c9b..7f6ec71f06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetTasksRequest.java @@ -139,6 +139,14 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(GetTasksRequest instance) { + this.taskId = instance.taskId; + this.timeout = instance.timeout; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Required - The task identifier. *

                                                                                                          @@ -198,6 +206,12 @@ public GetTasksRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java index 77c0c74a2b..02b32bd5b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java @@ -278,6 +278,18 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(ListRequest instance) { + this.actions = instance.actions; + this.detailed = instance.detailed; + this.groupBy = instance.groupBy; + this.nodes = instance.nodes; + this.parentTaskId = instance.parentTaskId; + this.timeout = instance.timeout; + this.waitForCompletion = instance.waitForCompletion; + + } /** * A comma-separated list or wildcard expression of actions used to limit the * request. For example, you can use cluser:* to retrieve all @@ -420,6 +432,12 @@ public ListRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java index c763ca843f..6de4422fe5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/NodeTasks.java @@ -248,6 +248,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Map tasks; + public Builder() { + } + private Builder(NodeTasks instance) { + this.name = instance.name; + this.transportAddress = instance.transportAddress; + this.host = instance.host; + this.ip = instance.ip; + this.roles = instance.roles; + this.attributes = instance.attributes; + this.tasks = instance.tasks; + + } /** * API name: {@code name} */ @@ -367,6 +379,12 @@ public NodeTasks build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java index 2a5c5568bf..eddf4404dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ParentTaskInfo.java @@ -104,6 +104,12 @@ public static class Builder extends TaskInfo.AbstractBuilder implements @Nullable private List children; + public Builder() { + } + private Builder(ParentTaskInfo instance) { + this.children = instance.children; + + } /** * API name: {@code children} *

                                                                                                          @@ -151,6 +157,12 @@ public ParentTaskInfo build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FieldStat.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FieldStat.java index 4d18bd1b79..ab4210932f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FieldStat.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FieldStat.java @@ -270,6 +270,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String latest; + public Builder() { + } + private Builder(FieldStat instance) { + this.count = instance.count; + this.cardinality = instance.cardinality; + this.topHits = instance.topHits; + this.meanValue = instance.meanValue; + this.medianValue = instance.medianValue; + this.maxValue = instance.maxValue; + this.minValue = instance.minValue; + this.earliest = instance.earliest; + this.latest = instance.latest; + + } /** * Required - API name: {@code count} */ @@ -381,6 +395,12 @@ public FieldStat build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java index 7c3dcdb933..1ef4cc9d65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindFieldStructureRequest.java @@ -448,6 +448,25 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String timestampFormat; + public Builder() { + } + private Builder(FindFieldStructureRequest instance) { + this.columnNames = instance.columnNames; + this.delimiter = instance.delimiter; + this.documentsToSample = instance.documentsToSample; + this.ecsCompatibility = instance.ecsCompatibility; + this.explain = instance.explain; + this.field = instance.field; + this.format = instance.format; + this.grokPattern = instance.grokPattern; + this.index = instance.index; + this.quote = instance.quote; + this.shouldTrimFields = instance.shouldTrimFields; + this.timeout = instance.timeout; + this.timestampField = instance.timestampField; + this.timestampFormat = instance.timestampFormat; + + } /** * If format is set to delimited, you can specify the * column names in a comma-separated list. If this parameter is not specified, @@ -736,6 +755,12 @@ public FindFieldStructureRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java index 18b645d1c3..c5b04b587b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindMessageStructureRequest.java @@ -442,6 +442,23 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String timestampFormat; + public Builder() { + } + private Builder(FindMessageStructureRequest instance) { + this.columnNames = instance.columnNames; + this.delimiter = instance.delimiter; + this.ecsCompatibility = instance.ecsCompatibility; + this.explain = instance.explain; + this.format = instance.format; + this.grokPattern = instance.grokPattern; + this.messages = instance.messages; + this.quote = instance.quote; + this.shouldTrimFields = instance.shouldTrimFields; + this.timeout = instance.timeout; + this.timestampField = instance.timestampField; + this.timestampFormat = instance.timestampFormat; + + } /** * If the format is delimited, you can specify the column names in * a comma-separated list. If this parameter is not specified, the structure @@ -723,6 +740,12 @@ public FindMessageStructureRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java index dc851f1361..4cd8dc4f3b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TestGrokPatternRequest.java @@ -166,6 +166,14 @@ public static class Builder extends RequestBase.AbstractBuilder private List text; + public Builder() { + } + private Builder(TestGrokPatternRequest instance) { + this.ecsCompatibility = instance.ecsCompatibility; + this.grokPattern = instance.grokPattern; + this.text = instance.text; + + } /** * The mode of compatibility with ECS compliant Grok patterns. Use this * parameter to specify whether to use ECS Grok patterns instead of legacy ones @@ -231,6 +239,12 @@ public TestGrokPatternRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TopHit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TopHit.java index 5266411bc6..2e1c05f79c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TopHit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/TopHit.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private JsonData value; + public Builder() { + } + private Builder(TopHit instance) { + this.count = instance.count; + this.value = instance.value; + + } /** * Required - API name: {@code count} */ @@ -160,6 +167,12 @@ public TopHit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java index 4aba742ad2..6b4b0588a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedField.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer length; + public Builder() { + } + private Builder(MatchedField instance) { + this.match = instance.match; + this.offset = instance.offset; + this.length = instance.length; + + } /** * Required - API name: {@code match} */ @@ -184,6 +192,12 @@ public MatchedField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java index aed65ea412..bacdf70059 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/test_grok_pattern/MatchedText.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map> fields; + public Builder() { + } + private Builder(MatchedText instance) { + this.matched = instance.matched; + this.fields = instance.fields; + + } /** * Required - API name: {@code matched} */ @@ -192,6 +199,12 @@ public MatchedText build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java index 3a9b1ad519..ec75f43097 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/DeleteTransformRequest.java @@ -153,6 +153,15 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(DeleteTransformRequest instance) { + this.deleteDestIndex = instance.deleteDestIndex; + this.force = instance.force; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * If this value is true, the destination index is deleted together with the * transform. If false, the destination index will not be deleted @@ -224,6 +233,12 @@ public DeleteTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java index ab68b4eb58..354ce564a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Destination.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String pipeline; + public Builder() { + } + private Builder(Destination instance) { + this.index = instance.index; + this.pipeline = instance.pipeline; + + } /** * The destination index for the transform. The mappings of the destination * index are deduced based on the source fields when possible. If alternate @@ -183,6 +190,12 @@ public Destination build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java index 770dd74578..c0f2f776bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformRequest.java @@ -186,6 +186,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List transformId; + public Builder() { + } + private Builder(GetTransformRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.excludeGenerated = instance.excludeGenerated; + this.from = instance.from; + this.size = instance.size; + this.transformId = instance.transformId; + + } /** * Specifies what to do when the request: *

                                                                                                            @@ -287,6 +297,12 @@ public GetTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java index af77684124..a7e340528c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java @@ -185,6 +185,16 @@ public static class Builder extends RequestBase.AbstractBuilder private List transformId; + public Builder() { + } + private Builder(GetTransformStatsRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.from = instance.from; + this.size = instance.size; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Specifies what to do when the request: *
                                                                                                              @@ -293,6 +303,12 @@ public GetTransformStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java index 7a76fde6c6..6e0e8a2639 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List uniqueKey; + public Builder() { + } + private Builder(Latest instance) { + this.sort = instance.sort; + this.uniqueKey = instance.uniqueKey; + + } /** * Required - Specifies the date field that is used to identify the latest * documents. @@ -195,6 +202,12 @@ public Latest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java index 0c6612b0a3..f71f0e8adb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Pivot.java @@ -157,6 +157,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map groupBy; + public Builder() { + } + private Builder(Pivot instance) { + this.aggregations = instance.aggregations; + this.groupBy = instance.groupBy; + + } /** * Defines how to aggregate the grouped data. The following aggregations are * currently supported: average, bucket script, bucket selector, cardinality, @@ -293,6 +300,12 @@ public Pivot build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java index ba2a852f30..da06adb0ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java @@ -347,6 +347,22 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String transformId; + public Builder() { + } + private Builder(PreviewTransformRequest instance) { + this.description = instance.description; + this.dest = instance.dest; + this.frequency = instance.frequency; + this.latest = instance.latest; + this.pivot = instance.pivot; + this.retentionPolicy = instance.retentionPolicy; + this.settings = instance.settings; + this.source = instance.source; + this.sync = instance.sync; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Free text description of the transform. *

                                                                                                              @@ -592,6 +608,12 @@ public PreviewTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java index 4bf0570dca..a9878e46e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java @@ -409,6 +409,24 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(PutTransformRequest instance) { + this.meta = instance.meta; + this.deferValidation = instance.deferValidation; + this.description = instance.description; + this.dest = instance.dest; + this.frequency = instance.frequency; + this.latest = instance.latest; + this.pivot = instance.pivot; + this.retentionPolicy = instance.retentionPolicy; + this.settings = instance.settings; + this.source = instance.source; + this.sync = instance.sync; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Defines optional transform metadata. *

                                                                                                              @@ -695,6 +713,12 @@ public PutTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java index 3ee85ae9c2..f901f5a20a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ResetTransformRequest.java @@ -142,6 +142,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(ResetTransformRequest instance) { + this.force = instance.force; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * If this value is true, the transform is reset regardless of its * current state. If it's false, the transform must be stopped @@ -205,6 +213,12 @@ public ResetTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java index 2fb4c0c086..fd9972f164 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java @@ -121,6 +121,13 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(ScheduleNowTransformRequest instance) { + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Controls the time to wait for the scheduling to take place *

                                                                                                              @@ -168,6 +175,12 @@ public ScheduleNowTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java index 10a2dd7dc8..26f11b815a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/SetUpgradeModeRequest.java @@ -132,6 +132,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(SetUpgradeModeRequest instance) { + this.enabled = instance.enabled; + this.timeout = instance.timeout; + + } /** * When true, it enables upgrade_mode which * temporarily halts all transform tasks and prohibits new transform tasks from @@ -181,6 +188,12 @@ public SetUpgradeModeRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java index 920f7aa72e..fe1a77cc03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java @@ -274,6 +274,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean unattended; + public Builder() { + } + private Builder(Settings instance) { + this.alignCheckpoints = instance.alignCheckpoints; + this.datesAsEpochMillis = instance.datesAsEpochMillis; + this.deduceMappings = instance.deduceMappings; + this.docsPerSecond = instance.docsPerSecond; + this.maxPageSearchSize = instance.maxPageSearchSize; + this.usePointInTime = instance.usePointInTime; + this.unattended = instance.unattended; + + } /** * Specifies whether the transform checkpoint ranges should be optimized for * performance. Such optimization can align checkpoint ranges with the date @@ -384,6 +396,12 @@ public Settings build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java index c53a081356..f8a114d233 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Source.java @@ -184,6 +184,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map runtimeMappings; + public Builder() { + } + private Builder(Source instance) { + this.index = instance.index; + this.query = instance.query; + this.runtimeMappings = instance.runtimeMappings; + + } /** * Required - The source indices for the transform. It can be a single index, an * index pattern (for example, "my-index-*""), an @@ -315,6 +323,12 @@ public Source build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java index a34e864fbc..efaee84d47 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java @@ -157,6 +157,14 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(StartTransformRequest instance) { + this.from = instance.from; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Restricts the set of transformed entities to those changed after this time. * Relative times like now-30d are supported. Only applicable for continuous @@ -218,6 +226,12 @@ public StartTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java index 8a8b4fd2f8..f10672133f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StopTransformRequest.java @@ -205,6 +205,17 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean waitForCompletion; + public Builder() { + } + private Builder(StopTransformRequest instance) { + this.allowNoMatch = instance.allowNoMatch; + this.force = instance.force; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + this.waitForCheckpoint = instance.waitForCheckpoint; + this.waitForCompletion = instance.waitForCompletion; + + } /** * Specifies what to do when the request: contains wildcard expressions and * there are no transforms that match; contains the _all string or @@ -314,6 +325,12 @@ public StopTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java index 9b6394adda..7eedbd99f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeRetentionPolicy.java @@ -143,6 +143,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Time maxAge; + public Builder() { + } + private Builder(TimeRetentionPolicy instance) { + this.field = instance.field; + this.maxAge = instance.maxAge; + + } /** * Required - The date field that is used to calculate the age of the document. *

                                                                                                              @@ -194,6 +201,12 @@ public TimeRetentionPolicy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java index 33a7000256..0d4b9363eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java @@ -146,6 +146,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String field; + public Builder() { + } + private Builder(TimeSync instance) { + this.delay = instance.delay; + this.field = instance.field; + + } /** * The time delay between the current time and the latest input data time. *

                                                                                                              @@ -196,6 +203,12 @@ public TimeSync build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java index 6389350b7a..ca6d53f330 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java @@ -347,6 +347,22 @@ public static class Builder extends RequestBase.AbstractBuilder private String transformId; + public Builder() { + } + private Builder(UpdateTransformRequest instance) { + this.meta = instance.meta; + this.deferValidation = instance.deferValidation; + this.description = instance.description; + this.dest = instance.dest; + this.frequency = instance.frequency; + this.retentionPolicy = instance.retentionPolicy; + this.settings = instance.settings; + this.source = instance.source; + this.sync = instance.sync; + this.timeout = instance.timeout; + this.transformId = instance.transformId; + + } /** * Defines optional transform metadata. *

                                                                                                              @@ -584,6 +600,12 @@ public UpdateTransformRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java index 132959c3b2..f73d0b666c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpgradeTransformsRequest.java @@ -138,6 +138,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(UpgradeTransformsRequest instance) { + this.dryRun = instance.dryRun; + this.timeout = instance.timeout; + + } /** * When true, the request checks for updates but does not run them. *

                                                                                                              @@ -187,6 +194,12 @@ public UpgradeTransformsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java index 227bff06cb..b3f3f6be12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformNodeStats.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private TransformSchedulerStats scheduler; + public Builder() { + } + private Builder(TransformNodeStats instance) { + this.scheduler = instance.scheduler; + + } /** * Required - API name: {@code scheduler} */ @@ -146,6 +152,12 @@ public TransformNodeStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java index 6062412bb3..a7fdbddeb1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_node_stats/TransformSchedulerStats.java @@ -136,6 +136,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String peekTransform; + public Builder() { + } + private Builder(TransformSchedulerStats instance) { + this.registeredTransformCount = instance.registeredTransformCount; + this.peekTransform = instance.peekTransform; + + } /** * Required - API name: {@code registered_transform_count} */ @@ -170,6 +177,12 @@ public TransformSchedulerStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java index 204fccf6eb..f1a8c70c19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform/TransformSummary.java @@ -421,6 +421,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map meta; + public Builder() { + } + private Builder(TransformSummary instance) { + this.authorization = instance.authorization; + this.createTime = instance.createTime; + this.createTimeString = instance.createTimeString; + this.description = instance.description; + this.dest = instance.dest; + this.frequency = instance.frequency; + this.id = instance.id; + this.latest = instance.latest; + this.pivot = instance.pivot; + this.retentionPolicy = instance.retentionPolicy; + this.settings = instance.settings; + this.source = instance.source; + this.sync = instance.sync; + this.version = instance.version; + this.meta = instance.meta; + + } /** * The security privileges that the transform uses to run its queries. If * Elastic Stack security features were disabled at the time of the most recent @@ -688,6 +708,12 @@ public TransformSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java index 55ea64d98a..40a955dd9e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/CheckpointStats.java @@ -211,6 +211,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long timeUpperBoundMillis; + public Builder() { + } + private Builder(CheckpointStats instance) { + this.checkpoint = instance.checkpoint; + this.checkpointProgress = instance.checkpointProgress; + this.timestamp = instance.timestamp; + this.timestampMillis = instance.timestampMillis; + this.timeUpperBound = instance.timeUpperBound; + this.timeUpperBoundMillis = instance.timeUpperBoundMillis; + + } /** * Required - API name: {@code checkpoint} */ @@ -285,6 +296,12 @@ public CheckpointStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java index b4eb958d7c..b23f376c80 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/Checkpointing.java @@ -231,6 +231,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private DateTime lastSearchTimeString; + public Builder() { + } + private Builder(Checkpointing instance) { + this.changesLastDetectedAt = instance.changesLastDetectedAt; + this.changesLastDetectedAtString = instance.changesLastDetectedAtString; + this.last = instance.last; + this.next = instance.next; + this.operationsBehind = instance.operationsBehind; + this.lastSearchTime = instance.lastSearchTime; + this.lastSearchTimeString = instance.lastSearchTimeString; + + } /** * API name: {@code changes_last_detected_at} */ @@ -319,6 +331,12 @@ public Checkpointing build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformHealthIssue.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformHealthIssue.java index ed8e695552..1cd052a865 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformHealthIssue.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformHealthIssue.java @@ -216,6 +216,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DateTime firstOccurenceString; + public Builder() { + } + private Builder(TransformHealthIssue instance) { + this.type = instance.type; + this.issue = instance.issue; + this.details = instance.details; + this.count = instance.count; + this.firstOccurrence = instance.firstOccurrence; + this.firstOccurenceString = instance.firstOccurenceString; + + } /** * Required - The type of the issue *

                                                                                                              @@ -292,6 +303,12 @@ public TransformHealthIssue build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java index 332bbd88c3..ba2cabcf74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformIndexerStats.java @@ -369,6 +369,28 @@ public static class Builder extends WithJsonObjectBuilderBase private Long triggerCount; + public Builder() { + } + private Builder(TransformIndexerStats instance) { + this.deleteTimeInMs = instance.deleteTimeInMs; + this.documentsIndexed = instance.documentsIndexed; + this.documentsDeleted = instance.documentsDeleted; + this.documentsProcessed = instance.documentsProcessed; + this.exponentialAvgCheckpointDurationMs = instance.exponentialAvgCheckpointDurationMs; + this.exponentialAvgDocumentsIndexed = instance.exponentialAvgDocumentsIndexed; + this.exponentialAvgDocumentsProcessed = instance.exponentialAvgDocumentsProcessed; + this.indexFailures = instance.indexFailures; + this.indexTimeInMs = instance.indexTimeInMs; + this.indexTotal = instance.indexTotal; + this.pagesProcessed = instance.pagesProcessed; + this.processingTimeInMs = instance.processingTimeInMs; + this.processingTotal = instance.processingTotal; + this.searchFailures = instance.searchFailures; + this.searchTimeInMs = instance.searchTimeInMs; + this.searchTotal = instance.searchTotal; + this.triggerCount = instance.triggerCount; + + } /** * API name: {@code delete_time_in_ms} */ @@ -523,6 +545,12 @@ public TransformIndexerStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java index 9ce4ba48f9..8c2512f46c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformProgress.java @@ -188,6 +188,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long totalDocs; + public Builder() { + } + private Builder(TransformProgress instance) { + this.docsIndexed = instance.docsIndexed; + this.docsProcessed = instance.docsProcessed; + this.docsRemaining = instance.docsRemaining; + this.percentComplete = instance.percentComplete; + this.totalDocs = instance.totalDocs; + + } /** * Required - API name: {@code docs_indexed} */ @@ -246,6 +256,12 @@ public TransformProgress build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java index b7b63eb749..d62a0bec92 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStats.java @@ -217,6 +217,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private TransformIndexerStats stats; + public Builder() { + } + private Builder(TransformStats instance) { + this.checkpointing = instance.checkpointing; + this.health = instance.health; + this.id = instance.id; + this.node = instance.node; + this.reason = instance.reason; + this.state = instance.state; + this.stats = instance.stats; + + } /** * Required - API name: {@code checkpointing} */ @@ -319,6 +331,12 @@ public TransformStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java index 250ecbe938..3bb2e96932 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/get_transform_stats/TransformStatsHealth.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private List issues; + public Builder() { + } + private Builder(TransformStatsHealth instance) { + this.status = instance.status; + this.issues = instance.issues; + + } /** * Required - API name: {@code status} */ @@ -204,6 +211,12 @@ public TransformStatsHealth build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java index 6404fa5126..782a632da9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AckWatchRequest.java @@ -130,6 +130,13 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private String watchId; + public Builder() { + } + private Builder(AckWatchRequest instance) { + this.actionId = instance.actionId; + this.watchId = instance.watchId; + + } /** * A comma-separated list of the action identifiers to acknowledge. If you omit * this parameter, all of the actions of the watch are acknowledged. @@ -184,6 +191,12 @@ public AckWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java index 83c9f1c4c9..1775411c6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/AcknowledgeState.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private DateTime timestamp; + public Builder() { + } + private Builder(AcknowledgeState instance) { + this.state = instance.state; + this.timestamp = instance.timestamp; + + } /** * Required - API name: {@code state} */ @@ -158,6 +165,12 @@ public AcknowledgeState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Action.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Action.java index a53904a4a5..d78eb3357a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Action.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Action.java @@ -379,6 +379,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private WebhookAction webhook; + public Builder() { + } + private Builder(Action instance) { + this.actionType = instance.actionType; + this.condition = instance.condition; + this.foreach = instance.foreach; + this.maxIterations = instance.maxIterations; + this.name = instance.name; + this.throttlePeriod = instance.throttlePeriod; + this.throttlePeriodInMillis = instance.throttlePeriodInMillis; + this.transform = instance.transform; + this.index = instance.index; + this.logging = instance.logging; + this.email = instance.email; + this.pagerduty = instance.pagerduty; + this.slack = instance.slack; + this.webhook = instance.webhook; + + } /** * API name: {@code action_type} */ @@ -588,6 +607,12 @@ public Action build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatus.java index e79da1afea..08fa6e9744 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionStatus.java @@ -170,6 +170,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ThrottleState lastThrottle; + public Builder() { + } + private Builder(ActionStatus instance) { + this.ack = instance.ack; + this.lastExecution = instance.lastExecution; + this.lastSuccessfulExecution = instance.lastSuccessfulExecution; + this.lastThrottle = instance.lastThrottle; + + } /** * Required - API name: {@code ack} */ @@ -249,6 +258,12 @@ public ActionStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java index e5c78b47f6..8ec12bce22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivateWatchRequest.java @@ -99,6 +99,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String watchId; + public Builder() { + } + private Builder(ActivateWatchRequest instance) { + this.watchId = instance.watchId; + + } /** * Required - The watch identifier. *

                                                                                                              @@ -127,6 +133,12 @@ public ActivateWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java index 4d7853863e..8f53043c64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationState.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private DateTime timestamp; + public Builder() { + } + private Builder(ActivationState instance) { + this.active = instance.active; + this.timestamp = instance.timestamp; + + } /** * Required - API name: {@code active} */ @@ -160,6 +167,12 @@ public ActivationState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java index f70201bfac..7a2c184d1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActivationStatus.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long version; + public Builder() { + } + private Builder(ActivationStatus instance) { + this.actions = instance.actions; + this.state = instance.state; + this.version = instance.version; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -220,6 +228,12 @@ public ActivationStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java index d48c496b0d..a6dce4d2e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ArrayCompareCondition.java @@ -163,6 +163,12 @@ public final Builder params(Function private FieldValue value; + public Builder() { + } + private Builder(ArrayCompareOpParams instance) { + this.quantifier = instance.quantifier; + this.value = instance.value; + + } /** * Required - API name: {@code quantifier} */ @@ -201,6 +208,12 @@ public ArrayCompareOpParams build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java index 639399926d..3eb5c4190e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ChainInput.java @@ -131,6 +131,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List> inputs; + public Builder() { + } + private Builder(ChainInput instance) { + this.inputs = instance.inputs; + + } /** * Required - API name: {@code inputs} *

                                                                                                              @@ -170,6 +176,12 @@ public ChainInput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java index d8dda6668a..0d68037dec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DailySchedule.java @@ -126,6 +126,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List at; + public Builder() { + } + private Builder(DailySchedule instance) { + this.at = instance.at; + + } /** * Required - API name: {@code at} *

                                                                                                              @@ -173,6 +179,12 @@ public DailySchedule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataEmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataEmailAttachment.java index 642b54637c..0781236f31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataEmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DataEmailAttachment.java @@ -124,6 +124,12 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataAttachmentFormat format; + public Builder() { + } + private Builder(DataEmailAttachment instance) { + this.format = instance.format; + + } /** * API name: {@code format} */ @@ -150,6 +156,12 @@ public DataEmailAttachment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java index f488b9b596..950b505610 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeactivateWatchRequest.java @@ -100,6 +100,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String watchId; + public Builder() { + } + private Builder(DeactivateWatchRequest instance) { + this.watchId = instance.watchId; + + } /** * Required - The watch identifier. *

                                                                                                              @@ -128,6 +134,12 @@ public DeactivateWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java index 1b2bdc9227..da51d04f51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/DeleteWatchRequest.java @@ -109,6 +109,12 @@ public static class Builder extends RequestBase.AbstractBuilder ObjectBuilder { private String id; + public Builder() { + } + private Builder(DeleteWatchRequest instance) { + this.id = instance.id; + + } /** * Required - The watch identifier. *

                                                                                                              @@ -137,6 +143,12 @@ public DeleteWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java index 65125ba145..8b7cc71617 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailAction.java @@ -70,6 +70,11 @@ public static EmailAction of(Function> fn) { */ public static class Builder extends Email.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(EmailAction instance) { + + } @Override protected Builder self() { return this; @@ -88,6 +93,12 @@ public EmailAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java index 21d6b2627d..2dac604436 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailBody.java @@ -135,6 +135,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String text; + public Builder() { + } + private Builder(EmailBody instance) { + this.html = instance.html; + this.text = instance.text; + + } /** * API name: {@code html} */ @@ -169,6 +176,12 @@ public EmailBody build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java index 6ac5c41122..c9cbf3182e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/EmailResult.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String reason; + public Builder() { + } + private Builder(EmailResult instance) { + this.account = instance.account; + this.message = instance.message; + this.reason = instance.reason; + + } /** * API name: {@code account} */ @@ -200,6 +208,12 @@ public EmailResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java index 31d83e660b..3d0fbe1213 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecuteWatchRequest.java @@ -324,6 +324,20 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Watch watch; + public Builder() { + } + private Builder(ExecuteWatchRequest instance) { + this.actionModes = instance.actionModes; + this.alternativeInput = instance.alternativeInput; + this.debug = instance.debug; + this.id = instance.id; + this.ignoreCondition = instance.ignoreCondition; + this.recordExecution = instance.recordExecution; + this.simulatedActions = instance.simulatedActions; + this.triggerData = instance.triggerData; + this.watch = instance.watch; + + } /** * Determines how to handle the watch actions as part of the watch execution. *

                                                                                                              @@ -496,6 +510,12 @@ public ExecuteWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java index 69d8dd2c9b..32bab84b99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResult.java @@ -178,6 +178,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private ExecutionResultInput input; + public Builder() { + } + private Builder(ExecutionResult instance) { + this.actions = instance.actions; + this.condition = instance.condition; + this.executionDuration = instance.executionDuration; + this.executionTime = instance.executionTime; + this.input = instance.input; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -272,6 +282,12 @@ public ExecutionResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java index 1ba5f5971b..dfb089aeab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultAction.java @@ -303,6 +303,22 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private ErrorCause error; + public Builder() { + } + private Builder(ExecutionResultAction instance) { + this.email = instance.email; + this.id = instance.id; + this.index = instance.index; + this.logging = instance.logging; + this.pagerduty = instance.pagerduty; + this.reason = instance.reason; + this.slack = instance.slack; + this.status = instance.status; + this.type = instance.type; + this.webhook = instance.webhook; + this.error = instance.error; + + } /** * API name: {@code email} */ @@ -458,6 +474,12 @@ public ExecutionResultAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java index 7cb0cdd20a..0416ca095f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultCondition.java @@ -142,6 +142,14 @@ public static class Builder extends WithJsonObjectBuilderBase private ConditionType type; + public Builder() { + } + private Builder(ExecutionResultCondition instance) { + this.met = instance.met; + this.status = instance.status; + this.type = instance.type; + + } /** * Required - API name: {@code met} */ @@ -184,6 +192,12 @@ public ExecutionResultCondition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java index cc67eb6db7..8acf594107 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionResultInput.java @@ -152,6 +152,14 @@ public static class Builder extends WithJsonObjectBuilderBase private InputType type; + public Builder() { + } + private Builder(ExecutionResultInput instance) { + this.payload = instance.payload; + this.status = instance.status; + this.type = instance.type; + + } /** * Required - API name: {@code payload} *

                                                                                                              @@ -206,6 +214,12 @@ public ExecutionResultInput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java index b184ac4b63..608afd8ae2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionState.java @@ -147,6 +147,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String reason; + public Builder() { + } + private Builder(ExecutionState instance) { + this.successful = instance.successful; + this.timestamp = instance.timestamp; + this.reason = instance.reason; + + } /** * Required - API name: {@code successful} */ @@ -189,6 +197,12 @@ public ExecutionState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java index e1687c90a5..74a7320062 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ExecutionThreadPool.java @@ -133,6 +133,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long queueSize; + public Builder() { + } + private Builder(ExecutionThreadPool instance) { + this.maxSize = instance.maxSize; + this.queueSize = instance.queueSize; + + } /** * Required - The largest size of the execution thread pool, which indicates the * largest number of concurrent running watches. @@ -173,6 +180,12 @@ public ExecutionThreadPool build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java index d944f7d152..a0497626f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatchRequest.java @@ -95,6 +95,12 @@ public final String id() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { private String id; + public Builder() { + } + private Builder(GetWatchRequest instance) { + this.id = instance.id; + + } /** * Required - The watch identifier. *

                                                                                                              @@ -123,6 +129,12 @@ public GetWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java index 12924ba65f..23c5ffc881 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/GetWatcherSettingsRequest.java @@ -105,6 +105,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(GetWatcherSettingsRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -144,6 +150,12 @@ public GetWatcherSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java index b9dc6e4e98..2ecd73e0ab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourAndMinute.java @@ -141,6 +141,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List minute; + public Builder() { + } + private Builder(HourAndMinute instance) { + this.hour = instance.hour; + this.minute = instance.minute; + + } /** * Required - API name: {@code hour} *

                                                                                                              @@ -199,6 +206,12 @@ public HourAndMinute build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java index e2eb601ebe..397c219040 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HourlySchedule.java @@ -127,6 +127,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private List minute; + public Builder() { + } + private Builder(HourlySchedule instance) { + this.minute = instance.minute; + + } /** * Required - API name: {@code minute} *

                                                                                                              @@ -165,6 +171,12 @@ public HourlySchedule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java index 784ea14993..aa8fc1caca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpEmailAttachment.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private HttpInputRequestDefinition request; + public Builder() { + } + private Builder(HttpEmailAttachment instance) { + this.contentType = instance.contentType; + this.inline = instance.inline; + this.request = instance.request; + + } /** * API name: {@code content_type} */ @@ -217,6 +225,12 @@ public HttpEmailAttachment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java index 7db9ad6dc7..457af73338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInput.java @@ -167,6 +167,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private ResponseContentType responseContentType; + public Builder() { + } + private Builder(HttpInput instance) { + this.extract = instance.extract; + this.request = instance.request; + this.responseContentType = instance.responseContentType; + + } /** * API name: {@code extract} *

                                                                                                              @@ -229,6 +237,12 @@ public HttpInput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java index 8a486eec20..8352110ea3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputAuthentication.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private HttpInputBasicAuthentication basic; + public Builder() { + } + private Builder(HttpInputAuthentication instance) { + this.basic = instance.basic; + + } /** * Required - API name: {@code basic} */ @@ -146,6 +152,12 @@ public HttpInputAuthentication build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java index 87904ea955..4a4c91d6f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputBasicAuthentication.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String username; + public Builder() { + } + private Builder(HttpInputBasicAuthentication instance) { + this.password = instance.password; + this.username = instance.username; + + } /** * Required - API name: {@code password} */ @@ -162,6 +169,12 @@ public HttpInputBasicAuthentication build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java index d7e4ecb708..b048461633 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputProxy.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Number port; + public Builder() { + } + private Builder(HttpInputProxy instance) { + this.host = instance.host; + this.port = instance.port; + + } /** * Required - API name: {@code host} */ @@ -160,6 +167,12 @@ public HttpInputProxy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java index cc490f1711..4dd5912797 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputRequestResult.java @@ -73,6 +73,11 @@ public static HttpInputRequestResult of(Function implements ObjectBuilder { + public Builder() { + } + private Builder(HttpInputRequestResult instance) { + + } @Override protected Builder self() { return this; @@ -91,6 +96,12 @@ public HttpInputRequestResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java index fd4a06287b..4d25e86138 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/HttpInputResponseResult.java @@ -161,6 +161,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Integer status; + public Builder() { + } + private Builder(HttpInputResponseResult instance) { + this.body = instance.body; + this.headers = instance.headers; + this.status = instance.status; + + } /** * Required - API name: {@code body} */ @@ -215,6 +223,12 @@ public HttpInputResponseResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java index 0d5628149f..15eb8f95a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexAction.java @@ -212,6 +212,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String executionTimeField; + public Builder() { + } + private Builder(IndexAction instance) { + this.index = instance.index; + this.docId = instance.docId; + this.refresh = instance.refresh; + this.opType = instance.opType; + this.timeout = instance.timeout; + this.executionTimeField = instance.executionTimeField; + + } /** * Required - API name: {@code index} */ @@ -285,6 +296,12 @@ public IndexAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java index e513bfb57d..0287c066e3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResult.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private IndexResultSummary response; + public Builder() { + } + private Builder(IndexResult instance) { + this.response = instance.response; + + } /** * Required - API name: {@code response} */ @@ -142,6 +148,12 @@ public IndexResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java index b00742318d..c35b740982 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/IndexResultSummary.java @@ -175,6 +175,16 @@ public static class Builder extends WithJsonObjectBuilderBase private Long version; + public Builder() { + } + private Builder(IndexResultSummary instance) { + this.created = instance.created; + this.id = instance.id; + this.index = instance.index; + this.result = instance.result; + this.version = instance.version; + + } /** * Required - API name: {@code created} */ @@ -233,6 +243,12 @@ public IndexResultSummary build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java index 2c16503686..51dbdadb7d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingAction.java @@ -151,6 +151,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String category; + public Builder() { + } + private Builder(LoggingAction instance) { + this.level = instance.level; + this.text = instance.text; + this.category = instance.category; + + } /** * API name: {@code level} */ @@ -193,6 +201,12 @@ public LoggingAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java index cc76f74c08..b8a0fa4746 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/LoggingResult.java @@ -110,6 +110,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String loggedText; + public Builder() { + } + private Builder(LoggingResult instance) { + this.loggedText = instance.loggedText; + + } /** * Required - API name: {@code logged_text} */ @@ -136,6 +142,12 @@ public LoggingResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java index c86a2a5051..db397f5416 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyAction.java @@ -72,6 +72,11 @@ public static PagerDutyAction of(Function implements ObjectBuilder { + public Builder() { + } + private Builder(PagerDutyAction instance) { + + } @Override protected Builder self() { return this; @@ -90,6 +95,12 @@ public PagerDutyAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java index f857c94d84..dbd5aea29f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyContext.java @@ -150,6 +150,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private PagerDutyContextType type; + public Builder() { + } + private Builder(PagerDutyContext instance) { + this.href = instance.href; + this.src = instance.src; + this.type = instance.type; + + } /** * API name: {@code href} */ @@ -192,6 +200,12 @@ public PagerDutyContext build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyEventProxy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyEventProxy.java index 2c32d52044..a4f776a088 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyEventProxy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyEventProxy.java @@ -139,6 +139,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer port; + public Builder() { + } + private Builder(PagerDutyEventProxy instance) { + this.host = instance.host; + this.port = instance.port; + + } /** * API name: {@code host} */ @@ -173,6 +180,12 @@ public PagerDutyEventProxy build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyResult.java index d21f1c65f1..552b84870c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PagerDutyResult.java @@ -171,6 +171,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private HttpInputResponseResult response; + public Builder() { + } + private Builder(PagerDutyResult instance) { + this.event = instance.event; + this.reason = instance.reason; + this.request = instance.request; + this.response = instance.response; + + } /** * Required - API name: {@code event} */ @@ -244,6 +253,12 @@ public PagerDutyResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java index e9285b6d72..874dbefa03 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/PutWatchRequest.java @@ -396,6 +396,24 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Long version; + public Builder() { + } + private Builder(PutWatchRequest instance) { + this.actions = instance.actions; + this.active = instance.active; + this.condition = instance.condition; + this.id = instance.id; + this.ifPrimaryTerm = instance.ifPrimaryTerm; + this.ifSeqNo = instance.ifSeqNo; + this.input = instance.input; + this.metadata = instance.metadata; + this.throttlePeriod = instance.throttlePeriod; + this.throttlePeriodInMillis = instance.throttlePeriodInMillis; + this.transform = instance.transform; + this.trigger = instance.trigger; + this.version = instance.version; + + } /** * The list of actions that will be run if the condition matches. *

                                                                                                              @@ -684,6 +702,12 @@ public PutWatchRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java index 060c066ee4..92c5ed84a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java @@ -193,6 +193,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long seqNo; + public Builder() { + } + private Builder(QueryWatch instance) { + this.id = instance.id; + this.status = instance.status; + this.watch = instance.watch; + this.primaryTerm = instance.primaryTerm; + this.seqNo = instance.seqNo; + + } /** * Required - API name: {@code _id} */ @@ -265,6 +275,12 @@ public QueryWatch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java index 9a40efc571..0b860d93a5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatchesRequest.java @@ -226,6 +226,16 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List sort; + public Builder() { + } + private Builder(QueryWatchesRequest instance) { + this.from = instance.from; + this.query = instance.query; + this.searchAfter = instance.searchAfter; + this.size = instance.size; + this.sort = instance.sort; + + } /** * The offset from the first result to fetch. It must be non-negative. *

                                                                                                              @@ -430,6 +440,12 @@ public QueryWatchesRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java index 432d133e20..095a82c6e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ReportingEmailAttachment.java @@ -205,6 +205,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private HttpInputRequestDefinition request; + public Builder() { + } + private Builder(ReportingEmailAttachment instance) { + this.url = instance.url; + this.inline = instance.inline; + this.retries = instance.retries; + this.interval = instance.interval; + this.request = instance.request; + + } /** * Required - API name: {@code url} */ @@ -278,6 +288,12 @@ public ReportingEmailAttachment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java index 1bd73f2616..d85c27804a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScheduleTriggerEvent.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DateTime triggeredTime; + public Builder() { + } + private Builder(ScheduleTriggerEvent instance) { + this.scheduledTime = instance.scheduledTime; + this.triggeredTime = instance.triggeredTime; + + } /** * Required - API name: {@code scheduled_time} */ @@ -174,6 +181,12 @@ public ScheduleTriggerEvent build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java index 35595c44be..3cf563c2f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ScriptCondition.java @@ -192,6 +192,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String id; + public Builder() { + } + private Builder(ScriptCondition instance) { + this.lang = instance.lang; + this.params = instance.params; + this.source = instance.source; + this.id = instance.id; + + } /** * API name: {@code lang} */ @@ -269,6 +278,12 @@ public ScriptCondition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java index bf62a6da8d..795d566c26 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInput.java @@ -164,6 +164,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Time timeout; + public Builder() { + } + private Builder(SearchInput instance) { + this.extract = instance.extract; + this.request = instance.request; + this.timeout = instance.timeout; + + } /** * API name: {@code extract} *

                                                                                                              @@ -233,6 +241,12 @@ public SearchInput build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java index 876760d083..3980add105 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestBody.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Query query; + public Builder() { + } + private Builder(SearchInputRequestBody instance) { + this.query = instance.query; + + } /** * Required - API name: {@code query} */ @@ -155,6 +161,12 @@ public SearchInputRequestBody build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java index 31a8cd9b58..f52ce27429 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchInputRequestDefinition.java @@ -225,6 +225,17 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Boolean restTotalHitsAsInt; + public Builder() { + } + private Builder(SearchInputRequestDefinition instance) { + this.body = instance.body; + this.indices = instance.indices; + this.indicesOptions = instance.indicesOptions; + this.searchType = instance.searchType; + this.template = instance.template; + this.restTotalHitsAsInt = instance.restTotalHitsAsInt; + + } /** * API name: {@code body} */ @@ -325,6 +336,12 @@ public SearchInputRequestDefinition build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java index b311d6b88a..81994f90eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SearchTemplateRequestBody.java @@ -213,6 +213,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String source; + public Builder() { + } + private Builder(SearchTemplateRequestBody instance) { + this.explain = instance.explain; + this.id = instance.id; + this.params = instance.params; + this.profile = instance.profile; + this.source = instance.source; + + } /** * API name: {@code explain} */ @@ -290,6 +300,12 @@ public SearchTemplateRequestBody build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java index 6208654490..0a01533985 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SimulatedActions.java @@ -149,6 +149,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean useAll; + public Builder() { + } + private Builder(SimulatedActions instance) { + this.actions = instance.actions; + this.all = instance.all; + this.useAll = instance.useAll; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -210,6 +218,12 @@ public SimulatedActions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java index 8ca8e24699..b86b0ae27a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAction.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SlackMessage message; + public Builder() { + } + private Builder(SlackAction instance) { + this.account = instance.account; + this.message = instance.message; + + } /** * API name: {@code account} */ @@ -171,6 +178,12 @@ public SlackAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java index 4df81b70c9..c6b7a00d1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachment.java @@ -391,6 +391,26 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Long ts; + public Builder() { + } + private Builder(SlackAttachment instance) { + this.authorIcon = instance.authorIcon; + this.authorLink = instance.authorLink; + this.authorName = instance.authorName; + this.color = instance.color; + this.fallback = instance.fallback; + this.fields = instance.fields; + this.footer = instance.footer; + this.footerIcon = instance.footerIcon; + this.imageUrl = instance.imageUrl; + this.pretext = instance.pretext; + this.text = instance.text; + this.thumbUrl = instance.thumbUrl; + this.title = instance.title; + this.titleLink = instance.titleLink; + this.ts = instance.ts; + + } /** * API name: {@code author_icon} */ @@ -550,6 +570,12 @@ public SlackAttachment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java index af3be64827..ae462cf778 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackAttachmentField.java @@ -144,6 +144,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String value; + public Builder() { + } + private Builder(SlackAttachmentField instance) { + this.short_ = instance.short_; + this.title = instance.title; + this.value = instance.value; + + } /** * Required - API name: {@code short} */ @@ -186,6 +194,12 @@ public SlackAttachmentField build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java index 417a4bd0a3..9639af04af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackDynamicAttachment.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String listPath; + public Builder() { + } + private Builder(SlackDynamicAttachment instance) { + this.attachmentTemplate = instance.attachmentTemplate; + this.listPath = instance.listPath; + + } /** * Required - API name: {@code attachment_template} */ @@ -169,6 +176,12 @@ public SlackDynamicAttachment build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java index 7e541394d0..eb7c8e89a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackMessage.java @@ -211,6 +211,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List to; + public Builder() { + } + private Builder(SlackMessage instance) { + this.attachments = instance.attachments; + this.dynamicAttachments = instance.dynamicAttachments; + this.from = instance.from; + this.icon = instance.icon; + this.text = instance.text; + this.to = instance.to; + + } /** * Required - API name: {@code attachments} *

                                                                                                              @@ -318,6 +329,12 @@ public SlackMessage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java index 99082b56e1..5f1b21612c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/SlackResult.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SlackMessage message; + public Builder() { + } + private Builder(SlackResult instance) { + this.account = instance.account; + this.message = instance.message; + + } /** * API name: {@code account} */ @@ -171,6 +178,12 @@ public SlackResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java index 271afeefea..ab4a41062e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StartWatcherRequest.java @@ -101,6 +101,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(StartWatcherRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * Period to wait for a connection to the master node. *

                                                                                                              @@ -138,6 +144,12 @@ public StartWatcherRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java index 4000f71b17..415526844a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/StopWatcherRequest.java @@ -103,6 +103,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(StopWatcherRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * The period to wait for the master node. If the master node is not available * before the timeout expires, the request fails and returns an error. To @@ -144,6 +150,12 @@ public StopWatcherRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java index 9c832f9f3d..69f3c53e15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ThrottleState.java @@ -126,6 +126,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private DateTime timestamp; + public Builder() { + } + private Builder(ThrottleState instance) { + this.reason = instance.reason; + this.timestamp = instance.timestamp; + + } /** * Required - API name: {@code reason} */ @@ -160,6 +167,12 @@ public ThrottleState build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java index 5adc228afc..73d1ffc9e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfMonth.java @@ -142,6 +142,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List on; + public Builder() { + } + private Builder(TimeOfMonth instance) { + this.at = instance.at; + this.on = instance.on; + + } /** * Required - API name: {@code at} *

                                                                                                              @@ -200,6 +207,12 @@ public TimeOfMonth build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java index 0839b63d59..a7329696aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfWeek.java @@ -140,6 +140,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List on; + public Builder() { + } + private Builder(TimeOfWeek instance) { + this.at = instance.at; + this.on = instance.on; + + } /** * Required - API name: {@code at} *

                                                                                                              @@ -198,6 +205,12 @@ public TimeOfWeek build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java index a2cda820f9..2a4a376802 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TimeOfYear.java @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List on; + public Builder() { + } + private Builder(TimeOfYear instance) { + this.at = instance.at; + this.int_ = instance.int_; + this.on = instance.on; + + } /** * Required - API name: {@code at} *

                                                                                                              @@ -241,6 +249,12 @@ public TimeOfYear build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java index 71580f4359..6f60af3525 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/TriggerEventResult.java @@ -143,6 +143,14 @@ public static class Builder extends WithJsonObjectBuilderBase private String type; + public Builder() { + } + private Builder(TriggerEventResult instance) { + this.manual = instance.manual; + this.triggeredTime = instance.triggeredTime; + this.type = instance.type; + + } /** * Required - API name: {@code manual} */ @@ -200,6 +208,12 @@ public TriggerEventResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java index 141caf2086..0c03b55c91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/UpdateSettingsRequest.java @@ -187,6 +187,15 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time timeout; + public Builder() { + } + private Builder(UpdateSettingsRequest instance) { + this.indexAutoExpandReplicas = instance.indexAutoExpandReplicas; + this.indexNumberOfReplicas = instance.indexNumberOfReplicas; + this.masterTimeout = instance.masterTimeout; + this.timeout = instance.timeout; + + } /** * API name: {@code index.auto_expand_replicas} */ @@ -263,6 +272,12 @@ public UpdateSettingsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java index 71872e1043..9e31a84035 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/Watch.java @@ -273,6 +273,20 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Trigger trigger; + public Builder() { + } + private Builder(Watch instance) { + this.actions = instance.actions; + this.condition = instance.condition; + this.input = instance.input; + this.metadata = instance.metadata; + this.status = instance.status; + this.throttlePeriod = instance.throttlePeriod; + this.throttlePeriodInMillis = instance.throttlePeriodInMillis; + this.transform = instance.transform; + this.trigger = instance.trigger; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -470,6 +484,12 @@ public Watch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java index 3b55075b66..d78b31eeee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatchStatus.java @@ -210,6 +210,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String executionState; + public Builder() { + } + private Builder(WatchStatus instance) { + this.actions = instance.actions; + this.lastChecked = instance.lastChecked; + this.lastMetCondition = instance.lastMetCondition; + this.state = instance.state; + this.version = instance.version; + this.executionState = instance.executionState; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -304,6 +315,12 @@ public WatchStatus build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java index 4e2c8749e7..58b5d0c866 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WatcherStatsRequest.java @@ -120,6 +120,13 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List metric; + public Builder() { + } + private Builder(WatcherStatsRequest instance) { + this.emitStacktraces = instance.emitStacktraces; + this.metric = instance.metric; + + } /** * Defines whether stack traces are generated for each watch that is running. *

                                                                                                              @@ -172,6 +179,12 @@ public WatcherStatsRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java index a64772718a..57348c81e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookAction.java @@ -72,6 +72,11 @@ public static WebhookAction of(Function> f public static class Builder extends HttpInputRequestDefinition.AbstractBuilder implements ObjectBuilder { + public Builder() { + } + private Builder(WebhookAction instance) { + + } @Override protected Builder self() { return this; @@ -90,6 +95,12 @@ public WebhookAction build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java index b0fa779256..904c0ba4f4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/WebhookResult.java @@ -130,6 +130,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private HttpInputResponseResult response; + public Builder() { + } + private Builder(WebhookResult instance) { + this.request = instance.request; + this.response = instance.response; + + } /** * Required - API name: {@code request} */ @@ -180,6 +187,12 @@ public WebhookResult build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java index 2fadfc766d..5f12e3fe06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/execute_watch/WatchRecord.java @@ -293,6 +293,22 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private WatchStatus status; + public Builder() { + } + private Builder(WatchRecord instance) { + this.condition = instance.condition; + this.input = instance.input; + this.messages = instance.messages; + this.metadata = instance.metadata; + this.node = instance.node; + this.result = instance.result; + this.state = instance.state; + this.triggerEvent = instance.triggerEvent; + this.user = instance.user; + this.watchId = instance.watchId; + this.status = instance.status; + + } /** * Required - API name: {@code condition} */ @@ -474,6 +490,12 @@ public WatchRecord build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java index d3c9ef9ba7..e2ed508e62 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatchRecordStats.java @@ -173,6 +173,16 @@ public static class Builder extends WatchRecordQueuedStats.AbstractBuilder @@ -249,6 +259,12 @@ public WatchRecordStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java index c434d40c3d..09a98de8a0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/stats/WatcherNodeStats.java @@ -228,6 +228,17 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String nodeId; + public Builder() { + } + private Builder(WatcherNodeStats instance) { + this.currentWatches = instance.currentWatches; + this.executionThreadPool = instance.executionThreadPool; + this.queuedWatches = instance.queuedWatches; + this.watchCount = instance.watchCount; + this.watcherState = instance.watcherState; + this.nodeId = instance.nodeId; + + } /** * The current executing watches metric gives insight into the watches that are * currently being executed by Watcher. Additional information is shared per @@ -406,6 +417,12 @@ public WatcherNodeStats build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java index a51df0fd2b..76f08f93c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackInfoRequest.java @@ -148,6 +148,14 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean human; + public Builder() { + } + private Builder(XpackInfoRequest instance) { + this.acceptEnterprise = instance.acceptEnterprise; + this.categories = instance.categories; + this.human = instance.human; + + } /** * If used, this otherwise ignored parameter must be set to true *

                                                                                                              @@ -216,6 +224,12 @@ public XpackInfoRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java index 10640ab3a0..0eb4776c12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/XpackUsageRequest.java @@ -104,6 +104,12 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + public Builder() { + } + private Builder(XpackUsageRequest instance) { + this.masterTimeout = instance.masterTimeout; + + } /** * 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. @@ -145,6 +151,12 @@ public XpackUsageRequest build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java index aaceb54fce..76a4f2c379 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/BuildInformation.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String hash; + public Builder() { + } + private Builder(BuildInformation instance) { + this.date = instance.date; + this.hash = instance.hash; + + } /** * Required - API name: {@code date} */ @@ -159,6 +166,12 @@ public BuildInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java index e5b0302d46..309cafd679 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Feature.java @@ -167,6 +167,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private NativeCodeInformation nativeCodeInfo; + public Builder() { + } + private Builder(Feature instance) { + this.available = instance.available; + this.description = instance.description; + this.enabled = instance.enabled; + this.nativeCodeInfo = instance.nativeCodeInfo; + + } /** * Required - API name: {@code available} */ @@ -225,6 +234,12 @@ public Feature build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java index 127e7374bc..10bcd3571e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/Features.java @@ -526,6 +526,38 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Feature archive; + public Builder() { + } + private Builder(Features instance) { + this.aggregateMetric = instance.aggregateMetric; + this.analytics = instance.analytics; + this.ccr = instance.ccr; + this.dataStreams = instance.dataStreams; + this.dataTiers = instance.dataTiers; + this.enrich = instance.enrich; + this.enterpriseSearch = instance.enterpriseSearch; + this.eql = instance.eql; + this.esql = instance.esql; + this.graph = instance.graph; + this.ilm = instance.ilm; + this.logstash = instance.logstash; + this.logsdb = instance.logsdb; + this.ml = instance.ml; + this.monitoring = instance.monitoring; + this.rollup = instance.rollup; + this.runtimeFields = instance.runtimeFields; + this.searchableSnapshots = instance.searchableSnapshots; + this.security = instance.security; + this.slm = instance.slm; + this.spatial = instance.spatial; + this.sql = instance.sql; + this.transform = instance.transform; + this.universalProfiling = instance.universalProfiling; + this.votingOnly = instance.votingOnly; + this.watcher = instance.watcher; + this.archive = instance.archive; + + } /** * Required - API name: {@code aggregate_metric} */ @@ -949,6 +981,12 @@ public Features build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java index 3005dadcd3..41afd39981 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/MinimalLicenseInformation.java @@ -174,6 +174,16 @@ public static class Builder extends WithJsonObjectBuilderBase private String uid; + public Builder() { + } + private Builder(MinimalLicenseInformation instance) { + this.expiryDateInMillis = instance.expiryDateInMillis; + this.mode = instance.mode; + this.status = instance.status; + this.type = instance.type; + this.uid = instance.uid; + + } /** * Required - API name: {@code expiry_date_in_millis} */ @@ -232,6 +242,12 @@ public MinimalLicenseInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java index 4b3d63c599..8d81f37a01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/info/NativeCodeInformation.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private String version; + public Builder() { + } + private Builder(NativeCodeInformation instance) { + this.buildHash = instance.buildHash; + this.version = instance.version; + + } /** * Required - API name: {@code build_hash} */ @@ -162,6 +169,12 @@ public NativeCodeInformation build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java index d3c82d7d21..fe480ca035 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Analytics.java @@ -94,6 +94,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends Base.AbstractBuilder implements ObjectBuilder { private AnalyticsStatistics stats; + public Builder() { + } + private Builder(Analytics instance) { + this.stats = instance.stats; + + } /** * Required - API name: {@code stats} */ @@ -127,6 +133,12 @@ public Analytics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java index ae2fe6a506..5893d4daa9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/AnalyticsStatistics.java @@ -241,6 +241,20 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long multiTermsUsage; + public Builder() { + } + private Builder(AnalyticsStatistics instance) { + this.boxplotUsage = instance.boxplotUsage; + this.cumulativeCardinalityUsage = instance.cumulativeCardinalityUsage; + this.stringStatsUsage = instance.stringStatsUsage; + this.topMetricsUsage = instance.topMetricsUsage; + this.tTestUsage = instance.tTestUsage; + this.movingPercentilesUsage = instance.movingPercentilesUsage; + this.normalizeUsage = instance.normalizeUsage; + this.rateUsage = instance.rateUsage; + this.multiTermsUsage = instance.multiTermsUsage; + + } /** * Required - API name: {@code boxplot_usage} */ @@ -331,6 +345,12 @@ public AnalyticsStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java index a5871f2ee7..0c8e9bbf70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Archive.java @@ -94,6 +94,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends Base.AbstractBuilder implements ObjectBuilder { private Long indicesCount; + public Builder() { + } + private Builder(Archive instance) { + this.indicesCount = instance.indicesCount; + + } /** * Required - API name: {@code indices_count} */ @@ -120,6 +126,12 @@ public Archive build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java index eb180d1efd..fbbb76ecbc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Audit.java @@ -105,6 +105,12 @@ public static class Builder extends FeatureToggle.AbstractBuilder imple @Nullable private List outputs; + public Builder() { + } + private Builder(Audit instance) { + this.outputs = instance.outputs; + + } /** * API name: {@code outputs} *

                                                                                                              @@ -143,6 +149,12 @@ public Audit build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java index 2ff781be7a..4649984f58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ccr.java @@ -111,6 +111,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Integer followerIndicesCount; + public Builder() { + } + private Builder(Ccr instance) { + this.autoFollowPatternsCount = instance.autoFollowPatternsCount; + this.followerIndicesCount = instance.followerIndicesCount; + + } /** * Required - API name: {@code auto_follow_patterns_count} */ @@ -145,6 +152,12 @@ public Ccr build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java index 5331de3a6c..af506f4caa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataStreams.java @@ -109,6 +109,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Long indicesCount; + public Builder() { + } + private Builder(DataStreams instance) { + this.dataStreams = instance.dataStreams; + this.indicesCount = instance.indicesCount; + + } /** * Required - API name: {@code data_streams} */ @@ -143,6 +150,12 @@ public DataStreams build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java index ffbecf039d..61d5747f7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTierPhaseStatistics.java @@ -250,6 +250,21 @@ public static class Builder extends WithJsonObjectBuilderBase private Long primaryShardSizeMadBytes; + public Builder() { + } + private Builder(DataTierPhaseStatistics instance) { + this.nodeCount = instance.nodeCount; + this.indexCount = instance.indexCount; + this.totalShardCount = instance.totalShardCount; + this.primaryShardCount = instance.primaryShardCount; + this.docCount = instance.docCount; + this.totalSizeBytes = instance.totalSizeBytes; + this.primarySizeBytes = instance.primarySizeBytes; + this.primaryShardSizeAvgBytes = instance.primaryShardSizeAvgBytes; + this.primaryShardSizeMedianBytes = instance.primaryShardSizeMedianBytes; + this.primaryShardSizeMadBytes = instance.primaryShardSizeMadBytes; + + } /** * Required - API name: {@code node_count} */ @@ -348,6 +363,12 @@ public DataTierPhaseStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java index 3147b23f26..9183ca477e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/DataTiers.java @@ -159,6 +159,16 @@ public static class Builder extends Base.AbstractBuilder implements Obj private DataTierPhaseStatistics dataHot; + public Builder() { + } + private Builder(DataTiers instance) { + this.dataWarm = instance.dataWarm; + this.dataFrozen = instance.dataFrozen; + this.dataCold = instance.dataCold; + this.dataContent = instance.dataContent; + this.dataHot = instance.dataHot; + + } /** * Required - API name: {@code data_warm} */ @@ -257,6 +267,12 @@ public DataTiers build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java index 3b687ad501..1045310341 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Datafeed.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long count; + public Builder() { + } + private Builder(Datafeed instance) { + this.count = instance.count; + + } /** * Required - API name: {@code count} */ @@ -135,6 +141,12 @@ public Datafeed build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java index c26345f630..dfdc35b91b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Eql.java @@ -120,6 +120,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Map queries; + public Builder() { + } + private Builder(Eql instance) { + this.features = instance.features; + this.queries = instance.queries; + + } /** * Required - API name: {@code features} */ @@ -182,6 +189,12 @@ public Eql build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java index 979abcc6e3..e4ee0dbdc4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeatures.java @@ -200,6 +200,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement private EqlFeaturesSequences sequences; + public Builder() { + } + private Builder(EqlFeatures instance) { + this.join = instance.join; + this.joins = instance.joins; + this.keys = instance.keys; + this.event = instance.event; + this.pipes = instance.pipes; + this.sequence = instance.sequence; + this.sequences = instance.sequences; + + } /** * Required - API name: {@code join} */ @@ -302,6 +314,12 @@ public EqlFeatures build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java index 2163da1bb4..07afa2941c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesJoin.java @@ -171,6 +171,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Number joinQueriesFour; + public Builder() { + } + private Builder(EqlFeaturesJoin instance) { + this.joinQueriesTwo = instance.joinQueriesTwo; + this.joinQueriesThree = instance.joinQueriesThree; + this.joinUntil = instance.joinUntil; + this.joinQueriesFiveOrMore = instance.joinQueriesFiveOrMore; + this.joinQueriesFour = instance.joinQueriesFour; + + } /** * Required - API name: {@code join_queries_two} */ @@ -229,6 +239,12 @@ public EqlFeaturesJoin build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java index c58fa37e1c..ae9f487980 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesKeys.java @@ -170,6 +170,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Number joinKeysFour; + public Builder() { + } + private Builder(EqlFeaturesKeys instance) { + this.joinKeysTwo = instance.joinKeysTwo; + this.joinKeysOne = instance.joinKeysOne; + this.joinKeysThree = instance.joinKeysThree; + this.joinKeysFiveOrMore = instance.joinKeysFiveOrMore; + this.joinKeysFour = instance.joinKeysFour; + + } /** * Required - API name: {@code join_keys_two} */ @@ -228,6 +238,12 @@ public EqlFeaturesKeys build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java index f5258d228f..d02f808158 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesPipes.java @@ -125,6 +125,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Number pipeHead; + public Builder() { + } + private Builder(EqlFeaturesPipes instance) { + this.pipeTail = instance.pipeTail; + this.pipeHead = instance.pipeHead; + + } /** * Required - API name: {@code pipe_tail} */ @@ -159,6 +166,12 @@ public EqlFeaturesPipes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java index 2cc15656d7..73d4aac457 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/EqlFeaturesSequences.java @@ -191,6 +191,17 @@ public static class Builder extends WithJsonObjectBuilderBase private Number sequenceMaxspan; + public Builder() { + } + private Builder(EqlFeaturesSequences instance) { + this.sequenceQueriesThree = instance.sequenceQueriesThree; + this.sequenceQueriesFour = instance.sequenceQueriesFour; + this.sequenceQueriesTwo = instance.sequenceQueriesTwo; + this.sequenceUntil = instance.sequenceUntil; + this.sequenceQueriesFiveOrMore = instance.sequenceQueriesFiveOrMore; + this.sequenceMaxspan = instance.sequenceMaxspan; + + } /** * Required - API name: {@code sequence_queries_three} */ @@ -257,6 +268,12 @@ public EqlFeaturesSequences build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java index 26f5c644bf..f83dbb6547 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Flattened.java @@ -94,6 +94,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends Base.AbstractBuilder implements ObjectBuilder { private Integer fieldCount; + public Builder() { + } + private Builder(Flattened instance) { + this.fieldCount = instance.fieldCount; + + } /** * Required - API name: {@code field_count} */ @@ -120,6 +126,12 @@ public Flattened build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java index a836628146..d74a6a64ee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/HealthStatistics.java @@ -94,6 +94,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends Base.AbstractBuilder implements ObjectBuilder { private Invocations invocations; + public Builder() { + } + private Builder(HealthStatistics instance) { + this.invocations = instance.invocations; + + } /** * Required - API name: {@code invocations} */ @@ -127,6 +133,12 @@ public HealthStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java index 34823ac21c..802722a931 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ilm.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List policyStats; + public Builder() { + } + private Builder(Ilm instance) { + this.policyCount = instance.policyCount; + this.policyStats = instance.policyStats; + + } /** * Required - API name: {@code policy_count} */ @@ -189,6 +196,12 @@ public Ilm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java index d4a837ff3b..4c16ff23e0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IlmPolicyStatistics.java @@ -128,6 +128,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Phases phases; + public Builder() { + } + private Builder(IlmPolicyStatistics instance) { + this.indicesManaged = instance.indicesManaged; + this.phases = instance.phases; + + } /** * Required - API name: {@code indices_managed} */ @@ -169,6 +176,12 @@ public IlmPolicyStatistics build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java index 79bb69c32c..5af87f367d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Invocations.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long total; + public Builder() { + } + private Builder(Invocations instance) { + this.total = instance.total; + + } /** * Required - API name: {@code total} */ @@ -135,6 +141,12 @@ public Invocations build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java index a7207d49dd..214ebfd548 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/IpFilter.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Boolean transport; + public Builder() { + } + private Builder(IpFilter instance) { + this.http = instance.http; + this.transport = instance.transport; + + } /** * Required - API name: {@code http} */ @@ -158,6 +165,12 @@ public IpFilter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java index c15bf4f3d8..8cc3055660 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/JobUsage.java @@ -182,6 +182,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement private JobStatistics modelSize; + public Builder() { + } + private Builder(JobUsage instance) { + this.count = instance.count; + this.createdBy = instance.createdBy; + this.detectors = instance.detectors; + this.forecasts = instance.forecasts; + this.modelSize = instance.modelSize; + + } /** * Required - API name: {@code count} */ @@ -273,6 +283,12 @@ public JobUsage build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java index 72ec7c3f92..82e89c228d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MachineLearning.java @@ -177,6 +177,16 @@ public static class Builder extends Base.AbstractBuilder implements Obj private MlInference inference; + public Builder() { + } + private Builder(MachineLearning instance) { + this.datafeeds = instance.datafeeds; + this.jobs = instance.jobs; + this.nodeCount = instance.nodeCount; + this.dataFrameAnalyticsJobs = instance.dataFrameAnalyticsJobs; + this.inference = instance.inference; + + } /** * Required - API name: {@code datafeeds} *

                                                                                                              @@ -301,6 +311,12 @@ public MachineLearning build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java index 5b500c14cc..ee6bd139d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlCounter.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long count; + public Builder() { + } + private Builder(MlCounter instance) { + this.count = instance.count; + + } /** * Required - API name: {@code count} */ @@ -135,6 +141,12 @@ public MlCounter build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java index a9d2ca1732..6398465ad5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobs.java @@ -173,6 +173,15 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private MlDataFrameAnalyticsJobsCount stopped; + public Builder() { + } + private Builder(MlDataFrameAnalyticsJobs instance) { + this.memoryUsage = instance.memoryUsage; + this.all = instance.all; + this.analysisCounts = instance.analysisCounts; + this.stopped = instance.stopped; + + } /** * API name: {@code memory_usage} */ @@ -255,6 +264,12 @@ public MlDataFrameAnalyticsJobs build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java index 6c7a2f4f10..edafaada5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsAnalysis.java @@ -159,6 +159,14 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer regression; + public Builder() { + } + private Builder(MlDataFrameAnalyticsJobsAnalysis instance) { + this.classification = instance.classification; + this.outlierDetection = instance.outlierDetection; + this.regression = instance.regression; + + } /** * API name: {@code classification} */ @@ -201,6 +209,12 @@ public MlDataFrameAnalyticsJobsAnalysis build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java index 7bdbf7e739..936bb5bae9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsCount.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Long count; + public Builder() { + } + private Builder(MlDataFrameAnalyticsJobsCount instance) { + this.count = instance.count; + + } /** * Required - API name: {@code count} */ @@ -138,6 +144,12 @@ public MlDataFrameAnalyticsJobsCount build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java index 78d4909987..279c715a74 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlDataFrameAnalyticsJobsMemory.java @@ -114,6 +114,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private JobStatistics peakUsageBytes; + public Builder() { + } + private Builder(MlDataFrameAnalyticsJobsMemory instance) { + this.peakUsageBytes = instance.peakUsageBytes; + + } /** * Required - API name: {@code peak_usage_bytes} */ @@ -147,6 +153,12 @@ public MlDataFrameAnalyticsJobsMemory build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java index 2d8f178465..a541599f1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInference.java @@ -155,6 +155,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private MlInferenceDeployments deployments; + public Builder() { + } + private Builder(MlInference instance) { + this.ingestProcessors = instance.ingestProcessors; + this.trainedModels = instance.trainedModels; + this.deployments = instance.deployments; + + } /** * Required - API name: {@code ingest_processors} *

                                                                                                              @@ -235,6 +243,12 @@ public MlInference build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java index 23aa3affde..c21564620a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeployments.java @@ -159,6 +159,15 @@ public static class Builder extends WithJsonObjectBuilderBase private MlInferenceDeploymentsTimeMs timeMs; + public Builder() { + } + private Builder(MlInferenceDeployments instance) { + this.count = instance.count; + this.inferenceCounts = instance.inferenceCounts; + this.modelSizesBytes = instance.modelSizesBytes; + this.timeMs = instance.timeMs; + + } /** * Required - API name: {@code count} */ @@ -231,6 +240,12 @@ public MlInferenceDeployments build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java index 93411a939b..4609d2e756 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceDeploymentsTimeMs.java @@ -112,6 +112,12 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private Double avg; + public Builder() { + } + private Builder(MlInferenceDeploymentsTimeMs instance) { + this.avg = instance.avg; + + } /** * Required - API name: {@code avg} */ @@ -138,6 +144,12 @@ public MlInferenceDeploymentsTimeMs build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java index de1a5c8c89..9d1d870b5e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessor.java @@ -157,6 +157,15 @@ public static class Builder extends WithJsonObjectBuilderBase private MlInferenceIngestProcessorCount timeMs; + public Builder() { + } + private Builder(MlInferenceIngestProcessor instance) { + this.numDocsProcessed = instance.numDocsProcessed; + this.pipelines = instance.pipelines; + this.numFailures = instance.numFailures; + this.timeMs = instance.timeMs; + + } /** * Required - API name: {@code num_docs_processed} */ @@ -238,6 +247,12 @@ public MlInferenceIngestProcessor build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java index 82824eed35..3ba4129bba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceIngestProcessorCount.java @@ -143,6 +143,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long min; + public Builder() { + } + private Builder(MlInferenceIngestProcessorCount instance) { + this.max = instance.max; + this.sum = instance.sum; + this.min = instance.min; + + } /** * Required - API name: {@code max} */ @@ -185,6 +193,12 @@ public MlInferenceIngestProcessorCount build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java index 4dead3fc5a..0468fa7db5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModels.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private JobStatistics modelSizeBytes; + public Builder() { + } + private Builder(MlInferenceTrainedModels instance) { + this.estimatedOperations = instance.estimatedOperations; + this.estimatedHeapMemoryUsageBytes = instance.estimatedHeapMemoryUsageBytes; + this.count = instance.count; + this.all = instance.all; + this.modelSizeBytes = instance.modelSizeBytes; + + } /** * API name: {@code estimated_operations} */ @@ -289,6 +299,12 @@ public MlInferenceTrainedModels build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java index eb317b73f7..b830999dc5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlInferenceTrainedModelsCount.java @@ -244,6 +244,19 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Long textEmbedding; + public Builder() { + } + private Builder(MlInferenceTrainedModelsCount instance) { + this.total = instance.total; + this.prepackaged = instance.prepackaged; + this.other = instance.other; + this.passThrough = instance.passThrough; + this.regression = instance.regression; + this.classification = instance.classification; + this.ner = instance.ner; + this.textEmbedding = instance.textEmbedding; + + } /** * Required - API name: {@code total} */ @@ -326,6 +339,12 @@ public MlInferenceTrainedModelsCount build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java index efbb722443..eb06e6f9cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/MlJobForecasts.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long forecastedJobs; + public Builder() { + } + private Builder(MlJobForecasts instance) { + this.total = instance.total; + this.forecastedJobs = instance.forecastedJobs; + + } /** * Required - API name: {@code total} */ @@ -158,6 +165,12 @@ public MlJobForecasts build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java index bc2b99c0e6..5026074c7e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Monitoring.java @@ -123,6 +123,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Map enabledExporters; + public Builder() { + } + private Builder(Monitoring instance) { + this.collectionEnabled = instance.collectionEnabled; + this.enabledExporters = instance.enabledExporters; + + } /** * Required - API name: {@code collection_enabled} */ @@ -169,6 +176,12 @@ public Monitoring build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phase.java index d4ce7a81b5..e808c30b32 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phase.java @@ -134,6 +134,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long minAge; + public Builder() { + } + private Builder(Phase instance) { + this.actions = instance.actions; + this.minAge = instance.minAge; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -180,6 +187,12 @@ public Phase build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phases.java index 08f587b908..bb69f7bed4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Phases.java @@ -194,6 +194,16 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Phase warm; + public Builder() { + } + private Builder(Phases instance) { + this.cold = instance.cold; + this.delete = instance.delete; + this.frozen = instance.frozen; + this.hot = instance.hot; + this.warm = instance.warm; + + } /** * API name: {@code cold} */ @@ -287,6 +297,12 @@ public Phases build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java index 53b2ddaa17..243ab71c44 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Realm.java @@ -268,6 +268,19 @@ public static class Builder extends Base.AbstractBuilder implements Obj @Nullable private List isAuthenticationDelegated; + public Builder() { + } + private Builder(Realm instance) { + this.name = instance.name; + this.order = instance.order; + this.size = instance.size; + this.cache = instance.cache; + this.hasAuthorizationRealms = instance.hasAuthorizationRealms; + this.hasDefaultUsernamePattern = instance.hasDefaultUsernamePattern; + this.hasTruststore = instance.hasTruststore; + this.isAuthenticationDelegated = instance.isAuthenticationDelegated; + + } /** * API name: {@code name} *

                                                                                                              @@ -458,6 +471,12 @@ public Realm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java index 002e79553a..70e3a58756 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RealmCache.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Long size; + public Builder() { + } + private Builder(RealmCache instance) { + this.size = instance.size; + + } /** * Required - API name: {@code size} */ @@ -135,6 +141,12 @@ public RealmCache build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java index db89dfddbc..c0358df795 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RoleMapping.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Integer size; + public Builder() { + } + private Builder(RoleMapping instance) { + this.enabled = instance.enabled; + this.size = instance.size; + + } /** * Required - API name: {@code enabled} */ @@ -158,6 +165,12 @@ public RoleMapping build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java index bd31a30d1c..9ccd88be0f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldTypes.java @@ -104,6 +104,12 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends Base.AbstractBuilder implements ObjectBuilder { private List fieldTypes; + public Builder() { + } + private Builder(RuntimeFieldTypes instance) { + this.fieldTypes = instance.fieldTypes; + + } /** * Required - API name: {@code field_types} *

                                                                                                              @@ -151,6 +157,12 @@ public RuntimeFieldTypes build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java index 5223a057fb..5586367223 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/RuntimeFieldsType.java @@ -315,6 +315,25 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long sourceTotal; + public Builder() { + } + private Builder(RuntimeFieldsType instance) { + this.charsMax = instance.charsMax; + this.charsTotal = instance.charsTotal; + this.count = instance.count; + this.docMax = instance.docMax; + this.docTotal = instance.docTotal; + this.indexCount = instance.indexCount; + this.lang = instance.lang; + this.linesMax = instance.linesMax; + this.linesTotal = instance.linesTotal; + this.name = instance.name; + this.scriptlessCount = instance.scriptlessCount; + this.shadowedCount = instance.shadowedCount; + this.sourceMax = instance.sourceMax; + this.sourceTotal = instance.sourceTotal; + + } /** * Required - API name: {@code chars_max} */ @@ -457,6 +476,12 @@ public RuntimeFieldsType build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java index 5d113279d1..b25b636817 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SearchableSnapshots.java @@ -137,6 +137,14 @@ public static class Builder extends Base.AbstractBuilder implements Obj @Nullable private Integer sharedCacheIndicesCount; + public Builder() { + } + private Builder(SearchableSnapshots instance) { + this.indicesCount = instance.indicesCount; + this.fullCopyIndicesCount = instance.fullCopyIndicesCount; + this.sharedCacheIndicesCount = instance.sharedCacheIndicesCount; + + } /** * Required - API name: {@code indices_count} */ @@ -179,6 +187,12 @@ public SearchableSnapshots build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java index ef7962519b..c88e39e342 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Security.java @@ -282,6 +282,23 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Base operatorPrivileges; + public Builder() { + } + private Builder(Security instance) { + this.apiKeyService = instance.apiKeyService; + this.anonymous = instance.anonymous; + this.audit = instance.audit; + this.fips140 = instance.fips140; + this.ipfilter = instance.ipfilter; + this.realms = instance.realms; + this.roleMapping = instance.roleMapping; + this.roles = instance.roles; + this.ssl = instance.ssl; + this.systemKey = instance.systemKey; + this.tokenService = instance.tokenService; + this.operatorPrivileges = instance.operatorPrivileges; + + } /** * Required - API name: {@code api_key_service} */ @@ -508,6 +525,12 @@ public Security build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java index a4afe87faa..0853179295 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRoles.java @@ -139,6 +139,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private SecurityRolesFile file; + public Builder() { + } + private Builder(SecurityRoles instance) { + this.native_ = instance.native_; + this.dls = instance.dls; + this.file = instance.file; + + } /** * Required - API name: {@code native} */ @@ -202,6 +210,12 @@ public SecurityRoles build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java index f1d1701ca0..15bb3aabf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDls.java @@ -109,6 +109,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private SecurityRolesDlsBitSetCache bitSetCache; + public Builder() { + } + private Builder(SecurityRolesDls instance) { + this.bitSetCache = instance.bitSetCache; + + } /** * Required - API name: {@code bit_set_cache} */ @@ -143,6 +149,12 @@ public SecurityRolesDls build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java index deb276bf43..2b31f22c75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesDlsBitSetCache.java @@ -243,6 +243,19 @@ public static class Builder extends WithJsonObjectBuilderBase private Long missesTimeInMillis; + public Builder() { + } + private Builder(SecurityRolesDlsBitSetCache instance) { + this.count = instance.count; + this.memory = instance.memory; + this.memoryInBytes = instance.memoryInBytes; + this.hits = instance.hits; + this.misses = instance.misses; + this.evictions = instance.evictions; + this.hitsTimeInMillis = instance.hitsTimeInMillis; + this.missesTimeInMillis = instance.missesTimeInMillis; + + } /** * Required - Number of entries in the cache. *

                                                                                                              @@ -341,6 +354,12 @@ public SecurityRolesDlsBitSetCache build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java index 2556960418..b3f1f478a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesFile.java @@ -141,6 +141,14 @@ public static class Builder extends WithJsonObjectBuilderBase implement private Long size; + public Builder() { + } + private Builder(SecurityRolesFile instance) { + this.dls = instance.dls; + this.fls = instance.fls; + this.size = instance.size; + + } /** * Required - API name: {@code dls} */ @@ -183,6 +191,12 @@ public SecurityRolesFile build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java index 5adfa979e7..5aeb6b69a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/SecurityRolesNative.java @@ -143,6 +143,14 @@ public static class Builder extends WithJsonObjectBuilderBase private Long size; + public Builder() { + } + private Builder(SecurityRolesNative instance) { + this.dls = instance.dls; + this.fls = instance.fls; + this.size = instance.size; + + } /** * Required - API name: {@code dls} */ @@ -185,6 +193,12 @@ public SecurityRolesNative build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java index eeb4e3b1ac..29073e4e4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Slm.java @@ -121,6 +121,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj @Nullable private Statistics policyStats; + public Builder() { + } + private Builder(Slm instance) { + this.policyCount = instance.policyCount; + this.policyStats = instance.policyStats; + + } /** * API name: {@code policy_count} */ @@ -162,6 +169,12 @@ public Slm build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java index 4f6d3fc601..15f79210e4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Sql.java @@ -129,6 +129,13 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Map queries; + public Builder() { + } + private Builder(Sql instance) { + this.features = instance.features; + this.queries = instance.queries; + + } /** * Required - API name: {@code features} *

                                                                                                              @@ -196,6 +203,12 @@ public Sql build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java index b4efd845ca..913c6198c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Ssl.java @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase implement private FeatureToggle transport; + public Builder() { + } + private Builder(Ssl instance) { + this.http = instance.http; + this.transport = instance.transport; + + } /** * Required - API name: {@code http} */ @@ -172,6 +179,12 @@ public Ssl build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java index cb1a41fac5..4052c77163 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Vector.java @@ -133,6 +133,14 @@ public static class Builder extends Base.AbstractBuilder implements Obj @Nullable private Integer sparseVectorFieldsCount; + public Builder() { + } + private Builder(Vector instance) { + this.denseVectorDimsAvgCount = instance.denseVectorDimsAvgCount; + this.denseVectorFieldsCount = instance.denseVectorFieldsCount; + this.sparseVectorFieldsCount = instance.sparseVectorFieldsCount; + + } /** * Required - API name: {@code dense_vector_dims_avg_count} */ @@ -175,6 +183,12 @@ public Vector build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java index 247e9b56c6..ec6103351b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/Watcher.java @@ -124,6 +124,14 @@ public static class Builder extends Base.AbstractBuilder implements Obj private Counter count; + public Builder() { + } + private Builder(Watcher instance) { + this.execution = instance.execution; + this.watch = instance.watch; + this.count = instance.count; + + } /** * Required - API name: {@code execution} */ @@ -187,6 +195,12 @@ public Watcher build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java index 6642f067fb..87da669529 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActionTotals.java @@ -129,6 +129,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Long totalTimeInMs; + public Builder() { + } + private Builder(WatcherActionTotals instance) { + this.total = instance.total; + this.totalTimeInMs = instance.totalTimeInMs; + + } /** * Required - API name: {@code total} */ @@ -170,6 +177,12 @@ public WatcherActionTotals build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java index 3d2d2016c9..18144bc063 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherActions.java @@ -120,6 +120,12 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private Map actions; + public Builder() { + } + private Builder(WatcherActions instance) { + this.actions = instance.actions; + + } /** * Required - API name: {@code actions} *

                                                                                                              @@ -168,6 +174,12 @@ public WatcherActions build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java index b8b31bd86d..9ba26c4f90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatch.java @@ -182,6 +182,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement private WatcherWatchTrigger trigger; + public Builder() { + } + private Builder(WatcherWatch instance) { + this.input = instance.input; + this.condition = instance.condition; + this.action = instance.action; + this.trigger = instance.trigger; + + } /** * Required - API name: {@code input} *

                                                                                                              @@ -302,6 +311,12 @@ public WatcherWatch build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java index ff565b3536..3c9027ceb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTrigger.java @@ -132,6 +132,13 @@ public static class Builder extends WithJsonObjectBuilderBase private Counter all; + public Builder() { + } + private Builder(WatcherWatchTrigger instance) { + this.schedule = instance.schedule; + this.all = instance.all; + + } /** * API name: {@code schedule} */ @@ -181,6 +188,12 @@ public WatcherWatchTrigger build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java index a476b40f0d..c2ec6be152 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/WatcherWatchTriggerSchedule.java @@ -112,6 +112,13 @@ public static class Builder extends Counter.AbstractBuilder private Counter all; + public Builder() { + } + private Builder(WatcherWatchTriggerSchedule instance) { + this.cron = instance.cron; + this.all = instance.all; + + } /** * Required - API name: {@code cron} */ @@ -160,6 +167,12 @@ public WatcherWatchTriggerSchedule build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java index 037d1bb94b..0c943d15c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/xpack/usage/XpackUsageQuery.java @@ -175,6 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer total; + public Builder() { + } + private Builder(XpackUsageQuery instance) { + this.count = instance.count; + this.failed = instance.failed; + this.paging = instance.paging; + this.total = instance.total; + + } /** * API name: {@code count} */ @@ -225,6 +234,12 @@ public XpackUsageQuery build() { } } + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } // --------------------------------------------------------------------------------------------- /**