From 68519839bf6628577365c255550dbfe189af9315 Mon Sep 17 00:00:00 2001 From: lucy66hw <178352792+lucy66hw@users.noreply.github.com> Date: Thu, 20 Nov 2025 05:34:38 +0000 Subject: [PATCH] Protobuf schema change detected Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../generated/models/aggregated_models.proto | 1308 ++++++++++++++++- .../generated/services/default_service.proto | 53 +- 2 files changed, 1298 insertions(+), 63 deletions(-) diff --git a/protos/generated/models/aggregated_models.proto b/protos/generated/models/aggregated_models.proto index 4e0236f51ff..2c35d4f6ee4 100644 --- a/protos/generated/models/aggregated_models.proto +++ b/protos/generated/models/aggregated_models.proto @@ -1,24 +1,26 @@ /* - This is auto generated by OpenAPI Generator. The source of OpenAPI is opensearch-api-specification + This is auto generated by OpenAPI Generator. The source of OpenAPI is opensearch-api-specification */ syntax = "proto3"; package org.opensearch.protobufs; + message ObjectMap { map fields = 1; message Value { oneof value { - int32 int32 = 1; - int64 int64 = 2; - float float = 3; - double double = 4; - string string = 5; - bool bool = 6; - ObjectMap object_map = 7; - ListValue list_value = 8; + NullValue null_value = 1; + int32 int32 = 2; + int64 int64 = 3; + float float = 4; + double double = 5; + string string = 6; + bool bool = 7; + ObjectMap object_map = 8; + ListValue list_value = 9; } } @@ -31,7 +33,7 @@ message ObjectMap { } message GeneralNumber { - oneof value { + oneof value{ int32 int32_value = 1; int64 int64_value = 2; float float_value = 3; @@ -44,12 +46,15 @@ enum NullValue { NULL_VALUE_NULL = 1; } message AdjacencyMatrixAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseAdjacencyMatrixBucketAllOfBuckets buckets = 2; + } message AdjacencyMatrixAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -63,13 +68,17 @@ message AdjacencyMatrixAggregation { // Filters used to create buckets. At least one filter is required. map filters = 5; + } message AdjacencyMatrixBucket { + int64 doc_count = 1; string key = 2; + } message Aggregate { + optional AdjacencyMatrixAggregate adjacency_matrix = 1; optional AutoDateHistogramAggregate auto_date_histogram = 2; @@ -191,18 +200,24 @@ message Aggregate { optional VariableWidthHistogramAggregate variable_width_histogram = 60; optional WeightedAvgAggregate weighted_avg = 61; + } message AggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; + } message Aggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; optional string name = 2; + } message AggregationBreakdown { + int64 build_aggregation = 1; int64 build_aggregation_count = 2; @@ -226,8 +241,10 @@ message AggregationBreakdown { int64 reduce = 11; int64 reduce_count = 12; + } message AggregationContainer { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -360,8 +377,10 @@ message AggregationContainer { WeightedAverageAggregation weighted_avg = 65; VariableWidthHistogramAggregation variable_width_histogram = 66; + } message AggregationProfile { + AggregationBreakdown breakdown = 1; string description = 2; @@ -374,8 +393,10 @@ message AggregationProfile { optional AggregationProfileDebug debug = 5; repeated AggregationProfile children = 6; + } message AggregationProfileDebug { + optional int32 segments_with_multi_valued_ords = 1; optional string collection_strategy = 2; @@ -421,8 +442,10 @@ message AggregationProfileDebug { repeated string deferred_aggregators = 22; optional string map_reducer = 23; + } message AggregationProfileDelegateDebug { + optional int32 segments_with_doc_count_field = 1; optional int32 segments_with_deleted_docs = 2; @@ -432,8 +455,10 @@ message AggregationProfileDelegateDebug { optional int32 segments_counted = 4; optional int32 segments_collected = 5; + } message AggregationProfileDelegateDebugFilter { + optional int32 results_from_metadata = 1; optional string query = 2; @@ -441,51 +466,68 @@ message AggregationProfileDelegateDebugFilter { optional string specialized_for = 3; optional int32 segments_counted_in_constant_time = 4; + } message AggregationRange { + optional AggregationRangeFrom from = 1; // Custom key to return the range with. optional string key = 2; optional AggregationRangeTo to = 3; + } message AggregationRangeFrom { + oneof aggregation_range_from { + double double = 1; string string = 2; NullValue null_value = 3; + } } message AggregationRangeTo { + oneof aggregation_range_to { + double double = 1; string string = 2; NullValue null_value = 3; + } } message ArrayPercentilesItem { + string key = 1; ArrayPercentilesItemValue value = 2; optional string value_as_string = 3; + } message ArrayPercentilesItemArray { + repeated ArrayPercentilesItem array_percentiles_item_array = 1; + } message ArrayPercentilesItemValue { + oneof array_percentiles_item_value { + double double = 1; NullValue null_value = 2; + } } message AutoDateHistogramAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -493,8 +535,10 @@ message AutoDateHistogramAggregate { // A date histogram interval, similar to `Duration`, with support for additional units: `w` (week), `M` (month), `q` (quarter), and `y` (year). string interval = 3; + } message AutoDateHistogramAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -528,8 +572,10 @@ message AutoDateHistogramAggregation { // The time zone identifier. optional string time_zone = 13; + } message AverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -543,8 +589,10 @@ message AverageAggregation { optional Script script = 5; optional string format = 6; + } message AverageBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -556,16 +604,20 @@ message AverageBucketAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message AvgAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message BoolQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -587,8 +639,10 @@ message BoolQuery { // Ensures correct behavior when a query contains only `must_not` clauses. By default set to true, OpenSearch adds a match-all clause to ensure results are returned from Lucene, with the `must_not` conditions applied as filters. If set to false, the query may return no results, as Lucene typically requires at least one positive condition. optional bool adjust_pure_negative = 8; + } message BoostingQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -600,14 +654,18 @@ message BoostingQuery { QueryContainer negative = 4; QueryContainer positive = 5; + } enum BoundaryScanner { + BOUNDARY_SCANNER_UNSPECIFIED = 0; BOUNDARY_SCANNER_CHARS = 1; BOUNDARY_SCANNER_SENTENCE = 2; BOUNDARY_SCANNER_WORD = 3; + } message BoxPlotAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -638,8 +696,10 @@ message BoxPlotAggregate { optional string lower_as_string = 14; optional string upper_as_string = 15; + } message BoxplotAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -654,8 +714,10 @@ message BoxplotAggregation { // Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. optional double compression = 6; + } message BucketAggregationBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -666,8 +728,10 @@ message BucketAggregationBase { // Sub-aggregations for this bucket aggregation map aggs = 4; + } message BucketMetricValueAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -676,16 +740,20 @@ message BucketMetricValueAggregate { optional string value_as_string = 3; repeated string keys = 4; + } message BucketPathAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; optional string name = 2; optional BucketsPath buckets_path = 3; + } message BucketScriptAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -699,8 +767,10 @@ message BucketScriptAggregation { optional GapPolicy gap_policy = 5; optional Script script = 6; + } message BucketSelectorAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -714,8 +784,10 @@ message BucketSelectorAggregation { optional GapPolicy gap_policy = 5; optional Script script = 6; + } message BucketSortAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -730,59 +802,78 @@ message BucketSortAggregation { optional int32 size = 5; repeated SortCombinations sort = 6; + } message Buckets { + oneof buckets { + NullMap keyed = 1; NullArray null_array = 2; + } } message BucketsPath { + oneof buckets_path { + StringArray string_array = 1; StringMap dict = 2; + } } message BucketsQueryContainer { + map null_map = 1; repeated ObjectMap null_array = 2; map keyed = 3; + } enum BuiltinHighlighterType { + BUILTIN_HIGHLIGHTER_TYPE_UNSPECIFIED = 0; BUILTIN_HIGHLIGHTER_TYPE_PLAIN = 1; BUILTIN_HIGHLIGHTER_TYPE_FVH = 2; BUILTIN_HIGHLIGHTER_TYPE_UNIFIED = 3; + } enum BuiltinScriptLanguage { + BUILTIN_SCRIPT_LANGUAGE_UNSPECIFIED = 0; BUILTIN_SCRIPT_LANGUAGE_EXPRESSION = 1; BUILTIN_SCRIPT_LANGUAGE_JAVA = 2; BUILTIN_SCRIPT_LANGUAGE_MUSTACHE = 3; BUILTIN_SCRIPT_LANGUAGE_PAINLESS = 4; + } message BulkRequestBody { + optional OperationContainer operation_container = 1; optional UpdateAction update_action = 2; optional bytes object = 3; + } message BulkResponse { + bool errors = 1; - repeated Items items = 2; + repeated Item items = 2; int64 took = 3; optional int64 ingest_took = 4; + } message CalendarInterval { + oneof calendar_interval { + Second second = 1; Minute minute = 2; @@ -798,15 +889,19 @@ message CalendarInterval { Quarter quarter = 7; Year year = 8; + } } message CardinalityAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 value = 2; + } message CardinalityAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -823,36 +918,46 @@ message CardinalityAggregation { optional int32 precision_threshold = 6; optional CardinalityExecutionMode execution_hint = 7; + } enum CardinalityExecutionMode { + CARDINALITY_EXECUTION_MODE_UNSPECIFIED = 0; CARDINALITY_EXECUTION_MODE_DIRECT = 1; CARDINALITY_EXECUTION_MODE_GLOBAL_ORDINALS = 2; + } message ChiSquareHeuristic { + // Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to. bool background_is_superset = 1; // Set to `false` to filter out the terms that appear less often in the subset than in documents outside the subset. bool include_negatives = 2; + } enum ChildScoreMode { + CHILD_SCORE_MODE_UNSPECIFIED = 0; CHILD_SCORE_MODE_AVG = 1; CHILD_SCORE_MODE_MAX = 2; CHILD_SCORE_MODE_MIN = 3; CHILD_SCORE_MODE_NONE = 4; CHILD_SCORE_MODE_SUM = 5; + } message ChildrenAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message ChildrenAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -866,15 +971,19 @@ message ChildrenAggregation { // The name of a relation in a join field. optional string type = 5; + } message ClusterStatistics { + int32 skipped = 1; int32 successful = 2; int32 total = 3; + } message Collector { + string name = 1; string reason = 2; @@ -883,13 +992,17 @@ message Collector { int64 time_in_nanos = 3; repeated Collector children = 4; + } enum CombinedFieldsOperator { + COMBINED_FIELDS_OPERATOR_UNSPECIFIED = 0; COMBINED_FIELDS_OPERATOR_AND = 1; COMBINED_FIELDS_OPERATOR_OR = 2; + } message CombinedFieldsQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -909,13 +1022,17 @@ message CombinedFieldsQuery { optional MinimumShouldMatch minimum_should_match = 7; optional CombinedFieldsZeroTerms zero_terms_query = 8; + } enum CombinedFieldsZeroTerms { + COMBINED_FIELDS_ZERO_TERMS_UNSPECIFIED = 0; COMBINED_FIELDS_ZERO_TERMS_ALL = 1; COMBINED_FIELDS_ZERO_TERMS_NONE = 2; + } message CommonTermsQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -934,8 +1051,10 @@ message CommonTermsQuery { string query = 8; string field = 9; + } message Completion { + int32 length = 1; int32 offset = 2; @@ -943,8 +1062,10 @@ message Completion { string text = 3; repeated CompletionAllOfOptionsInner options = 4; + } message CompletionAllOfOptionsInner { + optional bool collate_match = 1; map contexts = 2; @@ -965,8 +1086,10 @@ message CompletionAllOfOptionsInner { optional float x_score = 9; optional bytes x_source = 10; + } message CompletionContext { + optional double boost = 1; Context context = 2; @@ -976,11 +1099,15 @@ message CompletionContext { optional GeoHashPrecision precision = 4; optional bool prefix = 5; + } message CompletionContextArray { + repeated CompletionContext completion_context_array = 1; + } message CompletionSuggest { + int32 length = 1; int32 offset = 2; @@ -988,8 +1115,10 @@ message CompletionSuggest { string text = 3; repeated CompletionSuggestAllOfOptions options = 4; + } message CompletionSuggestAllOfOptions { + optional bool collate_match = 1; map contexts = 2; @@ -1010,8 +1139,10 @@ message CompletionSuggestAllOfOptions { optional float x_score = 9; optional bytes x_source = 10; + } message CompletionSuggestOption { + optional bool collate_match = 1; map contexts = 2; @@ -1032,8 +1163,10 @@ message CompletionSuggestOption { optional float x_score = 9; optional bytes x_source = 10; + } message CompletionSuggester { + optional string analyzer = 1; string field = 2; @@ -1047,16 +1180,20 @@ message CompletionSuggester { optional string regex = 6; optional bool skip_duplicates = 7; + } message CompositeAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseCompositeBucketAllOfBuckets buckets = 2; map after_key = 3; + } message CompositeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1075,8 +1212,10 @@ message CompositeAggregation { // The value sources used to build composite buckets. Keys are returned in the order of the `sources` definition. repeated CompositeAggregationSourceMap sources = 7; + } message CompositeAggregationSource { + optional CompositeTermsAggregationSource terms = 1; optional CompositeHistogramAggregationSource histogram = 2; @@ -1084,16 +1223,22 @@ message CompositeAggregationSource { optional CompositeDateHistogramAggregationSource date_histogram = 3; optional CompositeGeoTileGridAggregationSource geotile_grid = 4; + } message CompositeAggregationSourceMap { + map composite_aggregation_source_map = 1; + } message CompositeBucket { + int64 doc_count = 1; map key = 2; + } message CompositeDateHistogramAggregationSource { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -1120,8 +1265,10 @@ message CompositeDateHistogramAggregationSource { // The time zone identifier. optional string time_zone = 11; + } message CompositeGeoTileGridAggregationSource { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -1138,8 +1285,10 @@ message CompositeGeoTileGridAggregationSource { optional int32 precision = 7; optional GeoBounds bounds = 8; + } message CompositeHistogramAggregationSource { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -1154,8 +1303,10 @@ message CompositeHistogramAggregationSource { optional SortOrder order = 6; double interval = 7; + } message CompositeTermsAggregationSource { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -1168,8 +1319,10 @@ message CompositeTermsAggregationSource { optional ValueType value_type = 5; optional SortOrder order = 6; + } message CompositeValuesSource { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -1182,26 +1335,35 @@ message CompositeValuesSource { optional ValueType value_type = 5; optional SortOrder order = 6; + } message ConstantScoreQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; QueryContainer filter = 3; + } message Context { + oneof context { + string category = 1; GeoLocation location = 2; + } } message ContextArray { + repeated Context context_array = 1; + } message CoordsGeoBounds { + // The top boundary latitude. double top = 1; @@ -1213,16 +1375,20 @@ message CoordsGeoBounds { // The right boundary longitude. double right = 4; + } message CumulativeCardinalityAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 value = 2; optional string value_as_string = 3; + } message CumulativeCardinalityAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1234,8 +1400,10 @@ message CumulativeCardinalityAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message CumulativeSumAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1247,8 +1415,10 @@ message CumulativeSumAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message DateDecayPlacement { + optional double decay = 1; // A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value. @@ -1258,14 +1428,18 @@ message DateDecayPlacement { // A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value. string scale = 4; + } message DateHistogramAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseDateHistogramBucketAllOfBuckets buckets = 2; + } message DateHistogramAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1314,22 +1488,28 @@ message DateHistogramAggregation { // Set to `true` to associate a unique string key with each bucket and return the ranges as a hash rather than an array. optional bool keyed = 19; + } message DateHistogramBucket { + int64 doc_count = 1; optional string key_as_string = 2; // The time unit for milliseconds. int64 key = 3; + } message DateRangeAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseRangeBucketAllOfBuckets buckets = 2; + } message DateRangeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1357,16 +1537,20 @@ message DateRangeAggregation { // Set to `true` to associate a unique string key with each bucket and returns the ranges as a hash rather than an array. optional bool keyed = 10; + } message DateRangeExpression { + optional FieldDateMath from = 1; // Custom key to return the range with. optional string key = 2; optional FieldDateMath to = 3; + } message DateRangeQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -1399,52 +1583,72 @@ message DateRangeQuery { optional bool include_upper = 13; string field = 14; + } message DateRangeQueryAllOfFrom { + oneof date_range_query_all_of_from { + string string = 1; NullValue null_value = 2; + } } message DateRangeQueryAllOfTo { + oneof date_range_query_all_of_to { + string string = 1; NullValue null_value = 2; + } } message DateTime { + oneof date_time { + string string = 1; // The time unit for milliseconds. int64 int64 = 2; + } } enum Day { + DAY_UNSPECIFIED = 0; DAY_DAY = 1; DAY__1D = 2; + } message DecayFunction { + optional MultiValueMode multi_value_mode = 1; map placement = 2; + } message DecayFunctionBase { + optional MultiValueMode multi_value_mode = 1; + } message DecayPlacement { + oneof decay_placement { + DateDecayPlacement date_decay_placement = 1; GeoDecayPlacement geo_decay_placement = 2; NumericDecayPlacement numeric_decay_placement = 3; + } } message DeleteOperation { + // The routing value for the document. optional string routing = 1; @@ -1461,8 +1665,10 @@ message DeleteOperation { optional int64 version = 6; optional VersionType version_type = 7; + } message DerivativeAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1473,8 +1679,10 @@ message DerivativeAggregate { optional double normalized_value = 4; optional string normalized_value_as_string = 5; + } message DerivativeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1486,8 +1694,10 @@ message DerivativeAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message DerivedField { + string name = 1; string type = 2; @@ -1501,8 +1711,10 @@ message DerivedField { optional bool ignore_malformed = 6; optional string format = 7; + } message DirectGenerator { + string field = 1; optional int32 max_edits = 2; @@ -1524,8 +1736,10 @@ message DirectGenerator { optional int32 size = 10; optional SuggestMode suggest_mode = 11; + } message DisMaxQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -1536,15 +1750,20 @@ message DisMaxQuery { // Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses. optional float tie_breaker = 4; + } message DistanceFeatureQuery { + oneof distance_feature_query { + DistanceFeatureQueryOneOf distance_feature_query_one_of = 1; DistanceFeatureQueryOneOf1 distance_feature_query_one_of1 = 2; + } } message DistanceFeatureQueryOneOf { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -1556,8 +1775,10 @@ message DistanceFeatureQueryOneOf { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 5; + } message DistanceFeatureQueryOneOf1 { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -1570,8 +1791,10 @@ message DistanceFeatureQueryOneOf1 { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 5; + } enum DistanceUnit { + DISTANCE_UNIT_UNSPECIFIED = 0; DISTANCE_UNIT_CM = 1; DISTANCE_UNIT_FT = 2; @@ -1582,8 +1805,10 @@ enum DistanceUnit { DISTANCE_UNIT_MM = 7; DISTANCE_UNIT_NMI = 8; DISTANCE_UNIT_YD = 9; + } message DiversifiedSamplerAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1607,12 +1832,16 @@ message DiversifiedSamplerAggregation { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 9; + } message DoubleArray { + // The location specified as an array of `[longitude, latitude]`. repeated double double_array = 1; + } message DoubleTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1621,8 +1850,10 @@ message DoubleTermsAggregate { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message DoubleTermsBucket { + int64 doc_count = 1; optional int64 doc_count_error = 2; @@ -1630,8 +1861,10 @@ message DoubleTermsBucket { double key = 3; optional string key_as_string = 4; + } message ErrorCause { + // The type of error. string type = 1; @@ -1650,17 +1883,23 @@ message ErrorCause { map header = 7; optional ObjectMap metadata = 8; + } message ErrorResponseBase { + ErrorCause error = 1; // The HTTP status code. int32 status = 2; + } message EwmaModelSettings { + optional float alpha = 1; + } message EwmaMovingAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1682,12 +1921,16 @@ message EwmaMovingAverageAggregation { EwmaMovingAverageAggregationAllOfModel model = 9; EwmaModelSettings settings = 10; + } enum EwmaMovingAverageAggregationAllOfModel { + EWMA_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_UNSPECIFIED = 0; EWMA_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_EWMA = 1; + } message ExistsQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -1695,38 +1938,50 @@ message ExistsQuery { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 3; + } enum ExpandWildcard { + EXPAND_WILDCARD_UNSPECIFIED = 0; EXPAND_WILDCARD_ALL = 1; EXPAND_WILDCARD_CLOSED = 2; EXPAND_WILDCARD_HIDDEN = 3; EXPAND_WILDCARD_NONE = 4; EXPAND_WILDCARD_OPEN = 5; + } message Explanation { + string description = 1; repeated Explanation details = 2; float value = 3; + } message ExtendedBounds { + ObjectMap max = 1; ObjectMap min = 2; + } message ExtendedBoundsDouble { + double max = 1; double min = 2; + } message ExtendedBoundsFieldDateMath { + FieldDateMath max = 1; FieldDateMath min = 2; + } message ExtendedStatsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1775,8 +2030,10 @@ message ExtendedStatsAggregate { optional string std_deviation_as_string = 23; optional StandardDeviationBoundsAsString std_deviation_bounds_as_string = 24; + } message ExtendedStatsAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1825,57 +2082,80 @@ message ExtendedStatsAggregateBase { optional string std_deviation_as_string = 23; optional StandardDeviationBoundsAsString std_deviation_bounds_as_string = 24; + } message ExtendedStatsAggregateBaseAllOfStdDeviation { + oneof extended_stats_aggregate_base_all_of_std_deviation { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfStdDeviationPopulation { + oneof extended_stats_aggregate_base_all_of_std_deviation_population { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfStdDeviationSampling { + oneof extended_stats_aggregate_base_all_of_std_deviation_sampling { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfSumOfSquares { + oneof extended_stats_aggregate_base_all_of_sum_of_squares { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfVariance { + oneof extended_stats_aggregate_base_all_of_variance { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfVariancePopulation { + oneof extended_stats_aggregate_base_all_of_variance_population { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregateBaseAllOfVarianceSampling { + oneof extended_stats_aggregate_base_all_of_variance_sampling { + double double = 1; NullValue null_value = 2; + } } message ExtendedStatsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1892,8 +2172,10 @@ message ExtendedStatsAggregation { // The number of standard deviations above/below the mean to display. optional double sigma = 7; + } message ExtendedStatsBucketAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1942,8 +2224,10 @@ message ExtendedStatsBucketAggregate { optional string std_deviation_as_string = 23; optional StandardDeviationBoundsAsString std_deviation_bounds_as_string = 24; + } message ExtendedStatsBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -1958,8 +2242,10 @@ message ExtendedStatsBucketAggregation { // The number of standard deviations above/below the mean to display. optional double sigma = 6; + } message FetchProfile { + string type = 1; string description = 2; @@ -1972,8 +2258,10 @@ message FetchProfile { optional FetchProfileDebug debug = 5; repeated FetchProfile children = 6; + } message FetchProfileBreakdown { + optional int32 load_source = 1; optional int32 load_source_count = 2; @@ -1989,20 +2277,26 @@ message FetchProfileBreakdown { optional int32 process_count = 7; optional int32 process = 8; + } message FetchProfileDebug { + repeated string stored_fields = 1; optional int32 fast_path = 2; + } message FieldAndFormat { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; // Format in which the values are returned. optional string format = 2; + } message FieldCollapse { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; @@ -2011,15 +2305,20 @@ message FieldCollapse { // The number of concurrent requests that are allowed to be retrieved by the `inner_hits` parameter per group. optional int32 max_concurrent_group_searches = 3; + } message FieldDateMath { + oneof field_date_math { + string expr = 1; double value = 2; + } } message FieldLookup { + // The unique identifier for a resource. string id = 1; @@ -2030,8 +2329,10 @@ message FieldLookup { // The routing value for the document. optional string routing = 4; + } message FieldSort { + // The value to use when the field is missing. optional FieldValue missing = 1; @@ -2049,18 +2350,19 @@ message FieldSort { // The numeric type to use for sorting. optional FieldSortNumericType numeric_type = 6; -} -message FieldSortMap { - map field_sort_map = 1; + } enum FieldSortNumericType { + FIELD_SORT_NUMERIC_TYPE_UNSPECIFIED = 0; FIELD_SORT_NUMERIC_TYPE_DATE = 1; FIELD_SORT_NUMERIC_TYPE_DATE_NANOS = 2; FIELD_SORT_NUMERIC_TYPE_DOUBLE = 3; FIELD_SORT_NUMERIC_TYPE_LONG = 4; + } message FieldSuggester { + optional string prefix = 1; optional string regex = 2; @@ -2072,8 +2374,10 @@ message FieldSuggester { optional PhraseSuggester phrase = 5; optional TermSuggester term = 6; + } enum FieldType { + FIELD_TYPE_UNSPECIFIED = 0; FIELD_TYPE_AGGREGATE_METRIC_DOUBLE = 1; FIELD_TYPE_ALIAS = 2; @@ -2121,8 +2425,10 @@ enum FieldType { FIELD_TYPE_WILDCARD = 44; FIELD_TYPE_XY_POINT = 45; FIELD_TYPE_XY_SHAPE = 46; + } message FieldValue { + optional bool bool = 1; optional NullValue null_value = 2; @@ -2130,11 +2436,15 @@ message FieldValue { optional GeneralNumber general_number = 3; optional string string = 4; + } message FieldValueArray { + repeated FieldValue field_value_array = 1; + } enum FieldValueFactorModifier { + FIELD_VALUE_FACTOR_MODIFIER_UNSPECIFIED = 0; FIELD_VALUE_FACTOR_MODIFIER_LN = 1; FIELD_VALUE_FACTOR_MODIFIER_LN1P = 2; @@ -2146,8 +2456,10 @@ enum FieldValueFactorModifier { FIELD_VALUE_FACTOR_MODIFIER_RECIPROCAL = 8; FIELD_VALUE_FACTOR_MODIFIER_SQRT = 9; FIELD_VALUE_FACTOR_MODIFIER_SQUARE = 10; + } message FieldValueFactorScoreFunction { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; @@ -2158,22 +2470,28 @@ message FieldValueFactorScoreFunction { optional double missing = 3; optional FieldValueFactorModifier modifier = 4; + } message FilterAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message FiltersAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseFiltersBucketAllOfBuckets buckets = 2; + } message FiltersAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2195,14 +2513,20 @@ message FiltersAggregation { // By default, the named filters aggregation returns the buckets as an object. Set to `false` to return the buckets as an array of objects. optional bool keyed = 8; + } message FiltersBucket { + int64 doc_count = 1; + } message FloatMap { + map float_map = 1; + } message FormatMetricAggregationBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2216,8 +2540,10 @@ message FormatMetricAggregationBase { optional Script script = 5; optional string format = 6; + } message FormattableMetricAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2231,8 +2557,10 @@ message FormattableMetricAggregation { optional Script script = 5; optional string format = 6; + } enum FunctionBoostMode { + FUNCTION_BOOST_MODE_UNSPECIFIED = 0; FUNCTION_BOOST_MODE_AVG = 1; FUNCTION_BOOST_MODE_MAX = 2; @@ -2240,8 +2568,10 @@ enum FunctionBoostMode { FUNCTION_BOOST_MODE_MULTIPLY = 4; FUNCTION_BOOST_MODE_REPLACE = 5; FUNCTION_BOOST_MODE_SUM = 6; + } message FunctionScoreContainer { + optional QueryContainer filter = 1; optional float weight = 2; @@ -2257,8 +2587,10 @@ message FunctionScoreContainer { optional RandomScoreFunction random_score = 7; optional ScriptScoreFunction script_score = 8; + } enum FunctionScoreMode { + FUNCTION_SCORE_MODE_UNSPECIFIED = 0; FUNCTION_SCORE_MODE_AVG = 1; FUNCTION_SCORE_MODE_FIRST = 2; @@ -2266,8 +2598,10 @@ enum FunctionScoreMode { FUNCTION_SCORE_MODE_MIN = 4; FUNCTION_SCORE_MODE_MULTIPLY = 5; FUNCTION_SCORE_MODE_SUM = 6; + } message FunctionScoreQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2287,17 +2621,22 @@ message FunctionScoreQuery { optional QueryContainer query = 7; optional FunctionScoreMode score_mode = 8; + } message Fuzziness { + oneof fuzziness { + // The fuzziness value as `AUTO`, or a string edit distance. string string = 1; // The fuzziness value as a numeric edit distance. int32 int32 = 2; + } } message FuzzyQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2320,14 +2659,18 @@ message FuzzyQuery { FieldValue value = 8; string field = 9; + } enum GapPolicy { + GAP_POLICY_UNSPECIFIED = 0; GAP_POLICY_INSERT_ZEROS = 1; GAP_POLICY_KEEP_VALUES = 2; GAP_POLICY_SKIP = 3; + } message GeoBoundingBoxQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2341,9 +2684,12 @@ message GeoBoundingBoxQuery { optional bool ignore_unmapped = 5; map bounding_box = 6; + } message GeoBounds { + oneof geo_bounds { + // The bounds specified using coordinate values. CoordsGeoBounds coords = 1; @@ -2355,15 +2701,19 @@ message GeoBounds { // The bounds specified using WKT format. WktGeoBounds wkt = 4; + } } message GeoBoundsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; optional GeoBounds bounds = 2; + } message GeoBoundsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2378,16 +2728,20 @@ message GeoBoundsAggregation { // Specifies whether the bounding box should be allowed to overlap the international date line. optional bool wrap_longitude = 6; + } message GeoCentroidAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 count = 2; optional GeoLocation location = 3; + } message GeoCentroidAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2403,8 +2757,10 @@ message GeoCentroidAggregation { optional int64 count = 6; optional GeoLocation location = 7; + } message GeoDecayPlacement { + optional double decay = 1; optional string offset = 2; @@ -2412,14 +2768,18 @@ message GeoDecayPlacement { GeoLocation origin = 3; string scale = 4; + } message GeoDistanceAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseRangeBucketAllOfBuckets buckets = 2; + } message GeoDistanceAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2442,8 +2802,10 @@ message GeoDistanceAggregation { repeated AggregationRange ranges = 8; optional DistanceUnit unit = 9; + } message GeoDistanceQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2462,8 +2824,10 @@ message GeoDistanceQuery { optional DistanceUnit unit = 7; map location = 8; + } message GeoDistanceSort { + // The mode for sorting on array or multi-valued fields. optional SortMode mode = 1; @@ -2484,24 +2848,32 @@ message GeoDistanceSort { optional GeoValidationMethod validation_method = 7; map location = 8; + } enum GeoDistanceType { + GEO_DISTANCE_TYPE_UNSPECIFIED = 0; GEO_DISTANCE_TYPE_ARC = 1; GEO_DISTANCE_TYPE_PLANE = 2; + } enum GeoExecution { + GEO_EXECUTION_UNSPECIFIED = 0; GEO_EXECUTION_INDEXED = 1; GEO_EXECUTION_MEMORY = 2; + } message GeoHashGridAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseGeoHashGridBucketAllOfBuckets buckets = 2; + } message GeoHashGridAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2525,28 +2897,38 @@ message GeoHashGridAggregation { // The maximum number of geohash buckets to return. optional int32 size = 9; + } message GeoHashGridBucket { + int64 doc_count = 1; // The geohash string representation of a geographical location. string key = 2; + } message GeoHashLocation { + // The geohash string representation of a geographical location. string geohash = 1; + } message GeoHashPrecision { + oneof geo_hash_precision { + // The geohash precision as a geohash length. int32 geohash_length = 1; // The geohash precision as a distance measure. string distance = 2; + } } message GeoLocation { + oneof geo_location { + // The location specified using latitude and longitude coordinates. LatLonGeoLocation latlon = 1; @@ -2557,16 +2939,22 @@ message GeoLocation { // The location specified as a string in `lat,lon` or WKT format. string text = 4; + } } message GeoLocationArray { + // The geo points to use for distance calculation. repeated GeoLocation geo_location_array = 1; + } message GeoPolygonPoints { + repeated GeoLocation points = 1; + } message GeoPolygonQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2578,13 +2966,17 @@ message GeoPolygonQuery { optional bool ignore_unmapped = 4; map polygon = 5; + } message GeoShape { + optional string type = 1; repeated ObjectMap coordinates = 2; + } message GeoShapeQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -2594,28 +2986,36 @@ message GeoShapeQuery { optional bool ignore_unmapped = 3; map shape = 4; + } message GeoShapeQueryField { + optional FieldLookup indexed_shape = 1; GeoShape shape = 2; optional GeoShapeRelation relation = 3; + } enum GeoShapeRelation { + GEO_SHAPE_RELATION_UNSPECIFIED = 0; GEO_SHAPE_RELATION_CONTAINS = 1; GEO_SHAPE_RELATION_DISJOINT = 2; GEO_SHAPE_RELATION_INTERSECTS = 3; GEO_SHAPE_RELATION_WITHIN = 4; + } message GeoTileGridAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseGeoTileGridBucketAllOfBuckets buckets = 2; + } message GeoTileGridAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2640,28 +3040,36 @@ message GeoTileGridAggregation { optional int32 size = 8; optional GeoBounds bounds = 9; + } message GeoTileGridBucket { + int64 doc_count = 1; // A map tile reference, represented as `{zoom}/{x}/{y}`. string key = 2; + } enum GeoValidationMethod { + GEO_VALIDATION_METHOD_UNSPECIFIED = 0; GEO_VALIDATION_METHOD_COERCE = 1; GEO_VALIDATION_METHOD_IGNORE_MALFORMED = 2; GEO_VALIDATION_METHOD_STRICT = 3; + } message GlobalAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message GlobalAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2672,27 +3080,34 @@ message GlobalAggregation { // Sub-aggregations for this bucket aggregation map aggs = 4; + } message GlobalParams { + // Whether to return human-readable values for statistics. optional bool human = 1; // Whether to include the stack trace of returned errors. optional bool error_trace = 2; + // A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`. repeated string filter_path = 3; + } message GoogleNormalizedDistanceHeuristic { + // Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to. optional bool background_is_superset = 1; + } message HasChildQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; - // Set to `true` to ignore an unmapped field and not match any documents for this query. Set to `false` to throw an exception if the field is not mapped. + // Indicates whether to ignore an unmapped `type` and not return any documents instead of an error. optional bool ignore_unmapped = 3; optional InnerHits inner_hits = 4; @@ -2709,14 +3124,16 @@ message HasChildQuery { // The name of a relation in a join field. string type = 9; + } message HasParentQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; - // Set to `true` to ignore an unmapped field and not match any documents for this query. Set to `false` to throw an exception if the field is not mapped. + // Indicates whether to ignore an unmapped `parent_type` and not return any documents instead of an error. You can use this parameter to query multiple indexes that may not contain the `parent_type`. optional bool ignore_unmapped = 3; optional InnerHits inner_hits = 4; @@ -2728,24 +3145,32 @@ message HasParentQuery { // Indicates whether the relevance score of a matching parent document is aggregated into its child documents. optional bool score = 7; + } message HdrMethod { + // Specifies the resolution of values for the histogram in number of significant digits. optional int32 number_of_significant_value_digits = 1; + } message HdrPercentileRanksAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message HdrPercentilesAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message Highlight { + optional HighlighterType type = 1; // A string that contains each boundary character. @@ -2804,8 +3229,10 @@ message Highlight { optional HighlighterEncoder encoder = 23; map fields = 24; + } message HighlightBase { + optional HighlighterType type = 1; // A string that contains each boundary character. @@ -2860,8 +3287,10 @@ message HighlightBase { optional bool require_field_match = 21; optional HighlighterTagsSchema tags_schema = 22; + } message HighlightField { + optional HighlighterType type = 1; // A string that contains each boundary character. @@ -2919,39 +3348,54 @@ message HighlightField { // A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. repeated string matched_fields = 23; + } enum HighlighterEncoder { + HIGHLIGHTER_ENCODER_UNSPECIFIED = 0; HIGHLIGHTER_ENCODER_DEFAULT = 1; HIGHLIGHTER_ENCODER_HTML = 2; + } enum HighlighterFragmenter { + HIGHLIGHTER_FRAGMENTER_UNSPECIFIED = 0; HIGHLIGHTER_FRAGMENTER_SIMPLE = 1; HIGHLIGHTER_FRAGMENTER_SPAN = 2; + } enum HighlighterOrder { + HIGHLIGHTER_ORDER_UNSPECIFIED = 0; HIGHLIGHTER_ORDER_SCORE = 1; + } enum HighlighterTagsSchema { + HIGHLIGHTER_TAGS_SCHEMA_UNSPECIFIED = 0; HIGHLIGHTER_TAGS_SCHEMA_STYLED = 1; + } message HighlighterType { + oneof highlighter_type { + BuiltinHighlighterType builtin = 1; string custom = 2; + } } message HistogramAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseHistogramBucketAllOfBuckets buckets = 2; + } message HistogramAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -2990,20 +3434,26 @@ message HistogramAggregation { // If `true`, returns buckets as a hash instead of an array, keyed by the bucket keys. optional bool keyed = 15; + } message HistogramBucket { + int64 doc_count = 1; double key = 2; optional string key_as_string = 3; + } message HistogramOrder { + optional SortOrder x_count = 1; optional SortOrder x_key = 2; + } message Hit { + optional ObjectMap fields = 1; map highlight = 2; @@ -3048,22 +3498,29 @@ message Hit { optional int64 x_version = 20; optional ObjectMap meta_fields = 21; + } message HitXScore { + oneof hit_x_score { + NullValue null_value = 1; double double = 2; + } } message HitsMetadata { + optional HitsMetadataTotal total = 1; repeated HitsMetadataHitsInner hits = 2; optional HitsMetadataMaxScore max_score = 3; + } message HitsMetadataHitsInner { + optional ObjectMap fields = 1; map highlight = 2; @@ -3108,37 +3565,51 @@ message HitsMetadataHitsInner { optional int64 x_version = 20; optional ObjectMap meta_fields = 21; + } message HitsMetadataJsonValue { + optional HitsMetadataTotal total = 1; repeated HitsMetadataJsonValueAllOfHits hits = 2; optional HitsMetadataMaxScore max_score = 3; + } message HitsMetadataJsonValueAllOfHits { + optional ObjectMap source = 1; + } message HitsMetadataMaxScore { + oneof hits_metadata_max_score { + NullValue null_value = 1; float float = 2; + } } message HitsMetadataTotal { + oneof hits_metadata_total { + TotalHits total_hits = 1; int64 int64 = 2; + } } message HoltLinearModelSettings { + optional float alpha = 1; optional float beta = 2; + } message HoltMovingAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3160,12 +3631,16 @@ message HoltMovingAverageAggregation { HoltMovingAverageAggregationAllOfModel model = 9; HoltLinearModelSettings settings = 10; + } enum HoltMovingAverageAggregationAllOfModel { + HOLT_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_UNSPECIFIED = 0; HOLT_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_HOLT = 1; + } message HoltWintersModelSettings { + optional float alpha = 1; optional float beta = 2; @@ -3177,8 +3652,10 @@ message HoltWintersModelSettings { optional int32 period = 5; optional HoltWintersType type = 6; + } message HoltWintersMovingAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3200,22 +3677,30 @@ message HoltWintersMovingAverageAggregation { HoltWintersMovingAverageAggregationAllOfModel model = 9; HoltWintersModelSettings settings = 10; + } enum HoltWintersMovingAverageAggregationAllOfModel { + HOLT_WINTERS_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_UNSPECIFIED = 0; HOLT_WINTERS_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_HOLT_WINTERS = 1; + } enum HoltWintersType { + HOLT_WINTERS_TYPE_UNSPECIFIED = 0; HOLT_WINTERS_TYPE_ADD = 1; HOLT_WINTERS_TYPE_MULT = 2; + } enum Hour { + HOUR_UNSPECIFIED = 0; HOUR_HOUR = 1; HOUR__1H = 2; + } message HybridQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3226,16 +3711,20 @@ message HybridQuery { optional int32 pagination_depth = 4; optional QueryContainer filter = 5; + } message IdsQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; repeated string values = 3; + } message IndexOperation { + // The routing value for the document. optional string routing = 1; @@ -3260,8 +3749,10 @@ message IndexOperation { optional int64 version = 9; optional VersionType version_type = 10; + } message InlineGetDictUserDefined { + // The fields retrieved from the document. optional ObjectMap fields = 1; @@ -3281,8 +3772,10 @@ message InlineGetDictUserDefined { optional bytes x_source = 6; optional ObjectMap metadata_fields = 7; + } message InlineScript { + // Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compilation time. optional ObjectMap params = 1; @@ -3292,8 +3785,10 @@ message InlineScript { // The script source. string source = 4; + } message InnerHits { + // The name of a resource or configuration element. optional string name = 1; @@ -3329,11 +3824,15 @@ message InnerHits { optional bool version = 15; optional SourceConfig x_source = 16; + } message InnerHitsResult { + HitsMetadata hits = 1; + } message IntervalsAllOf { + // An array of rules to combine. All rules must produce a match in a document for the overall source to match. repeated IntervalsContainer intervals = 1; @@ -3344,14 +3843,18 @@ message IntervalsAllOf { optional bool ordered = 3; optional IntervalsFilter filter = 4; + } message IntervalsAnyOf { + // An array of rules to match. repeated IntervalsContainer intervals = 1; optional IntervalsFilter filter = 2; + } message IntervalsContainer { + optional IntervalsAllOf all_of = 1; optional IntervalsAnyOf any_of = 2; @@ -3363,8 +3866,10 @@ message IntervalsContainer { optional IntervalsPrefix prefix = 5; optional IntervalsWildcard wildcard = 6; + } message IntervalsFilter { + optional IntervalsContainer after = 1; optional IntervalsContainer before = 2; @@ -3382,8 +3887,10 @@ message IntervalsFilter { optional IntervalsContainer overlapping = 8; optional Script script = 9; + } message IntervalsFuzzy { + // Analyzer used to normalize the term. optional string analyzer = 1; @@ -3400,8 +3907,10 @@ message IntervalsFuzzy { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string use_field = 6; + } message IntervalsMatch { + // Analyzer used to analyze terms in the query. optional string analyzer = 1; @@ -3418,8 +3927,10 @@ message IntervalsMatch { optional string use_field = 5; optional IntervalsFilter filter = 6; + } message IntervalsPrefix { + // Analyzer used to analyze the `prefix`. optional string analyzer = 1; @@ -3428,8 +3939,10 @@ message IntervalsPrefix { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string use_field = 3; + } message IntervalsQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3448,8 +3961,10 @@ message IntervalsQuery { optional IntervalsWildcard wildcard = 8; string field = 9; + } message IntervalsWildcard { + // Analyzer used to analyze the `pattern`. Defaults to the top-level field's analyzer. optional string analyzer = 1; @@ -3458,14 +3973,18 @@ message IntervalsWildcard { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string use_field = 3; + } message IpRangeAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseIpRangeBucketAllOfBuckets buckets = 2; + } message IpRangeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3482,8 +4001,10 @@ message IpRangeAggregation { // Array of IP ranges. repeated IpRangeAggregationRange ranges = 6; + } message IpRangeAggregationRange { + // Start of the range. optional string from = 1; @@ -3492,8 +4013,10 @@ message IpRangeAggregationRange { // End of the range. optional string to = 3; + } message IpRangeBucket { + int64 doc_count = 1; optional string key = 2; @@ -3501,8 +4024,10 @@ message IpRangeBucket { optional string from = 3; optional string to = 4; + } -message Items { +message Item { + optional ResponseItem index = 1; optional ResponseItem create = 2; @@ -3510,20 +4035,22 @@ message Items { optional ResponseItem update = 3; optional ResponseItem delete = 4; + } message KeyedPercentilesValue { + oneof keyed_percentiles_value { + double double = 1; string string = 2; NullValue null_value = 3; + } } -message KeyedPercentilesValueMap { - map keyed_percentiles_value_map = 1; -} message KnnQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3550,32 +4077,44 @@ message KnnQuery { optional bool expand_nested_docs = 10; string field = 11; + } message KnnQueryRescore { + oneof knn_query_rescore { + bool enable = 1; RescoreContext context = 2; + } } message LaplaceSmoothingModel { + double alpha = 1; + } message LatLonGeoLocation { + // The latitude coordinate. double lat = 1; // The longitude coordinate. double lon = 2; + } message Like { + oneof like { + string text = 1; LikeDocument document = 2; + } } message LikeDocument { + optional ObjectMap doc = 1; repeated string fields = 2; @@ -3596,15 +4135,19 @@ message LikeDocument { // The type of document or resource. optional string x_type = 9; + } message LinearInterpolationSmoothingModel { + double bigram_lambda = 1; double trigram_lambda = 2; double unigram_lambda = 3; + } message LinearMovingAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3627,25 +4170,33 @@ message LinearMovingAverageAggregation { // An empty object with no properties. ObjectMap settings = 10; + } enum LinearMovingAverageAggregationAllOfModel { + LINEAR_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_UNSPECIFIED = 0; LINEAR_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_LINEAR = 1; + } message LongRareTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseLongRareTermsBucketAllOfBuckets buckets = 2; + } message LongRareTermsBucket { + int64 doc_count = 1; int64 key = 2; optional string key_as_string = 3; + } message LongTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3654,8 +4205,10 @@ message LongTermsAggregate { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message LongTermsBucket { + int64 doc_count = 1; optional int64 doc_count_error = 2; @@ -3663,21 +4216,28 @@ message LongTermsBucket { LongTermsBucketKey key = 3; optional string key_as_string = 4; + } message LongTermsBucketKey { + oneof long_terms_bucket_key { + int64 signed = 1; string unsigned = 2; + } } message MatchAllQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; + } message MatchBoolPrefixQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3707,14 +4267,18 @@ message MatchBoolPrefixQuery { string query = 11; string field = 12; + } message MatchNoneQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; + } message MatchPhrasePrefixQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3735,8 +4299,10 @@ message MatchPhrasePrefixQuery { optional ZeroTermsQuery zero_terms_query = 7; string field = 8; + } message MatchPhraseQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3754,8 +4320,10 @@ message MatchPhraseQuery { optional ZeroTermsQuery zero_terms_query = 6; string field = 7; + } message MatchQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -3795,8 +4363,10 @@ message MatchQuery { optional ZeroTermsQuery zero_terms_query = 15; string field = 16; + } message MatrixAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3807,16 +4377,20 @@ message MatrixAggregation { // The value to apply to documents that do not have a value. By default, documents without a value are ignored. map missing = 4; + } message MatrixStatsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; repeated MatrixStatsFields fields = 3; + } message MatrixStatsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3829,8 +4403,10 @@ message MatrixStatsAggregation { map missing = 4; optional SortMode mode = 5; + } message MatrixStatsFields { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string name = 1; @@ -3847,16 +4423,20 @@ message MatrixStatsFields { map covariance = 7; map correlation = 8; + } message MaxAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message MaxAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3870,8 +4450,10 @@ message MaxAggregation { optional Script script = 5; optional string format = 6; + } message MaxBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3883,16 +4465,20 @@ message MaxBucketAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message MedianAbsoluteDeviationAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message MedianAbsoluteDeviationAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3909,8 +4495,10 @@ message MedianAbsoluteDeviationAggregation { // Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. optional double compression = 7; + } message MetricAggregationBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3922,16 +4510,20 @@ message MetricAggregationBase { optional FieldValue missing = 4; optional Script script = 5; + } message MinAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message MinAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3945,8 +4537,10 @@ message MinAggregation { optional Script script = 5; optional string format = 6; + } message MinBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -3958,8 +4552,10 @@ message MinBucketAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } enum MinimumInterval { + MINIMUM_INTERVAL_UNSPECIFIED = 0; MINIMUM_INTERVAL_DAY = 1; MINIMUM_INTERVAL_HOUR = 2; @@ -3967,28 +4563,37 @@ enum MinimumInterval { MINIMUM_INTERVAL_MONTH = 4; MINIMUM_INTERVAL_SECOND = 5; MINIMUM_INTERVAL_YEAR = 6; + } message MinimumShouldMatch { + oneof minimum_should_match { + int32 int32 = 1; string string = 2; + } } enum Minute { + MINUTE_UNSPECIFIED = 0; MINUTE_MINUTE = 1; MINUTE__1M = 2; + } message MissingAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message MissingAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4004,19 +4609,25 @@ message MissingAggregation { optional string field = 5; optional FieldValue missing = 6; + } enum MissingOrder { + MISSING_ORDER_UNSPECIFIED = 0; MISSING_ORDER_DEFAULT = 1; MISSING_ORDER_FIRST = 2; MISSING_ORDER_LAST = 3; + } enum Month { + MONTH_UNSPECIFIED = 0; MONTH_MONTH = 1; MONTH__1M = 2; + } message MoreLikeThisQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4066,7 +4677,7 @@ message MoreLikeThisQuery { // The routing value for the document. optional string routing = 17; - repeated string stop_words = 18; + optional StopWords stop_words = 18; // Used in combination with `like` to exclude documents that match a set of terms. repeated Like unlike = 19; @@ -4074,9 +4685,12 @@ message MoreLikeThisQuery { optional int64 version = 20; optional VersionType version_type = 21; + } message MovingAverageAggregation { + oneof moving_average_aggregation { + LinearMovingAverageAggregation linear_moving_average_aggregation = 1; SimpleMovingAverageAggregation simple_moving_average_aggregation = 2; @@ -4086,9 +4700,11 @@ message MovingAverageAggregation { HoltMovingAverageAggregation holt_moving_average_aggregation = 4; HoltWintersMovingAverageAggregation holt_winters_moving_average_aggregation = 5; + } } message MovingAverageAggregationBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4106,8 +4722,10 @@ message MovingAverageAggregationBase { optional int32 predict = 7; optional int32 window = 8; + } message MovingFunctionAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4128,8 +4746,10 @@ message MovingFunctionAggregation { // The size of window to \"slide\" across the histogram. optional int32 window = 8; + } message MovingPercentilesAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4149,193 +4769,253 @@ message MovingPercentilesAggregation { optional int32 shift = 7; optional bool keyed = 8; + } message MultiBucketAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseAdjacencyMatrixBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseAdjacencyMatrixBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseAdjacencyMatrixBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map keyed = 3; + } message MultiBucketAggregateBaseAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map t_bucket = 3; + } message MultiBucketAggregateBaseCompositeBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseCompositeBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseCompositeBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map composite_bucket = 3; + } message MultiBucketAggregateBaseDateHistogramBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseDateHistogramBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseDateHistogramBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map date_histogram_bucket = 3; + } message MultiBucketAggregateBaseFiltersBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseFiltersBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseFiltersBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map filters_bucket = 3; + } message MultiBucketAggregateBaseGeoHashGridBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseGeoHashGridBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseGeoHashGridBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map geo_hash_grid_bucket = 3; + } message MultiBucketAggregateBaseGeoTileGridBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseGeoTileGridBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseGeoTileGridBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map geo_tile_grid_bucket = 3; + } message MultiBucketAggregateBaseHistogramBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseHistogramBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseHistogramBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map histogram_bucket = 3; + } message MultiBucketAggregateBaseIpRangeBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseIpRangeBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseIpRangeBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map ip_range_bucket = 3; + } message MultiBucketAggregateBaseLongRareTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseLongRareTermsBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseLongRareTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map long_rare_terms_bucket = 3; + } message MultiBucketAggregateBaseRangeBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseRangeBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseRangeBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map range_bucket = 3; + } message MultiBucketAggregateBaseStringRareTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseStringRareTermsBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseStringRareTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map string_rare_terms_bucket = 3; + } message MultiBucketAggregateBaseVariableWidthHistogramBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseVariableWidthHistogramBucketAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseVariableWidthHistogramBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map variable_width_histogram_bucket = 3; + } message MultiBucketAggregateBaseVoid { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseVoidAllOfBuckets buckets = 2; + } message MultiBucketAggregateBaseVoidAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map void = 3; + } message MultiBucketBase { + int64 doc_count = 1; + } message MultiMatchQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4384,21 +5064,27 @@ message MultiMatchQuery { optional TextQueryType type = 18; optional ZeroTermsQuery zero_terms_query = 19; + } message MultiTermLookup { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; optional FieldValue missing = 2; + } enum MultiTermQueryRewrite { + MULTI_TERM_QUERY_REWRITE_UNSPECIFIED = 0; MULTI_TERM_QUERY_REWRITE_CONSTANT_SCORE = 1; MULTI_TERM_QUERY_REWRITE_CONSTANT_SCORE_BOOLEAN = 2; MULTI_TERM_QUERY_REWRITE_SCORING_BOOLEAN = 3; MULTI_TERM_QUERY_REWRITE_STRING = 4; + } message MultiTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4407,8 +5093,10 @@ message MultiTermsAggregate { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message MultiTermsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4441,8 +5129,10 @@ message MultiTermsAggregation { // The field from which to generate sets of terms. repeated MultiTermLookup terms = 12; + } message MultiTermsBucket { + int64 doc_count = 1; repeated FieldValue key = 2; @@ -4450,30 +5140,38 @@ message MultiTermsBucket { optional string key_as_string = 3; optional int64 doc_count_error_upper_bound = 4; + } enum MultiValueMode { + MULTI_VALUE_MODE_UNSPECIFIED = 0; MULTI_VALUE_MODE_AVG = 1; MULTI_VALUE_MODE_MAX = 2; MULTI_VALUE_MODE_MIN = 3; MULTI_VALUE_MODE_SUM = 4; + } message MutualInformationHeuristic { + // Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to. optional bool background_is_superset = 1; // Set to `false` to filter out the terms that appear less often in the subset than in documents outside the subset. optional bool include_negatives = 2; + } message NestedAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message NestedAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4487,22 +5185,26 @@ message NestedAggregation { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string path = 5; + } message NestedIdentity { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; int32 offset = 2; optional NestedIdentity x_nested = 3; + } message NestedQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; - // Set to `true` to ignore an unmapped field and not match any documents for this query. Set to `false` to throw an exception if the field is not mapped. + // Indicates whether to ignore an unmapped path and not return any documents instead of an error. optional bool ignore_unmapped = 3; optional InnerHits inner_hits = 4; @@ -4513,8 +5215,10 @@ message NestedQuery { QueryContainer query = 6; optional ChildScoreMode score_mode = 7; + } message NestedSortValue { + // The filter to apply to nested objects. optional QueryContainer filter = 1; @@ -4524,10 +5228,12 @@ message NestedSortValue { // How to sort hierarchical nested objects. optional NestedSortValue nested = 3; - // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. + // The path to the nested objects. string path = 4; + } message NeuralQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4548,8 +5254,10 @@ message NeuralQuery { optional QueryContainer filter = 9; string field = 10; + } message NormalizeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4563,8 +5271,10 @@ message NormalizeAggregation { optional GapPolicy gap_policy = 5; optional NormalizeMethod method = 6; + } enum NormalizeMethod { + NORMALIZE_METHOD_UNSPECIFIED = 0; NORMALIZE_METHOD_MEAN = 1; NORMALIZE_METHOD_PERCENT_OF_SUM = 2; @@ -4572,14 +5282,20 @@ enum NormalizeMethod { NORMALIZE_METHOD_RESCALE_0_100 = 4; NORMALIZE_METHOD_SOFTMAX = 5; NORMALIZE_METHOD_Z_SCORE = 6; + } message NullArray { + repeated ObjectMap null_array = 1; + } message NullMap { + map null_map = 1; + } message NumberRangeQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4610,26 +5326,34 @@ message NumberRangeQuery { optional bool include_upper = 11; string field = 12; + } message NumberRangeQueryAllOfFrom { + oneof number_range_query_all_of_from { + double double = 1; string string = 2; NullValue null_value = 3; + } } message NumberRangeQueryAllOfTo { + oneof number_range_query_all_of_to { + double double = 1; string string = 2; NullValue null_value = 3; + } } message NumericDecayPlacement { + optional double decay = 1; optional double offset = 2; @@ -4637,13 +5361,17 @@ message NumericDecayPlacement { double origin = 3; double scale = 4; + } enum OpType { + OP_TYPE_UNSPECIFIED = 0; OP_TYPE_CREATE = 1; OP_TYPE_INDEX = 2; + } message OperationBase { + // The routing value for the document. optional string routing = 1; @@ -4651,8 +5379,10 @@ message OperationBase { optional string x_id = 2; optional string x_index = 3; + } message OperationContainer { + optional IndexOperation index = 1; optional WriteOperation create = 2; @@ -4660,21 +5390,27 @@ message OperationContainer { optional UpdateOperation update = 3; optional DeleteOperation delete = 4; + } enum Operator { + OPERATOR_UNSPECIFIED = 0; OPERATOR_AND = 1; OPERATOR_OR = 2; + } message ParentAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message ParentAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4688,8 +5424,10 @@ message ParentAggregation { // The name of a relation in a join field. optional string type = 5; + } message ParentIdQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4698,13 +5436,15 @@ message ParentIdQuery { // The unique identifier for a resource. optional string id = 3; - // Set to `true` to ignore an unmapped field and not match any documents for this query. Set to `false` to throw an exception if the field is not mapped. + // Indicates whether to ignore an unmapped `type` and not return any documents instead of an error. optional bool ignore_unmapped = 4; // The name of a relation in a join field. optional string type = 5; + } message PercentileRanksAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4728,21 +5468,28 @@ message PercentileRanksAggregation { optional HdrMethod hdr = 9; optional TDigest tdigest = 10; + } message Percentiles { + oneof percentiles { - KeyedPercentilesValueMap keyed = 1; + + map keyed = 1; ArrayPercentilesItemArray array_percentiles_item_array = 2; + } } message PercentilesAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message PercentilesAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4766,14 +5513,18 @@ message PercentilesAggregation { optional HdrMethod hdr = 9; optional TDigest tdigest = 10; + } message PercentilesBucketAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message PercentilesBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4788,8 +5539,10 @@ message PercentilesBucketAggregation { // The list of percentiles to calculate. repeated double percents = 6; + } message PercolateQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4818,8 +5571,10 @@ message PercolateQuery { optional string routing = 10; optional int64 version = 11; + } message PhaseTook { + // The time taken for the distributed frequency search `pre-query` phase. int64 dfs_pre_query = 1; @@ -4837,8 +5592,10 @@ message PhaseTook { // The time taken for the `can_match` phase. int64 can_match = 6; + } message PhraseSuggest { + int32 length = 1; int32 offset = 2; @@ -4846,25 +5603,33 @@ message PhraseSuggest { string text = 3; repeated PhraseSuggestOption options = 4; + } message PhraseSuggestCollate { + optional ObjectMap params = 1; optional bool prune = 2; PhraseSuggestCollateQuery query = 3; + } message PhraseSuggestCollateQuery { + optional string id = 1; optional string source = 2; + } message PhraseSuggestHighlight { + string post_tag = 1; string pre_tag = 2; + } message PhraseSuggestOption { + string text = 1; double score = 2; @@ -4872,8 +5637,10 @@ message PhraseSuggestOption { optional string highlighted = 3; optional bool collate_match = 4; + } message PhraseSuggester { + optional string analyzer = 1; string field = 2; @@ -4905,14 +5672,18 @@ message PhraseSuggester { optional string text = 15; optional int32 token_limit = 16; + } message PinnedDoc { + // The unique identifier for a resource. string x_id = 1; string x_index = 2; + } message PinnedQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4925,8 +5696,10 @@ message PinnedQuery { // Documents listed in the order they are to appear in results. Required if `ids` is not specified. repeated PinnedDoc docs = 5; + } message PipelineAggregationBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -4938,15 +5711,19 @@ message PipelineAggregationBase { optional string format = 4; optional GapPolicy gap_policy = 5; + } message PointInTimeReference { + // The unique identifier for a resource. string id = 1; // A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value. optional string keep_alive = 2; + } message PrefixQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -4961,8 +5738,10 @@ message PrefixQuery { optional bool case_insensitive = 5; string field = 6; + } message ProcessorExecutionDetail { + optional string processor_name = 1; optional int64 duration_millis = 2; @@ -4976,22 +5755,30 @@ message ProcessorExecutionDetail { optional string tag = 6; optional string error = 7; + } message Profile { + repeated ShardProfile shards = 1; + } enum Quarter { + QUARTER_UNSPECIFIED = 0; QUARTER_QUARTER = 1; QUARTER__1Q = 2; + } message QueryBase { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; + } message QueryBreakdown { + int64 advance = 1; int64 advance_count = 2; @@ -5027,8 +5814,10 @@ message QueryBreakdown { int64 set_min_competitive_score = 17; int64 set_min_competitive_score_count = 18; + } message QueryContainer { + optional BoolQuery bool = 1; optional BoostingQuery boosting = 2; @@ -5159,8 +5948,10 @@ message QueryContainer { optional WrapperQuery wrapper = 57; optional XyShapeQuery xy_shape = 58; + } message QueryProfile { + QueryBreakdown breakdown = 1; string description = 2; @@ -5171,8 +5962,10 @@ message QueryProfile { string type = 4; repeated QueryProfile children = 5; + } message QueryStringQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -5245,35 +6038,46 @@ message QueryStringQuery { optional string time_zone = 26; optional TextQueryType type = 27; + } message RandomScoreFunction { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; optional RandomScoreFunctionSeed seed = 2; + } message RandomScoreFunctionSeed { + oneof random_score_function_seed { + int32 int32 = 1; int64 int64 = 2; string string = 3; + } } message RangeAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseRangeBucketAllOfBuckets buckets = 2; + } message RangeAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseRangeBucketAllOfBuckets buckets = 2; + } message RangeAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5300,8 +6104,10 @@ message RangeAggregation { optional bool keyed = 9; optional string format = 10; + } message RangeBucket { + int64 doc_count = 1; optional double from = 2; @@ -5314,45 +6120,62 @@ message RangeBucket { // The bucket key. Present if the aggregation is not keyed. optional string key = 6; + } message RangeQuery { + oneof range_query { + NumberRangeQuery number_range_query = 1; DateRangeQuery date_range_query = 2; + } } message RangeQueryBase { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; optional RangeRelation relation = 3; + } enum RangeRelation { + RANGE_RELATION_UNSPECIFIED = 0; RANGE_RELATION_CONTAINS = 1; RANGE_RELATION_INTERSECTS = 2; RANGE_RELATION_WITHIN = 3; + +} +message RankFeatureFunctionLinear { + } -message RankFeatureFunctionLinear {} message RankFeatureFunctionLogarithm { + // Configurable scaling factor. float scaling_factor = 1; + } message RankFeatureFunctionSaturation { + // Configurable pivot value so that the result will be less than 0.5. optional float pivot = 1; + } message RankFeatureFunctionSigmoid { + // Configurable pivot value so that the result will be less than 0.5. float pivot = 1; // Configurable Exponent. float exponent = 2; + } message RankFeatureQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -5368,8 +6191,10 @@ message RankFeatureQuery { optional RankFeatureFunctionLinear linear = 6; optional RankFeatureFunctionSigmoid sigmoid = 7; + } message RareTermsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5397,16 +6222,20 @@ message RareTermsAggregation { optional double precision = 10; optional string value_type = 11; + } message RateAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; double value = 2; optional string value_as_string = 3; + } message RateAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5424,20 +6253,26 @@ message RateAggregation { optional CalendarInterval unit = 7; optional RateMode mode = 8; + } enum RateMode { + RATE_MODE_UNSPECIFIED = 0; RATE_MODE_SUM = 1; RATE_MODE_VALUE_COUNT = 2; + } enum Refresh { + REFRESH_UNSPECIFIED = 0; REFRESH_BOOLEAN = 1; REFRESH_FALSE = 2; REFRESH_TRUE = 3; REFRESH_WAIT_FOR = 4; + } message RegexpQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -5458,16 +6293,22 @@ message RegexpQuery { string value = 7; string field = 8; + } message Rescore { + RescoreQuery query = 1; optional int32 window_size = 2; + } message RescoreContext { + optional float oversample_factor = 1; + } message RescoreQuery { + QueryContainer rescore_query = 1; // The relative importance of the original query as compared to the rescore query. @@ -5477,8 +6318,10 @@ message RescoreQuery { optional float rescore_query_weight = 3; optional ScoreMode score_mode = 4; + } message ResponseItem { + // HTTP status code returned for the operation. int32 status = 1; @@ -5509,16 +6352,20 @@ message ResponseItem { optional ShardInfo x_shards = 11; optional int64 x_version = 12; + } message ReverseNestedAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message ReverseNestedAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5532,16 +6379,20 @@ message ReverseNestedAggregation { // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string path = 5; + } message SamplerAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message SamplerAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5555,61 +6406,83 @@ message SamplerAggregation { // Limits how many top-scoring documents are collected in the sample processed on each shard. optional int32 shard_size = 5; + } enum SamplerAggregationExecutionHint { + SAMPLER_AGGREGATION_EXECUTION_HINT_UNSPECIFIED = 0; SAMPLER_AGGREGATION_EXECUTION_HINT_BYTES_HASH = 1; SAMPLER_AGGREGATION_EXECUTION_HINT_GLOBAL_ORDINALS = 2; SAMPLER_AGGREGATION_EXECUTION_HINT_MAP = 3; + } enum ScoreMode { + SCORE_MODE_UNSPECIFIED = 0; SCORE_MODE_AVG = 1; SCORE_MODE_MAX = 2; SCORE_MODE_MIN = 3; SCORE_MODE_MULTIPLY = 4; SCORE_MODE_TOTAL = 5; + } message ScoreSort { + optional SortOrder order = 1; + } message Script { + oneof script { + InlineScript inline = 1; StoredScriptId stored = 2; + } } message ScriptBase { + // Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compilation time. optional ObjectMap params = 1; + } message ScriptField { + // The script to execute for this field. Script script = 1; // Whether to ignore failures during script execution. optional bool ignore_failure = 2; + } message ScriptLanguage { + oneof script_language { + BuiltinScriptLanguage builtin = 1; string custom = 2; + } } message ScriptQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; Script script = 3; + } message ScriptScoreFunction { + Script script = 1; + } message ScriptScoreQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -5621,8 +6494,10 @@ message ScriptScoreQuery { QueryContainer query = 4; Script script = 5; + } message ScriptSort { + optional SortOrder order = 1; // The script to use for sorting. @@ -5636,23 +6511,31 @@ message ScriptSort { // The nested path and filter for nested sorting. optional NestedSortValue nested = 5; + } enum ScriptSortType { + SCRIPT_SORT_TYPE_UNSPECIFIED = 0; SCRIPT_SORT_TYPE_NUMBER = 1; SCRIPT_SORT_TYPE_STRING = 2; SCRIPT_SORT_TYPE_VERSION = 3; + } message ScriptedHeuristic { + Script script = 1; + } message ScriptedMetricAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; ObjectMap value = 2; + } message ScriptedMetricAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5675,15 +6558,19 @@ message ScriptedMetricAggregation { optional ObjectMap params = 9; optional Script reduce_script = 10; + } message SearchProfile { + repeated Collector collector = 1; repeated QueryProfile query = 2; int64 rewrite_time = 3; + } message SearchRequestBody { + // Defines the aggregations that are run as part of the search request. map aggregations = 1; @@ -5776,8 +6663,10 @@ message SearchRequestBody { map derived = 34; optional SourceConfig x_source = 35; + } message SearchResponse { + int64 took = 1; bool timed_out = 2; @@ -5808,8 +6697,10 @@ message SearchResponse { optional ClusterStatistics x_clusters = 14; optional string x_scroll_id = 15; + } message SearchResult { + int64 took = 1; bool timed_out = 2; @@ -5840,18 +6731,24 @@ message SearchResult { optional ClusterStatistics x_clusters = 14; optional string x_scroll_id = 15; + } enum SearchType { + SEARCH_TYPE_UNSPECIFIED = 0; SEARCH_TYPE_DFS_QUERY_THEN_FETCH = 1; SEARCH_TYPE_QUERY_THEN_FETCH = 2; + } enum Second { + SECOND_UNSPECIFIED = 0; SECOND_SECOND = 1; SECOND__1S = 2; + } message SerialDifferencingAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5866,8 +6763,10 @@ message SerialDifferencingAggregation { // The historical bucket to subtract from the current value. Must be a positive, non-zero integer. optional int32 lag = 6; + } message ShardFailure { + optional string index = 1; optional string node = 2; @@ -5878,9 +6777,11 @@ message ShardFailure { optional string status = 5; - optional bool primary = 6; + bool primary = 6; + } message ShardInfo { + int32 failed = 1; int32 successful = 2; @@ -5888,8 +6789,10 @@ message ShardInfo { int32 total = 3; repeated ShardFailure failures = 4; + } message ShardProfile { + repeated AggregationProfile aggregations = 1; string id = 2; @@ -5897,8 +6800,10 @@ message ShardProfile { repeated SearchProfile searches = 3; optional FetchProfile fetch = 4; + } message ShardStatistics { + int32 failed = 1; int32 successful = 2; @@ -5908,8 +6813,10 @@ message ShardStatistics { repeated ShardFailure failures = 4; optional int32 skipped = 5; + } message SignificantLongTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5918,8 +6825,10 @@ message SignificantLongTermsAggregate { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantLongTermsBucket { + int64 doc_count = 1; double score = 2; @@ -5929,8 +6838,10 @@ message SignificantLongTermsBucket { int64 key = 4; optional string key_as_string = 5; + } message SignificantStringTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5939,8 +6850,10 @@ message SignificantStringTermsAggregate { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantStringTermsBucket { + int64 doc_count = 1; double score = 2; @@ -5948,8 +6861,10 @@ message SignificantStringTermsBucket { int64 bg_count = 3; string key = 4; + } message SignificantTermsAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5958,8 +6873,10 @@ message SignificantTermsAggregateBase { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantTermsAggregateBaseSignificantLongTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5968,15 +6885,19 @@ message SignificantTermsAggregateBaseSignificantLongTermsBucket { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantTermsAggregateBaseSignificantLongTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map significant_long_terms_bucket = 3; + } message SignificantTermsAggregateBaseSignificantStringTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -5985,15 +6906,19 @@ message SignificantTermsAggregateBaseSignificantStringTermsBucket { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantTermsAggregateBaseSignificantStringTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map significant_string_terms_bucket = 3; + } message SignificantTermsAggregateBaseVoid { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6002,15 +6927,19 @@ message SignificantTermsAggregateBaseVoid { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message SignificantTermsAggregateBaseVoidAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map void = 3; + } message SignificantTermsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6057,15 +6986,19 @@ message SignificantTermsAggregation { // The number of buckets returned out of the overall terms list. optional int32 size = 19; + } message SignificantTermsBucketBase { + int64 doc_count = 1; double score = 2; int64 bg_count = 3; + } message SignificantTextAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6118,8 +7051,10 @@ message SignificantTextAggregation { // A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. repeated string source_fields = 21; + } message SimpleMovingAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6142,12 +7077,16 @@ message SimpleMovingAverageAggregation { // An empty object with no properties. ObjectMap settings = 10; + } enum SimpleMovingAverageAggregationAllOfModel { + SIMPLE_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_UNSPECIFIED = 0; SIMPLE_MOVING_AVERAGE_AGGREGATION_ALL_OF_MODEL_SIMPLE = 1; + } enum SimpleQueryStringFlag { + SIMPLE_QUERY_STRING_FLAG_UNSPECIFIED = 0; SIMPLE_QUERY_STRING_FLAG_ALL = 1; SIMPLE_QUERY_STRING_FLAG_AND = 2; @@ -6162,15 +7101,20 @@ enum SimpleQueryStringFlag { SIMPLE_QUERY_STRING_FLAG_PREFIX = 11; SIMPLE_QUERY_STRING_FLAG_SLOP = 12; SIMPLE_QUERY_STRING_FLAG_WHITESPACE = 13; + } message SimpleQueryStringFlags { + oneof simple_query_string_flags { + SimpleQueryStringFlag single = 1; string multiple = 2; + } } message SimpleQueryStringQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6211,40 +7155,51 @@ message SimpleQueryStringQuery { // Suffix appended to quoted text in the query string. optional string quote_field_suffix = 15; + } message SimpleValueAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message SingleBucketAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; int64 doc_count = 2; map aggregations = 3; + } message SingleMetricAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message SingleMetricAggregateBaseAllOfValue { + oneof single_metric_aggregate_base_all_of_value { + double double = 1; NullValue null_value = 2; + } } message SlicedScroll { - // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. + + // The field to slice on. optional string field = 1; // The ID of the slice. @@ -6252,68 +7207,95 @@ message SlicedScroll { // The maximum number of slices. int32 max = 3; + } message SmoothingModel { + optional LaplaceSmoothingModel laplace = 1; optional LinearInterpolationSmoothingModel linear_interpolation = 2; optional StupidBackoffSmoothingModel stupid_backoff = 3; + } message SortCombinations { + oneof sort_combinations { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; - StringMap field_with_direction = 2; + map field_with_direction = 2; - FieldSortMap field_with_order = 3; + map field_with_order = 3; SortOptions options = 4; + } } enum SortMode { + SORT_MODE_UNSPECIFIED = 0; SORT_MODE_AVG = 1; SORT_MODE_MAX = 2; SORT_MODE_MEDIAN = 3; SORT_MODE_MIN = 4; SORT_MODE_SUM = 5; + } message SortOptions { + optional ScoreSort x_score = 1; optional GeoDistanceSort x_geo_distance = 2; optional ScriptSort x_script = 3; + } enum SortOrder { + SORT_ORDER_UNSPECIFIED = 0; SORT_ORDER_ASC = 1; SORT_ORDER_DESC = 2; + +} +message SortOrderMap { + + map sort_order_map = 1; + } message SourceConfig { + oneof source_config { + bool fetch = 1; SourceFilter filter = 2; + } } message SourceConfigParam { + oneof source_config_param { + bool fetch = 1; - StringArray fields = 2; + // A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. + repeatedstring fields = 2; + } } message SourceFilter { + // A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. repeated string excludes = 1; // A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. repeated string includes = 2; + } message SpanContainingQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6322,8 +7304,10 @@ message SpanContainingQuery { SpanQuery big = 3; SpanQuery little = 4; + } message SpanFieldMaskingQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6333,8 +7317,10 @@ message SpanFieldMaskingQuery { string field = 3; SpanQuery query = 4; + } message SpanFirstQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6344,21 +7330,27 @@ message SpanFirstQuery { int32 end = 3; SpanQuery match = 4; + } message SpanGapQuery { + string field = 1; optional int32 span_width = 2; + } message SpanMultiTermQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; QueryContainer match = 3; + } message SpanNearQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6372,8 +7364,10 @@ message SpanNearQuery { // Controls the maximum number of intervening unmatched positions permitted. optional int32 slop = 5; + } message SpanNotQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6391,8 +7385,10 @@ message SpanNotQuery { // The number of tokens before the include span that can't have overlap with the exclude span. optional int32 pre = 7; + } message SpanOrQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6400,8 +7396,10 @@ message SpanOrQuery { // Array of one or more other span type queries. repeated SpanQuery clauses = 3; + } message SpanQuery { + optional SpanContainingQuery span_containing = 1; optional SpanFieldMaskingQuery field_masking_span = 2; @@ -6422,8 +7420,10 @@ message SpanQuery { optional SpanTermQuery span_term = 9; optional SpanWithinQuery span_within = 10; + } message SpanTermQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6432,8 +7432,10 @@ message SpanTermQuery { string value = 3; string field = 4; + } message SpanWithinQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6442,8 +7444,10 @@ message SpanWithinQuery { SpanQuery big = 3; SpanQuery little = 4; + } message StandardDeviationBounds { + StandardDeviationBoundsUpper upper = 1; StandardDeviationBoundsLower lower = 2; @@ -6455,8 +7459,10 @@ message StandardDeviationBounds { StandardDeviationBoundsUpperSampling upper_sampling = 5; StandardDeviationBoundsLowerSampling lower_sampling = 6; + } message StandardDeviationBoundsAsString { + string upper = 1; string lower = 2; @@ -6468,50 +7474,70 @@ message StandardDeviationBoundsAsString { string upper_sampling = 5; string lower_sampling = 6; + } message StandardDeviationBoundsLower { + oneof standard_deviation_bounds_lower { + double double = 1; NullValue null_value = 2; + } } message StandardDeviationBoundsLowerPopulation { + oneof standard_deviation_bounds_lower_population { + double double = 1; NullValue null_value = 2; + } } message StandardDeviationBoundsLowerSampling { + oneof standard_deviation_bounds_lower_sampling { + double double = 1; NullValue null_value = 2; + } } message StandardDeviationBoundsUpper { + oneof standard_deviation_bounds_upper { + double double = 1; NullValue null_value = 2; + } } message StandardDeviationBoundsUpperPopulation { + oneof standard_deviation_bounds_upper_population { + double double = 1; NullValue null_value = 2; + } } message StandardDeviationBoundsUpperSampling { + oneof standard_deviation_bounds_upper_sampling { + double double = 1; NullValue null_value = 2; + } } message StatsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6532,8 +7558,10 @@ message StatsAggregate { optional string avg_as_string = 9; optional string sum_as_string = 10; + } message StatsAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6554,29 +7582,40 @@ message StatsAggregateBase { optional string avg_as_string = 9; optional string sum_as_string = 10; + } message StatsAggregateBaseAllOfAvg { + oneof stats_aggregate_base_all_of_avg { + double double = 1; NullValue null_value = 2; + } } message StatsAggregateBaseAllOfMax { + oneof stats_aggregate_base_all_of_max { + double double = 1; NullValue null_value = 2; + } } message StatsAggregateBaseAllOfMin { + oneof stats_aggregate_base_all_of_min { + double double = 1; NullValue null_value = 2; + } } message StatsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6590,8 +7629,10 @@ message StatsAggregation { optional Script script = 5; optional string format = 6; + } message StatsBucketAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6612,8 +7653,10 @@ message StatsBucketAggregate { optional string avg_as_string = 9; optional string sum_as_string = 10; + } message StatsBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6625,40 +7668,57 @@ message StatsBucketAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + +} +message StopWords { + } message StoredScriptId { + // Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compilation time. optional ObjectMap params = 1; // The unique identifier for a resource. string id = 2; + } message StringArray { + repeated string string_array = 1; + } enum StringDistance { + STRING_DISTANCE_UNSPECIFIED = 0; STRING_DISTANCE_DAMERAU_LEVENSHTEIN = 1; STRING_DISTANCE_INTERNAL = 2; STRING_DISTANCE_JARO_WINKLER = 3; STRING_DISTANCE_LEVENSHTEIN = 4; STRING_DISTANCE_NGRAM = 5; + } message StringMap { + map string_map = 1; + } message StringRareTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseStringRareTermsBucketAllOfBuckets buckets = 2; + } message StringRareTermsBucket { + int64 doc_count = 1; string key = 2; + } message StringTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6667,37 +7727,50 @@ message StringTermsAggregate { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message StringTermsBucket { + int64 doc_count = 1; optional int64 doc_count_error = 2; string key = 3; + } message StupidBackoffSmoothingModel { + double discount = 1; + } message Suggest { + oneof suggest { + Completion completion = 1; PhraseSuggest phrase = 2; TermSuggest term = 3; + } } message SuggestArray { + repeated Suggest suggest_array = 1; + } message SuggestBase { + int32 length = 1; int32 offset = 2; string text = 3; + } message SuggestFuzziness { + string fuzziness = 1; int32 min_length = 2; @@ -6707,40 +7780,52 @@ message SuggestFuzziness { bool transpositions = 4; bool unicode_aware = 5; + } enum SuggestMode { + SUGGEST_MODE_UNSPECIFIED = 0; SUGGEST_MODE_ALWAYS = 1; SUGGEST_MODE_MISSING = 2; SUGGEST_MODE_POPULAR = 3; + } enum SuggestSort { + SUGGEST_SORT_UNSPECIFIED = 0; SUGGEST_SORT_FREQUENCY = 1; SUGGEST_SORT_SCORE = 2; + } message Suggester { + // The global suggest text, which avoids repetition when the same text is used in several suggesters. optional string text = 1; map suggesters = 2; + } message SuggesterBase { + optional string analyzer = 1; string field = 2; optional int32 size = 3; + } message SumAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message SumAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6754,8 +7839,10 @@ message SumAggregation { optional Script script = 5; optional string format = 6; + } message SumBucketAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6767,39 +7854,52 @@ message SumBucketAggregation { optional string format = 4; optional GapPolicy gap_policy = 5; + } message TDigest { + // Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. optional int32 compression = 1; + } message TDigestPercentileRanksAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message TDigestPercentilesAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; Percentiles values = 2; + } message TTestAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; TTestAggregateAllOfValue value = 2; optional string value_as_string = 3; + } message TTestAggregateAllOfValue { + oneof t_test_aggregate_all_of_value { + double double = 1; NullValue null_value = 2; + } } message TTestAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6810,14 +7910,18 @@ message TTestAggregation { optional TestPopulation b = 4; optional TTestType type = 5; + } enum TTestType { + T_TEST_TYPE_UNSPECIFIED = 0; T_TEST_TYPE_HETEROSCEDASTIC = 1; T_TEST_TYPE_HOMOSCEDASTIC = 2; T_TEST_TYPE_PAIRED = 3; + } message TermQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -6829,8 +7933,10 @@ message TermQuery { optional bool case_insensitive = 4; string field = 5; + } message TermSuggest { + int32 length = 1; int32 offset = 2; @@ -6838,8 +7944,10 @@ message TermSuggest { string text = 3; repeated TermSuggestOption options = 4; + } message TermSuggestOption { + string text = 1; double score = 2; @@ -6849,8 +7957,10 @@ message TermSuggestOption { optional string highlighted = 4; optional bool collate_match = 5; + } message TermSuggester { + optional string analyzer = 1; string field = 2; @@ -6880,8 +7990,10 @@ message TermSuggester { optional SuggestMode suggest_mode = 14; optional string text = 15; + } message TermsAggregateBase { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6890,8 +8002,10 @@ message TermsAggregateBase { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseDoubleTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6900,15 +8014,19 @@ message TermsAggregateBaseDoubleTermsBucket { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseDoubleTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map double_terms_bucket = 3; + } message TermsAggregateBaseLongTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6917,15 +8035,19 @@ message TermsAggregateBaseLongTermsBucket { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseLongTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map long_terms_bucket = 3; + } message TermsAggregateBaseMultiTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6934,15 +8056,19 @@ message TermsAggregateBaseMultiTermsBucket { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseMultiTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map multi_terms_bucket = 3; + } message TermsAggregateBaseStringTermsBucket { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6951,15 +8077,19 @@ message TermsAggregateBaseStringTermsBucket { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseStringTermsBucketAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map string_terms_bucket = 3; + } message TermsAggregateBaseVoid { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -6968,15 +8098,19 @@ message TermsAggregateBaseVoid { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message TermsAggregateBaseVoidAllOfBuckets { + map null_map = 1; repeated ObjectMap null_array = 2; map void = 3; + } message TermsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7011,7 +8145,7 @@ message TermsAggregation { // Coerced unmapped fields into the specified type. optional string value_type = 14; - repeated StringMap order = 15; + repeated SortOrderMap order = 15; optional Script script = 16; @@ -7025,32 +8159,43 @@ message TermsAggregation { optional int32 size = 19; optional string format = 20; + } enum TermsAggregationCollectMode { + TERMS_AGGREGATION_COLLECT_MODE_UNSPECIFIED = 0; TERMS_AGGREGATION_COLLECT_MODE_BREADTH_FIRST = 1; TERMS_AGGREGATION_COLLECT_MODE_DEPTH_FIRST = 2; + } enum TermsAggregationExecutionHint { + TERMS_AGGREGATION_EXECUTION_HINT_UNSPECIFIED = 0; TERMS_AGGREGATION_EXECUTION_HINT_GLOBAL_ORDINALS = 1; TERMS_AGGREGATION_EXECUTION_HINT_GLOBAL_ORDINALS_HASH = 2; TERMS_AGGREGATION_EXECUTION_HINT_GLOBAL_ORDINALS_LOW_CARDINALITY = 3; TERMS_AGGREGATION_EXECUTION_HINT_MAP = 4; + } message TermsBucketBase { + int64 doc_count = 1; optional int64 doc_count_error = 2; + } message TermsInclude { + oneof terms_include { + StringArray string_array = 1; TermsPartition partition = 2; + } } message TermsLookup { + string index = 1; // The unique identifier for a resource. @@ -7063,15 +8208,19 @@ message TermsLookup { optional string routing = 4; optional bool store = 5; + } message TermsPartition { + // The number of partitions. int64 num_partitions = 1; // The partition number for this request. int64 partition = 2; + } message TermsQuery { + optional float boost = 1; // Specifies the types of values used for filtering. Valid values are `default` and `bitmap`. Default is `default`. @@ -7080,20 +8229,27 @@ message TermsQuery { optional string x_name = 3; map terms = 4; + } message TermsQueryField { + oneof terms_query_field { + FieldValueArray field_value_array = 1; TermsLookup lookup = 2; + } } enum TermsQueryValueType { + TERMS_QUERY_VALUE_TYPE_UNSPECIFIED = 0; TERMS_QUERY_VALUE_TYPE_BITMAP = 1; TERMS_QUERY_VALUE_TYPE_DEFAULT = 2; + } message TermsSetQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -7107,16 +8263,20 @@ message TermsSetQuery { repeated string terms = 5; string field = 6; + } message TestPopulation { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. string field = 1; optional Script script = 2; optional QueryContainer filter = 3; + } enum TextQueryType { + TEXT_QUERY_TYPE_UNSPECIFIED = 0; TEXT_QUERY_TYPE_BEST_FIELDS = 1; TEXT_QUERY_TYPE_BOOL_PREFIX = 2; @@ -7124,14 +8284,18 @@ enum TextQueryType { TEXT_QUERY_TYPE_MOST_FIELDS = 4; TEXT_QUERY_TYPE_PHRASE = 5; TEXT_QUERY_TYPE_PHRASE_PREFIX = 6; + } message TopHitsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; HitsMetadataJsonValue hits = 2; + } message TopHitsAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7176,53 +8340,70 @@ message TopHitsAggregation { optional bool seq_no_primary_term = 16; optional SourceConfig x_source = 17; + } message TopLeftBottomRightGeoBounds { + // The upper-left corner coordinates. GeoLocation top_left = 1; // The lower-right corner coordinates. GeoLocation bottom_right = 2; + } message TopRightBottomLeftGeoBounds { + // The upper-right corner coordinates. GeoLocation top_right = 1; // The lower-left corner coordinates. GeoLocation bottom_left = 2; + } message TotalHits { + TotalHitsRelation relation = 1; int64 value = 2; + } enum TotalHitsRelation { + TOTAL_HITS_RELATION_UNSPECIFIED = 0; TOTAL_HITS_RELATION_EQ = 1; TOTAL_HITS_RELATION_GTE = 2; + } message TrackHits { + oneof track_hits { + bool enabled = 1; int32 count = 2; + } } message TypeQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; optional string x_name = 2; string value = 3; + } message UnmappedRareTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseVoidAllOfBuckets buckets = 2; + } message UnmappedSignificantTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7231,8 +8412,10 @@ message UnmappedSignificantTermsAggregate { optional int64 bg_count = 3; optional int64 doc_count = 4; + } message UnmappedTermsAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7241,8 +8424,10 @@ message UnmappedTermsAggregate { optional int64 doc_count_error_upper_bound = 3; optional int64 sum_other_doc_count = 4; + } message UpdateAction { + // When `false` disables the setting `result` in the response to `noop` if no change to the document occurred. optional bool detect_noop = 1; @@ -7252,20 +8437,19 @@ message UpdateAction { // When `true`, uses the contents of `doc` as the value of `upsert`. optional bool doc_as_upsert = 3; - // The sequence number of the document. - optional int64 if_seq_no = 4; - - optional Script script = 5; + optional Script script = 4; // When `true`, executes the script whether or not the document exists. - optional bool scripted_upsert = 6; + optional bool scripted_upsert = 5; // If the document does not already exist, the contents of `upsert` are inserted as a new document. If the document exists, the `script` is executed. - optional bytes upsert = 7; + optional bytes upsert = 6; + + optional SourceConfig x_source = 7; - optional SourceConfig x_source = 8; } message UpdateOperation { + // The routing value for the document. optional string routing = 1; @@ -7283,16 +8467,20 @@ message UpdateOperation { optional bool require_alias = 6; optional int32 retry_on_conflict = 7; + } message ValueCountAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message ValueCountAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7306,8 +8494,10 @@ message ValueCountAggregation { optional Script script = 5; optional string format = 6; + } enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0; VALUE_TYPE_BOOLEAN = 1; VALUE_TYPE_DATE = 2; @@ -7319,14 +8509,18 @@ enum ValueType { VALUE_TYPE_NUMBER = 8; VALUE_TYPE_NUMERIC = 9; VALUE_TYPE_STRING = 10; + } message VariableWidthHistogramAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; MultiBucketAggregateBaseVariableWidthHistogramBucketAllOfBuckets buckets = 2; + } message VariableWidthHistogramAggregation { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -7338,8 +8532,10 @@ message VariableWidthHistogramAggregation { // Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run. Defaults to `min(10 * shard_size, 50000)`. optional int32 initial_buffer = 4; + } message VariableWidthHistogramBucket { + int64 doc_count = 1; double min = 2; @@ -7353,34 +8549,45 @@ message VariableWidthHistogramBucket { optional string key_as_string = 6; optional string max_as_string = 7; + } enum VersionType { + VERSION_TYPE_UNSPECIFIED = 0; VERSION_TYPE_EXTERNAL = 1; VERSION_TYPE_EXTERNAL_GTE = 2; VERSION_TYPE_FORCE = 3; VERSION_TYPE_INTERNAL = 4; + } enum WaitForActiveShardOptions { + WAIT_FOR_ACTIVE_SHARD_OPTIONS_UNSPECIFIED = 0; WAIT_FOR_ACTIVE_SHARD_OPTIONS_ALL = 1; WAIT_FOR_ACTIVE_SHARD_OPTIONS_NULL = 2; + } message WaitForActiveShards { + oneof wait_for_active_shards { + // The number of active shards to wait for. int32 count = 1; // Determines how many shards to wait for. WaitForActiveShardOptions option = 2; + } } enum Week { + WEEK_UNSPECIFIED = 0; WEEK_WEEK = 1; WEEK__1W = 2; + } message WeightedAverageAggregation { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; @@ -7394,8 +8601,10 @@ message WeightedAverageAggregation { optional ValueType value_type = 5; optional WeightedAverageValue weight = 6; + } message WeightedAverageValue { + // The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. optional string field = 1; @@ -7403,16 +8612,20 @@ message WeightedAverageValue { optional double missing = 2; optional Script script = 3; + } message WeightedAvgAggregate { + // The custom metadata attached to a resource. optional ObjectMap meta = 1; SingleMetricAggregateBaseAllOfValue value = 2; optional string value_as_string = 3; + } message WildcardQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -7430,12 +8643,16 @@ message WildcardQuery { optional string wildcard = 6; string field = 7; + } message WktGeoBounds { + // The WKT string representation of the geographical bounds. string wkt = 1; + } message WrapperQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -7443,8 +8660,10 @@ message WrapperQuery { // A base64 encoded query. The binary data format can be any of JSON, YAML, CBOR or SMILE encodings string query = 3; + } message WriteOperation { + // The routing value for the document. optional string routing = 1; @@ -7458,13 +8677,17 @@ message WriteOperation { // When `true`, require that all actions target an index alias rather than an index. Default is `false`. optional bool require_alias = 5; + } message XyShape { + optional string type = 1; repeated ObjectMap coordinates = 2; + } message XyShapeQuery { + // Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. optional float boost = 1; @@ -7473,21 +8696,28 @@ message XyShapeQuery { optional bool ignore_unmapped = 3; map xy_shape = 4; + } message XyShapeQueryField { + optional FieldLookup indexed_shape = 1; XyShape shape = 2; optional GeoShapeRelation relation = 3; + } enum Year { + YEAR_UNSPECIFIED = 0; YEAR_YEAR = 1; YEAR__1Y = 2; + } enum ZeroTermsQuery { + ZERO_TERMS_QUERY_UNSPECIFIED = 0; ZERO_TERMS_QUERY_ALL = 1; ZERO_TERMS_QUERY_NONE = 2; + } diff --git a/protos/generated/services/default_service.proto b/protos/generated/services/default_service.proto index 12e36407b15..bec14d581a9 100644 --- a/protos/generated/services/default_service.proto +++ b/protos/generated/services/default_service.proto @@ -1,5 +1,5 @@ /* - This is auto generated by OpenAPI Generator. The source of OpenAPI is opensearch-api-specification + This is auto generated by OpenAPI Generator. The source of OpenAPI is opensearch-api-specification */ syntax = "proto3"; @@ -9,19 +9,20 @@ package org.opensearch.protobufs.services; import "models/aggregated_models.proto"; message BulkRequest { - // Name of the data stream, index, or index alias to perform bulk actions on. - string index = 1; - repeated BulkRequestBody bulk_request_body = 2; + repeated BulkRequestBody bulk_request_body = 1; // `true` or `false` to return the `_source` field or not, or a list of fields to return. - optional SourceConfigParam x_source = 3; + optional SourceConfigParam x_source = 2; // A comma-separated list of source fields to exclude from the response. - repeated string x_source_excludes = 4; + repeated string x_source_excludes = 3; // A comma-separated list of source fields to include in the response. - repeated string x_source_includes = 5; + repeated string x_source_includes = 4; + + // Name of the data stream, index, or index alias to perform bulk actions on. + optional string index = 5; // ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter. optional string pipeline = 6; @@ -46,56 +47,58 @@ message BulkRequest { // Global query parameters optional GlobalParams global_params = 13; + } message SearchRequest { - // A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`. - repeated string index = 1; // Indicates which source fields are returned for matching documents. These fields are returned in the `hits._source` property of the search response. Valid values are: `true` to return the entire document source; `false` to not return the document source; `` to return the source fields that are specified as a comma-separated list (supports wildcard (`*`) patterns). - optional SourceConfigParam x_source = 2; + optional SourceConfigParam x_source = 1; // A comma-separated list of source fields to exclude from the response. You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. If the `_source` parameter is `false`, this parameter is ignored. - repeated string x_source_excludes = 3; + repeated string x_source_excludes = 2; // A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter. If the `_source` parameter is `false`, this parameter is ignored. - repeated string x_source_includes = 4; + repeated string x_source_includes = 3; // If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indexes. This behavior applies even if the request targets other open indexes. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. - optional bool allow_no_indices = 5; + optional bool allow_no_indices = 4; // If `true`, returns partial results if there are shard request timeouts or shard failures. If `false`, returns an error with no partial results. - optional bool allow_partial_search_results = 6; + optional bool allow_partial_search_results = 5; // If `true`, wildcard and prefix queries are analyzed. This parameter can only be used when the q query string parameter is specified. - optional bool analyze_wildcard = 7; + optional bool analyze_wildcard = 6; // The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. - optional int32 batched_reduce_size = 8; + optional int32 batched_reduce_size = 7; // The time after which the search request will be canceled. Request-level parameter takes precedence over `cancel_after_time_interval` cluster setting. - optional string cancel_after_time_interval = 9; + optional string cancel_after_time_interval = 8; // If `true`, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. - optional bool ccs_minimize_roundtrips = 10; + optional bool ccs_minimize_roundtrips = 9; // The default operator for query string query: AND or OR. This parameter can only be used when the `q` query string parameter is specified. - optional Operator default_operator = 11; + optional Operator default_operator = 10; // Field to use as default where no field prefix is given in the query string. This parameter can only be used when the q query string parameter is specified. - optional string df = 12; + optional string df = 11; // A comma-separated list of fields to return as the docvalue representation for each hit. - repeated string docvalue_fields = 13; + repeated string docvalue_fields = 12; // Type of index that wildcard patterns 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`. - repeated ExpandWildcard expand_wildcards = 14; + repeated ExpandWildcard expand_wildcards = 13; // If `true`, concrete, expanded or aliased indexes will be ignored when frozen. - optional bool ignore_throttled = 15; + optional bool ignore_throttled = 14; // If `false`, the request returns an error if it targets a missing or closed index. - optional bool ignore_unavailable = 16; + optional bool ignore_unavailable = 15; + + // A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`. + repeated string index = 16; // Defines the number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. optional int32 max_concurrent_shard_requests = 17; @@ -146,4 +149,6 @@ message SearchRequest { optional GlobalParams global_params = 32; optional SearchRequestBody search_request_body = 33; + } +