@scrawn/core 0.0.2 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +40 -0
  2. package/dist/config.d.ts +17 -2
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +9 -2
  5. package/dist/config.js.map +1 -1
  6. package/dist/core/auth/apiKeyAuth.d.ts +4 -13
  7. package/dist/core/auth/apiKeyAuth.d.ts.map +1 -1
  8. package/dist/core/auth/apiKeyAuth.js +12 -17
  9. package/dist/core/auth/apiKeyAuth.js.map +1 -1
  10. package/dist/core/auth/baseAuth.d.ts +14 -36
  11. package/dist/core/auth/baseAuth.d.ts.map +1 -1
  12. package/dist/core/auth/baseAuth.js +0 -6
  13. package/dist/core/auth/baseAuth.js.map +1 -1
  14. package/dist/core/errors/index.d.ts +192 -0
  15. package/dist/core/errors/index.d.ts.map +1 -0
  16. package/dist/core/errors/index.js +280 -0
  17. package/dist/core/errors/index.js.map +1 -0
  18. package/dist/core/grpc/callContext.d.ts +18 -0
  19. package/dist/core/grpc/callContext.d.ts.map +1 -0
  20. package/dist/core/grpc/callContext.js +35 -0
  21. package/dist/core/grpc/callContext.js.map +1 -0
  22. package/dist/core/grpc/client.d.ts +13 -123
  23. package/dist/core/grpc/client.d.ts.map +1 -1
  24. package/dist/core/grpc/client.js +23 -131
  25. package/dist/core/grpc/client.js.map +1 -1
  26. package/dist/core/grpc/index.d.ts +5 -3
  27. package/dist/core/grpc/index.d.ts.map +1 -1
  28. package/dist/core/grpc/index.js +4 -2
  29. package/dist/core/grpc/index.js.map +1 -1
  30. package/dist/core/grpc/requestBuilder.d.ts +12 -113
  31. package/dist/core/grpc/requestBuilder.d.ts.map +1 -1
  32. package/dist/core/grpc/requestBuilder.js +36 -126
  33. package/dist/core/grpc/requestBuilder.js.map +1 -1
  34. package/dist/core/grpc/streamRequestBuilder.d.ts +13 -0
  35. package/dist/core/grpc/streamRequestBuilder.d.ts.map +1 -0
  36. package/dist/core/grpc/streamRequestBuilder.js +60 -0
  37. package/dist/core/grpc/streamRequestBuilder.js.map +1 -0
  38. package/dist/core/grpc/types.d.ts +5 -52
  39. package/dist/core/grpc/types.d.ts.map +1 -1
  40. package/dist/core/grpc/types.js +0 -7
  41. package/dist/core/grpc/types.js.map +1 -1
  42. package/dist/core/pricing/builders.d.ts +157 -0
  43. package/dist/core/pricing/builders.d.ts.map +1 -0
  44. package/dist/core/pricing/builders.js +218 -0
  45. package/dist/core/pricing/builders.js.map +1 -0
  46. package/dist/core/pricing/index.d.ts +30 -0
  47. package/dist/core/pricing/index.d.ts.map +1 -0
  48. package/dist/core/pricing/index.js +32 -0
  49. package/dist/core/pricing/index.js.map +1 -0
  50. package/dist/core/pricing/resolve.d.ts +39 -0
  51. package/dist/core/pricing/resolve.d.ts.map +1 -0
  52. package/dist/core/pricing/resolve.js +50 -0
  53. package/dist/core/pricing/resolve.js.map +1 -0
  54. package/dist/core/pricing/serialize.d.ts +55 -0
  55. package/dist/core/pricing/serialize.d.ts.map +1 -0
  56. package/dist/core/pricing/serialize.js +127 -0
  57. package/dist/core/pricing/serialize.js.map +1 -0
  58. package/dist/core/pricing/types.d.ts +122 -0
  59. package/dist/core/pricing/types.d.ts.map +1 -0
  60. package/dist/core/pricing/types.js +17 -0
  61. package/dist/core/pricing/types.js.map +1 -0
  62. package/dist/core/pricing/validate.d.ts +56 -0
  63. package/dist/core/pricing/validate.d.ts.map +1 -0
  64. package/dist/core/pricing/validate.js +162 -0
  65. package/dist/core/pricing/validate.js.map +1 -0
  66. package/dist/core/scrawn.d.ts +218 -17
  67. package/dist/core/scrawn.d.ts.map +1 -1
  68. package/dist/core/scrawn.js +469 -71
  69. package/dist/core/scrawn.js.map +1 -1
  70. package/dist/core/types/auth.d.ts +1 -1
  71. package/dist/core/types/event.d.ts +182 -18
  72. package/dist/core/types/event.d.ts.map +1 -1
  73. package/dist/core/types/event.js +133 -5
  74. package/dist/core/types/event.js.map +1 -1
  75. package/dist/gen/auth/v1/auth_grpc_pb.d.ts +3 -0
  76. package/dist/gen/auth/v1/auth_grpc_pb.js +45 -0
  77. package/dist/gen/auth/v1/auth_pb.d.ts +63 -57
  78. package/dist/gen/auth/v1/auth_pb.js +471 -86
  79. package/dist/gen/data/v1/data_grpc_pb.d.ts +5 -0
  80. package/dist/gen/data/v1/data_grpc_pb.js +44 -0
  81. package/dist/gen/data/v1/data_pb.d.ts +254 -0
  82. package/dist/gen/data/v1/data_pb.js +1530 -0
  83. package/dist/gen/event/v1/event_grpc_pb.d.ts +3 -0
  84. package/dist/gen/event/v1/event_grpc_pb.js +79 -0
  85. package/dist/gen/event/v1/event_pb.d.ts +273 -100
  86. package/dist/gen/event/v1/event_pb.js +1862 -138
  87. package/dist/gen/package.json +3 -0
  88. package/dist/gen/payment/v1/payment_grpc_pb.d.ts +3 -0
  89. package/dist/gen/payment/v1/payment_grpc_pb.js +45 -0
  90. package/dist/gen/payment/v1/payment_pb.d.ts +43 -35
  91. package/dist/gen/payment/v1/payment_pb.js +321 -59
  92. package/dist/gen/query/v1/query_grpc_pb.d.ts +5 -0
  93. package/dist/gen/query/v1/query_grpc_pb.js +44 -0
  94. package/dist/gen/query/v1/query_pb.d.ts +359 -0
  95. package/dist/gen/query/v1/query_pb.js +2327 -0
  96. package/dist/index.d.ts +19 -10
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +20 -10
  99. package/dist/index.js.map +1 -1
  100. package/dist/utils/forkAsyncIterable.d.ts +13 -0
  101. package/dist/utils/forkAsyncIterable.d.ts.map +1 -0
  102. package/dist/utils/forkAsyncIterable.js +78 -0
  103. package/dist/utils/forkAsyncIterable.js.map +1 -0
  104. package/dist/utils/logger.d.ts.map +1 -1
  105. package/dist/utils/logger.js +19 -19
  106. package/dist/utils/logger.js.map +1 -1
  107. package/dist/utils/pathMatcher.js +5 -5
  108. package/package.json +19 -15
  109. package/dist/gen/auth/v1/auth_connect.d.ts +0 -22
  110. package/dist/gen/auth/v1/auth_connect.d.ts.map +0 -1
  111. package/dist/gen/auth/v1/auth_connect.js +0 -26
  112. package/dist/gen/auth/v1/auth_connect.js.map +0 -1
  113. package/dist/gen/auth/v1/auth_pb.d.ts.map +0 -1
  114. package/dist/gen/auth/v1/auth_pb.js.map +0 -1
  115. package/dist/gen/event/v1/event_connect.d.ts +0 -22
  116. package/dist/gen/event/v1/event_connect.d.ts.map +0 -1
  117. package/dist/gen/event/v1/event_connect.js +0 -26
  118. package/dist/gen/event/v1/event_connect.js.map +0 -1
  119. package/dist/gen/event/v1/event_pb.d.ts.map +0 -1
  120. package/dist/gen/event/v1/event_pb.js.map +0 -1
  121. package/dist/gen/payment/v1/payment_connect.d.ts +0 -22
  122. package/dist/gen/payment/v1/payment_connect.d.ts.map +0 -1
  123. package/dist/gen/payment/v1/payment_connect.js +0 -26
  124. package/dist/gen/payment/v1/payment_connect.js.map +0 -1
  125. package/dist/gen/payment/v1/payment_pb.d.ts.map +0 -1
  126. package/dist/gen/payment/v1/payment_pb.js.map +0 -1
