@@ -47,6 +47,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
47
47
internal_static_google_datastore_v1_AggregationQuery_Aggregation_Count_descriptor ;
48
48
static final com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable
49
49
internal_static_google_datastore_v1_AggregationQuery_Aggregation_Count_fieldAccessorTable ;
50
+ static final com .google .protobuf .Descriptors .Descriptor
51
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Sum_descriptor ;
52
+ static final com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable
53
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Sum_fieldAccessorTable ;
54
+ static final com .google .protobuf .Descriptors .Descriptor
55
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Avg_descriptor ;
56
+ static final com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable
57
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Avg_fieldAccessorTable ;
50
58
static final com .google .protobuf .Descriptors .Descriptor
51
59
internal_static_google_datastore_v1_KindExpression_descriptor ;
52
60
static final com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable
@@ -120,70 +128,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
120
128
+ "inct_on\030 \006 \003 (\013 2&.google.datastore.v1.Prop"
121
129
+ "ertyReference\022 \024 \n \014 start_cursor\030 \007 \001 (\014 \022 \022 \n \n e"
122
130
+ "nd_cursor\030 \010 \001 (\014 \022 \016 \n \006 offset\030 \n \001 (\005 \022 *\n \005 limit"
123
- + "\030 \014 \001 (\013 2\033 .google.protobuf.Int32Value\" \331 \002 \n \020 "
131
+ + "\030 \014 \001 (\013 2\033 .google.protobuf.Int32Value\" \347 \004 \n \020 "
124
132
+ "AggregationQuery\022 2\n \014 nested_query\030 \001 \001 (\013 2\032 "
125
133
+ ".google.datastore.v1.QueryH\000 \022 M\n \014 aggregat"
126
134
+ "ions\030 \003 \003 (\013 21.google.datastore.v1.Aggrega"
127
- + "tionQuery.AggregationB\004 \342 A\001 \001 \032 \263 \001 \n \013 Aggregat"
135
+ + "tionQuery.AggregationB\004 \342 A\001 \001 \032 \301 \003 \n \013 Aggregat"
128
136
+ "ion\022 H\n \005 count\030 \001 \001 (\013 27.google.datastore.v1"
129
- + ".AggregationQuery.Aggregation.CountH\000 \022 \023 \n "
130
- + "\005 alias\030 \007 \001 (\t B\004 \342 A\001 \001 \032 9\n \005 Count\022 0\n \005 up_to\030 \001 \001 "
131
- + "(\013 2\033 .google.protobuf.Int64ValueB\004 \342 A\001 \001 B\n \n "
132
- + "\010 operatorB\014 \n \n query_type\" \036 \n \016 KindExpressio"
133
- + "n\022 \014 \n \004 name\030 \001 \001 (\t \" !\n \021 PropertyReference\022 \014 \n \004 "
134
- + "name\030 \002 \001 (\t \" F\n \n Projection\022 8\n \010 property\030 \001 \001 "
137
+ + ".AggregationQuery.Aggregation.CountH\000 \022 D\n "
138
+ + "\003 sum\030 \002 \001 (\013 25.google.datastore.v1.Aggrega"
139
+ + "tionQuery.Aggregation.SumH\000 \022 D\n \003 avg\030 \003 \001 (\013 "
140
+ + "25.google.datastore.v1.AggregationQuery."
141
+ + "Aggregation.AvgH\000 \022 \023 \n \005 alias\030 \007 \001 (\t B\004 \342 A\001 \001 \032 9"
142
+ + "\n \005 Count\022 0\n \005 up_to\030 \001 \001 (\013 2\033 .google.protobuf"
143
+ + ".Int64ValueB\004 \342 A\001 \001 \032 ?\n \003 Sum\022 8\n \010 property\030 \001 \001 "
135
144
+ "(\013 2&.google.datastore.v1.PropertyReferen"
136
- + "ce\" \321 \001 \n \r PropertyOrder\022 8\n \010 property\030 \001 \001 (\013 2&"
137
- + ".google.datastore.v1.PropertyReference\022 ?"
138
- + "\n \t direction\030 \002 \001 (\016 2,.google.datastore.v1."
139
- + "PropertyOrder.Direction\" E\n \t Direction\022 \031 \n \025 "
140
- + "DIRECTION_UNSPECIFIED\020 \000 \022 \r \n \t ASCENDING\020 \001 \022 \016 "
141
- + "\n \n DESCENDING\020 \002 \" \231 \001 \n \006 Filter\022 @\n \020 composite_f"
142
- + "ilter\030 \001 \001 (\013 2$.google.datastore.v1.Compos"
143
- + "iteFilterH\000 \022 >\n \017 property_filter\030 \002 \001 (\013 2#.g"
144
- + "oogle.datastore.v1.PropertyFilterH\000 B\r \n \013 f"
145
- + "ilter_type\" \261 \001 \n \017 CompositeFilter\022 9\n \002 op\030 \001 \001 "
146
- + "(\016 2-.google.datastore.v1.CompositeFilter"
147
- + ".Operator\022 ,\n \007 filters\030 \002 \003 (\013 2\033 .google.data"
148
- + "store.v1.Filter\" 5\n \010 Operator\022 \030 \n \024 OPERATOR_"
149
- + "UNSPECIFIED\020 \000 \022 \007 \n \003 AND\020 \001 \022 \006 \n \002 OR\020 \002 \" \352 \002 \n \016 Prope"
150
- + "rtyFilter\022 8\n \010 property\030 \001 \001 (\013 2&.google.dat"
151
- + "astore.v1.PropertyReference\022 8\n \002 op\030 \002 \001 (\016 2"
152
- + ",.google.datastore.v1.PropertyFilter.Ope"
153
- + "rator\022 )\n \005 value\030 \003 \001 (\013 2\032 .google.datastore."
154
- + "v1.Value\" \270 \001 \n \010 Operator\022 \030 \n \024 OPERATOR_UNSPEC"
155
- + "IFIED\020 \000 \022 \r \n \t LESS_THAN\020 \001 \022 \026 \n \022 LESS_THAN_OR_E"
156
- + "QUAL\020 \002 \022 \020 \n \014 GREATER_THAN\020 \003 \022 \031 \n \025 GREATER_THAN"
157
- + "_OR_EQUAL\020 \004 \022 \t \n \005 EQUAL\020 \005 \022 \006 \n \002 IN\020 \006 \022 \r \n \t NOT_EQ"
158
- + "UAL\020 \t \022 \020 \n \014 HAS_ANCESTOR\020 \013 \022 \n \n \006 NOT_IN\020 \r \" \245 \002 \n \010 "
159
- + "GqlQuery\022 \024 \n \014 query_string\030 \001 \001 (\t \022 \026 \n \016 allow_"
160
- + "literals\030 \002 \001 (\010 \022 H\n \016 named_bindings\030 \005 \003 (\013 20"
161
- + ".google.datastore.v1.GqlQuery.NamedBindi"
162
- + "ngsEntry\022 C\n \023 positional_bindings\030 \004 \003 (\013 2&."
163
- + "google.datastore.v1.GqlQueryParameter\032 \\ \n "
164
- + "\022 NamedBindingsEntry\022 \013 \n \003 key\030 \001 \001 (\t \022 5\n \005 valu"
165
- + "e\030 \002 \001 (\013 2&.google.datastore.v1.GqlQueryPa"
166
- + "rameter:\002 8\001 \" d\n \021 GqlQueryParameter\022 +\n \005 valu"
167
- + "e\030 \002 \001 (\013 2\032 .google.datastore.v1.ValueH\000 \022 \020 \n "
168
- + "\006 cursor\030 \003 \001 (\014 H\000 B\020 \n \016 parameter_type\" \215 \004 \n \020 Qu"
169
- + "eryResultBatch\022 \027 \n \017 skipped_results\030 \006 \001 (\005 \022 "
170
- + "\026 \n \016 skipped_cursor\030 \003 \001 (\014 \022 H\n \022 entity_result"
171
- + "_type\030 \001 \001 (\016 2,.google.datastore.v1.Entity"
172
- + "Result.ResultType\022 9\n \016 entity_results\030 \002 \003 ("
173
- + "\013 2!.google.datastore.v1.EntityResult\022 \022 \n \n "
174
- + "end_cursor\030 \004 \001 (\014 \022 K\n \014 more_results\030 \005 \001 (\016 25"
175
- + ".google.datastore.v1.QueryResultBatch.Mo"
176
- + "reResultsType\022 \030 \n \020 snapshot_version\030 \007 \001 (\003 \022 "
177
- + "-\n \t read_time\030 \010 \001 (\013 2\032 .google.protobuf.Tim"
178
- + "estamp\" \230 \001 \n \017 MoreResultsType\022 !\n \035 MORE_RESUL"
179
- + "TS_TYPE_UNSPECIFIED\020 \000 \022 \020 \n \014 NOT_FINISHED\020 \001 \022 "
180
- + "\034 \n \030 MORE_RESULTS_AFTER_LIMIT\020 \002 \022 \035 \n \031 MORE_RE"
181
- + "SULTS_AFTER_CURSOR\020 \004 \022 \023 \n \017 NO_MORE_RESULTS\020 "
182
- + "\003 B\274 \001 \n \027 com.google.datastore.v1B\n QueryProt"
183
- + "oP\001 Z<google.golang.org/genproto/googleap"
184
- + "is/datastore/v1;datastore\252 \002 \031 Google.Cloud"
185
- + ".Datastore.V1\312 \002 \031 Google\\ Cloud\\ Datastore\\ V"
186
- + "1\352 \002 \034 Google::Cloud::Datastore::V1b\006 proto3"
145
+ + "ce\032 ?\n \003 Avg\022 8\n \010 property\030 \001 \001 (\013 2&.google.dat"
146
+ + "astore.v1.PropertyReferenceB\n \n \010 operatorB"
147
+ + "\014 \n \n query_type\" \036 \n \016 KindExpression\022 \014 \n \004 name\030 "
148
+ + "\001 \001 (\t \" !\n \021 PropertyReference\022 \014 \n \004 name\030 \002 \001 (\t "
149
+ + "\" F\n \n Projection\022 8\n \010 property\030 \001 \001 (\013 2&.googl"
150
+ + "e.datastore.v1.PropertyReference\" \321 \001 \n \r Pro"
151
+ + "pertyOrder\022 8\n \010 property\030 \001 \001 (\013 2&.google.da"
152
+ + "tastore.v1.PropertyReference\022 ?\n \t directio"
153
+ + "n\030 \002 \001 (\016 2,.google.datastore.v1.PropertyOr"
154
+ + "der.Direction\" E\n \t Direction\022 \031 \n \025 DIRECTION_"
155
+ + "UNSPECIFIED\020 \000 \022 \r \n \t ASCENDING\020 \001 \022 \016 \n \n DESCENDI"
156
+ + "NG\020 \002 \" \231 \001 \n \006 Filter\022 @\n \020 composite_filter\030 \001 \001 ("
157
+ + "\013 2$.google.datastore.v1.CompositeFilterH"
158
+ + "\000 \022 >\n \017 property_filter\030 \002 \001 (\013 2#.google.data"
159
+ + "store.v1.PropertyFilterH\000 B\r \n \013 filter_type"
160
+ + "\" \261 \001 \n \017 CompositeFilter\022 9\n \002 op\030 \001 \001 (\016 2-.googl"
161
+ + "e.datastore.v1.CompositeFilter.Operator\022 "
162
+ + ",\n \007 filters\030 \002 \003 (\013 2\033 .google.datastore.v1.F"
163
+ + "ilter\" 5\n \010 Operator\022 \030 \n \024 OPERATOR_UNSPECIFIE"
164
+ + "D\020 \000 \022 \007 \n \003 AND\020 \001 \022 \006 \n \002 OR\020 \002 \" \352 \002 \n \016 PropertyFilter\022 "
165
+ + "8\n \010 property\030 \001 \001 (\013 2&.google.datastore.v1."
166
+ + "PropertyReference\022 8\n \002 op\030 \002 \001 (\016 2,.google.d"
167
+ + "atastore.v1.PropertyFilter.Operator\022 )\n \005 v"
168
+ + "alue\030 \003 \001 (\013 2\032 .google.datastore.v1.Value\" \270 "
169
+ + "\001 \n \010 Operator\022 \030 \n \024 OPERATOR_UNSPECIFIED\020 \000 \022 \r \n "
170
+ + "\t LESS_THAN\020 \001 \022 \026 \n \022 LESS_THAN_OR_EQUAL\020 \002 \022 \020 \n \014 "
171
+ + "GREATER_THAN\020 \003 \022 \031 \n \025 GREATER_THAN_OR_EQUAL\020 "
172
+ + "\004 \022 \t \n \005 EQUAL\020 \005 \022 \006 \n \002 IN\020 \006 \022 \r \n \t NOT_EQUAL\020 \t \022 \020 \n \014 H"
173
+ + "AS_ANCESTOR\020 \013 \022 \n \n \006 NOT_IN\020 \r \" \245 \002 \n \010 GqlQuery\022 \024 "
174
+ + "\n \014 query_string\030 \001 \001 (\t \022 \026 \n \016 allow_literals\030 \002 "
175
+ + " \001 (\010 \022 H\n \016 named_bindings\030 \005 \003 (\013 20.google.da"
176
+ + "tastore.v1.GqlQuery.NamedBindingsEntry\022 C"
177
+ + "\n \023 positional_bindings\030 \004 \003 (\013 2&.google.dat"
178
+ + "astore.v1.GqlQueryParameter\032 \\ \n \022 NamedBind"
179
+ + "ingsEntry\022 \013 \n \003 key\030 \001 \001 (\t \022 5\n \005 value\030 \002 \001 (\013 2&."
180
+ + "google.datastore.v1.GqlQueryParameter:\002 8"
181
+ + "\001 \" d\n \021 GqlQueryParameter\022 +\n \005 value\030 \002 \001 (\013 2\032 ."
182
+ + "google.datastore.v1.ValueH\000 \022 \020 \n \006 cursor\030 \003 "
183
+ + "\001 (\014 H\000 B\020 \n \016 parameter_type\" \215 \004 \n \020 QueryResultB"
184
+ + "atch\022 \027 \n \017 skipped_results\030 \006 \001 (\005 \022 \026 \n \016 skipped"
185
+ + "_cursor\030 \003 \001 (\014 \022 H\n \022 entity_result_type\030 \001 \001 ("
186
+ + "\016 2,.google.datastore.v1.EntityResult.Res"
187
+ + "ultType\022 9\n \016 entity_results\030 \002 \003 (\013 2!.google"
188
+ + ".datastore.v1.EntityResult\022 \022 \n \n end_cursor"
189
+ + "\030 \004 \001 (\014 \022 K\n \014 more_results\030 \005 \001 (\016 25.google.da"
190
+ + "tastore.v1.QueryResultBatch.MoreResultsT"
191
+ + "ype\022 \030 \n \020 snapshot_version\030 \007 \001 (\003 \022 -\n \t read_ti"
192
+ + "me\030 \010 \001 (\013 2\032 .google.protobuf.Timestamp\" \230 \001 \n "
193
+ + "\017 MoreResultsType\022 !\n \035 MORE_RESULTS_TYPE_UN"
194
+ + "SPECIFIED\020 \000 \022 \020 \n \014 NOT_FINISHED\020 \001 \022 \034 \n \030 MORE_RE"
195
+ + "SULTS_AFTER_LIMIT\020 \002 \022 \035 \n \031 MORE_RESULTS_AFTE"
196
+ + "R_CURSOR\020 \004 \022 \023 \n \017 NO_MORE_RESULTS\020 \003 B\274 \001 \n \027 com."
197
+ + "google.datastore.v1B\n QueryProtoP\001 Z<googl"
198
+ + "e.golang.org/genproto/googleapis/datasto"
199
+ + "re/v1;datastore\252 \002 \031 Google.Cloud.Datastore"
200
+ + ".V1\312 \002 \031 Google\\ Cloud\\ Datastore\\ V1\352 \002 \034 Google"
201
+ + "::Cloud::Datastore::V1b\006 proto3"
187
202
};
188
203
descriptor =
189
204
com .google .protobuf .Descriptors .FileDescriptor .internalBuildGeneratedFileFrom (
@@ -231,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
231
246
new com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable (
232
247
internal_static_google_datastore_v1_AggregationQuery_Aggregation_descriptor ,
233
248
new java .lang .String [] {
234
- "Count" , "Alias" , "Operator" ,
249
+ "Count" , "Sum" , "Avg" , " Alias" , "Operator" ,
235
250
});
236
251
internal_static_google_datastore_v1_AggregationQuery_Aggregation_Count_descriptor =
237
252
internal_static_google_datastore_v1_AggregationQuery_Aggregation_descriptor
@@ -243,6 +258,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
243
258
new java .lang .String [] {
244
259
"UpTo" ,
245
260
});
261
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Sum_descriptor =
262
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_descriptor
263
+ .getNestedTypes ()
264
+ .get (1 );
265
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Sum_fieldAccessorTable =
266
+ new com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable (
267
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Sum_descriptor ,
268
+ new java .lang .String [] {
269
+ "Property" ,
270
+ });
271
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Avg_descriptor =
272
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_descriptor
273
+ .getNestedTypes ()
274
+ .get (2 );
275
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Avg_fieldAccessorTable =
276
+ new com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable (
277
+ internal_static_google_datastore_v1_AggregationQuery_Aggregation_Avg_descriptor ,
278
+ new java .lang .String [] {
279
+ "Property" ,
280
+ });
246
281
internal_static_google_datastore_v1_KindExpression_descriptor =
247
282
getDescriptor ().getMessageTypes ().get (3 );
248
283
internal_static_google_datastore_v1_KindExpression_fieldAccessorTable =
0 commit comments