Skip to content

Commit 23184a2

Browse files
lucy66hwgithub-actions[bot]
authored andcommitted
Protobuf schema change detected
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8e53180 commit 23184a2

2 files changed

Lines changed: 272 additions & 0 deletions

File tree

protos/generated/models/aggregated_models.proto

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,6 +2639,54 @@ enum GeoValidationMethod {
26392639
GEO_VALIDATION_METHOD_IGNORE_MALFORMED = 2;
26402640
GEO_VALIDATION_METHOD_STRICT = 3;
26412641
}
2642+
message GetResult {
2643+
optional ObjectMap fields = 1;
2644+
2645+
bool found = 2;
2646+
2647+
// The type of document or resource.
2648+
optional string x_type = 3;
2649+
2650+
string x_index = 4;
2651+
2652+
// The unique identifier for a resource.
2653+
string x_id = 5;
2654+
2655+
optional int64 x_primary_term = 6;
2656+
2657+
optional string x_routing = 7;
2658+
2659+
// The sequence number of the document.
2660+
optional int64 x_seq_no = 8;
2661+
2662+
optional bytes x_source = 9;
2663+
2664+
optional int64 x_version = 10;
2665+
}
2666+
message GetResultBase {
2667+
optional ObjectMap fields = 1;
2668+
2669+
bool found = 2;
2670+
2671+
// The type of document or resource.
2672+
optional string x_type = 3;
2673+
2674+
string x_index = 4;
2675+
2676+
// The unique identifier for a resource.
2677+
string x_id = 5;
2678+
2679+
optional int64 x_primary_term = 6;
2680+
2681+
optional string x_routing = 7;
2682+
2683+
// The sequence number of the document.
2684+
optional int64 x_seq_no = 8;
2685+
2686+
optional bytes x_source = 9;
2687+
2688+
optional int64 x_version = 10;
2689+
}
26422690
message GlobalAggregate {
26432691
// The custom metadata attached to a resource.
26442692
optional ObjectMap meta = 1;
@@ -3268,6 +3316,30 @@ message InlineGetDictUserDefined {
32683316

32693317
optional ObjectMap metadata_fields = 7;
32703318
}
3319+
message InlineObject {
3320+
optional ObjectMap fields = 1;
3321+
3322+
bool found = 2;
3323+
3324+
// The type of document or resource.
3325+
optional string x_type = 3;
3326+
3327+
string x_index = 4;
3328+
3329+
// The unique identifier for a resource.
3330+
string x_id = 5;
3331+
3332+
optional int64 x_primary_term = 6;
3333+
3334+
optional string x_routing = 7;
3335+
3336+
// The sequence number of the document.
3337+
optional int64 x_seq_no = 8;
3338+
3339+
optional bytes x_source = 9;
3340+
3341+
optional int64 x_version = 10;
3342+
}
32713343
message InlineScript {
32723344
// Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compilation time.
32733345
optional ObjectMap params = 1;
@@ -5471,6 +5543,14 @@ message ResponseItem {
54715543

54725544
optional int64 x_version = 12;
54735545
}
5546+
enum Result {
5547+
RESULT_UNSPECIFIED = 0;
5548+
RESULT_CREATED = 1;
5549+
RESULT_DELETED = 2;
5550+
RESULT_NOOP = 3;
5551+
RESULT_NOT_FOUND = 4;
5552+
RESULT_UPDATED = 5;
5553+
}
54745554
message ReverseNestedAggregate {
54755555
// The custom metadata attached to a resource.
54765556
optional ObjectMap meta = 1;
@@ -7425,6 +7505,29 @@ message WriteOperation {
74257505
// When `true`, require that all actions target an index alias rather than an index. Default is `false`.
74267506
optional bool require_alias = 5;
74277507
}
7508+
message WriteResponseBase {
7509+
Result result = 1;
7510+
7511+
optional bool forced_refresh = 2;
7512+
7513+
// The type of document or resource.
7514+
optional string x_type = 3;
7515+
7516+
// The unique identifier for a resource.
7517+
string x_id = 4;
7518+
7519+
string x_index = 5;
7520+
7521+
// The primary term of the document.
7522+
int64 x_primary_term = 6;
7523+
7524+
// The sequence number of the document.
7525+
int64 x_seq_no = 7;
7526+
7527+
ShardStatistics x_shards = 8;
7528+
7529+
int64 x_version = 9;
7530+
}
74287531
message XyShape {
74297532
optional string type = 1;
74307533

protos/generated/services/default_service.proto

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,175 @@ message BulkRequest {
4848
optional GlobalParams global_params = 13;
4949
}
5050

51+
message DeleteRequest {
52+
// The unique identifier for the document.
53+
string id = 1;
54+
55+
// Name of the target index.
56+
string index = 2;
57+
58+
// Only perform the operation if the document has this primary term.
59+
optional int64 if_primary_term = 3;
60+
61+
// Only perform the operation if the document has this sequence number.
62+
optional int64 if_seq_no = 4;
63+
64+
// If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.
65+
optional Refresh refresh = 5;
66+
67+
// A custom value used to route operations to a specific shard.
68+
repeated string routing = 6;
69+
70+
// Period to wait for active shards.
71+
optional string timeout = 7;
72+
73+
// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.
74+
optional int64 version = 8;
75+
76+
// The specific version type: `external`, `external_gte`.
77+
optional VersionType version_type = 9;
78+
79+
// The number of shard copies that must be active before proceeding with the operation. Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
80+
optional WaitForActiveShards wait_for_active_shards = 10;
81+
82+
// Global query parameters
83+
optional GlobalParams global_params = 11;
84+
}
85+
86+
message ExistsRequest {
87+
// Identifier of the document.
88+
string id = 1;
89+
90+
// A comma-separated list of data streams, indexes, and aliases. Supports wildcards (`*`).
91+
string index = 2;
92+
93+
// `true` or `false` to return the `_source` field or not, or a list of fields to return.
94+
optional SourceConfigParam x_source = 3;
95+
96+
// A comma-separated list of source fields to exclude in the response.
97+
repeated string x_source_excludes = 4;
98+
99+
// A comma-separated list of source fields to include in the response.
100+
repeated string x_source_includes = 5;
101+
102+
// Specifies the node or shard the operation should be performed on. Random by default.
103+
optional string preference = 6;
104+
105+
// If `true`, the request is real time as opposed to near real time.
106+
optional bool realtime = 7;
107+
108+
// If `true`, OpenSearch refreshes all shards involved in the delete by query after the request completes.
109+
optional Refresh refresh = 8;
110+
111+
// Target the specified primary shard.
112+
repeated string routing = 9;
113+
114+
// List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the `_source` parameter defaults to false.
115+
repeated string stored_fields = 10;
116+
117+
// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.
118+
optional int64 version = 11;
119+
120+
// The specific version type: `external`, `external_gte`.
121+
optional VersionType version_type = 12;
122+
123+
// Whether to return human-readable values for statistics.
124+
optional bool human = 13;
125+
126+
// Whether to include the stack trace of returned errors.
127+
optional bool error_trace = 14;
128+
129+
// 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 `-`.
130+
repeated string filter_path = 15;
131+
}
132+
133+
message GetRequest {
134+
// The unique identifier of the document.
135+
string id = 1;
136+
137+
// The name of the index containing the document.
138+
string index = 2;
139+
140+
// Set to `true` or `false` to return the `_source` field or not, or a list of fields to return.
141+
optional SourceConfigParam x_source = 3;
142+
143+
// A comma-separated list of source fields to exclude in the response.
144+
repeated string x_source_excludes = 4;
145+
146+
// A comma-separated list of source fields to include in the response.
147+
repeated string x_source_includes = 5;
148+
149+
// Specifies the node or shard the operation should be performed on. Random by default.
150+
optional string preference = 6;
151+
152+
// If `true`, the request is real time as opposed to near real time.
153+
optional bool realtime = 7;
154+
155+
// If `true`, OpenSearch refreshes the affected shards to make this operation visible to search. If `false`, do nothing with refreshes.
156+
optional Refresh refresh = 8;
157+
158+
// Target the specified primary shard.
159+
repeated string routing = 9;
160+
161+
// List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the `_source` parameter defaults to false.
162+
repeated string stored_fields = 10;
163+
164+
// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.
165+
optional int64 version = 11;
166+
167+
// The specific version type: `internal`, `external`, `external_gte`.
168+
optional VersionType version_type = 12;
169+
170+
// Global query parameters
171+
optional GlobalParams global_params = 13;
172+
}
173+
174+
message IndexRequest {
175+
// The unique identifier for the document.
176+
string id = 1;
177+
178+
// Name of the data stream or index to target.
179+
string index = 2;
180+
181+
ObjectMap body = 3;
182+
183+
// Only perform the operation if the document has this primary term.
184+
optional int64 if_primary_term = 4;
185+
186+
// Only perform the operation if the document has this sequence number.
187+
optional int64 if_seq_no = 5;
188+
189+
// Set to create to only index the document if it does not already exist (put if absent). If a document with the specified `_id` already exists, the indexing operation will fail. Same as using the `<index>/_create` endpoint. Valid values: `index`, `create`. If document id is specified, it defaults to `index`. Otherwise, it defaults to `create`.
190+
optional OpType op_type = 6;
191+
192+
// 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.
193+
optional string pipeline = 7;
194+
195+
// If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.
196+
optional Refresh refresh = 8;
197+
198+
// If `true`, the destination must be an index alias.
199+
optional bool require_alias = 9;
200+
201+
// A custom value used to route operations to a specific shard.
202+
repeated string routing = 10;
203+
204+
// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
205+
optional string timeout = 11;
206+
207+
// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.
208+
optional int64 version = 12;
209+
210+
// The specific version type: `external`, `external_gte`.
211+
optional VersionType version_type = 13;
212+
213+
// The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
214+
optional WaitForActiveShards wait_for_active_shards = 14;
215+
216+
// Global query parameters
217+
optional GlobalParams global_params = 15;
218+
}
219+
51220
message SearchRequest {
52221
// 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; `<string>` to return the source fields that are specified as a comma-separated list (supports wildcard (`*`) patterns).
53222
optional SourceConfigParam x_source = 1;

0 commit comments

Comments
 (0)