@@ -0,0 +1,2327 @@
1
+ // source: query/v1/query.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.query.v1.Aggregation', null, global);
25
+ goog.exportSymbol('proto.query.v1.AggregationRow', null, global);
26
+ goog.exportSymbol('proto.query.v1.AggregationType', null, global);
27
+ goog.exportSymbol('proto.query.v1.AiTokenField', null, global);
28
+ goog.exportSymbol('proto.query.v1.EventRow', null, global);
29
+ goog.exportSymbol('proto.query.v1.FilterCondition', null, global);
30
+ goog.exportSymbol('proto.query.v1.FilterGroup', null, global);
31
+ goog.exportSymbol('proto.query.v1.GroupBy', null, global);
32
+ goog.exportSymbol('proto.query.v1.LogicalOperator', null, global);
33
+ goog.exportSymbol('proto.query.v1.Operator', null, global);
34
+ goog.exportSymbol('proto.query.v1.PaymentField', null, global);
35
+ goog.exportSymbol('proto.query.v1.QueryEventsRequest', null, global);
36
+ goog.exportSymbol('proto.query.v1.QueryEventsResponse', null, global);
37
+ goog.exportSymbol('proto.query.v1.SdkCallField', null, global);
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.query.v1.FilterCondition = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.query.v1.FilterCondition, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.query.v1.FilterCondition.displayName = 'proto.query.v1.FilterCondition';
58
+ }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.query.v1.FilterGroup = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.query.v1.FilterGroup.repeatedFields_, null);
71
+ };
72
+ goog.inherits(proto.query.v1.FilterGroup, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.query.v1.FilterGroup.displayName = 'proto.query.v1.FilterGroup';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.query.v1.Aggregation = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.query.v1.Aggregation, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.query.v1.Aggregation.displayName = 'proto.query.v1.Aggregation';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.query.v1.GroupBy = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.query.v1.GroupBy, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.query.v1.GroupBy.displayName = 'proto.query.v1.GroupBy';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.query.v1.QueryEventsRequest = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.query.v1.QueryEventsRequest, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.query.v1.QueryEventsRequest.displayName = 'proto.query.v1.QueryEventsRequest';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.query.v1.EventRow = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.query.v1.EventRow, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.query.v1.EventRow.displayName = 'proto.query.v1.EventRow';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.query.v1.AggregationRow = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.query.v1.AggregationRow, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.query.v1.AggregationRow.displayName = 'proto.query.v1.AggregationRow';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.query.v1.QueryEventsResponse = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.query.v1.QueryEventsResponse.repeatedFields_, null);
197
+ };
198
+ goog.inherits(proto.query.v1.QueryEventsResponse, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.query.v1.QueryEventsResponse.displayName = 'proto.query.v1.QueryEventsResponse';
205
+ }
206
+
207
+
208
+
209
+ if (jspb.Message.GENERATE_TO_OBJECT) {
210
+ /**
211
+ * Creates an object representation of this proto.
212
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
213
+ * Optional fields that are not set will be set to undefined.
214
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
215
+ * For the list of reserved names please see:
216
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
217
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
218
+ * JSPB instance for transitional soy proto support:
219
+ * http://goto/soy-param-migration
220
+ * @return {!Object}
221
+ */
222
+ proto.query.v1.FilterCondition.prototype.toObject = function(opt_includeInstance) {
223
+ return proto.query.v1.FilterCondition.toObject(opt_includeInstance, this);
224
+ };
225
+
226
+
227
+ /**
228
+ * Static version of the {@see toObject} method.
229
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
230
+ * the JSPB instance for transitional soy proto support:
231
+ * http://goto/soy-param-migration
232
+ * @param {!proto.query.v1.FilterCondition} msg The msg instance to transform.
233
+ * @return {!Object}
234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
235
+ */
236
+ proto.query.v1.FilterCondition.toObject = function(includeInstance, msg) {
237
+ var f, obj = {
238
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
239
+ operator: jspb.Message.getFieldWithDefault(msg, 2, 0),
240
+ value: jspb.Message.getFieldWithDefault(msg, 3, "")
241
+ };
242
+
243
+ if (includeInstance) {
244
+ obj.$jspbMessageInstance = msg;
245
+ }
246
+ return obj;
247
+ };
248
+ }
249
+
250
+
251
+ /**
252
+ * Deserializes binary data (in protobuf wire format).
253
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
254
+ * @return {!proto.query.v1.FilterCondition}
255
+ */
256
+ proto.query.v1.FilterCondition.deserializeBinary = function(bytes) {
257
+ var reader = new jspb.BinaryReader(bytes);
258
+ var msg = new proto.query.v1.FilterCondition;
259
+ return proto.query.v1.FilterCondition.deserializeBinaryFromReader(msg, reader);
260
+ };
261
+
262
+
263
+ /**
264
+ * Deserializes binary data (in protobuf wire format) from the
265
+ * given reader into the given message object.
266
+ * @param {!proto.query.v1.FilterCondition} msg The message object to deserialize into.
267
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
268
+ * @return {!proto.query.v1.FilterCondition}
269
+ */
270
+ proto.query.v1.FilterCondition.deserializeBinaryFromReader = function(msg, reader) {
271
+ while (reader.nextField()) {
272
+ if (reader.isEndGroup()) {
273
+ break;
274
+ }
275
+ var field = reader.getFieldNumber();
276
+ switch (field) {
277
+ case 1:
278
+ var value = /** @type {string} */ (reader.readString());
279
+ msg.setField(value);
280
+ break;
281
+ case 2:
282
+ var value = /** @type {!proto.query.v1.Operator} */ (reader.readEnum());
283
+ msg.setOperator(value);
284
+ break;
285
+ case 3:
286
+ var value = /** @type {string} */ (reader.readString());
287
+ msg.setValue(value);
288
+ break;
289
+ default:
290
+ reader.skipField();
291
+ break;
292
+ }
293
+ }
294
+ return msg;
295
+ };
296
+
297
+
298
+ /**
299
+ * Serializes the message to binary data (in protobuf wire format).
300
+ * @return {!Uint8Array}
301
+ */
302
+ proto.query.v1.FilterCondition.prototype.serializeBinary = function() {
303
+ var writer = new jspb.BinaryWriter();
304
+ proto.query.v1.FilterCondition.serializeBinaryToWriter(this, writer);
305
+ return writer.getResultBuffer();
306
+ };
307
+
308
+
309
+ /**
310
+ * Serializes the given message to binary data (in protobuf wire
311
+ * format), writing to the given BinaryWriter.
312
+ * @param {!proto.query.v1.FilterCondition} message
313
+ * @param {!jspb.BinaryWriter} writer
314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
315
+ */
316
+ proto.query.v1.FilterCondition.serializeBinaryToWriter = function(message, writer) {
317
+ var f = undefined;
318
+ f = message.getField();
319
+ if (f.length > 0) {
320
+ writer.writeString(
321
+ 1,
322
+ f
323
+ );
324
+ }
325
+ f = message.getOperator();
326
+ if (f !== 0.0) {
327
+ writer.writeEnum(
328
+ 2,
329
+ f
330
+ );
331
+ }
332
+ f = message.getValue();
333
+ if (f.length > 0) {
334
+ writer.writeString(
335
+ 3,
336
+ f
337
+ );
338
+ }
339
+ };
340
+
341
+
342
+ /**
343
+ * optional string field = 1;
344
+ * @return {string}
345
+ */
346
+ proto.query.v1.FilterCondition.prototype.getField = function() {
347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
348
+ };
349
+
350
+
351
+ /**
352
+ * @param {string} value
353
+ * @return {!proto.query.v1.FilterCondition} returns this
354
+ */
355
+ proto.query.v1.FilterCondition.prototype.setField = function(value) {
356
+ return jspb.Message.setProto3StringField(this, 1, value);
357
+ };
358
+
359
+
360
+ /**
361
+ * optional Operator operator = 2;
362
+ * @return {!proto.query.v1.Operator}
363
+ */
364
+ proto.query.v1.FilterCondition.prototype.getOperator = function() {
365
+ return /** @type {!proto.query.v1.Operator} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {!proto.query.v1.Operator} value
371
+ * @return {!proto.query.v1.FilterCondition} returns this
372
+ */
373
+ proto.query.v1.FilterCondition.prototype.setOperator = function(value) {
374
+ return jspb.Message.setProto3EnumField(this, 2, value);
375
+ };
376
+
377
+
378
+ /**
379
+ * optional string value = 3;
380
+ * @return {string}
381
+ */
382
+ proto.query.v1.FilterCondition.prototype.getValue = function() {
383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
384
+ };
385
+
386
+
387
+ /**
388
+ * @param {string} value
389
+ * @return {!proto.query.v1.FilterCondition} returns this
390
+ */
391
+ proto.query.v1.FilterCondition.prototype.setValue = function(value) {
392
+ return jspb.Message.setProto3StringField(this, 3, value);
393
+ };
394
+
395
+
396
+
397
+ /**
398
+ * List of repeated fields within this message type.
399
+ * @private {!Array<number>}
400
+ * @const
401
+ */
402
+ proto.query.v1.FilterGroup.repeatedFields_ = [2,3];
403
+
404
+
405
+
406
+ if (jspb.Message.GENERATE_TO_OBJECT) {
407
+ /**
408
+ * Creates an object representation of this proto.
409
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
410
+ * Optional fields that are not set will be set to undefined.
411
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
412
+ * For the list of reserved names please see:
413
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
414
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
415
+ * JSPB instance for transitional soy proto support:
416
+ * http://goto/soy-param-migration
417
+ * @return {!Object}
418
+ */
419
+ proto.query.v1.FilterGroup.prototype.toObject = function(opt_includeInstance) {
420
+ return proto.query.v1.FilterGroup.toObject(opt_includeInstance, this);
421
+ };
422
+
423
+
424
+ /**
425
+ * Static version of the {@see toObject} method.
426
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
427
+ * the JSPB instance for transitional soy proto support:
428
+ * http://goto/soy-param-migration
429
+ * @param {!proto.query.v1.FilterGroup} msg The msg instance to transform.
430
+ * @return {!Object}
431
+ * @suppress {unusedLocalVariables} f is only used for nested messages
432
+ */
433
+ proto.query.v1.FilterGroup.toObject = function(includeInstance, msg) {
434
+ var f, obj = {
435
+ logical: jspb.Message.getFieldWithDefault(msg, 1, 0),
436
+ conditionsList: jspb.Message.toObjectList(msg.getConditionsList(),
437
+ proto.query.v1.FilterCondition.toObject, includeInstance),
438
+ groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
439
+ proto.query.v1.FilterGroup.toObject, includeInstance)
440
+ };
441
+
442
+ if (includeInstance) {
443
+ obj.$jspbMessageInstance = msg;
444
+ }
445
+ return obj;
446
+ };
447
+ }
448
+
449
+
450
+ /**
451
+ * Deserializes binary data (in protobuf wire format).
452
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
453
+ * @return {!proto.query.v1.FilterGroup}
454
+ */
455
+ proto.query.v1.FilterGroup.deserializeBinary = function(bytes) {
456
+ var reader = new jspb.BinaryReader(bytes);
457
+ var msg = new proto.query.v1.FilterGroup;
458
+ return proto.query.v1.FilterGroup.deserializeBinaryFromReader(msg, reader);
459
+ };
460
+
461
+
462
+ /**
463
+ * Deserializes binary data (in protobuf wire format) from the
464
+ * given reader into the given message object.
465
+ * @param {!proto.query.v1.FilterGroup} msg The message object to deserialize into.
466
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
467
+ * @return {!proto.query.v1.FilterGroup}
468
+ */
469
+ proto.query.v1.FilterGroup.deserializeBinaryFromReader = function(msg, reader) {
470
+ while (reader.nextField()) {
471
+ if (reader.isEndGroup()) {
472
+ break;
473
+ }
474
+ var field = reader.getFieldNumber();
475
+ switch (field) {
476
+ case 1:
477
+ var value = /** @type {!proto.query.v1.LogicalOperator} */ (reader.readEnum());
478
+ msg.setLogical(value);
479
+ break;
480
+ case 2:
481
+ var value = new proto.query.v1.FilterCondition;
482
+ reader.readMessage(value,proto.query.v1.FilterCondition.deserializeBinaryFromReader);
483
+ msg.addConditions(value);
484
+ break;
485
+ case 3:
486
+ var value = new proto.query.v1.FilterGroup;
487
+ reader.readMessage(value,proto.query.v1.FilterGroup.deserializeBinaryFromReader);
488
+ msg.addGroups(value);
489
+ break;
490
+ default:
491
+ reader.skipField();
492
+ break;
493
+ }
494
+ }
495
+ return msg;
496
+ };
497
+
498
+
499
+ /**
500
+ * Serializes the message to binary data (in protobuf wire format).
501
+ * @return {!Uint8Array}
502
+ */
503
+ proto.query.v1.FilterGroup.prototype.serializeBinary = function() {
504
+ var writer = new jspb.BinaryWriter();
505
+ proto.query.v1.FilterGroup.serializeBinaryToWriter(this, writer);
506
+ return writer.getResultBuffer();
507
+ };
508
+
509
+
510
+ /**
511
+ * Serializes the given message to binary data (in protobuf wire
512
+ * format), writing to the given BinaryWriter.
513
+ * @param {!proto.query.v1.FilterGroup} message
514
+ * @param {!jspb.BinaryWriter} writer
515
+ * @suppress {unusedLocalVariables} f is only used for nested messages
516
+ */
517
+ proto.query.v1.FilterGroup.serializeBinaryToWriter = function(message, writer) {
518
+ var f = undefined;
519
+ f = message.getLogical();
520
+ if (f !== 0.0) {
521
+ writer.writeEnum(
522
+ 1,
523
+ f
524
+ );
525
+ }
526
+ f = message.getConditionsList();
527
+ if (f.length > 0) {
528
+ writer.writeRepeatedMessage(
529
+ 2,
530
+ f,
531
+ proto.query.v1.FilterCondition.serializeBinaryToWriter
532
+ );
533
+ }
534
+ f = message.getGroupsList();
535
+ if (f.length > 0) {
536
+ writer.writeRepeatedMessage(
537
+ 3,
538
+ f,
539
+ proto.query.v1.FilterGroup.serializeBinaryToWriter
540
+ );
541
+ }
542
+ };
543
+
544
+
545
+ /**
546
+ * optional LogicalOperator logical = 1;
547
+ * @return {!proto.query.v1.LogicalOperator}
548
+ */
549
+ proto.query.v1.FilterGroup.prototype.getLogical = function() {
550
+ return /** @type {!proto.query.v1.LogicalOperator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
551
+ };
552
+
553
+
554
+ /**
555
+ * @param {!proto.query.v1.LogicalOperator} value
556
+ * @return {!proto.query.v1.FilterGroup} returns this
557
+ */
558
+ proto.query.v1.FilterGroup.prototype.setLogical = function(value) {
559
+ return jspb.Message.setProto3EnumField(this, 1, value);
560
+ };
561
+
562
+
563
+ /**
564
+ * repeated FilterCondition conditions = 2;
565
+ * @return {!Array<!proto.query.v1.FilterCondition>}
566
+ */
567
+ proto.query.v1.FilterGroup.prototype.getConditionsList = function() {
568
+ return /** @type{!Array<!proto.query.v1.FilterCondition>} */ (
569
+ jspb.Message.getRepeatedWrapperField(this, proto.query.v1.FilterCondition, 2));
570
+ };
571
+
572
+
573
+ /**
574
+ * @param {!Array<!proto.query.v1.FilterCondition>} value
575
+ * @return {!proto.query.v1.FilterGroup} returns this
576
+ */
577
+ proto.query.v1.FilterGroup.prototype.setConditionsList = function(value) {
578
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
579
+ };
580
+
581
+
582
+ /**
583
+ * @param {!proto.query.v1.FilterCondition=} opt_value
584
+ * @param {number=} opt_index
585
+ * @return {!proto.query.v1.FilterCondition}
586
+ */
587
+ proto.query.v1.FilterGroup.prototype.addConditions = function(opt_value, opt_index) {
588
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.query.v1.FilterCondition, opt_index);
589
+ };
590
+
591
+
592
+ /**
593
+ * Clears the list making it empty but non-null.
594
+ * @return {!proto.query.v1.FilterGroup} returns this
595
+ */
596
+ proto.query.v1.FilterGroup.prototype.clearConditionsList = function() {
597
+ return this.setConditionsList([]);
598
+ };
599
+
600
+
601
+ /**
602
+ * repeated FilterGroup groups = 3;
603
+ * @return {!Array<!proto.query.v1.FilterGroup>}
604
+ */
605
+ proto.query.v1.FilterGroup.prototype.getGroupsList = function() {
606
+ return /** @type{!Array<!proto.query.v1.FilterGroup>} */ (
607
+ jspb.Message.getRepeatedWrapperField(this, proto.query.v1.FilterGroup, 3));
608
+ };
609
+
610
+
611
+ /**
612
+ * @param {!Array<!proto.query.v1.FilterGroup>} value
613
+ * @return {!proto.query.v1.FilterGroup} returns this
614
+ */
615
+ proto.query.v1.FilterGroup.prototype.setGroupsList = function(value) {
616
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
617
+ };
618
+
619
+
620
+ /**
621
+ * @param {!proto.query.v1.FilterGroup=} opt_value
622
+ * @param {number=} opt_index
623
+ * @return {!proto.query.v1.FilterGroup}
624
+ */
625
+ proto.query.v1.FilterGroup.prototype.addGroups = function(opt_value, opt_index) {
626
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.query.v1.FilterGroup, opt_index);
627
+ };
628
+
629
+
630
+ /**
631
+ * Clears the list making it empty but non-null.
632
+ * @return {!proto.query.v1.FilterGroup} returns this
633
+ */
634
+ proto.query.v1.FilterGroup.prototype.clearGroupsList = function() {
635
+ return this.setGroupsList([]);
636
+ };
637
+
638
+
639
+
640
+
641
+
642
+ if (jspb.Message.GENERATE_TO_OBJECT) {
643
+ /**
644
+ * Creates an object representation of this proto.
645
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
646
+ * Optional fields that are not set will be set to undefined.
647
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
648
+ * For the list of reserved names please see:
649
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
650
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
651
+ * JSPB instance for transitional soy proto support:
652
+ * http://goto/soy-param-migration
653
+ * @return {!Object}
654
+ */
655
+ proto.query.v1.Aggregation.prototype.toObject = function(opt_includeInstance) {
656
+ return proto.query.v1.Aggregation.toObject(opt_includeInstance, this);
657
+ };
658
+
659
+
660
+ /**
661
+ * Static version of the {@see toObject} method.
662
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
663
+ * the JSPB instance for transitional soy proto support:
664
+ * http://goto/soy-param-migration
665
+ * @param {!proto.query.v1.Aggregation} msg The msg instance to transform.
666
+ * @return {!Object}
667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
668
+ */
669
+ proto.query.v1.Aggregation.toObject = function(includeInstance, msg) {
670
+ var f, obj = {
671
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
672
+ field: jspb.Message.getFieldWithDefault(msg, 2, "")
673
+ };
674
+
675
+ if (includeInstance) {
676
+ obj.$jspbMessageInstance = msg;
677
+ }
678
+ return obj;
679
+ };
680
+ }
681
+
682
+
683
+ /**
684
+ * Deserializes binary data (in protobuf wire format).
685
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
686
+ * @return {!proto.query.v1.Aggregation}
687
+ */
688
+ proto.query.v1.Aggregation.deserializeBinary = function(bytes) {
689
+ var reader = new jspb.BinaryReader(bytes);
690
+ var msg = new proto.query.v1.Aggregation;
691
+ return proto.query.v1.Aggregation.deserializeBinaryFromReader(msg, reader);
692
+ };
693
+
694
+
695
+ /**
696
+ * Deserializes binary data (in protobuf wire format) from the
697
+ * given reader into the given message object.
698
+ * @param {!proto.query.v1.Aggregation} msg The message object to deserialize into.
699
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
700
+ * @return {!proto.query.v1.Aggregation}
701
+ */
702
+ proto.query.v1.Aggregation.deserializeBinaryFromReader = function(msg, reader) {
703
+ while (reader.nextField()) {
704
+ if (reader.isEndGroup()) {
705
+ break;
706
+ }
707
+ var field = reader.getFieldNumber();
708
+ switch (field) {
709
+ case 1:
710
+ var value = /** @type {!proto.query.v1.AggregationType} */ (reader.readEnum());
711
+ msg.setType(value);
712
+ break;
713
+ case 2:
714
+ var value = /** @type {string} */ (reader.readString());
715
+ msg.setField(value);
716
+ break;
717
+ default:
718
+ reader.skipField();
719
+ break;
720
+ }
721
+ }
722
+ return msg;
723
+ };
724
+
725
+
726
+ /**
727
+ * Serializes the message to binary data (in protobuf wire format).
728
+ * @return {!Uint8Array}
729
+ */
730
+ proto.query.v1.Aggregation.prototype.serializeBinary = function() {
731
+ var writer = new jspb.BinaryWriter();
732
+ proto.query.v1.Aggregation.serializeBinaryToWriter(this, writer);
733
+ return writer.getResultBuffer();
734
+ };
735
+
736
+
737
+ /**
738
+ * Serializes the given message to binary data (in protobuf wire
739
+ * format), writing to the given BinaryWriter.
740
+ * @param {!proto.query.v1.Aggregation} message
741
+ * @param {!jspb.BinaryWriter} writer
742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
743
+ */
744
+ proto.query.v1.Aggregation.serializeBinaryToWriter = function(message, writer) {
745
+ var f = undefined;
746
+ f = message.getType();
747
+ if (f !== 0.0) {
748
+ writer.writeEnum(
749
+ 1,
750
+ f
751
+ );
752
+ }
753
+ f = message.getField();
754
+ if (f.length > 0) {
755
+ writer.writeString(
756
+ 2,
757
+ f
758
+ );
759
+ }
760
+ };
761
+
762
+
763
+ /**
764
+ * optional AggregationType type = 1;
765
+ * @return {!proto.query.v1.AggregationType}
766
+ */
767
+ proto.query.v1.Aggregation.prototype.getType = function() {
768
+ return /** @type {!proto.query.v1.AggregationType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
769
+ };
770
+
771
+
772
+ /**
773
+ * @param {!proto.query.v1.AggregationType} value
774
+ * @return {!proto.query.v1.Aggregation} returns this
775
+ */
776
+ proto.query.v1.Aggregation.prototype.setType = function(value) {
777
+ return jspb.Message.setProto3EnumField(this, 1, value);
778
+ };
779
+
780
+
781
+ /**
782
+ * optional string field = 2;
783
+ * @return {string}
784
+ */
785
+ proto.query.v1.Aggregation.prototype.getField = function() {
786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
787
+ };
788
+
789
+
790
+ /**
791
+ * @param {string} value
792
+ * @return {!proto.query.v1.Aggregation} returns this
793
+ */
794
+ proto.query.v1.Aggregation.prototype.setField = function(value) {
795
+ return jspb.Message.setProto3StringField(this, 2, value);
796
+ };
797
+
798
+
799
+
800
+
801
+
802
+ if (jspb.Message.GENERATE_TO_OBJECT) {
803
+ /**
804
+ * Creates an object representation of this proto.
805
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
806
+ * Optional fields that are not set will be set to undefined.
807
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
808
+ * For the list of reserved names please see:
809
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
810
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
811
+ * JSPB instance for transitional soy proto support:
812
+ * http://goto/soy-param-migration
813
+ * @return {!Object}
814
+ */
815
+ proto.query.v1.GroupBy.prototype.toObject = function(opt_includeInstance) {
816
+ return proto.query.v1.GroupBy.toObject(opt_includeInstance, this);
817
+ };
818
+
819
+
820
+ /**
821
+ * Static version of the {@see toObject} method.
822
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
823
+ * the JSPB instance for transitional soy proto support:
824
+ * http://goto/soy-param-migration
825
+ * @param {!proto.query.v1.GroupBy} msg The msg instance to transform.
826
+ * @return {!Object}
827
+ * @suppress {unusedLocalVariables} f is only used for nested messages
828
+ */
829
+ proto.query.v1.GroupBy.toObject = function(includeInstance, msg) {
830
+ var f, obj = {
831
+ field: jspb.Message.getFieldWithDefault(msg, 1, "")
832
+ };
833
+
834
+ if (includeInstance) {
835
+ obj.$jspbMessageInstance = msg;
836
+ }
837
+ return obj;
838
+ };
839
+ }
840
+
841
+
842
+ /**
843
+ * Deserializes binary data (in protobuf wire format).
844
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
845
+ * @return {!proto.query.v1.GroupBy}
846
+ */
847
+ proto.query.v1.GroupBy.deserializeBinary = function(bytes) {
848
+ var reader = new jspb.BinaryReader(bytes);
849
+ var msg = new proto.query.v1.GroupBy;
850
+ return proto.query.v1.GroupBy.deserializeBinaryFromReader(msg, reader);
851
+ };
852
+
853
+
854
+ /**
855
+ * Deserializes binary data (in protobuf wire format) from the
856
+ * given reader into the given message object.
857
+ * @param {!proto.query.v1.GroupBy} msg The message object to deserialize into.
858
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
859
+ * @return {!proto.query.v1.GroupBy}
860
+ */
861
+ proto.query.v1.GroupBy.deserializeBinaryFromReader = function(msg, reader) {
862
+ while (reader.nextField()) {
863
+ if (reader.isEndGroup()) {
864
+ break;
865
+ }
866
+ var field = reader.getFieldNumber();
867
+ switch (field) {
868
+ case 1:
869
+ var value = /** @type {string} */ (reader.readString());
870
+ msg.setField(value);
871
+ break;
872
+ default:
873
+ reader.skipField();
874
+ break;
875
+ }
876
+ }
877
+ return msg;
878
+ };
879
+
880
+
881
+ /**
882
+ * Serializes the message to binary data (in protobuf wire format).
883
+ * @return {!Uint8Array}
884
+ */
885
+ proto.query.v1.GroupBy.prototype.serializeBinary = function() {
886
+ var writer = new jspb.BinaryWriter();
887
+ proto.query.v1.GroupBy.serializeBinaryToWriter(this, writer);
888
+ return writer.getResultBuffer();
889
+ };
890
+
891
+
892
+ /**
893
+ * Serializes the given message to binary data (in protobuf wire
894
+ * format), writing to the given BinaryWriter.
895
+ * @param {!proto.query.v1.GroupBy} message
896
+ * @param {!jspb.BinaryWriter} writer
897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
898
+ */
899
+ proto.query.v1.GroupBy.serializeBinaryToWriter = function(message, writer) {
900
+ var f = undefined;
901
+ f = message.getField();
902
+ if (f.length > 0) {
903
+ writer.writeString(
904
+ 1,
905
+ f
906
+ );
907
+ }
908
+ };
909
+
910
+
911
+ /**
912
+ * optional string field = 1;
913
+ * @return {string}
914
+ */
915
+ proto.query.v1.GroupBy.prototype.getField = function() {
916
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
917
+ };
918
+
919
+
920
+ /**
921
+ * @param {string} value
922
+ * @return {!proto.query.v1.GroupBy} returns this
923
+ */
924
+ proto.query.v1.GroupBy.prototype.setField = function(value) {
925
+ return jspb.Message.setProto3StringField(this, 1, value);
926
+ };
927
+
928
+
929
+
930
+
931
+
932
+ if (jspb.Message.GENERATE_TO_OBJECT) {
933
+ /**
934
+ * Creates an object representation of this proto.
935
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
936
+ * Optional fields that are not set will be set to undefined.
937
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
938
+ * For the list of reserved names please see:
939
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
940
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
941
+ * JSPB instance for transitional soy proto support:
942
+ * http://goto/soy-param-migration
943
+ * @return {!Object}
944
+ */
945
+ proto.query.v1.QueryEventsRequest.prototype.toObject = function(opt_includeInstance) {
946
+ return proto.query.v1.QueryEventsRequest.toObject(opt_includeInstance, this);
947
+ };
948
+
949
+
950
+ /**
951
+ * Static version of the {@see toObject} method.
952
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
953
+ * the JSPB instance for transitional soy proto support:
954
+ * http://goto/soy-param-migration
955
+ * @param {!proto.query.v1.QueryEventsRequest} msg The msg instance to transform.
956
+ * @return {!Object}
957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
958
+ */
959
+ proto.query.v1.QueryEventsRequest.toObject = function(includeInstance, msg) {
960
+ var f, obj = {
961
+ where: (f = msg.getWhere()) && proto.query.v1.FilterGroup.toObject(includeInstance, f),
962
+ aggregation: (f = msg.getAggregation()) && proto.query.v1.Aggregation.toObject(includeInstance, f),
963
+ groupBy: (f = msg.getGroupBy()) && proto.query.v1.GroupBy.toObject(includeInstance, f),
964
+ limit: jspb.Message.getFieldWithDefault(msg, 4, 0),
965
+ offset: jspb.Message.getFieldWithDefault(msg, 5, 0)
966
+ };
967
+
968
+ if (includeInstance) {
969
+ obj.$jspbMessageInstance = msg;
970
+ }
971
+ return obj;
972
+ };
973
+ }
974
+
975
+
976
+ /**
977
+ * Deserializes binary data (in protobuf wire format).
978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
979
+ * @return {!proto.query.v1.QueryEventsRequest}
980
+ */
981
+ proto.query.v1.QueryEventsRequest.deserializeBinary = function(bytes) {
982
+ var reader = new jspb.BinaryReader(bytes);
983
+ var msg = new proto.query.v1.QueryEventsRequest;
984
+ return proto.query.v1.QueryEventsRequest.deserializeBinaryFromReader(msg, reader);
985
+ };
986
+
987
+
988
+ /**
989
+ * Deserializes binary data (in protobuf wire format) from the
990
+ * given reader into the given message object.
991
+ * @param {!proto.query.v1.QueryEventsRequest} msg The message object to deserialize into.
992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
993
+ * @return {!proto.query.v1.QueryEventsRequest}
994
+ */
995
+ proto.query.v1.QueryEventsRequest.deserializeBinaryFromReader = function(msg, reader) {
996
+ while (reader.nextField()) {
997
+ if (reader.isEndGroup()) {
998
+ break;
999
+ }
1000
+ var field = reader.getFieldNumber();
1001
+ switch (field) {
1002
+ case 1:
1003
+ var value = new proto.query.v1.FilterGroup;
1004
+ reader.readMessage(value,proto.query.v1.FilterGroup.deserializeBinaryFromReader);
1005
+ msg.setWhere(value);
1006
+ break;
1007
+ case 2:
1008
+ var value = new proto.query.v1.Aggregation;
1009
+ reader.readMessage(value,proto.query.v1.Aggregation.deserializeBinaryFromReader);
1010
+ msg.setAggregation(value);
1011
+ break;
1012
+ case 3:
1013
+ var value = new proto.query.v1.GroupBy;
1014
+ reader.readMessage(value,proto.query.v1.GroupBy.deserializeBinaryFromReader);
1015
+ msg.setGroupBy(value);
1016
+ break;
1017
+ case 4:
1018
+ var value = /** @type {number} */ (reader.readInt32());
1019
+ msg.setLimit(value);
1020
+ break;
1021
+ case 5:
1022
+ var value = /** @type {number} */ (reader.readInt32());
1023
+ msg.setOffset(value);
1024
+ break;
1025
+ default:
1026
+ reader.skipField();
1027
+ break;
1028
+ }
1029
+ }
1030
+ return msg;
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * Serializes the message to binary data (in protobuf wire format).
1036
+ * @return {!Uint8Array}
1037
+ */
1038
+ proto.query.v1.QueryEventsRequest.prototype.serializeBinary = function() {
1039
+ var writer = new jspb.BinaryWriter();
1040
+ proto.query.v1.QueryEventsRequest.serializeBinaryToWriter(this, writer);
1041
+ return writer.getResultBuffer();
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * Serializes the given message to binary data (in protobuf wire
1047
+ * format), writing to the given BinaryWriter.
1048
+ * @param {!proto.query.v1.QueryEventsRequest} message
1049
+ * @param {!jspb.BinaryWriter} writer
1050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1051
+ */
1052
+ proto.query.v1.QueryEventsRequest.serializeBinaryToWriter = function(message, writer) {
1053
+ var f = undefined;
1054
+ f = message.getWhere();
1055
+ if (f != null) {
1056
+ writer.writeMessage(
1057
+ 1,
1058
+ f,
1059
+ proto.query.v1.FilterGroup.serializeBinaryToWriter
1060
+ );
1061
+ }
1062
+ f = message.getAggregation();
1063
+ if (f != null) {
1064
+ writer.writeMessage(
1065
+ 2,
1066
+ f,
1067
+ proto.query.v1.Aggregation.serializeBinaryToWriter
1068
+ );
1069
+ }
1070
+ f = message.getGroupBy();
1071
+ if (f != null) {
1072
+ writer.writeMessage(
1073
+ 3,
1074
+ f,
1075
+ proto.query.v1.GroupBy.serializeBinaryToWriter
1076
+ );
1077
+ }
1078
+ f = message.getLimit();
1079
+ if (f !== 0) {
1080
+ writer.writeInt32(
1081
+ 4,
1082
+ f
1083
+ );
1084
+ }
1085
+ f = message.getOffset();
1086
+ if (f !== 0) {
1087
+ writer.writeInt32(
1088
+ 5,
1089
+ f
1090
+ );
1091
+ }
1092
+ };
1093
+
1094
+
1095
+ /**
1096
+ * optional FilterGroup where = 1;
1097
+ * @return {?proto.query.v1.FilterGroup}
1098
+ */
1099
+ proto.query.v1.QueryEventsRequest.prototype.getWhere = function() {
1100
+ return /** @type{?proto.query.v1.FilterGroup} */ (
1101
+ jspb.Message.getWrapperField(this, proto.query.v1.FilterGroup, 1));
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * @param {?proto.query.v1.FilterGroup|undefined} value
1107
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1108
+ */
1109
+ proto.query.v1.QueryEventsRequest.prototype.setWhere = function(value) {
1110
+ return jspb.Message.setWrapperField(this, 1, value);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Clears the message field making it undefined.
1116
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1117
+ */
1118
+ proto.query.v1.QueryEventsRequest.prototype.clearWhere = function() {
1119
+ return this.setWhere(undefined);
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * Returns whether this field is set.
1125
+ * @return {boolean}
1126
+ */
1127
+ proto.query.v1.QueryEventsRequest.prototype.hasWhere = function() {
1128
+ return jspb.Message.getField(this, 1) != null;
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * optional Aggregation aggregation = 2;
1134
+ * @return {?proto.query.v1.Aggregation}
1135
+ */
1136
+ proto.query.v1.QueryEventsRequest.prototype.getAggregation = function() {
1137
+ return /** @type{?proto.query.v1.Aggregation} */ (
1138
+ jspb.Message.getWrapperField(this, proto.query.v1.Aggregation, 2));
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * @param {?proto.query.v1.Aggregation|undefined} value
1144
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1145
+ */
1146
+ proto.query.v1.QueryEventsRequest.prototype.setAggregation = function(value) {
1147
+ return jspb.Message.setWrapperField(this, 2, value);
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * Clears the message field making it undefined.
1153
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1154
+ */
1155
+ proto.query.v1.QueryEventsRequest.prototype.clearAggregation = function() {
1156
+ return this.setAggregation(undefined);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * Returns whether this field is set.
1162
+ * @return {boolean}
1163
+ */
1164
+ proto.query.v1.QueryEventsRequest.prototype.hasAggregation = function() {
1165
+ return jspb.Message.getField(this, 2) != null;
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * optional GroupBy group_by = 3;
1171
+ * @return {?proto.query.v1.GroupBy}
1172
+ */
1173
+ proto.query.v1.QueryEventsRequest.prototype.getGroupBy = function() {
1174
+ return /** @type{?proto.query.v1.GroupBy} */ (
1175
+ jspb.Message.getWrapperField(this, proto.query.v1.GroupBy, 3));
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * @param {?proto.query.v1.GroupBy|undefined} value
1181
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1182
+ */
1183
+ proto.query.v1.QueryEventsRequest.prototype.setGroupBy = function(value) {
1184
+ return jspb.Message.setWrapperField(this, 3, value);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Clears the message field making it undefined.
1190
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1191
+ */
1192
+ proto.query.v1.QueryEventsRequest.prototype.clearGroupBy = function() {
1193
+ return this.setGroupBy(undefined);
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * Returns whether this field is set.
1199
+ * @return {boolean}
1200
+ */
1201
+ proto.query.v1.QueryEventsRequest.prototype.hasGroupBy = function() {
1202
+ return jspb.Message.getField(this, 3) != null;
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * optional int32 limit = 4;
1208
+ * @return {number}
1209
+ */
1210
+ proto.query.v1.QueryEventsRequest.prototype.getLimit = function() {
1211
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * @param {number} value
1217
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1218
+ */
1219
+ proto.query.v1.QueryEventsRequest.prototype.setLimit = function(value) {
1220
+ return jspb.Message.setProto3IntField(this, 4, value);
1221
+ };
1222
+
1223
+
1224
+ /**
1225
+ * optional int32 offset = 5;
1226
+ * @return {number}
1227
+ */
1228
+ proto.query.v1.QueryEventsRequest.prototype.getOffset = function() {
1229
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1230
+ };
1231
+
1232
+
1233
+ /**
1234
+ * @param {number} value
1235
+ * @return {!proto.query.v1.QueryEventsRequest} returns this
1236
+ */
1237
+ proto.query.v1.QueryEventsRequest.prototype.setOffset = function(value) {
1238
+ return jspb.Message.setProto3IntField(this, 5, value);
1239
+ };
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1246
+ /**
1247
+ * Creates an object representation of this proto.
1248
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1249
+ * Optional fields that are not set will be set to undefined.
1250
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1251
+ * For the list of reserved names please see:
1252
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1253
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1254
+ * JSPB instance for transitional soy proto support:
1255
+ * http://goto/soy-param-migration
1256
+ * @return {!Object}
1257
+ */
1258
+ proto.query.v1.EventRow.prototype.toObject = function(opt_includeInstance) {
1259
+ return proto.query.v1.EventRow.toObject(opt_includeInstance, this);
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * Static version of the {@see toObject} method.
1265
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1266
+ * the JSPB instance for transitional soy proto support:
1267
+ * http://goto/soy-param-migration
1268
+ * @param {!proto.query.v1.EventRow} msg The msg instance to transform.
1269
+ * @return {!Object}
1270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1271
+ */
1272
+ proto.query.v1.EventRow.toObject = function(includeInstance, msg) {
1273
+ var f, obj = {
1274
+ eventId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1275
+ eventType: jspb.Message.getFieldWithDefault(msg, 2, ""),
1276
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1277
+ reportedTimestamp: jspb.Message.getFieldWithDefault(msg, 4, ""),
1278
+ ingestedTimestamp: jspb.Message.getFieldWithDefault(msg, 5, ""),
1279
+ sdkCallType: jspb.Message.getFieldWithDefault(msg, 6, ""),
1280
+ debitAmount: jspb.Message.getFieldWithDefault(msg, 7, 0),
1281
+ model: jspb.Message.getFieldWithDefault(msg, 9, ""),
1282
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 10, 0),
1283
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 11, 0),
1284
+ inputDebitAmount: jspb.Message.getFieldWithDefault(msg, 12, 0),
1285
+ outputDebitAmount: jspb.Message.getFieldWithDefault(msg, 13, 0)
1286
+ };
1287
+
1288
+ if (includeInstance) {
1289
+ obj.$jspbMessageInstance = msg;
1290
+ }
1291
+ return obj;
1292
+ };
1293
+ }
1294
+
1295
+
1296
+ /**
1297
+ * Deserializes binary data (in protobuf wire format).
1298
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1299
+ * @return {!proto.query.v1.EventRow}
1300
+ */
1301
+ proto.query.v1.EventRow.deserializeBinary = function(bytes) {
1302
+ var reader = new jspb.BinaryReader(bytes);
1303
+ var msg = new proto.query.v1.EventRow;
1304
+ return proto.query.v1.EventRow.deserializeBinaryFromReader(msg, reader);
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * Deserializes binary data (in protobuf wire format) from the
1310
+ * given reader into the given message object.
1311
+ * @param {!proto.query.v1.EventRow} msg The message object to deserialize into.
1312
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1313
+ * @return {!proto.query.v1.EventRow}
1314
+ */
1315
+ proto.query.v1.EventRow.deserializeBinaryFromReader = function(msg, reader) {
1316
+ while (reader.nextField()) {
1317
+ if (reader.isEndGroup()) {
1318
+ break;
1319
+ }
1320
+ var field = reader.getFieldNumber();
1321
+ switch (field) {
1322
+ case 1:
1323
+ var value = /** @type {string} */ (reader.readString());
1324
+ msg.setEventId(value);
1325
+ break;
1326
+ case 2:
1327
+ var value = /** @type {string} */ (reader.readString());
1328
+ msg.setEventType(value);
1329
+ break;
1330
+ case 3:
1331
+ var value = /** @type {string} */ (reader.readString());
1332
+ msg.setUserId(value);
1333
+ break;
1334
+ case 4:
1335
+ var value = /** @type {string} */ (reader.readString());
1336
+ msg.setReportedTimestamp(value);
1337
+ break;
1338
+ case 5:
1339
+ var value = /** @type {string} */ (reader.readString());
1340
+ msg.setIngestedTimestamp(value);
1341
+ break;
1342
+ case 6:
1343
+ var value = /** @type {string} */ (reader.readString());
1344
+ msg.setSdkCallType(value);
1345
+ break;
1346
+ case 7:
1347
+ var value = /** @type {number} */ (reader.readInt64());
1348
+ msg.setDebitAmount(value);
1349
+ break;
1350
+ case 9:
1351
+ var value = /** @type {string} */ (reader.readString());
1352
+ msg.setModel(value);
1353
+ break;
1354
+ case 10:
1355
+ var value = /** @type {number} */ (reader.readInt32());
1356
+ msg.setInputTokens(value);
1357
+ break;
1358
+ case 11:
1359
+ var value = /** @type {number} */ (reader.readInt32());
1360
+ msg.setOutputTokens(value);
1361
+ break;
1362
+ case 12:
1363
+ var value = /** @type {number} */ (reader.readInt64());
1364
+ msg.setInputDebitAmount(value);
1365
+ break;
1366
+ case 13:
1367
+ var value = /** @type {number} */ (reader.readInt64());
1368
+ msg.setOutputDebitAmount(value);
1369
+ break;
1370
+ default:
1371
+ reader.skipField();
1372
+ break;
1373
+ }
1374
+ }
1375
+ return msg;
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * Serializes the message to binary data (in protobuf wire format).
1381
+ * @return {!Uint8Array}
1382
+ */
1383
+ proto.query.v1.EventRow.prototype.serializeBinary = function() {
1384
+ var writer = new jspb.BinaryWriter();
1385
+ proto.query.v1.EventRow.serializeBinaryToWriter(this, writer);
1386
+ return writer.getResultBuffer();
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Serializes the given message to binary data (in protobuf wire
1392
+ * format), writing to the given BinaryWriter.
1393
+ * @param {!proto.query.v1.EventRow} message
1394
+ * @param {!jspb.BinaryWriter} writer
1395
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1396
+ */
1397
+ proto.query.v1.EventRow.serializeBinaryToWriter = function(message, writer) {
1398
+ var f = undefined;
1399
+ f = message.getEventId();
1400
+ if (f.length > 0) {
1401
+ writer.writeString(
1402
+ 1,
1403
+ f
1404
+ );
1405
+ }
1406
+ f = message.getEventType();
1407
+ if (f.length > 0) {
1408
+ writer.writeString(
1409
+ 2,
1410
+ f
1411
+ );
1412
+ }
1413
+ f = message.getUserId();
1414
+ if (f.length > 0) {
1415
+ writer.writeString(
1416
+ 3,
1417
+ f
1418
+ );
1419
+ }
1420
+ f = message.getReportedTimestamp();
1421
+ if (f.length > 0) {
1422
+ writer.writeString(
1423
+ 4,
1424
+ f
1425
+ );
1426
+ }
1427
+ f = message.getIngestedTimestamp();
1428
+ if (f.length > 0) {
1429
+ writer.writeString(
1430
+ 5,
1431
+ f
1432
+ );
1433
+ }
1434
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
1435
+ if (f != null) {
1436
+ writer.writeString(
1437
+ 6,
1438
+ f
1439
+ );
1440
+ }
1441
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
1442
+ if (f != null) {
1443
+ writer.writeInt64(
1444
+ 7,
1445
+ f
1446
+ );
1447
+ }
1448
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
1449
+ if (f != null) {
1450
+ writer.writeString(
1451
+ 9,
1452
+ f
1453
+ );
1454
+ }
1455
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
1456
+ if (f != null) {
1457
+ writer.writeInt32(
1458
+ 10,
1459
+ f
1460
+ );
1461
+ }
1462
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
1463
+ if (f != null) {
1464
+ writer.writeInt32(
1465
+ 11,
1466
+ f
1467
+ );
1468
+ }
1469
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
1470
+ if (f != null) {
1471
+ writer.writeInt64(
1472
+ 12,
1473
+ f
1474
+ );
1475
+ }
1476
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
1477
+ if (f != null) {
1478
+ writer.writeInt64(
1479
+ 13,
1480
+ f
1481
+ );
1482
+ }
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * optional string event_id = 1;
1488
+ * @return {string}
1489
+ */
1490
+ proto.query.v1.EventRow.prototype.getEventId = function() {
1491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * @param {string} value
1497
+ * @return {!proto.query.v1.EventRow} returns this
1498
+ */
1499
+ proto.query.v1.EventRow.prototype.setEventId = function(value) {
1500
+ return jspb.Message.setProto3StringField(this, 1, value);
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * optional string event_type = 2;
1506
+ * @return {string}
1507
+ */
1508
+ proto.query.v1.EventRow.prototype.getEventType = function() {
1509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * @param {string} value
1515
+ * @return {!proto.query.v1.EventRow} returns this
1516
+ */
1517
+ proto.query.v1.EventRow.prototype.setEventType = function(value) {
1518
+ return jspb.Message.setProto3StringField(this, 2, value);
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * optional string user_id = 3;
1524
+ * @return {string}
1525
+ */
1526
+ proto.query.v1.EventRow.prototype.getUserId = function() {
1527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * @param {string} value
1533
+ * @return {!proto.query.v1.EventRow} returns this
1534
+ */
1535
+ proto.query.v1.EventRow.prototype.setUserId = function(value) {
1536
+ return jspb.Message.setProto3StringField(this, 3, value);
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * optional string reported_timestamp = 4;
1542
+ * @return {string}
1543
+ */
1544
+ proto.query.v1.EventRow.prototype.getReportedTimestamp = function() {
1545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * @param {string} value
1551
+ * @return {!proto.query.v1.EventRow} returns this
1552
+ */
1553
+ proto.query.v1.EventRow.prototype.setReportedTimestamp = function(value) {
1554
+ return jspb.Message.setProto3StringField(this, 4, value);
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * optional string ingested_timestamp = 5;
1560
+ * @return {string}
1561
+ */
1562
+ proto.query.v1.EventRow.prototype.getIngestedTimestamp = function() {
1563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * @param {string} value
1569
+ * @return {!proto.query.v1.EventRow} returns this
1570
+ */
1571
+ proto.query.v1.EventRow.prototype.setIngestedTimestamp = function(value) {
1572
+ return jspb.Message.setProto3StringField(this, 5, value);
1573
+ };
1574
+
1575
+
1576
+ /**
1577
+ * optional string sdk_call_type = 6;
1578
+ * @return {string}
1579
+ */
1580
+ proto.query.v1.EventRow.prototype.getSdkCallType = function() {
1581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * @param {string} value
1587
+ * @return {!proto.query.v1.EventRow} returns this
1588
+ */
1589
+ proto.query.v1.EventRow.prototype.setSdkCallType = function(value) {
1590
+ return jspb.Message.setField(this, 6, value);
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * Clears the field making it undefined.
1596
+ * @return {!proto.query.v1.EventRow} returns this
1597
+ */
1598
+ proto.query.v1.EventRow.prototype.clearSdkCallType = function() {
1599
+ return jspb.Message.setField(this, 6, undefined);
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * Returns whether this field is set.
1605
+ * @return {boolean}
1606
+ */
1607
+ proto.query.v1.EventRow.prototype.hasSdkCallType = function() {
1608
+ return jspb.Message.getField(this, 6) != null;
1609
+ };
1610
+
1611
+
1612
+ /**
1613
+ * optional int64 debit_amount = 7;
1614
+ * @return {number}
1615
+ */
1616
+ proto.query.v1.EventRow.prototype.getDebitAmount = function() {
1617
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1618
+ };
1619
+
1620
+
1621
+ /**
1622
+ * @param {number} value
1623
+ * @return {!proto.query.v1.EventRow} returns this
1624
+ */
1625
+ proto.query.v1.EventRow.prototype.setDebitAmount = function(value) {
1626
+ return jspb.Message.setField(this, 7, value);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Clears the field making it undefined.
1632
+ * @return {!proto.query.v1.EventRow} returns this
1633
+ */
1634
+ proto.query.v1.EventRow.prototype.clearDebitAmount = function() {
1635
+ return jspb.Message.setField(this, 7, undefined);
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * Returns whether this field is set.
1641
+ * @return {boolean}
1642
+ */
1643
+ proto.query.v1.EventRow.prototype.hasDebitAmount = function() {
1644
+ return jspb.Message.getField(this, 7) != null;
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * optional string model = 9;
1650
+ * @return {string}
1651
+ */
1652
+ proto.query.v1.EventRow.prototype.getModel = function() {
1653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * @param {string} value
1659
+ * @return {!proto.query.v1.EventRow} returns this
1660
+ */
1661
+ proto.query.v1.EventRow.prototype.setModel = function(value) {
1662
+ return jspb.Message.setField(this, 9, value);
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * Clears the field making it undefined.
1668
+ * @return {!proto.query.v1.EventRow} returns this
1669
+ */
1670
+ proto.query.v1.EventRow.prototype.clearModel = function() {
1671
+ return jspb.Message.setField(this, 9, undefined);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * Returns whether this field is set.
1677
+ * @return {boolean}
1678
+ */
1679
+ proto.query.v1.EventRow.prototype.hasModel = function() {
1680
+ return jspb.Message.getField(this, 9) != null;
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * optional int32 input_tokens = 10;
1686
+ * @return {number}
1687
+ */
1688
+ proto.query.v1.EventRow.prototype.getInputTokens = function() {
1689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * @param {number} value
1695
+ * @return {!proto.query.v1.EventRow} returns this
1696
+ */
1697
+ proto.query.v1.EventRow.prototype.setInputTokens = function(value) {
1698
+ return jspb.Message.setField(this, 10, value);
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Clears the field making it undefined.
1704
+ * @return {!proto.query.v1.EventRow} returns this
1705
+ */
1706
+ proto.query.v1.EventRow.prototype.clearInputTokens = function() {
1707
+ return jspb.Message.setField(this, 10, undefined);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * Returns whether this field is set.
1713
+ * @return {boolean}
1714
+ */
1715
+ proto.query.v1.EventRow.prototype.hasInputTokens = function() {
1716
+ return jspb.Message.getField(this, 10) != null;
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * optional int32 output_tokens = 11;
1722
+ * @return {number}
1723
+ */
1724
+ proto.query.v1.EventRow.prototype.getOutputTokens = function() {
1725
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * @param {number} value
1731
+ * @return {!proto.query.v1.EventRow} returns this
1732
+ */
1733
+ proto.query.v1.EventRow.prototype.setOutputTokens = function(value) {
1734
+ return jspb.Message.setField(this, 11, value);
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * Clears the field making it undefined.
1740
+ * @return {!proto.query.v1.EventRow} returns this
1741
+ */
1742
+ proto.query.v1.EventRow.prototype.clearOutputTokens = function() {
1743
+ return jspb.Message.setField(this, 11, undefined);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Returns whether this field is set.
1749
+ * @return {boolean}
1750
+ */
1751
+ proto.query.v1.EventRow.prototype.hasOutputTokens = function() {
1752
+ return jspb.Message.getField(this, 11) != null;
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * optional int64 input_debit_amount = 12;
1758
+ * @return {number}
1759
+ */
1760
+ proto.query.v1.EventRow.prototype.getInputDebitAmount = function() {
1761
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * @param {number} value
1767
+ * @return {!proto.query.v1.EventRow} returns this
1768
+ */
1769
+ proto.query.v1.EventRow.prototype.setInputDebitAmount = function(value) {
1770
+ return jspb.Message.setField(this, 12, value);
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * Clears the field making it undefined.
1776
+ * @return {!proto.query.v1.EventRow} returns this
1777
+ */
1778
+ proto.query.v1.EventRow.prototype.clearInputDebitAmount = function() {
1779
+ return jspb.Message.setField(this, 12, undefined);
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * Returns whether this field is set.
1785
+ * @return {boolean}
1786
+ */
1787
+ proto.query.v1.EventRow.prototype.hasInputDebitAmount = function() {
1788
+ return jspb.Message.getField(this, 12) != null;
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * optional int64 output_debit_amount = 13;
1794
+ * @return {number}
1795
+ */
1796
+ proto.query.v1.EventRow.prototype.getOutputDebitAmount = function() {
1797
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * @param {number} value
1803
+ * @return {!proto.query.v1.EventRow} returns this
1804
+ */
1805
+ proto.query.v1.EventRow.prototype.setOutputDebitAmount = function(value) {
1806
+ return jspb.Message.setField(this, 13, value);
1807
+ };
1808
+
1809
+
1810
+ /**
1811
+ * Clears the field making it undefined.
1812
+ * @return {!proto.query.v1.EventRow} returns this
1813
+ */
1814
+ proto.query.v1.EventRow.prototype.clearOutputDebitAmount = function() {
1815
+ return jspb.Message.setField(this, 13, undefined);
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * Returns whether this field is set.
1821
+ * @return {boolean}
1822
+ */
1823
+ proto.query.v1.EventRow.prototype.hasOutputDebitAmount = function() {
1824
+ return jspb.Message.getField(this, 13) != null;
1825
+ };
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1832
+ /**
1833
+ * Creates an object representation of this proto.
1834
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1835
+ * Optional fields that are not set will be set to undefined.
1836
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1837
+ * For the list of reserved names please see:
1838
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1839
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1840
+ * JSPB instance for transitional soy proto support:
1841
+ * http://goto/soy-param-migration
1842
+ * @return {!Object}
1843
+ */
1844
+ proto.query.v1.AggregationRow.prototype.toObject = function(opt_includeInstance) {
1845
+ return proto.query.v1.AggregationRow.toObject(opt_includeInstance, this);
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * Static version of the {@see toObject} method.
1851
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1852
+ * the JSPB instance for transitional soy proto support:
1853
+ * http://goto/soy-param-migration
1854
+ * @param {!proto.query.v1.AggregationRow} msg The msg instance to transform.
1855
+ * @return {!Object}
1856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1857
+ */
1858
+ proto.query.v1.AggregationRow.toObject = function(includeInstance, msg) {
1859
+ var f, obj = {
1860
+ groupValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
1861
+ aggValue: jspb.Message.getFieldWithDefault(msg, 2, "")
1862
+ };
1863
+
1864
+ if (includeInstance) {
1865
+ obj.$jspbMessageInstance = msg;
1866
+ }
1867
+ return obj;
1868
+ };
1869
+ }
1870
+
1871
+
1872
+ /**
1873
+ * Deserializes binary data (in protobuf wire format).
1874
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1875
+ * @return {!proto.query.v1.AggregationRow}
1876
+ */
1877
+ proto.query.v1.AggregationRow.deserializeBinary = function(bytes) {
1878
+ var reader = new jspb.BinaryReader(bytes);
1879
+ var msg = new proto.query.v1.AggregationRow;
1880
+ return proto.query.v1.AggregationRow.deserializeBinaryFromReader(msg, reader);
1881
+ };
1882
+
1883
+
1884
+ /**
1885
+ * Deserializes binary data (in protobuf wire format) from the
1886
+ * given reader into the given message object.
1887
+ * @param {!proto.query.v1.AggregationRow} msg The message object to deserialize into.
1888
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1889
+ * @return {!proto.query.v1.AggregationRow}
1890
+ */
1891
+ proto.query.v1.AggregationRow.deserializeBinaryFromReader = function(msg, reader) {
1892
+ while (reader.nextField()) {
1893
+ if (reader.isEndGroup()) {
1894
+ break;
1895
+ }
1896
+ var field = reader.getFieldNumber();
1897
+ switch (field) {
1898
+ case 1:
1899
+ var value = /** @type {string} */ (reader.readString());
1900
+ msg.setGroupValue(value);
1901
+ break;
1902
+ case 2:
1903
+ var value = /** @type {string} */ (reader.readString());
1904
+ msg.setAggValue(value);
1905
+ break;
1906
+ default:
1907
+ reader.skipField();
1908
+ break;
1909
+ }
1910
+ }
1911
+ return msg;
1912
+ };
1913
+
1914
+
1915
+ /**
1916
+ * Serializes the message to binary data (in protobuf wire format).
1917
+ * @return {!Uint8Array}
1918
+ */
1919
+ proto.query.v1.AggregationRow.prototype.serializeBinary = function() {
1920
+ var writer = new jspb.BinaryWriter();
1921
+ proto.query.v1.AggregationRow.serializeBinaryToWriter(this, writer);
1922
+ return writer.getResultBuffer();
1923
+ };
1924
+
1925
+
1926
+ /**
1927
+ * Serializes the given message to binary data (in protobuf wire
1928
+ * format), writing to the given BinaryWriter.
1929
+ * @param {!proto.query.v1.AggregationRow} message
1930
+ * @param {!jspb.BinaryWriter} writer
1931
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1932
+ */
1933
+ proto.query.v1.AggregationRow.serializeBinaryToWriter = function(message, writer) {
1934
+ var f = undefined;
1935
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
1936
+ if (f != null) {
1937
+ writer.writeString(
1938
+ 1,
1939
+ f
1940
+ );
1941
+ }
1942
+ f = message.getAggValue();
1943
+ if (f.length > 0) {
1944
+ writer.writeString(
1945
+ 2,
1946
+ f
1947
+ );
1948
+ }
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * optional string group_value = 1;
1954
+ * @return {string}
1955
+ */
1956
+ proto.query.v1.AggregationRow.prototype.getGroupValue = function() {
1957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * @param {string} value
1963
+ * @return {!proto.query.v1.AggregationRow} returns this
1964
+ */
1965
+ proto.query.v1.AggregationRow.prototype.setGroupValue = function(value) {
1966
+ return jspb.Message.setField(this, 1, value);
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * Clears the field making it undefined.
1972
+ * @return {!proto.query.v1.AggregationRow} returns this
1973
+ */
1974
+ proto.query.v1.AggregationRow.prototype.clearGroupValue = function() {
1975
+ return jspb.Message.setField(this, 1, undefined);
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * Returns whether this field is set.
1981
+ * @return {boolean}
1982
+ */
1983
+ proto.query.v1.AggregationRow.prototype.hasGroupValue = function() {
1984
+ return jspb.Message.getField(this, 1) != null;
1985
+ };
1986
+
1987
+
1988
+ /**
1989
+ * optional string agg_value = 2;
1990
+ * @return {string}
1991
+ */
1992
+ proto.query.v1.AggregationRow.prototype.getAggValue = function() {
1993
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1994
+ };
1995
+
1996
+
1997
+ /**
1998
+ * @param {string} value
1999
+ * @return {!proto.query.v1.AggregationRow} returns this
2000
+ */
2001
+ proto.query.v1.AggregationRow.prototype.setAggValue = function(value) {
2002
+ return jspb.Message.setProto3StringField(this, 2, value);
2003
+ };
2004
+
2005
+
2006
+
2007
+ /**
2008
+ * List of repeated fields within this message type.
2009
+ * @private {!Array<number>}
2010
+ * @const
2011
+ */
2012
+ proto.query.v1.QueryEventsResponse.repeatedFields_ = [1,2];
2013
+
2014
+
2015
+
2016
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2017
+ /**
2018
+ * Creates an object representation of this proto.
2019
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2020
+ * Optional fields that are not set will be set to undefined.
2021
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2022
+ * For the list of reserved names please see:
2023
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2024
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2025
+ * JSPB instance for transitional soy proto support:
2026
+ * http://goto/soy-param-migration
2027
+ * @return {!Object}
2028
+ */
2029
+ proto.query.v1.QueryEventsResponse.prototype.toObject = function(opt_includeInstance) {
2030
+ return proto.query.v1.QueryEventsResponse.toObject(opt_includeInstance, this);
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * Static version of the {@see toObject} method.
2036
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2037
+ * the JSPB instance for transitional soy proto support:
2038
+ * http://goto/soy-param-migration
2039
+ * @param {!proto.query.v1.QueryEventsResponse} msg The msg instance to transform.
2040
+ * @return {!Object}
2041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2042
+ */
2043
+ proto.query.v1.QueryEventsResponse.toObject = function(includeInstance, msg) {
2044
+ var f, obj = {
2045
+ rowsList: jspb.Message.toObjectList(msg.getRowsList(),
2046
+ proto.query.v1.EventRow.toObject, includeInstance),
2047
+ aggRowsList: jspb.Message.toObjectList(msg.getAggRowsList(),
2048
+ proto.query.v1.AggregationRow.toObject, includeInstance),
2049
+ total: jspb.Message.getFieldWithDefault(msg, 3, 0)
2050
+ };
2051
+
2052
+ if (includeInstance) {
2053
+ obj.$jspbMessageInstance = msg;
2054
+ }
2055
+ return obj;
2056
+ };
2057
+ }
2058
+
2059
+
2060
+ /**
2061
+ * Deserializes binary data (in protobuf wire format).
2062
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2063
+ * @return {!proto.query.v1.QueryEventsResponse}
2064
+ */
2065
+ proto.query.v1.QueryEventsResponse.deserializeBinary = function(bytes) {
2066
+ var reader = new jspb.BinaryReader(bytes);
2067
+ var msg = new proto.query.v1.QueryEventsResponse;
2068
+ return proto.query.v1.QueryEventsResponse.deserializeBinaryFromReader(msg, reader);
2069
+ };
2070
+
2071
+
2072
+ /**
2073
+ * Deserializes binary data (in protobuf wire format) from the
2074
+ * given reader into the given message object.
2075
+ * @param {!proto.query.v1.QueryEventsResponse} msg The message object to deserialize into.
2076
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2077
+ * @return {!proto.query.v1.QueryEventsResponse}
2078
+ */
2079
+ proto.query.v1.QueryEventsResponse.deserializeBinaryFromReader = function(msg, reader) {
2080
+ while (reader.nextField()) {
2081
+ if (reader.isEndGroup()) {
2082
+ break;
2083
+ }
2084
+ var field = reader.getFieldNumber();
2085
+ switch (field) {
2086
+ case 1:
2087
+ var value = new proto.query.v1.EventRow;
2088
+ reader.readMessage(value,proto.query.v1.EventRow.deserializeBinaryFromReader);
2089
+ msg.addRows(value);
2090
+ break;
2091
+ case 2:
2092
+ var value = new proto.query.v1.AggregationRow;
2093
+ reader.readMessage(value,proto.query.v1.AggregationRow.deserializeBinaryFromReader);
2094
+ msg.addAggRows(value);
2095
+ break;
2096
+ case 3:
2097
+ var value = /** @type {number} */ (reader.readInt32());
2098
+ msg.setTotal(value);
2099
+ break;
2100
+ default:
2101
+ reader.skipField();
2102
+ break;
2103
+ }
2104
+ }
2105
+ return msg;
2106
+ };
2107
+
2108
+
2109
+ /**
2110
+ * Serializes the message to binary data (in protobuf wire format).
2111
+ * @return {!Uint8Array}
2112
+ */
2113
+ proto.query.v1.QueryEventsResponse.prototype.serializeBinary = function() {
2114
+ var writer = new jspb.BinaryWriter();
2115
+ proto.query.v1.QueryEventsResponse.serializeBinaryToWriter(this, writer);
2116
+ return writer.getResultBuffer();
2117
+ };
2118
+
2119
+
2120
+ /**
2121
+ * Serializes the given message to binary data (in protobuf wire
2122
+ * format), writing to the given BinaryWriter.
2123
+ * @param {!proto.query.v1.QueryEventsResponse} message
2124
+ * @param {!jspb.BinaryWriter} writer
2125
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2126
+ */
2127
+ proto.query.v1.QueryEventsResponse.serializeBinaryToWriter = function(message, writer) {
2128
+ var f = undefined;
2129
+ f = message.getRowsList();
2130
+ if (f.length > 0) {
2131
+ writer.writeRepeatedMessage(
2132
+ 1,
2133
+ f,
2134
+ proto.query.v1.EventRow.serializeBinaryToWriter
2135
+ );
2136
+ }
2137
+ f = message.getAggRowsList();
2138
+ if (f.length > 0) {
2139
+ writer.writeRepeatedMessage(
2140
+ 2,
2141
+ f,
2142
+ proto.query.v1.AggregationRow.serializeBinaryToWriter
2143
+ );
2144
+ }
2145
+ f = message.getTotal();
2146
+ if (f !== 0) {
2147
+ writer.writeInt32(
2148
+ 3,
2149
+ f
2150
+ );
2151
+ }
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * repeated EventRow rows = 1;
2157
+ * @return {!Array<!proto.query.v1.EventRow>}
2158
+ */
2159
+ proto.query.v1.QueryEventsResponse.prototype.getRowsList = function() {
2160
+ return /** @type{!Array<!proto.query.v1.EventRow>} */ (
2161
+ jspb.Message.getRepeatedWrapperField(this, proto.query.v1.EventRow, 1));
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * @param {!Array<!proto.query.v1.EventRow>} value
2167
+ * @return {!proto.query.v1.QueryEventsResponse} returns this
2168
+ */
2169
+ proto.query.v1.QueryEventsResponse.prototype.setRowsList = function(value) {
2170
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * @param {!proto.query.v1.EventRow=} opt_value
2176
+ * @param {number=} opt_index
2177
+ * @return {!proto.query.v1.EventRow}
2178
+ */
2179
+ proto.query.v1.QueryEventsResponse.prototype.addRows = function(opt_value, opt_index) {
2180
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.query.v1.EventRow, opt_index);
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * Clears the list making it empty but non-null.
2186
+ * @return {!proto.query.v1.QueryEventsResponse} returns this
2187
+ */
2188
+ proto.query.v1.QueryEventsResponse.prototype.clearRowsList = function() {
2189
+ return this.setRowsList([]);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * repeated AggregationRow agg_rows = 2;
2195
+ * @return {!Array<!proto.query.v1.AggregationRow>}
2196
+ */
2197
+ proto.query.v1.QueryEventsResponse.prototype.getAggRowsList = function() {
2198
+ return /** @type{!Array<!proto.query.v1.AggregationRow>} */ (
2199
+ jspb.Message.getRepeatedWrapperField(this, proto.query.v1.AggregationRow, 2));
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * @param {!Array<!proto.query.v1.AggregationRow>} value
2205
+ * @return {!proto.query.v1.QueryEventsResponse} returns this
2206
+ */
2207
+ proto.query.v1.QueryEventsResponse.prototype.setAggRowsList = function(value) {
2208
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * @param {!proto.query.v1.AggregationRow=} opt_value
2214
+ * @param {number=} opt_index
2215
+ * @return {!proto.query.v1.AggregationRow}
2216
+ */
2217
+ proto.query.v1.QueryEventsResponse.prototype.addAggRows = function(opt_value, opt_index) {
2218
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.query.v1.AggregationRow, opt_index);
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * Clears the list making it empty but non-null.
2224
+ * @return {!proto.query.v1.QueryEventsResponse} returns this
2225
+ */
2226
+ proto.query.v1.QueryEventsResponse.prototype.clearAggRowsList = function() {
2227
+ return this.setAggRowsList([]);
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * optional int32 total = 3;
2233
+ * @return {number}
2234
+ */
2235
+ proto.query.v1.QueryEventsResponse.prototype.getTotal = function() {
2236
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2237
+ };
2238
+
2239
+
2240
+ /**
2241
+ * @param {number} value
2242
+ * @return {!proto.query.v1.QueryEventsResponse} returns this
2243
+ */
2244
+ proto.query.v1.QueryEventsResponse.prototype.setTotal = function(value) {
2245
+ return jspb.Message.setProto3IntField(this, 3, value);
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * @enum {number}
2251
+ */
2252
+ proto.query.v1.Operator = {
2253
+ OPERATOR_UNSPECIFIED: 0,
2254
+ EQ: 1,
2255
+ GT: 2,
2256
+ GTE: 3,
2257
+ LT: 4,
2258
+ LTE: 5,
2259
+ NEQ: 6
2260
+ };
2261
+
2262
+ /**
2263
+ * @enum {number}
2264
+ */
2265
+ proto.query.v1.AggregationType = {
2266
+ AGGREGATION_TYPE_UNSPECIFIED: 0,
2267
+ SUM: 1,
2268
+ COUNT: 2
2269
+ };
2270
+
2271
+ /**
2272
+ * @enum {number}
2273
+ */
2274
+ proto.query.v1.LogicalOperator = {
2275
+ LOGICAL_OPERATOR_UNSPECIFIED: 0,
2276
+ AND: 1,
2277
+ OR: 2
2278
+ };
2279
+
2280
+ /**
2281
+ * @enum {number}
2282
+ */
2283
+ proto.query.v1.SdkCallField = {
2284
+ SDK_CALL_FIELD_UNSPECIFIED: 0,
2285
+ SDK_CALL_EVENT_ID: 1,
2286
+ SDK_CALL_EVENT_TYPE: 2,
2287
+ SDK_CALL_USER_ID: 3,
2288
+ SDK_CALL_API_KEY_ID: 4,
2289
+ SDK_CALL_REPORTED_TIMESTAMP: 5,
2290
+ SDK_CALL_INGESTED_TIMESTAMP: 6,
2291
+ SDK_CALL_SDK_CALL_TYPE: 7,
2292
+ SDK_CALL_DEBIT_AMOUNT: 8
2293
+ };
2294
+
2295
+ /**
2296
+ * @enum {number}
2297
+ */
2298
+ proto.query.v1.AiTokenField = {
2299
+ AI_TOKEN_FIELD_UNSPECIFIED: 0,
2300
+ AI_TOKEN_EVENT_ID: 1,
2301
+ AI_TOKEN_EVENT_TYPE: 2,
2302
+ AI_TOKEN_USER_ID: 3,
2303
+ AI_TOKEN_API_KEY_ID: 4,
2304
+ AI_TOKEN_REPORTED_TIMESTAMP: 5,
2305
+ AI_TOKEN_INGESTED_TIMESTAMP: 6,
2306
+ AI_TOKEN_MODEL: 7,
2307
+ AI_TOKEN_INPUT_TOKENS: 8,
2308
+ AI_TOKEN_OUTPUT_TOKENS: 9,
2309
+ AI_TOKEN_INPUT_DEBIT_AMOUNT: 10,
2310
+ AI_TOKEN_OUTPUT_DEBIT_AMOUNT: 11
2311
+ };
2312
+
2313
+ /**
2314
+ * @enum {number}
2315
+ */
2316
+ proto.query.v1.PaymentField = {
2317
+ PAYMENT_FIELD_UNSPECIFIED: 0,
2318
+ PAYMENT_EVENT_ID: 1,
2319
+ PAYMENT_EVENT_TYPE: 2,
2320
+ PAYMENT_USER_ID: 3,
2321
+ PAYMENT_API_KEY_ID: 4,
2322
+ PAYMENT_REPORTED_TIMESTAMP: 5,
2323
+ PAYMENT_INGESTED_TIMESTAMP: 6,
2324
+ PAYMENT_CREDIT_AMOUNT: 7
2325
+ };
2326
+
2327
+ goog.object.extend(exports, proto.query.v1);