1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package datastore
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41
42
43
44 type AggregationResult struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49
50
51
52
53
54
55 AggregateProperties map[string]*Value `protobuf:"bytes,2,rep,name=aggregate_properties,json=aggregateProperties,proto3" json:"aggregate_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
56 }
57
58 func (x *AggregationResult) Reset() {
59 *x = AggregationResult{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_datastore_v1_aggregation_result_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *AggregationResult) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*AggregationResult) ProtoMessage() {}
72
73 func (x *AggregationResult) ProtoReflect() protoreflect.Message {
74 mi := &file_google_datastore_v1_aggregation_result_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85
86 func (*AggregationResult) Descriptor() ([]byte, []int) {
87 return file_google_datastore_v1_aggregation_result_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *AggregationResult) GetAggregateProperties() map[string]*Value {
91 if x != nil {
92 return x.AggregateProperties
93 }
94 return nil
95 }
96
97
98 type AggregationResultBatch struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103
104 AggregationResults []*AggregationResult `protobuf:"bytes,1,rep,name=aggregation_results,json=aggregationResults,proto3" json:"aggregation_results,omitempty"`
105
106
107
108 MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,2,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"`
109
110
111
112
113
114 ReadTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
115 }
116
117 func (x *AggregationResultBatch) Reset() {
118 *x = AggregationResultBatch{}
119 if protoimpl.UnsafeEnabled {
120 mi := &file_google_datastore_v1_aggregation_result_proto_msgTypes[1]
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 ms.StoreMessageInfo(mi)
123 }
124 }
125
126 func (x *AggregationResultBatch) String() string {
127 return protoimpl.X.MessageStringOf(x)
128 }
129
130 func (*AggregationResultBatch) ProtoMessage() {}
131
132 func (x *AggregationResultBatch) ProtoReflect() protoreflect.Message {
133 mi := &file_google_datastore_v1_aggregation_result_proto_msgTypes[1]
134 if protoimpl.UnsafeEnabled && x != nil {
135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136 if ms.LoadMessageInfo() == nil {
137 ms.StoreMessageInfo(mi)
138 }
139 return ms
140 }
141 return mi.MessageOf(x)
142 }
143
144
145 func (*AggregationResultBatch) Descriptor() ([]byte, []int) {
146 return file_google_datastore_v1_aggregation_result_proto_rawDescGZIP(), []int{1}
147 }
148
149 func (x *AggregationResultBatch) GetAggregationResults() []*AggregationResult {
150 if x != nil {
151 return x.AggregationResults
152 }
153 return nil
154 }
155
156 func (x *AggregationResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType {
157 if x != nil {
158 return x.MoreResults
159 }
160 return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED
161 }
162
163 func (x *AggregationResultBatch) GetReadTime() *timestamppb.Timestamp {
164 if x != nil {
165 return x.ReadTime
166 }
167 return nil
168 }
169
170 var File_google_datastore_v1_aggregation_result_proto protoreflect.FileDescriptor
171
172 var file_google_datastore_v1_aggregation_result_proto_rawDesc = []byte{
173 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f,
174 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f,
175 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13,
176 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65,
177 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61,
178 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e,
179 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61,
180 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79,
181 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
182 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
183 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x01, 0x0a, 0x11, 0x41, 0x67, 0x67, 0x72,
184 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x72, 0x0a,
185 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65,
186 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f,
187 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76,
188 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
189 0x75, 0x6c, 0x74, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f,
190 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x61, 0x67,
191 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65,
192 0x73, 0x1a, 0x62, 0x0a, 0x18, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x50, 0x72,
193 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
194 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
195 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
196 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72,
197 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
198 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x84, 0x02, 0x0a, 0x16, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
199 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68,
200 0x12, 0x57, 0x0a, 0x13, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
201 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e,
202 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65,
203 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
204 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69,
205 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x0c, 0x6d, 0x6f, 0x72,
206 0x65, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
207 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f,
208 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c,
209 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x4d, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c,
210 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75,
211 0x6c, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
212 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
213 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
214 0x6d, 0x70, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0xc8, 0x01, 0x0a,
215 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61,
216 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x16, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
217 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
218 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
219 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
220 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74,
221 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65,
222 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
223 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x47,
224 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61,
225 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
226 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74,
227 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
228 }
229
230 var (
231 file_google_datastore_v1_aggregation_result_proto_rawDescOnce sync.Once
232 file_google_datastore_v1_aggregation_result_proto_rawDescData = file_google_datastore_v1_aggregation_result_proto_rawDesc
233 )
234
235 func file_google_datastore_v1_aggregation_result_proto_rawDescGZIP() []byte {
236 file_google_datastore_v1_aggregation_result_proto_rawDescOnce.Do(func() {
237 file_google_datastore_v1_aggregation_result_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_datastore_v1_aggregation_result_proto_rawDescData)
238 })
239 return file_google_datastore_v1_aggregation_result_proto_rawDescData
240 }
241
242 var file_google_datastore_v1_aggregation_result_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
243 var file_google_datastore_v1_aggregation_result_proto_goTypes = []interface{}{
244 (*AggregationResult)(nil),
245 (*AggregationResultBatch)(nil),
246 nil,
247 (QueryResultBatch_MoreResultsType)(0),
248 (*timestamppb.Timestamp)(nil),
249 (*Value)(nil),
250 }
251 var file_google_datastore_v1_aggregation_result_proto_depIdxs = []int32{
252 2,
253 0,
254 3,
255 4,
256 5,
257 5,
258 5,
259 5,
260 5,
261 0,
262 }
263
264 func init() { file_google_datastore_v1_aggregation_result_proto_init() }
265 func file_google_datastore_v1_aggregation_result_proto_init() {
266 if File_google_datastore_v1_aggregation_result_proto != nil {
267 return
268 }
269 file_google_datastore_v1_entity_proto_init()
270 file_google_datastore_v1_query_proto_init()
271 if !protoimpl.UnsafeEnabled {
272 file_google_datastore_v1_aggregation_result_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
273 switch v := v.(*AggregationResult); i {
274 case 0:
275 return &v.state
276 case 1:
277 return &v.sizeCache
278 case 2:
279 return &v.unknownFields
280 default:
281 return nil
282 }
283 }
284 file_google_datastore_v1_aggregation_result_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
285 switch v := v.(*AggregationResultBatch); i {
286 case 0:
287 return &v.state
288 case 1:
289 return &v.sizeCache
290 case 2:
291 return &v.unknownFields
292 default:
293 return nil
294 }
295 }
296 }
297 type x struct{}
298 out := protoimpl.TypeBuilder{
299 File: protoimpl.DescBuilder{
300 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
301 RawDescriptor: file_google_datastore_v1_aggregation_result_proto_rawDesc,
302 NumEnums: 0,
303 NumMessages: 3,
304 NumExtensions: 0,
305 NumServices: 0,
306 },
307 GoTypes: file_google_datastore_v1_aggregation_result_proto_goTypes,
308 DependencyIndexes: file_google_datastore_v1_aggregation_result_proto_depIdxs,
309 MessageInfos: file_google_datastore_v1_aggregation_result_proto_msgTypes,
310 }.Build()
311 File_google_datastore_v1_aggregation_result_proto = out.File
312 file_google_datastore_v1_aggregation_result_proto_rawDesc = nil
313 file_google_datastore_v1_aggregation_result_proto_goTypes = nil
314 file_google_datastore_v1_aggregation_result_proto_depIdxs = nil
315 }
316
View as plain text