@miradorlabs/web-grpc 4.33.0 → 4.34.0
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.
- package/package.json +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +2005 -3596
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +0 -70
- package/proto/gateway/web/v1/ai_gateway_pb.js +8770 -11544
- package/proto/gateway/web/v1/ai_insights_gateway.ts +2692 -0
- package/proto/gateway/web/v1/ai_insights_gateway_grpc_pb.js +192 -0
- package/proto/gateway/web/v1/ai_insights_gateway_pb.js +4787 -0
|
@@ -0,0 +1,4787 @@
|
|
|
1
|
+
// source: proto/gateway/web/v1/ai_insights_gateway.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 = globalThis;
|
|
17
|
+
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
20
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
21
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
22
|
+
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
23
|
+
goog.object.extend(proto, proto_gateway_common_v1_status_pb);
|
|
24
|
+
var proto_gateway_web_v1_ai_gateway_pb = require('../../../../proto/gateway/web/v1/ai_gateway_pb.js');
|
|
25
|
+
goog.object.extend(proto, proto_gateway_web_v1_ai_gateway_pb);
|
|
26
|
+
goog.exportSymbol('proto.gateway.web.v1.AIInsightRating', null, global);
|
|
27
|
+
goog.exportSymbol('proto.gateway.web.v1.AIProjectInsight', null, global);
|
|
28
|
+
goog.exportSymbol('proto.gateway.web.v1.AIProjectInsightCard', null, global);
|
|
29
|
+
goog.exportSymbol('proto.gateway.web.v1.AIProjectInsightCitation', null, global);
|
|
30
|
+
goog.exportSymbol('proto.gateway.web.v1.AIProjectInsightKind', null, global);
|
|
31
|
+
goog.exportSymbol('proto.gateway.web.v1.BatchGetInsightRatingsRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.gateway.web.v1.BatchGetInsightRatingsResponse', null, global);
|
|
33
|
+
goog.exportSymbol('proto.gateway.web.v1.DeleteInsightRatingRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.gateway.web.v1.DeleteInsightRatingResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.gateway.web.v1.InsightRating', null, global);
|
|
36
|
+
goog.exportSymbol('proto.gateway.web.v1.InsightRef', null, global);
|
|
37
|
+
goog.exportSymbol('proto.gateway.web.v1.InsightRef.InsightCase', null, global);
|
|
38
|
+
goog.exportSymbol('proto.gateway.web.v1.ListProjectInsightCardsRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.gateway.web.v1.ListProjectInsightCardsResponse', null, global);
|
|
40
|
+
goog.exportSymbol('proto.gateway.web.v1.ListSessionInsightsRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.gateway.web.v1.ListSessionInsightsResponse', null, global);
|
|
42
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionInsightEntry', null, global);
|
|
43
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionInsightFilter', null, global);
|
|
44
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionInsightSort', null, global);
|
|
45
|
+
goog.exportSymbol('proto.gateway.web.v1.SetInsightRatingRequest', null, global);
|
|
46
|
+
goog.exportSymbol('proto.gateway.web.v1.SetInsightRatingResponse', null, global);
|
|
47
|
+
/**
|
|
48
|
+
* Generated by JsPbCodeGenerator.
|
|
49
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
50
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
51
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
52
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
53
|
+
* valid.
|
|
54
|
+
* @extends {jspb.Message}
|
|
55
|
+
* @constructor
|
|
56
|
+
*/
|
|
57
|
+
proto.gateway.web.v1.ListSessionInsightsRequest = function(opt_data) {
|
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
+
};
|
|
60
|
+
goog.inherits(proto.gateway.web.v1.ListSessionInsightsRequest, jspb.Message);
|
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @override
|
|
65
|
+
*/
|
|
66
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.displayName = 'proto.gateway.web.v1.ListSessionInsightsRequest';
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Generated by JsPbCodeGenerator.
|
|
70
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
71
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
72
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
73
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
74
|
+
* valid.
|
|
75
|
+
* @extends {jspb.Message}
|
|
76
|
+
* @constructor
|
|
77
|
+
*/
|
|
78
|
+
proto.gateway.web.v1.SessionInsightFilter = function(opt_data) {
|
|
79
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SessionInsightFilter.repeatedFields_, null);
|
|
80
|
+
};
|
|
81
|
+
goog.inherits(proto.gateway.web.v1.SessionInsightFilter, jspb.Message);
|
|
82
|
+
if (goog.DEBUG && !COMPILED) {
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @override
|
|
86
|
+
*/
|
|
87
|
+
proto.gateway.web.v1.SessionInsightFilter.displayName = 'proto.gateway.web.v1.SessionInsightFilter';
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Generated by JsPbCodeGenerator.
|
|
91
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
92
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
93
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
94
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
95
|
+
* valid.
|
|
96
|
+
* @extends {jspb.Message}
|
|
97
|
+
* @constructor
|
|
98
|
+
*/
|
|
99
|
+
proto.gateway.web.v1.ListSessionInsightsResponse = function(opt_data) {
|
|
100
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListSessionInsightsResponse.repeatedFields_, null);
|
|
101
|
+
};
|
|
102
|
+
goog.inherits(proto.gateway.web.v1.ListSessionInsightsResponse, jspb.Message);
|
|
103
|
+
if (goog.DEBUG && !COMPILED) {
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @override
|
|
107
|
+
*/
|
|
108
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.displayName = 'proto.gateway.web.v1.ListSessionInsightsResponse';
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Generated by JsPbCodeGenerator.
|
|
112
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
113
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
114
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
115
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
116
|
+
* valid.
|
|
117
|
+
* @extends {jspb.Message}
|
|
118
|
+
* @constructor
|
|
119
|
+
*/
|
|
120
|
+
proto.gateway.web.v1.SessionInsightEntry = function(opt_data) {
|
|
121
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
122
|
+
};
|
|
123
|
+
goog.inherits(proto.gateway.web.v1.SessionInsightEntry, jspb.Message);
|
|
124
|
+
if (goog.DEBUG && !COMPILED) {
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @override
|
|
128
|
+
*/
|
|
129
|
+
proto.gateway.web.v1.SessionInsightEntry.displayName = 'proto.gateway.web.v1.SessionInsightEntry';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Generated by JsPbCodeGenerator.
|
|
133
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
134
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
135
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
136
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
137
|
+
* valid.
|
|
138
|
+
* @extends {jspb.Message}
|
|
139
|
+
* @constructor
|
|
140
|
+
*/
|
|
141
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest = function(opt_data) {
|
|
142
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
143
|
+
};
|
|
144
|
+
goog.inherits(proto.gateway.web.v1.ListProjectInsightCardsRequest, jspb.Message);
|
|
145
|
+
if (goog.DEBUG && !COMPILED) {
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
* @override
|
|
149
|
+
*/
|
|
150
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.displayName = 'proto.gateway.web.v1.ListProjectInsightCardsRequest';
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Generated by JsPbCodeGenerator.
|
|
154
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
155
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
156
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
157
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
158
|
+
* valid.
|
|
159
|
+
* @extends {jspb.Message}
|
|
160
|
+
* @constructor
|
|
161
|
+
*/
|
|
162
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse = function(opt_data) {
|
|
163
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListProjectInsightCardsResponse.repeatedFields_, null);
|
|
164
|
+
};
|
|
165
|
+
goog.inherits(proto.gateway.web.v1.ListProjectInsightCardsResponse, jspb.Message);
|
|
166
|
+
if (goog.DEBUG && !COMPILED) {
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @override
|
|
170
|
+
*/
|
|
171
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.displayName = 'proto.gateway.web.v1.ListProjectInsightCardsResponse';
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Generated by JsPbCodeGenerator.
|
|
175
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
176
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
177
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
178
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
179
|
+
* valid.
|
|
180
|
+
* @extends {jspb.Message}
|
|
181
|
+
* @constructor
|
|
182
|
+
*/
|
|
183
|
+
proto.gateway.web.v1.AIProjectInsightCard = function(opt_data) {
|
|
184
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
185
|
+
};
|
|
186
|
+
goog.inherits(proto.gateway.web.v1.AIProjectInsightCard, jspb.Message);
|
|
187
|
+
if (goog.DEBUG && !COMPILED) {
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* @override
|
|
191
|
+
*/
|
|
192
|
+
proto.gateway.web.v1.AIProjectInsightCard.displayName = 'proto.gateway.web.v1.AIProjectInsightCard';
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Generated by JsPbCodeGenerator.
|
|
196
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
197
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
198
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
199
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
200
|
+
* valid.
|
|
201
|
+
* @extends {jspb.Message}
|
|
202
|
+
* @constructor
|
|
203
|
+
*/
|
|
204
|
+
proto.gateway.web.v1.AIProjectInsight = function(opt_data) {
|
|
205
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AIProjectInsight.repeatedFields_, null);
|
|
206
|
+
};
|
|
207
|
+
goog.inherits(proto.gateway.web.v1.AIProjectInsight, jspb.Message);
|
|
208
|
+
if (goog.DEBUG && !COMPILED) {
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* @override
|
|
212
|
+
*/
|
|
213
|
+
proto.gateway.web.v1.AIProjectInsight.displayName = 'proto.gateway.web.v1.AIProjectInsight';
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Generated by JsPbCodeGenerator.
|
|
217
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
218
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
219
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
220
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
221
|
+
* valid.
|
|
222
|
+
* @extends {jspb.Message}
|
|
223
|
+
* @constructor
|
|
224
|
+
*/
|
|
225
|
+
proto.gateway.web.v1.AIProjectInsightCitation = function(opt_data) {
|
|
226
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
227
|
+
};
|
|
228
|
+
goog.inherits(proto.gateway.web.v1.AIProjectInsightCitation, jspb.Message);
|
|
229
|
+
if (goog.DEBUG && !COMPILED) {
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
* @override
|
|
233
|
+
*/
|
|
234
|
+
proto.gateway.web.v1.AIProjectInsightCitation.displayName = 'proto.gateway.web.v1.AIProjectInsightCitation';
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Generated by JsPbCodeGenerator.
|
|
238
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
239
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
240
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
241
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
242
|
+
* valid.
|
|
243
|
+
* @extends {jspb.Message}
|
|
244
|
+
* @constructor
|
|
245
|
+
*/
|
|
246
|
+
proto.gateway.web.v1.InsightRef = function(opt_data) {
|
|
247
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.InsightRef.oneofGroups_);
|
|
248
|
+
};
|
|
249
|
+
goog.inherits(proto.gateway.web.v1.InsightRef, jspb.Message);
|
|
250
|
+
if (goog.DEBUG && !COMPILED) {
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
* @override
|
|
254
|
+
*/
|
|
255
|
+
proto.gateway.web.v1.InsightRef.displayName = 'proto.gateway.web.v1.InsightRef';
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Generated by JsPbCodeGenerator.
|
|
259
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
260
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
261
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
262
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
263
|
+
* valid.
|
|
264
|
+
* @extends {jspb.Message}
|
|
265
|
+
* @constructor
|
|
266
|
+
*/
|
|
267
|
+
proto.gateway.web.v1.InsightRating = function(opt_data) {
|
|
268
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
269
|
+
};
|
|
270
|
+
goog.inherits(proto.gateway.web.v1.InsightRating, jspb.Message);
|
|
271
|
+
if (goog.DEBUG && !COMPILED) {
|
|
272
|
+
/**
|
|
273
|
+
* @public
|
|
274
|
+
* @override
|
|
275
|
+
*/
|
|
276
|
+
proto.gateway.web.v1.InsightRating.displayName = 'proto.gateway.web.v1.InsightRating';
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Generated by JsPbCodeGenerator.
|
|
280
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
281
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
282
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
283
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
284
|
+
* valid.
|
|
285
|
+
* @extends {jspb.Message}
|
|
286
|
+
* @constructor
|
|
287
|
+
*/
|
|
288
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest = function(opt_data) {
|
|
289
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.BatchGetInsightRatingsRequest.repeatedFields_, null);
|
|
290
|
+
};
|
|
291
|
+
goog.inherits(proto.gateway.web.v1.BatchGetInsightRatingsRequest, jspb.Message);
|
|
292
|
+
if (goog.DEBUG && !COMPILED) {
|
|
293
|
+
/**
|
|
294
|
+
* @public
|
|
295
|
+
* @override
|
|
296
|
+
*/
|
|
297
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.displayName = 'proto.gateway.web.v1.BatchGetInsightRatingsRequest';
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Generated by JsPbCodeGenerator.
|
|
301
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
302
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
303
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
304
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
305
|
+
* valid.
|
|
306
|
+
* @extends {jspb.Message}
|
|
307
|
+
* @constructor
|
|
308
|
+
*/
|
|
309
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse = function(opt_data) {
|
|
310
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.BatchGetInsightRatingsResponse.repeatedFields_, null);
|
|
311
|
+
};
|
|
312
|
+
goog.inherits(proto.gateway.web.v1.BatchGetInsightRatingsResponse, jspb.Message);
|
|
313
|
+
if (goog.DEBUG && !COMPILED) {
|
|
314
|
+
/**
|
|
315
|
+
* @public
|
|
316
|
+
* @override
|
|
317
|
+
*/
|
|
318
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.displayName = 'proto.gateway.web.v1.BatchGetInsightRatingsResponse';
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Generated by JsPbCodeGenerator.
|
|
322
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
323
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
324
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
325
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
326
|
+
* valid.
|
|
327
|
+
* @extends {jspb.Message}
|
|
328
|
+
* @constructor
|
|
329
|
+
*/
|
|
330
|
+
proto.gateway.web.v1.SetInsightRatingRequest = function(opt_data) {
|
|
331
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
332
|
+
};
|
|
333
|
+
goog.inherits(proto.gateway.web.v1.SetInsightRatingRequest, jspb.Message);
|
|
334
|
+
if (goog.DEBUG && !COMPILED) {
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
* @override
|
|
338
|
+
*/
|
|
339
|
+
proto.gateway.web.v1.SetInsightRatingRequest.displayName = 'proto.gateway.web.v1.SetInsightRatingRequest';
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Generated by JsPbCodeGenerator.
|
|
343
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
344
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
345
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
346
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
347
|
+
* valid.
|
|
348
|
+
* @extends {jspb.Message}
|
|
349
|
+
* @constructor
|
|
350
|
+
*/
|
|
351
|
+
proto.gateway.web.v1.SetInsightRatingResponse = function(opt_data) {
|
|
352
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
353
|
+
};
|
|
354
|
+
goog.inherits(proto.gateway.web.v1.SetInsightRatingResponse, jspb.Message);
|
|
355
|
+
if (goog.DEBUG && !COMPILED) {
|
|
356
|
+
/**
|
|
357
|
+
* @public
|
|
358
|
+
* @override
|
|
359
|
+
*/
|
|
360
|
+
proto.gateway.web.v1.SetInsightRatingResponse.displayName = 'proto.gateway.web.v1.SetInsightRatingResponse';
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Generated by JsPbCodeGenerator.
|
|
364
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
365
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
366
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
367
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
368
|
+
* valid.
|
|
369
|
+
* @extends {jspb.Message}
|
|
370
|
+
* @constructor
|
|
371
|
+
*/
|
|
372
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest = function(opt_data) {
|
|
373
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
374
|
+
};
|
|
375
|
+
goog.inherits(proto.gateway.web.v1.DeleteInsightRatingRequest, jspb.Message);
|
|
376
|
+
if (goog.DEBUG && !COMPILED) {
|
|
377
|
+
/**
|
|
378
|
+
* @public
|
|
379
|
+
* @override
|
|
380
|
+
*/
|
|
381
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.displayName = 'proto.gateway.web.v1.DeleteInsightRatingRequest';
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Generated by JsPbCodeGenerator.
|
|
385
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
386
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
387
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
388
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
389
|
+
* valid.
|
|
390
|
+
* @extends {jspb.Message}
|
|
391
|
+
* @constructor
|
|
392
|
+
*/
|
|
393
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse = function(opt_data) {
|
|
394
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
395
|
+
};
|
|
396
|
+
goog.inherits(proto.gateway.web.v1.DeleteInsightRatingResponse, jspb.Message);
|
|
397
|
+
if (goog.DEBUG && !COMPILED) {
|
|
398
|
+
/**
|
|
399
|
+
* @public
|
|
400
|
+
* @override
|
|
401
|
+
*/
|
|
402
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.displayName = 'proto.gateway.web.v1.DeleteInsightRatingResponse';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
408
|
+
/**
|
|
409
|
+
* Creates an object representation of this proto.
|
|
410
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
411
|
+
* Optional fields that are not set will be set to undefined.
|
|
412
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
413
|
+
* For the list of reserved names please see:
|
|
414
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
415
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
416
|
+
* JSPB instance for transitional soy proto support:
|
|
417
|
+
* http://goto/soy-param-migration
|
|
418
|
+
* @return {!Object}
|
|
419
|
+
*/
|
|
420
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
421
|
+
return proto.gateway.web.v1.ListSessionInsightsRequest.toObject(opt_includeInstance, this);
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Static version of the {@see toObject} method.
|
|
427
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
428
|
+
* the JSPB instance for transitional soy proto support:
|
|
429
|
+
* http://goto/soy-param-migration
|
|
430
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsRequest} msg The msg instance to transform.
|
|
431
|
+
* @return {!Object}
|
|
432
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
433
|
+
*/
|
|
434
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.toObject = function(includeInstance, msg) {
|
|
435
|
+
var f, obj = {
|
|
436
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
437
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
438
|
+
filter: (f = msg.getFilter()) && proto.gateway.web.v1.SessionInsightFilter.toObject(includeInstance, f),
|
|
439
|
+
sort: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
440
|
+
pageSize: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
441
|
+
pageToken: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
if (includeInstance) {
|
|
445
|
+
obj.$jspbMessageInstance = msg;
|
|
446
|
+
}
|
|
447
|
+
return obj;
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Deserializes binary data (in protobuf wire format).
|
|
454
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
455
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest}
|
|
456
|
+
*/
|
|
457
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.deserializeBinary = function(bytes) {
|
|
458
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
459
|
+
var msg = new proto.gateway.web.v1.ListSessionInsightsRequest;
|
|
460
|
+
return proto.gateway.web.v1.ListSessionInsightsRequest.deserializeBinaryFromReader(msg, reader);
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
466
|
+
* given reader into the given message object.
|
|
467
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsRequest} msg The message object to deserialize into.
|
|
468
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
469
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest}
|
|
470
|
+
*/
|
|
471
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
472
|
+
while (reader.nextField()) {
|
|
473
|
+
if (reader.isEndGroup()) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
var field = reader.getFieldNumber();
|
|
477
|
+
switch (field) {
|
|
478
|
+
case 1:
|
|
479
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
480
|
+
msg.setOrganizationId(value);
|
|
481
|
+
break;
|
|
482
|
+
case 2:
|
|
483
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
484
|
+
msg.setProjectId(value);
|
|
485
|
+
break;
|
|
486
|
+
case 3:
|
|
487
|
+
var value = new proto.gateway.web.v1.SessionInsightFilter;
|
|
488
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionInsightFilter.deserializeBinaryFromReader);
|
|
489
|
+
msg.setFilter(value);
|
|
490
|
+
break;
|
|
491
|
+
case 4:
|
|
492
|
+
var value = /** @type {!proto.gateway.web.v1.SessionInsightSort} */ (reader.readEnum());
|
|
493
|
+
msg.setSort(value);
|
|
494
|
+
break;
|
|
495
|
+
case 5:
|
|
496
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
497
|
+
msg.setPageSize(value);
|
|
498
|
+
break;
|
|
499
|
+
case 6:
|
|
500
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
501
|
+
msg.setPageToken(value);
|
|
502
|
+
break;
|
|
503
|
+
default:
|
|
504
|
+
reader.skipField();
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return msg;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
514
|
+
* @return {!Uint8Array}
|
|
515
|
+
*/
|
|
516
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.serializeBinary = function() {
|
|
517
|
+
var writer = new jspb.BinaryWriter();
|
|
518
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.serializeBinaryToWriter(this, writer);
|
|
519
|
+
return writer.getResultBuffer();
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
525
|
+
* format), writing to the given BinaryWriter.
|
|
526
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsRequest} message
|
|
527
|
+
* @param {!jspb.BinaryWriter} writer
|
|
528
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
529
|
+
*/
|
|
530
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
531
|
+
var f = undefined;
|
|
532
|
+
f = message.getOrganizationId();
|
|
533
|
+
if (f.length > 0) {
|
|
534
|
+
writer.writeString(
|
|
535
|
+
1,
|
|
536
|
+
f
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
f = message.getProjectId();
|
|
540
|
+
if (f.length > 0) {
|
|
541
|
+
writer.writeString(
|
|
542
|
+
2,
|
|
543
|
+
f
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
f = message.getFilter();
|
|
547
|
+
if (f != null) {
|
|
548
|
+
writer.writeMessage(
|
|
549
|
+
3,
|
|
550
|
+
f,
|
|
551
|
+
proto.gateway.web.v1.SessionInsightFilter.serializeBinaryToWriter
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
f = message.getSort();
|
|
555
|
+
if (f !== 0.0) {
|
|
556
|
+
writer.writeEnum(
|
|
557
|
+
4,
|
|
558
|
+
f
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
f = message.getPageSize();
|
|
562
|
+
if (f !== 0) {
|
|
563
|
+
writer.writeInt32(
|
|
564
|
+
5,
|
|
565
|
+
f
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
f = message.getPageToken();
|
|
569
|
+
if (f.length > 0) {
|
|
570
|
+
writer.writeString(
|
|
571
|
+
6,
|
|
572
|
+
f
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* optional string organization_id = 1;
|
|
580
|
+
* @return {string}
|
|
581
|
+
*/
|
|
582
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getOrganizationId = function() {
|
|
583
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @param {string} value
|
|
589
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
590
|
+
*/
|
|
591
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setOrganizationId = function(value) {
|
|
592
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* optional string project_id = 2;
|
|
598
|
+
* @return {string}
|
|
599
|
+
*/
|
|
600
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getProjectId = function() {
|
|
601
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @param {string} value
|
|
607
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
608
|
+
*/
|
|
609
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setProjectId = function(value) {
|
|
610
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* optional SessionInsightFilter filter = 3;
|
|
616
|
+
* @return {?proto.gateway.web.v1.SessionInsightFilter}
|
|
617
|
+
*/
|
|
618
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getFilter = function() {
|
|
619
|
+
return /** @type{?proto.gateway.web.v1.SessionInsightFilter} */ (
|
|
620
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionInsightFilter, 3));
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @param {?proto.gateway.web.v1.SessionInsightFilter|undefined} value
|
|
626
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
627
|
+
*/
|
|
628
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setFilter = function(value) {
|
|
629
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Clears the message field making it undefined.
|
|
635
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
636
|
+
*/
|
|
637
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.clearFilter = function() {
|
|
638
|
+
return this.setFilter(undefined);
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Returns whether this field is set.
|
|
644
|
+
* @return {boolean}
|
|
645
|
+
*/
|
|
646
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.hasFilter = function() {
|
|
647
|
+
return jspb.Message.getField(this, 3) != null;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* optional SessionInsightSort sort = 4;
|
|
653
|
+
* @return {!proto.gateway.web.v1.SessionInsightSort}
|
|
654
|
+
*/
|
|
655
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getSort = function() {
|
|
656
|
+
return /** @type {!proto.gateway.web.v1.SessionInsightSort} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @param {!proto.gateway.web.v1.SessionInsightSort} value
|
|
662
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
663
|
+
*/
|
|
664
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setSort = function(value) {
|
|
665
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* optional int32 page_size = 5;
|
|
671
|
+
* @return {number}
|
|
672
|
+
*/
|
|
673
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getPageSize = function() {
|
|
674
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @param {number} value
|
|
680
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
681
|
+
*/
|
|
682
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setPageSize = function(value) {
|
|
683
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* optional string page_token = 6;
|
|
689
|
+
* @return {string}
|
|
690
|
+
*/
|
|
691
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.getPageToken = function() {
|
|
692
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* @param {string} value
|
|
698
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsRequest} returns this
|
|
699
|
+
*/
|
|
700
|
+
proto.gateway.web.v1.ListSessionInsightsRequest.prototype.setPageToken = function(value) {
|
|
701
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* List of repeated fields within this message type.
|
|
708
|
+
* @private {!Array<number>}
|
|
709
|
+
* @const
|
|
710
|
+
*/
|
|
711
|
+
proto.gateway.web.v1.SessionInsightFilter.repeatedFields_ = [1,2,3];
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
716
|
+
/**
|
|
717
|
+
* Creates an object representation of this proto.
|
|
718
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
719
|
+
* Optional fields that are not set will be set to undefined.
|
|
720
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
721
|
+
* For the list of reserved names please see:
|
|
722
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
723
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
724
|
+
* JSPB instance for transitional soy proto support:
|
|
725
|
+
* http://goto/soy-param-migration
|
|
726
|
+
* @return {!Object}
|
|
727
|
+
*/
|
|
728
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.toObject = function(opt_includeInstance) {
|
|
729
|
+
return proto.gateway.web.v1.SessionInsightFilter.toObject(opt_includeInstance, this);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Static version of the {@see toObject} method.
|
|
735
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
736
|
+
* the JSPB instance for transitional soy proto support:
|
|
737
|
+
* http://goto/soy-param-migration
|
|
738
|
+
* @param {!proto.gateway.web.v1.SessionInsightFilter} msg The msg instance to transform.
|
|
739
|
+
* @return {!Object}
|
|
740
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
741
|
+
*/
|
|
742
|
+
proto.gateway.web.v1.SessionInsightFilter.toObject = function(includeInstance, msg) {
|
|
743
|
+
var f, obj = {
|
|
744
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
745
|
+
sourceSystemsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
746
|
+
topicKeysList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
if (includeInstance) {
|
|
750
|
+
obj.$jspbMessageInstance = msg;
|
|
751
|
+
}
|
|
752
|
+
return obj;
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Deserializes binary data (in protobuf wire format).
|
|
759
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
760
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter}
|
|
761
|
+
*/
|
|
762
|
+
proto.gateway.web.v1.SessionInsightFilter.deserializeBinary = function(bytes) {
|
|
763
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
764
|
+
var msg = new proto.gateway.web.v1.SessionInsightFilter;
|
|
765
|
+
return proto.gateway.web.v1.SessionInsightFilter.deserializeBinaryFromReader(msg, reader);
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
771
|
+
* given reader into the given message object.
|
|
772
|
+
* @param {!proto.gateway.web.v1.SessionInsightFilter} msg The message object to deserialize into.
|
|
773
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
774
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter}
|
|
775
|
+
*/
|
|
776
|
+
proto.gateway.web.v1.SessionInsightFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
777
|
+
while (reader.nextField()) {
|
|
778
|
+
if (reader.isEndGroup()) {
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
var field = reader.getFieldNumber();
|
|
782
|
+
switch (field) {
|
|
783
|
+
case 1:
|
|
784
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
785
|
+
msg.addUserIds(value);
|
|
786
|
+
break;
|
|
787
|
+
case 2:
|
|
788
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
789
|
+
msg.addSourceSystems(value);
|
|
790
|
+
break;
|
|
791
|
+
case 3:
|
|
792
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
793
|
+
msg.addTopicKeys(value);
|
|
794
|
+
break;
|
|
795
|
+
default:
|
|
796
|
+
reader.skipField();
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
return msg;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
806
|
+
* @return {!Uint8Array}
|
|
807
|
+
*/
|
|
808
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.serializeBinary = function() {
|
|
809
|
+
var writer = new jspb.BinaryWriter();
|
|
810
|
+
proto.gateway.web.v1.SessionInsightFilter.serializeBinaryToWriter(this, writer);
|
|
811
|
+
return writer.getResultBuffer();
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
817
|
+
* format), writing to the given BinaryWriter.
|
|
818
|
+
* @param {!proto.gateway.web.v1.SessionInsightFilter} message
|
|
819
|
+
* @param {!jspb.BinaryWriter} writer
|
|
820
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
821
|
+
*/
|
|
822
|
+
proto.gateway.web.v1.SessionInsightFilter.serializeBinaryToWriter = function(message, writer) {
|
|
823
|
+
var f = undefined;
|
|
824
|
+
f = message.getUserIdsList();
|
|
825
|
+
if (f.length > 0) {
|
|
826
|
+
writer.writeRepeatedString(
|
|
827
|
+
1,
|
|
828
|
+
f
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
f = message.getSourceSystemsList();
|
|
832
|
+
if (f.length > 0) {
|
|
833
|
+
writer.writeRepeatedString(
|
|
834
|
+
2,
|
|
835
|
+
f
|
|
836
|
+
);
|
|
837
|
+
}
|
|
838
|
+
f = message.getTopicKeysList();
|
|
839
|
+
if (f.length > 0) {
|
|
840
|
+
writer.writeRepeatedString(
|
|
841
|
+
3,
|
|
842
|
+
f
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* repeated string user_ids = 1;
|
|
850
|
+
* @return {!Array<string>}
|
|
851
|
+
*/
|
|
852
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.getUserIdsList = function() {
|
|
853
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* @param {!Array<string>} value
|
|
859
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
860
|
+
*/
|
|
861
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.setUserIdsList = function(value) {
|
|
862
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* @param {string} value
|
|
868
|
+
* @param {number=} opt_index
|
|
869
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
870
|
+
*/
|
|
871
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.addUserIds = function(value, opt_index) {
|
|
872
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Clears the list making it empty but non-null.
|
|
878
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
879
|
+
*/
|
|
880
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.clearUserIdsList = function() {
|
|
881
|
+
return this.setUserIdsList([]);
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* repeated string source_systems = 2;
|
|
887
|
+
* @return {!Array<string>}
|
|
888
|
+
*/
|
|
889
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.getSourceSystemsList = function() {
|
|
890
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* @param {!Array<string>} value
|
|
896
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
897
|
+
*/
|
|
898
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.setSourceSystemsList = function(value) {
|
|
899
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* @param {string} value
|
|
905
|
+
* @param {number=} opt_index
|
|
906
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
907
|
+
*/
|
|
908
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.addSourceSystems = function(value, opt_index) {
|
|
909
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Clears the list making it empty but non-null.
|
|
915
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
916
|
+
*/
|
|
917
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.clearSourceSystemsList = function() {
|
|
918
|
+
return this.setSourceSystemsList([]);
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* repeated string topic_keys = 3;
|
|
924
|
+
* @return {!Array<string>}
|
|
925
|
+
*/
|
|
926
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.getTopicKeysList = function() {
|
|
927
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @param {!Array<string>} value
|
|
933
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
934
|
+
*/
|
|
935
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.setTopicKeysList = function(value) {
|
|
936
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* @param {string} value
|
|
942
|
+
* @param {number=} opt_index
|
|
943
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
944
|
+
*/
|
|
945
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.addTopicKeys = function(value, opt_index) {
|
|
946
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Clears the list making it empty but non-null.
|
|
952
|
+
* @return {!proto.gateway.web.v1.SessionInsightFilter} returns this
|
|
953
|
+
*/
|
|
954
|
+
proto.gateway.web.v1.SessionInsightFilter.prototype.clearTopicKeysList = function() {
|
|
955
|
+
return this.setTopicKeysList([]);
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* List of repeated fields within this message type.
|
|
962
|
+
* @private {!Array<number>}
|
|
963
|
+
* @const
|
|
964
|
+
*/
|
|
965
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.repeatedFields_ = [2];
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
970
|
+
/**
|
|
971
|
+
* Creates an object representation of this proto.
|
|
972
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
973
|
+
* Optional fields that are not set will be set to undefined.
|
|
974
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
975
|
+
* For the list of reserved names please see:
|
|
976
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
977
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
978
|
+
* JSPB instance for transitional soy proto support:
|
|
979
|
+
* http://goto/soy-param-migration
|
|
980
|
+
* @return {!Object}
|
|
981
|
+
*/
|
|
982
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
983
|
+
return proto.gateway.web.v1.ListSessionInsightsResponse.toObject(opt_includeInstance, this);
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Static version of the {@see toObject} method.
|
|
989
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
990
|
+
* the JSPB instance for transitional soy proto support:
|
|
991
|
+
* http://goto/soy-param-migration
|
|
992
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsResponse} msg The msg instance to transform.
|
|
993
|
+
* @return {!Object}
|
|
994
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
995
|
+
*/
|
|
996
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.toObject = function(includeInstance, msg) {
|
|
997
|
+
var f, obj = {
|
|
998
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
999
|
+
insightsList: jspb.Message.toObjectList(msg.getInsightsList(),
|
|
1000
|
+
proto.gateway.web.v1.SessionInsightEntry.toObject, includeInstance),
|
|
1001
|
+
nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
if (includeInstance) {
|
|
1005
|
+
obj.$jspbMessageInstance = msg;
|
|
1006
|
+
}
|
|
1007
|
+
return obj;
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1014
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
1015
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse}
|
|
1016
|
+
*/
|
|
1017
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.deserializeBinary = function(bytes) {
|
|
1018
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1019
|
+
var msg = new proto.gateway.web.v1.ListSessionInsightsResponse;
|
|
1020
|
+
return proto.gateway.web.v1.ListSessionInsightsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1026
|
+
* given reader into the given message object.
|
|
1027
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsResponse} msg The message object to deserialize into.
|
|
1028
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1029
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse}
|
|
1030
|
+
*/
|
|
1031
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1032
|
+
while (reader.nextField()) {
|
|
1033
|
+
if (reader.isEndGroup()) {
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
var field = reader.getFieldNumber();
|
|
1037
|
+
switch (field) {
|
|
1038
|
+
case 1:
|
|
1039
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
1040
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
1041
|
+
msg.setStatus(value);
|
|
1042
|
+
break;
|
|
1043
|
+
case 2:
|
|
1044
|
+
var value = new proto.gateway.web.v1.SessionInsightEntry;
|
|
1045
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionInsightEntry.deserializeBinaryFromReader);
|
|
1046
|
+
msg.addInsights(value);
|
|
1047
|
+
break;
|
|
1048
|
+
case 3:
|
|
1049
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1050
|
+
msg.setNextPageToken(value);
|
|
1051
|
+
break;
|
|
1052
|
+
default:
|
|
1053
|
+
reader.skipField();
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
return msg;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1063
|
+
* @return {!Uint8Array}
|
|
1064
|
+
*/
|
|
1065
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.serializeBinary = function() {
|
|
1066
|
+
var writer = new jspb.BinaryWriter();
|
|
1067
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.serializeBinaryToWriter(this, writer);
|
|
1068
|
+
return writer.getResultBuffer();
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1074
|
+
* format), writing to the given BinaryWriter.
|
|
1075
|
+
* @param {!proto.gateway.web.v1.ListSessionInsightsResponse} message
|
|
1076
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1077
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1078
|
+
*/
|
|
1079
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1080
|
+
var f = undefined;
|
|
1081
|
+
f = message.getStatus();
|
|
1082
|
+
if (f != null) {
|
|
1083
|
+
writer.writeMessage(
|
|
1084
|
+
1,
|
|
1085
|
+
f,
|
|
1086
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
f = message.getInsightsList();
|
|
1090
|
+
if (f.length > 0) {
|
|
1091
|
+
writer.writeRepeatedMessage(
|
|
1092
|
+
2,
|
|
1093
|
+
f,
|
|
1094
|
+
proto.gateway.web.v1.SessionInsightEntry.serializeBinaryToWriter
|
|
1095
|
+
);
|
|
1096
|
+
}
|
|
1097
|
+
f = message.getNextPageToken();
|
|
1098
|
+
if (f.length > 0) {
|
|
1099
|
+
writer.writeString(
|
|
1100
|
+
3,
|
|
1101
|
+
f
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
1109
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
1110
|
+
*/
|
|
1111
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.getStatus = function() {
|
|
1112
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
1113
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
1119
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse} returns this
|
|
1120
|
+
*/
|
|
1121
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.setStatus = function(value) {
|
|
1122
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Clears the message field making it undefined.
|
|
1128
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse} returns this
|
|
1129
|
+
*/
|
|
1130
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.clearStatus = function() {
|
|
1131
|
+
return this.setStatus(undefined);
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Returns whether this field is set.
|
|
1137
|
+
* @return {boolean}
|
|
1138
|
+
*/
|
|
1139
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.hasStatus = function() {
|
|
1140
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* repeated SessionInsightEntry insights = 2;
|
|
1146
|
+
* @return {!Array<!proto.gateway.web.v1.SessionInsightEntry>}
|
|
1147
|
+
*/
|
|
1148
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.getInsightsList = function() {
|
|
1149
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionInsightEntry>} */ (
|
|
1150
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionInsightEntry, 2));
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @param {!Array<!proto.gateway.web.v1.SessionInsightEntry>} value
|
|
1156
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse} returns this
|
|
1157
|
+
*/
|
|
1158
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.setInsightsList = function(value) {
|
|
1159
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* @param {!proto.gateway.web.v1.SessionInsightEntry=} opt_value
|
|
1165
|
+
* @param {number=} opt_index
|
|
1166
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry}
|
|
1167
|
+
*/
|
|
1168
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.addInsights = function(opt_value, opt_index) {
|
|
1169
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SessionInsightEntry, opt_index);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Clears the list making it empty but non-null.
|
|
1175
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse} returns this
|
|
1176
|
+
*/
|
|
1177
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.clearInsightsList = function() {
|
|
1178
|
+
return this.setInsightsList([]);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* optional string next_page_token = 3;
|
|
1184
|
+
* @return {string}
|
|
1185
|
+
*/
|
|
1186
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.getNextPageToken = function() {
|
|
1187
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* @param {string} value
|
|
1193
|
+
* @return {!proto.gateway.web.v1.ListSessionInsightsResponse} returns this
|
|
1194
|
+
*/
|
|
1195
|
+
proto.gateway.web.v1.ListSessionInsightsResponse.prototype.setNextPageToken = function(value) {
|
|
1196
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1204
|
+
/**
|
|
1205
|
+
* Creates an object representation of this proto.
|
|
1206
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1207
|
+
* Optional fields that are not set will be set to undefined.
|
|
1208
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1209
|
+
* For the list of reserved names please see:
|
|
1210
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1211
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1212
|
+
* JSPB instance for transitional soy proto support:
|
|
1213
|
+
* http://goto/soy-param-migration
|
|
1214
|
+
* @return {!Object}
|
|
1215
|
+
*/
|
|
1216
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.toObject = function(opt_includeInstance) {
|
|
1217
|
+
return proto.gateway.web.v1.SessionInsightEntry.toObject(opt_includeInstance, this);
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Static version of the {@see toObject} method.
|
|
1223
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1224
|
+
* the JSPB instance for transitional soy proto support:
|
|
1225
|
+
* http://goto/soy-param-migration
|
|
1226
|
+
* @param {!proto.gateway.web.v1.SessionInsightEntry} msg The msg instance to transform.
|
|
1227
|
+
* @return {!Object}
|
|
1228
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1229
|
+
*/
|
|
1230
|
+
proto.gateway.web.v1.SessionInsightEntry.toObject = function(includeInstance, msg) {
|
|
1231
|
+
var f, obj = {
|
|
1232
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1233
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1234
|
+
analyzedAt: (f = msg.getAnalyzedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1235
|
+
insight: (f = msg.getInsight()) && proto_gateway_web_v1_ai_gateway_pb.AISessionInsight.toObject(includeInstance, f)
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
if (includeInstance) {
|
|
1239
|
+
obj.$jspbMessageInstance = msg;
|
|
1240
|
+
}
|
|
1241
|
+
return obj;
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1248
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
1249
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry}
|
|
1250
|
+
*/
|
|
1251
|
+
proto.gateway.web.v1.SessionInsightEntry.deserializeBinary = function(bytes) {
|
|
1252
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1253
|
+
var msg = new proto.gateway.web.v1.SessionInsightEntry;
|
|
1254
|
+
return proto.gateway.web.v1.SessionInsightEntry.deserializeBinaryFromReader(msg, reader);
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1260
|
+
* given reader into the given message object.
|
|
1261
|
+
* @param {!proto.gateway.web.v1.SessionInsightEntry} msg The message object to deserialize into.
|
|
1262
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1263
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry}
|
|
1264
|
+
*/
|
|
1265
|
+
proto.gateway.web.v1.SessionInsightEntry.deserializeBinaryFromReader = function(msg, reader) {
|
|
1266
|
+
while (reader.nextField()) {
|
|
1267
|
+
if (reader.isEndGroup()) {
|
|
1268
|
+
break;
|
|
1269
|
+
}
|
|
1270
|
+
var field = reader.getFieldNumber();
|
|
1271
|
+
switch (field) {
|
|
1272
|
+
case 1:
|
|
1273
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1274
|
+
msg.setSourceSystem(value);
|
|
1275
|
+
break;
|
|
1276
|
+
case 2:
|
|
1277
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1278
|
+
msg.setSessionId(value);
|
|
1279
|
+
break;
|
|
1280
|
+
case 3:
|
|
1281
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1282
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1283
|
+
msg.setAnalyzedAt(value);
|
|
1284
|
+
break;
|
|
1285
|
+
case 4:
|
|
1286
|
+
var value = new proto_gateway_web_v1_ai_gateway_pb.AISessionInsight;
|
|
1287
|
+
reader.readMessage(value,proto_gateway_web_v1_ai_gateway_pb.AISessionInsight.deserializeBinaryFromReader);
|
|
1288
|
+
msg.setInsight(value);
|
|
1289
|
+
break;
|
|
1290
|
+
default:
|
|
1291
|
+
reader.skipField();
|
|
1292
|
+
break;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
return msg;
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1301
|
+
* @return {!Uint8Array}
|
|
1302
|
+
*/
|
|
1303
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.serializeBinary = function() {
|
|
1304
|
+
var writer = new jspb.BinaryWriter();
|
|
1305
|
+
proto.gateway.web.v1.SessionInsightEntry.serializeBinaryToWriter(this, writer);
|
|
1306
|
+
return writer.getResultBuffer();
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1312
|
+
* format), writing to the given BinaryWriter.
|
|
1313
|
+
* @param {!proto.gateway.web.v1.SessionInsightEntry} message
|
|
1314
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1315
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1316
|
+
*/
|
|
1317
|
+
proto.gateway.web.v1.SessionInsightEntry.serializeBinaryToWriter = function(message, writer) {
|
|
1318
|
+
var f = undefined;
|
|
1319
|
+
f = message.getSourceSystem();
|
|
1320
|
+
if (f.length > 0) {
|
|
1321
|
+
writer.writeString(
|
|
1322
|
+
1,
|
|
1323
|
+
f
|
|
1324
|
+
);
|
|
1325
|
+
}
|
|
1326
|
+
f = message.getSessionId();
|
|
1327
|
+
if (f.length > 0) {
|
|
1328
|
+
writer.writeString(
|
|
1329
|
+
2,
|
|
1330
|
+
f
|
|
1331
|
+
);
|
|
1332
|
+
}
|
|
1333
|
+
f = message.getAnalyzedAt();
|
|
1334
|
+
if (f != null) {
|
|
1335
|
+
writer.writeMessage(
|
|
1336
|
+
3,
|
|
1337
|
+
f,
|
|
1338
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1339
|
+
);
|
|
1340
|
+
}
|
|
1341
|
+
f = message.getInsight();
|
|
1342
|
+
if (f != null) {
|
|
1343
|
+
writer.writeMessage(
|
|
1344
|
+
4,
|
|
1345
|
+
f,
|
|
1346
|
+
proto_gateway_web_v1_ai_gateway_pb.AISessionInsight.serializeBinaryToWriter
|
|
1347
|
+
);
|
|
1348
|
+
}
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* optional string source_system = 1;
|
|
1354
|
+
* @return {string}
|
|
1355
|
+
*/
|
|
1356
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.getSourceSystem = function() {
|
|
1357
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string} value
|
|
1363
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1364
|
+
*/
|
|
1365
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.setSourceSystem = function(value) {
|
|
1366
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* optional string session_id = 2;
|
|
1372
|
+
* @return {string}
|
|
1373
|
+
*/
|
|
1374
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.getSessionId = function() {
|
|
1375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* @param {string} value
|
|
1381
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1382
|
+
*/
|
|
1383
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.setSessionId = function(value) {
|
|
1384
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* optional google.protobuf.Timestamp analyzed_at = 3;
|
|
1390
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1391
|
+
*/
|
|
1392
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.getAnalyzedAt = function() {
|
|
1393
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1394
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1400
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1401
|
+
*/
|
|
1402
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.setAnalyzedAt = function(value) {
|
|
1403
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Clears the message field making it undefined.
|
|
1409
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1410
|
+
*/
|
|
1411
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.clearAnalyzedAt = function() {
|
|
1412
|
+
return this.setAnalyzedAt(undefined);
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Returns whether this field is set.
|
|
1418
|
+
* @return {boolean}
|
|
1419
|
+
*/
|
|
1420
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.hasAnalyzedAt = function() {
|
|
1421
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* optional AISessionInsight insight = 4;
|
|
1427
|
+
* @return {?proto.gateway.web.v1.AISessionInsight}
|
|
1428
|
+
*/
|
|
1429
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.getInsight = function() {
|
|
1430
|
+
return /** @type{?proto.gateway.web.v1.AISessionInsight} */ (
|
|
1431
|
+
jspb.Message.getWrapperField(this, proto_gateway_web_v1_ai_gateway_pb.AISessionInsight, 4));
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* @param {?proto.gateway.web.v1.AISessionInsight|undefined} value
|
|
1437
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1438
|
+
*/
|
|
1439
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.setInsight = function(value) {
|
|
1440
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Clears the message field making it undefined.
|
|
1446
|
+
* @return {!proto.gateway.web.v1.SessionInsightEntry} returns this
|
|
1447
|
+
*/
|
|
1448
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.clearInsight = function() {
|
|
1449
|
+
return this.setInsight(undefined);
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Returns whether this field is set.
|
|
1455
|
+
* @return {boolean}
|
|
1456
|
+
*/
|
|
1457
|
+
proto.gateway.web.v1.SessionInsightEntry.prototype.hasInsight = function() {
|
|
1458
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1466
|
+
/**
|
|
1467
|
+
* Creates an object representation of this proto.
|
|
1468
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1469
|
+
* Optional fields that are not set will be set to undefined.
|
|
1470
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1471
|
+
* For the list of reserved names please see:
|
|
1472
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1473
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1474
|
+
* JSPB instance for transitional soy proto support:
|
|
1475
|
+
* http://goto/soy-param-migration
|
|
1476
|
+
* @return {!Object}
|
|
1477
|
+
*/
|
|
1478
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1479
|
+
return proto.gateway.web.v1.ListProjectInsightCardsRequest.toObject(opt_includeInstance, this);
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Static version of the {@see toObject} method.
|
|
1485
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1486
|
+
* the JSPB instance for transitional soy proto support:
|
|
1487
|
+
* http://goto/soy-param-migration
|
|
1488
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsRequest} msg The msg instance to transform.
|
|
1489
|
+
* @return {!Object}
|
|
1490
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1491
|
+
*/
|
|
1492
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.toObject = function(includeInstance, msg) {
|
|
1493
|
+
var f, obj = {
|
|
1494
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1495
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1496
|
+
pageSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1497
|
+
pageToken: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
if (includeInstance) {
|
|
1501
|
+
obj.$jspbMessageInstance = msg;
|
|
1502
|
+
}
|
|
1503
|
+
return obj;
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1510
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
1511
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest}
|
|
1512
|
+
*/
|
|
1513
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.deserializeBinary = function(bytes) {
|
|
1514
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1515
|
+
var msg = new proto.gateway.web.v1.ListProjectInsightCardsRequest;
|
|
1516
|
+
return proto.gateway.web.v1.ListProjectInsightCardsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1522
|
+
* given reader into the given message object.
|
|
1523
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsRequest} msg The message object to deserialize into.
|
|
1524
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1525
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest}
|
|
1526
|
+
*/
|
|
1527
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1528
|
+
while (reader.nextField()) {
|
|
1529
|
+
if (reader.isEndGroup()) {
|
|
1530
|
+
break;
|
|
1531
|
+
}
|
|
1532
|
+
var field = reader.getFieldNumber();
|
|
1533
|
+
switch (field) {
|
|
1534
|
+
case 1:
|
|
1535
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1536
|
+
msg.setOrganizationId(value);
|
|
1537
|
+
break;
|
|
1538
|
+
case 2:
|
|
1539
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1540
|
+
msg.setProjectId(value);
|
|
1541
|
+
break;
|
|
1542
|
+
case 3:
|
|
1543
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1544
|
+
msg.setPageSize(value);
|
|
1545
|
+
break;
|
|
1546
|
+
case 4:
|
|
1547
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1548
|
+
msg.setPageToken(value);
|
|
1549
|
+
break;
|
|
1550
|
+
default:
|
|
1551
|
+
reader.skipField();
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
return msg;
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1561
|
+
* @return {!Uint8Array}
|
|
1562
|
+
*/
|
|
1563
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.serializeBinary = function() {
|
|
1564
|
+
var writer = new jspb.BinaryWriter();
|
|
1565
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.serializeBinaryToWriter(this, writer);
|
|
1566
|
+
return writer.getResultBuffer();
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1572
|
+
* format), writing to the given BinaryWriter.
|
|
1573
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsRequest} message
|
|
1574
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1575
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1576
|
+
*/
|
|
1577
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1578
|
+
var f = undefined;
|
|
1579
|
+
f = message.getOrganizationId();
|
|
1580
|
+
if (f.length > 0) {
|
|
1581
|
+
writer.writeString(
|
|
1582
|
+
1,
|
|
1583
|
+
f
|
|
1584
|
+
);
|
|
1585
|
+
}
|
|
1586
|
+
f = message.getProjectId();
|
|
1587
|
+
if (f.length > 0) {
|
|
1588
|
+
writer.writeString(
|
|
1589
|
+
2,
|
|
1590
|
+
f
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
f = message.getPageSize();
|
|
1594
|
+
if (f !== 0) {
|
|
1595
|
+
writer.writeInt32(
|
|
1596
|
+
3,
|
|
1597
|
+
f
|
|
1598
|
+
);
|
|
1599
|
+
}
|
|
1600
|
+
f = message.getPageToken();
|
|
1601
|
+
if (f.length > 0) {
|
|
1602
|
+
writer.writeString(
|
|
1603
|
+
4,
|
|
1604
|
+
f
|
|
1605
|
+
);
|
|
1606
|
+
}
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* optional string organization_id = 1;
|
|
1612
|
+
* @return {string}
|
|
1613
|
+
*/
|
|
1614
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.getOrganizationId = function() {
|
|
1615
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* @param {string} value
|
|
1621
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest} returns this
|
|
1622
|
+
*/
|
|
1623
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.setOrganizationId = function(value) {
|
|
1624
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* optional string project_id = 2;
|
|
1630
|
+
* @return {string}
|
|
1631
|
+
*/
|
|
1632
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.getProjectId = function() {
|
|
1633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @param {string} value
|
|
1639
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest} returns this
|
|
1640
|
+
*/
|
|
1641
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.setProjectId = function(value) {
|
|
1642
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* optional int32 page_size = 3;
|
|
1648
|
+
* @return {number}
|
|
1649
|
+
*/
|
|
1650
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.getPageSize = function() {
|
|
1651
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* @param {number} value
|
|
1657
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest} returns this
|
|
1658
|
+
*/
|
|
1659
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.setPageSize = function(value) {
|
|
1660
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* optional string page_token = 4;
|
|
1666
|
+
* @return {string}
|
|
1667
|
+
*/
|
|
1668
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.getPageToken = function() {
|
|
1669
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* @param {string} value
|
|
1675
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsRequest} returns this
|
|
1676
|
+
*/
|
|
1677
|
+
proto.gateway.web.v1.ListProjectInsightCardsRequest.prototype.setPageToken = function(value) {
|
|
1678
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* List of repeated fields within this message type.
|
|
1685
|
+
* @private {!Array<number>}
|
|
1686
|
+
* @const
|
|
1687
|
+
*/
|
|
1688
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.repeatedFields_ = [2];
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1693
|
+
/**
|
|
1694
|
+
* Creates an object representation of this proto.
|
|
1695
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1696
|
+
* Optional fields that are not set will be set to undefined.
|
|
1697
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1698
|
+
* For the list of reserved names please see:
|
|
1699
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1700
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1701
|
+
* JSPB instance for transitional soy proto support:
|
|
1702
|
+
* http://goto/soy-param-migration
|
|
1703
|
+
* @return {!Object}
|
|
1704
|
+
*/
|
|
1705
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1706
|
+
return proto.gateway.web.v1.ListProjectInsightCardsResponse.toObject(opt_includeInstance, this);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Static version of the {@see toObject} method.
|
|
1712
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1713
|
+
* the JSPB instance for transitional soy proto support:
|
|
1714
|
+
* http://goto/soy-param-migration
|
|
1715
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsResponse} msg The msg instance to transform.
|
|
1716
|
+
* @return {!Object}
|
|
1717
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1718
|
+
*/
|
|
1719
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.toObject = function(includeInstance, msg) {
|
|
1720
|
+
var f, obj = {
|
|
1721
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
1722
|
+
cardsList: jspb.Message.toObjectList(msg.getCardsList(),
|
|
1723
|
+
proto.gateway.web.v1.AIProjectInsightCard.toObject, includeInstance),
|
|
1724
|
+
nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1725
|
+
};
|
|
1726
|
+
|
|
1727
|
+
if (includeInstance) {
|
|
1728
|
+
obj.$jspbMessageInstance = msg;
|
|
1729
|
+
}
|
|
1730
|
+
return obj;
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1737
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
1738
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse}
|
|
1739
|
+
*/
|
|
1740
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.deserializeBinary = function(bytes) {
|
|
1741
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1742
|
+
var msg = new proto.gateway.web.v1.ListProjectInsightCardsResponse;
|
|
1743
|
+
return proto.gateway.web.v1.ListProjectInsightCardsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1749
|
+
* given reader into the given message object.
|
|
1750
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsResponse} msg The message object to deserialize into.
|
|
1751
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1752
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse}
|
|
1753
|
+
*/
|
|
1754
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1755
|
+
while (reader.nextField()) {
|
|
1756
|
+
if (reader.isEndGroup()) {
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
var field = reader.getFieldNumber();
|
|
1760
|
+
switch (field) {
|
|
1761
|
+
case 1:
|
|
1762
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
1763
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
1764
|
+
msg.setStatus(value);
|
|
1765
|
+
break;
|
|
1766
|
+
case 2:
|
|
1767
|
+
var value = new proto.gateway.web.v1.AIProjectInsightCard;
|
|
1768
|
+
reader.readMessage(value,proto.gateway.web.v1.AIProjectInsightCard.deserializeBinaryFromReader);
|
|
1769
|
+
msg.addCards(value);
|
|
1770
|
+
break;
|
|
1771
|
+
case 3:
|
|
1772
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1773
|
+
msg.setNextPageToken(value);
|
|
1774
|
+
break;
|
|
1775
|
+
default:
|
|
1776
|
+
reader.skipField();
|
|
1777
|
+
break;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
return msg;
|
|
1781
|
+
};
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1786
|
+
* @return {!Uint8Array}
|
|
1787
|
+
*/
|
|
1788
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.serializeBinary = function() {
|
|
1789
|
+
var writer = new jspb.BinaryWriter();
|
|
1790
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.serializeBinaryToWriter(this, writer);
|
|
1791
|
+
return writer.getResultBuffer();
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1797
|
+
* format), writing to the given BinaryWriter.
|
|
1798
|
+
* @param {!proto.gateway.web.v1.ListProjectInsightCardsResponse} message
|
|
1799
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1800
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1801
|
+
*/
|
|
1802
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1803
|
+
var f = undefined;
|
|
1804
|
+
f = message.getStatus();
|
|
1805
|
+
if (f != null) {
|
|
1806
|
+
writer.writeMessage(
|
|
1807
|
+
1,
|
|
1808
|
+
f,
|
|
1809
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
1810
|
+
);
|
|
1811
|
+
}
|
|
1812
|
+
f = message.getCardsList();
|
|
1813
|
+
if (f.length > 0) {
|
|
1814
|
+
writer.writeRepeatedMessage(
|
|
1815
|
+
2,
|
|
1816
|
+
f,
|
|
1817
|
+
proto.gateway.web.v1.AIProjectInsightCard.serializeBinaryToWriter
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
f = message.getNextPageToken();
|
|
1821
|
+
if (f.length > 0) {
|
|
1822
|
+
writer.writeString(
|
|
1823
|
+
3,
|
|
1824
|
+
f
|
|
1825
|
+
);
|
|
1826
|
+
}
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
1832
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
1833
|
+
*/
|
|
1834
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.getStatus = function() {
|
|
1835
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
1836
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
1842
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse} returns this
|
|
1843
|
+
*/
|
|
1844
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.setStatus = function(value) {
|
|
1845
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Clears the message field making it undefined.
|
|
1851
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse} returns this
|
|
1852
|
+
*/
|
|
1853
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.clearStatus = function() {
|
|
1854
|
+
return this.setStatus(undefined);
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Returns whether this field is set.
|
|
1860
|
+
* @return {boolean}
|
|
1861
|
+
*/
|
|
1862
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.hasStatus = function() {
|
|
1863
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* repeated AIProjectInsightCard cards = 2;
|
|
1869
|
+
* @return {!Array<!proto.gateway.web.v1.AIProjectInsightCard>}
|
|
1870
|
+
*/
|
|
1871
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.getCardsList = function() {
|
|
1872
|
+
return /** @type{!Array<!proto.gateway.web.v1.AIProjectInsightCard>} */ (
|
|
1873
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIProjectInsightCard, 2));
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* @param {!Array<!proto.gateway.web.v1.AIProjectInsightCard>} value
|
|
1879
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse} returns this
|
|
1880
|
+
*/
|
|
1881
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.setCardsList = function(value) {
|
|
1882
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCard=} opt_value
|
|
1888
|
+
* @param {number=} opt_index
|
|
1889
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard}
|
|
1890
|
+
*/
|
|
1891
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.addCards = function(opt_value, opt_index) {
|
|
1892
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AIProjectInsightCard, opt_index);
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* Clears the list making it empty but non-null.
|
|
1898
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse} returns this
|
|
1899
|
+
*/
|
|
1900
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.clearCardsList = function() {
|
|
1901
|
+
return this.setCardsList([]);
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* optional string next_page_token = 3;
|
|
1907
|
+
* @return {string}
|
|
1908
|
+
*/
|
|
1909
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.getNextPageToken = function() {
|
|
1910
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* @param {string} value
|
|
1916
|
+
* @return {!proto.gateway.web.v1.ListProjectInsightCardsResponse} returns this
|
|
1917
|
+
*/
|
|
1918
|
+
proto.gateway.web.v1.ListProjectInsightCardsResponse.prototype.setNextPageToken = function(value) {
|
|
1919
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1927
|
+
/**
|
|
1928
|
+
* Creates an object representation of this proto.
|
|
1929
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1930
|
+
* Optional fields that are not set will be set to undefined.
|
|
1931
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1932
|
+
* For the list of reserved names please see:
|
|
1933
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1934
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1935
|
+
* JSPB instance for transitional soy proto support:
|
|
1936
|
+
* http://goto/soy-param-migration
|
|
1937
|
+
* @return {!Object}
|
|
1938
|
+
*/
|
|
1939
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.toObject = function(opt_includeInstance) {
|
|
1940
|
+
return proto.gateway.web.v1.AIProjectInsightCard.toObject(opt_includeInstance, this);
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Static version of the {@see toObject} method.
|
|
1946
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1947
|
+
* the JSPB instance for transitional soy proto support:
|
|
1948
|
+
* http://goto/soy-param-migration
|
|
1949
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCard} msg The msg instance to transform.
|
|
1950
|
+
* @return {!Object}
|
|
1951
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1952
|
+
*/
|
|
1953
|
+
proto.gateway.web.v1.AIProjectInsightCard.toObject = function(includeInstance, msg) {
|
|
1954
|
+
var f, obj = {
|
|
1955
|
+
insight: (f = msg.getInsight()) && proto.gateway.web.v1.AIProjectInsight.toObject(includeInstance, f),
|
|
1956
|
+
runId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1957
|
+
localDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1958
|
+
timeZone: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1959
|
+
windowClosed: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
1960
|
+
analyzedAt: (f = msg.getAnalyzedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
if (includeInstance) {
|
|
1964
|
+
obj.$jspbMessageInstance = msg;
|
|
1965
|
+
}
|
|
1966
|
+
return obj;
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1973
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
1974
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard}
|
|
1975
|
+
*/
|
|
1976
|
+
proto.gateway.web.v1.AIProjectInsightCard.deserializeBinary = function(bytes) {
|
|
1977
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1978
|
+
var msg = new proto.gateway.web.v1.AIProjectInsightCard;
|
|
1979
|
+
return proto.gateway.web.v1.AIProjectInsightCard.deserializeBinaryFromReader(msg, reader);
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1985
|
+
* given reader into the given message object.
|
|
1986
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCard} msg The message object to deserialize into.
|
|
1987
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1988
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard}
|
|
1989
|
+
*/
|
|
1990
|
+
proto.gateway.web.v1.AIProjectInsightCard.deserializeBinaryFromReader = function(msg, reader) {
|
|
1991
|
+
while (reader.nextField()) {
|
|
1992
|
+
if (reader.isEndGroup()) {
|
|
1993
|
+
break;
|
|
1994
|
+
}
|
|
1995
|
+
var field = reader.getFieldNumber();
|
|
1996
|
+
switch (field) {
|
|
1997
|
+
case 1:
|
|
1998
|
+
var value = new proto.gateway.web.v1.AIProjectInsight;
|
|
1999
|
+
reader.readMessage(value,proto.gateway.web.v1.AIProjectInsight.deserializeBinaryFromReader);
|
|
2000
|
+
msg.setInsight(value);
|
|
2001
|
+
break;
|
|
2002
|
+
case 2:
|
|
2003
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2004
|
+
msg.setRunId(value);
|
|
2005
|
+
break;
|
|
2006
|
+
case 3:
|
|
2007
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2008
|
+
msg.setLocalDate(value);
|
|
2009
|
+
break;
|
|
2010
|
+
case 4:
|
|
2011
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2012
|
+
msg.setTimeZone(value);
|
|
2013
|
+
break;
|
|
2014
|
+
case 5:
|
|
2015
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2016
|
+
msg.setWindowClosed(value);
|
|
2017
|
+
break;
|
|
2018
|
+
case 6:
|
|
2019
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2020
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2021
|
+
msg.setAnalyzedAt(value);
|
|
2022
|
+
break;
|
|
2023
|
+
default:
|
|
2024
|
+
reader.skipField();
|
|
2025
|
+
break;
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
return msg;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2034
|
+
* @return {!Uint8Array}
|
|
2035
|
+
*/
|
|
2036
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.serializeBinary = function() {
|
|
2037
|
+
var writer = new jspb.BinaryWriter();
|
|
2038
|
+
proto.gateway.web.v1.AIProjectInsightCard.serializeBinaryToWriter(this, writer);
|
|
2039
|
+
return writer.getResultBuffer();
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2045
|
+
* format), writing to the given BinaryWriter.
|
|
2046
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCard} message
|
|
2047
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2049
|
+
*/
|
|
2050
|
+
proto.gateway.web.v1.AIProjectInsightCard.serializeBinaryToWriter = function(message, writer) {
|
|
2051
|
+
var f = undefined;
|
|
2052
|
+
f = message.getInsight();
|
|
2053
|
+
if (f != null) {
|
|
2054
|
+
writer.writeMessage(
|
|
2055
|
+
1,
|
|
2056
|
+
f,
|
|
2057
|
+
proto.gateway.web.v1.AIProjectInsight.serializeBinaryToWriter
|
|
2058
|
+
);
|
|
2059
|
+
}
|
|
2060
|
+
f = message.getRunId();
|
|
2061
|
+
if (f.length > 0) {
|
|
2062
|
+
writer.writeString(
|
|
2063
|
+
2,
|
|
2064
|
+
f
|
|
2065
|
+
);
|
|
2066
|
+
}
|
|
2067
|
+
f = message.getLocalDate();
|
|
2068
|
+
if (f.length > 0) {
|
|
2069
|
+
writer.writeString(
|
|
2070
|
+
3,
|
|
2071
|
+
f
|
|
2072
|
+
);
|
|
2073
|
+
}
|
|
2074
|
+
f = message.getTimeZone();
|
|
2075
|
+
if (f.length > 0) {
|
|
2076
|
+
writer.writeString(
|
|
2077
|
+
4,
|
|
2078
|
+
f
|
|
2079
|
+
);
|
|
2080
|
+
}
|
|
2081
|
+
f = message.getWindowClosed();
|
|
2082
|
+
if (f) {
|
|
2083
|
+
writer.writeBool(
|
|
2084
|
+
5,
|
|
2085
|
+
f
|
|
2086
|
+
);
|
|
2087
|
+
}
|
|
2088
|
+
f = message.getAnalyzedAt();
|
|
2089
|
+
if (f != null) {
|
|
2090
|
+
writer.writeMessage(
|
|
2091
|
+
6,
|
|
2092
|
+
f,
|
|
2093
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2094
|
+
);
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* optional AIProjectInsight insight = 1;
|
|
2101
|
+
* @return {?proto.gateway.web.v1.AIProjectInsight}
|
|
2102
|
+
*/
|
|
2103
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getInsight = function() {
|
|
2104
|
+
return /** @type{?proto.gateway.web.v1.AIProjectInsight} */ (
|
|
2105
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIProjectInsight, 1));
|
|
2106
|
+
};
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* @param {?proto.gateway.web.v1.AIProjectInsight|undefined} value
|
|
2111
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2112
|
+
*/
|
|
2113
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setInsight = function(value) {
|
|
2114
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Clears the message field making it undefined.
|
|
2120
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2121
|
+
*/
|
|
2122
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.clearInsight = function() {
|
|
2123
|
+
return this.setInsight(undefined);
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Returns whether this field is set.
|
|
2129
|
+
* @return {boolean}
|
|
2130
|
+
*/
|
|
2131
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.hasInsight = function() {
|
|
2132
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* optional string run_id = 2;
|
|
2138
|
+
* @return {string}
|
|
2139
|
+
*/
|
|
2140
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getRunId = function() {
|
|
2141
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* @param {string} value
|
|
2147
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2148
|
+
*/
|
|
2149
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setRunId = function(value) {
|
|
2150
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* optional string local_date = 3;
|
|
2156
|
+
* @return {string}
|
|
2157
|
+
*/
|
|
2158
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getLocalDate = function() {
|
|
2159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* @param {string} value
|
|
2165
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2166
|
+
*/
|
|
2167
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setLocalDate = function(value) {
|
|
2168
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* optional string time_zone = 4;
|
|
2174
|
+
* @return {string}
|
|
2175
|
+
*/
|
|
2176
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getTimeZone = function() {
|
|
2177
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2178
|
+
};
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* @param {string} value
|
|
2183
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2184
|
+
*/
|
|
2185
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setTimeZone = function(value) {
|
|
2186
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* optional bool window_closed = 5;
|
|
2192
|
+
* @return {boolean}
|
|
2193
|
+
*/
|
|
2194
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getWindowClosed = function() {
|
|
2195
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* @param {boolean} value
|
|
2201
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2202
|
+
*/
|
|
2203
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setWindowClosed = function(value) {
|
|
2204
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* optional google.protobuf.Timestamp analyzed_at = 6;
|
|
2210
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2211
|
+
*/
|
|
2212
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.getAnalyzedAt = function() {
|
|
2213
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2214
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2220
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2221
|
+
*/
|
|
2222
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.setAnalyzedAt = function(value) {
|
|
2223
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* Clears the message field making it undefined.
|
|
2229
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCard} returns this
|
|
2230
|
+
*/
|
|
2231
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.clearAnalyzedAt = function() {
|
|
2232
|
+
return this.setAnalyzedAt(undefined);
|
|
2233
|
+
};
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Returns whether this field is set.
|
|
2238
|
+
* @return {boolean}
|
|
2239
|
+
*/
|
|
2240
|
+
proto.gateway.web.v1.AIProjectInsightCard.prototype.hasAnalyzedAt = function() {
|
|
2241
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* List of repeated fields within this message type.
|
|
2248
|
+
* @private {!Array<number>}
|
|
2249
|
+
* @const
|
|
2250
|
+
*/
|
|
2251
|
+
proto.gateway.web.v1.AIProjectInsight.repeatedFields_ = [12];
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2256
|
+
/**
|
|
2257
|
+
* Creates an object representation of this proto.
|
|
2258
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2259
|
+
* Optional fields that are not set will be set to undefined.
|
|
2260
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2261
|
+
* For the list of reserved names please see:
|
|
2262
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2263
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2264
|
+
* JSPB instance for transitional soy proto support:
|
|
2265
|
+
* http://goto/soy-param-migration
|
|
2266
|
+
* @return {!Object}
|
|
2267
|
+
*/
|
|
2268
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.toObject = function(opt_includeInstance) {
|
|
2269
|
+
return proto.gateway.web.v1.AIProjectInsight.toObject(opt_includeInstance, this);
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Static version of the {@see toObject} method.
|
|
2275
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2276
|
+
* the JSPB instance for transitional soy proto support:
|
|
2277
|
+
* http://goto/soy-param-migration
|
|
2278
|
+
* @param {!proto.gateway.web.v1.AIProjectInsight} msg The msg instance to transform.
|
|
2279
|
+
* @return {!Object}
|
|
2280
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2281
|
+
*/
|
|
2282
|
+
proto.gateway.web.v1.AIProjectInsight.toObject = function(includeInstance, msg) {
|
|
2283
|
+
var f, obj = {
|
|
2284
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2285
|
+
rank: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2286
|
+
kind: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2287
|
+
title: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2288
|
+
pattern: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2289
|
+
explanation: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2290
|
+
action: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2291
|
+
limitations: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2292
|
+
sessionCount: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
2293
|
+
personCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
2294
|
+
spendUsd: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
|
|
2295
|
+
citationsList: jspb.Message.toObjectList(msg.getCitationsList(),
|
|
2296
|
+
proto.gateway.web.v1.AIProjectInsightCitation.toObject, includeInstance),
|
|
2297
|
+
skillSuggestion: (f = msg.getSkillSuggestion()) && proto_gateway_web_v1_ai_gateway_pb.AISkillSuggestion.toObject(includeInstance, f)
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
if (includeInstance) {
|
|
2301
|
+
obj.$jspbMessageInstance = msg;
|
|
2302
|
+
}
|
|
2303
|
+
return obj;
|
|
2304
|
+
};
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2310
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2311
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight}
|
|
2312
|
+
*/
|
|
2313
|
+
proto.gateway.web.v1.AIProjectInsight.deserializeBinary = function(bytes) {
|
|
2314
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2315
|
+
var msg = new proto.gateway.web.v1.AIProjectInsight;
|
|
2316
|
+
return proto.gateway.web.v1.AIProjectInsight.deserializeBinaryFromReader(msg, reader);
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2322
|
+
* given reader into the given message object.
|
|
2323
|
+
* @param {!proto.gateway.web.v1.AIProjectInsight} msg The message object to deserialize into.
|
|
2324
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2325
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight}
|
|
2326
|
+
*/
|
|
2327
|
+
proto.gateway.web.v1.AIProjectInsight.deserializeBinaryFromReader = function(msg, reader) {
|
|
2328
|
+
while (reader.nextField()) {
|
|
2329
|
+
if (reader.isEndGroup()) {
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
var field = reader.getFieldNumber();
|
|
2333
|
+
switch (field) {
|
|
2334
|
+
case 1:
|
|
2335
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2336
|
+
msg.setId(value);
|
|
2337
|
+
break;
|
|
2338
|
+
case 2:
|
|
2339
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2340
|
+
msg.setRank(value);
|
|
2341
|
+
break;
|
|
2342
|
+
case 3:
|
|
2343
|
+
var value = /** @type {!proto.gateway.web.v1.AIProjectInsightKind} */ (reader.readEnum());
|
|
2344
|
+
msg.setKind(value);
|
|
2345
|
+
break;
|
|
2346
|
+
case 4:
|
|
2347
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2348
|
+
msg.setTitle(value);
|
|
2349
|
+
break;
|
|
2350
|
+
case 5:
|
|
2351
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2352
|
+
msg.setPattern(value);
|
|
2353
|
+
break;
|
|
2354
|
+
case 6:
|
|
2355
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2356
|
+
msg.setExplanation(value);
|
|
2357
|
+
break;
|
|
2358
|
+
case 7:
|
|
2359
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2360
|
+
msg.setAction(value);
|
|
2361
|
+
break;
|
|
2362
|
+
case 8:
|
|
2363
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2364
|
+
msg.setLimitations(value);
|
|
2365
|
+
break;
|
|
2366
|
+
case 9:
|
|
2367
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2368
|
+
msg.setSessionCount(value);
|
|
2369
|
+
break;
|
|
2370
|
+
case 10:
|
|
2371
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2372
|
+
msg.setPersonCount(value);
|
|
2373
|
+
break;
|
|
2374
|
+
case 11:
|
|
2375
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2376
|
+
msg.setSpendUsd(value);
|
|
2377
|
+
break;
|
|
2378
|
+
case 12:
|
|
2379
|
+
var value = new proto.gateway.web.v1.AIProjectInsightCitation;
|
|
2380
|
+
reader.readMessage(value,proto.gateway.web.v1.AIProjectInsightCitation.deserializeBinaryFromReader);
|
|
2381
|
+
msg.addCitations(value);
|
|
2382
|
+
break;
|
|
2383
|
+
case 13:
|
|
2384
|
+
var value = new proto_gateway_web_v1_ai_gateway_pb.AISkillSuggestion;
|
|
2385
|
+
reader.readMessage(value,proto_gateway_web_v1_ai_gateway_pb.AISkillSuggestion.deserializeBinaryFromReader);
|
|
2386
|
+
msg.setSkillSuggestion(value);
|
|
2387
|
+
break;
|
|
2388
|
+
default:
|
|
2389
|
+
reader.skipField();
|
|
2390
|
+
break;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
return msg;
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2399
|
+
* @return {!Uint8Array}
|
|
2400
|
+
*/
|
|
2401
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.serializeBinary = function() {
|
|
2402
|
+
var writer = new jspb.BinaryWriter();
|
|
2403
|
+
proto.gateway.web.v1.AIProjectInsight.serializeBinaryToWriter(this, writer);
|
|
2404
|
+
return writer.getResultBuffer();
|
|
2405
|
+
};
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2410
|
+
* format), writing to the given BinaryWriter.
|
|
2411
|
+
* @param {!proto.gateway.web.v1.AIProjectInsight} message
|
|
2412
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2413
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2414
|
+
*/
|
|
2415
|
+
proto.gateway.web.v1.AIProjectInsight.serializeBinaryToWriter = function(message, writer) {
|
|
2416
|
+
var f = undefined;
|
|
2417
|
+
f = message.getId();
|
|
2418
|
+
if (f.length > 0) {
|
|
2419
|
+
writer.writeString(
|
|
2420
|
+
1,
|
|
2421
|
+
f
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2424
|
+
f = message.getRank();
|
|
2425
|
+
if (f !== 0) {
|
|
2426
|
+
writer.writeUint32(
|
|
2427
|
+
2,
|
|
2428
|
+
f
|
|
2429
|
+
);
|
|
2430
|
+
}
|
|
2431
|
+
f = message.getKind();
|
|
2432
|
+
if (f !== 0.0) {
|
|
2433
|
+
writer.writeEnum(
|
|
2434
|
+
3,
|
|
2435
|
+
f
|
|
2436
|
+
);
|
|
2437
|
+
}
|
|
2438
|
+
f = message.getTitle();
|
|
2439
|
+
if (f.length > 0) {
|
|
2440
|
+
writer.writeString(
|
|
2441
|
+
4,
|
|
2442
|
+
f
|
|
2443
|
+
);
|
|
2444
|
+
}
|
|
2445
|
+
f = message.getPattern();
|
|
2446
|
+
if (f.length > 0) {
|
|
2447
|
+
writer.writeString(
|
|
2448
|
+
5,
|
|
2449
|
+
f
|
|
2450
|
+
);
|
|
2451
|
+
}
|
|
2452
|
+
f = message.getExplanation();
|
|
2453
|
+
if (f.length > 0) {
|
|
2454
|
+
writer.writeString(
|
|
2455
|
+
6,
|
|
2456
|
+
f
|
|
2457
|
+
);
|
|
2458
|
+
}
|
|
2459
|
+
f = message.getAction();
|
|
2460
|
+
if (f.length > 0) {
|
|
2461
|
+
writer.writeString(
|
|
2462
|
+
7,
|
|
2463
|
+
f
|
|
2464
|
+
);
|
|
2465
|
+
}
|
|
2466
|
+
f = message.getLimitations();
|
|
2467
|
+
if (f.length > 0) {
|
|
2468
|
+
writer.writeString(
|
|
2469
|
+
8,
|
|
2470
|
+
f
|
|
2471
|
+
);
|
|
2472
|
+
}
|
|
2473
|
+
f = message.getSessionCount();
|
|
2474
|
+
if (f !== 0) {
|
|
2475
|
+
writer.writeUint32(
|
|
2476
|
+
9,
|
|
2477
|
+
f
|
|
2478
|
+
);
|
|
2479
|
+
}
|
|
2480
|
+
f = message.getPersonCount();
|
|
2481
|
+
if (f !== 0) {
|
|
2482
|
+
writer.writeUint32(
|
|
2483
|
+
10,
|
|
2484
|
+
f
|
|
2485
|
+
);
|
|
2486
|
+
}
|
|
2487
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
2488
|
+
if (f != null) {
|
|
2489
|
+
writer.writeString(
|
|
2490
|
+
11,
|
|
2491
|
+
f
|
|
2492
|
+
);
|
|
2493
|
+
}
|
|
2494
|
+
f = message.getCitationsList();
|
|
2495
|
+
if (f.length > 0) {
|
|
2496
|
+
writer.writeRepeatedMessage(
|
|
2497
|
+
12,
|
|
2498
|
+
f,
|
|
2499
|
+
proto.gateway.web.v1.AIProjectInsightCitation.serializeBinaryToWriter
|
|
2500
|
+
);
|
|
2501
|
+
}
|
|
2502
|
+
f = message.getSkillSuggestion();
|
|
2503
|
+
if (f != null) {
|
|
2504
|
+
writer.writeMessage(
|
|
2505
|
+
13,
|
|
2506
|
+
f,
|
|
2507
|
+
proto_gateway_web_v1_ai_gateway_pb.AISkillSuggestion.serializeBinaryToWriter
|
|
2508
|
+
);
|
|
2509
|
+
}
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* optional string id = 1;
|
|
2515
|
+
* @return {string}
|
|
2516
|
+
*/
|
|
2517
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getId = function() {
|
|
2518
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* @param {string} value
|
|
2524
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2525
|
+
*/
|
|
2526
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setId = function(value) {
|
|
2527
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2528
|
+
};
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* optional uint32 rank = 2;
|
|
2533
|
+
* @return {number}
|
|
2534
|
+
*/
|
|
2535
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getRank = function() {
|
|
2536
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2537
|
+
};
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
/**
|
|
2541
|
+
* @param {number} value
|
|
2542
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2543
|
+
*/
|
|
2544
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setRank = function(value) {
|
|
2545
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* optional AIProjectInsightKind kind = 3;
|
|
2551
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightKind}
|
|
2552
|
+
*/
|
|
2553
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getKind = function() {
|
|
2554
|
+
return /** @type {!proto.gateway.web.v1.AIProjectInsightKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightKind} value
|
|
2560
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2561
|
+
*/
|
|
2562
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setKind = function(value) {
|
|
2563
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
2564
|
+
};
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* optional string title = 4;
|
|
2569
|
+
* @return {string}
|
|
2570
|
+
*/
|
|
2571
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getTitle = function() {
|
|
2572
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* @param {string} value
|
|
2578
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2579
|
+
*/
|
|
2580
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setTitle = function(value) {
|
|
2581
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* optional string pattern = 5;
|
|
2587
|
+
* @return {string}
|
|
2588
|
+
*/
|
|
2589
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getPattern = function() {
|
|
2590
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* @param {string} value
|
|
2596
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2597
|
+
*/
|
|
2598
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setPattern = function(value) {
|
|
2599
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* optional string explanation = 6;
|
|
2605
|
+
* @return {string}
|
|
2606
|
+
*/
|
|
2607
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getExplanation = function() {
|
|
2608
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* @param {string} value
|
|
2614
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2615
|
+
*/
|
|
2616
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setExplanation = function(value) {
|
|
2617
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* optional string action = 7;
|
|
2623
|
+
* @return {string}
|
|
2624
|
+
*/
|
|
2625
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getAction = function() {
|
|
2626
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+
/**
|
|
2631
|
+
* @param {string} value
|
|
2632
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2633
|
+
*/
|
|
2634
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setAction = function(value) {
|
|
2635
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
/**
|
|
2640
|
+
* optional string limitations = 8;
|
|
2641
|
+
* @return {string}
|
|
2642
|
+
*/
|
|
2643
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getLimitations = function() {
|
|
2644
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* @param {string} value
|
|
2650
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2651
|
+
*/
|
|
2652
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setLimitations = function(value) {
|
|
2653
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* optional uint32 session_count = 9;
|
|
2659
|
+
* @return {number}
|
|
2660
|
+
*/
|
|
2661
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getSessionCount = function() {
|
|
2662
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* @param {number} value
|
|
2668
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2669
|
+
*/
|
|
2670
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setSessionCount = function(value) {
|
|
2671
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
2672
|
+
};
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* optional uint32 person_count = 10;
|
|
2677
|
+
* @return {number}
|
|
2678
|
+
*/
|
|
2679
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getPersonCount = function() {
|
|
2680
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
2681
|
+
};
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* @param {number} value
|
|
2686
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2687
|
+
*/
|
|
2688
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setPersonCount = function(value) {
|
|
2689
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* optional string spend_usd = 11;
|
|
2695
|
+
* @return {string}
|
|
2696
|
+
*/
|
|
2697
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getSpendUsd = function() {
|
|
2698
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* @param {string} value
|
|
2704
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2705
|
+
*/
|
|
2706
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setSpendUsd = function(value) {
|
|
2707
|
+
return jspb.Message.setField(this, 11, value);
|
|
2708
|
+
};
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* Clears the field making it undefined.
|
|
2713
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2714
|
+
*/
|
|
2715
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.clearSpendUsd = function() {
|
|
2716
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
2717
|
+
};
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* Returns whether this field is set.
|
|
2722
|
+
* @return {boolean}
|
|
2723
|
+
*/
|
|
2724
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.hasSpendUsd = function() {
|
|
2725
|
+
return jspb.Message.getField(this, 11) != null;
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* repeated AIProjectInsightCitation citations = 12;
|
|
2731
|
+
* @return {!Array<!proto.gateway.web.v1.AIProjectInsightCitation>}
|
|
2732
|
+
*/
|
|
2733
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getCitationsList = function() {
|
|
2734
|
+
return /** @type{!Array<!proto.gateway.web.v1.AIProjectInsightCitation>} */ (
|
|
2735
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIProjectInsightCitation, 12));
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* @param {!Array<!proto.gateway.web.v1.AIProjectInsightCitation>} value
|
|
2741
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2742
|
+
*/
|
|
2743
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setCitationsList = function(value) {
|
|
2744
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCitation=} opt_value
|
|
2750
|
+
* @param {number=} opt_index
|
|
2751
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation}
|
|
2752
|
+
*/
|
|
2753
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.addCitations = function(opt_value, opt_index) {
|
|
2754
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.gateway.web.v1.AIProjectInsightCitation, opt_index);
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* Clears the list making it empty but non-null.
|
|
2760
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2761
|
+
*/
|
|
2762
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.clearCitationsList = function() {
|
|
2763
|
+
return this.setCitationsList([]);
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* optional AISkillSuggestion skill_suggestion = 13;
|
|
2769
|
+
* @return {?proto.gateway.web.v1.AISkillSuggestion}
|
|
2770
|
+
*/
|
|
2771
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.getSkillSuggestion = function() {
|
|
2772
|
+
return /** @type{?proto.gateway.web.v1.AISkillSuggestion} */ (
|
|
2773
|
+
jspb.Message.getWrapperField(this, proto_gateway_web_v1_ai_gateway_pb.AISkillSuggestion, 13));
|
|
2774
|
+
};
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
* @param {?proto.gateway.web.v1.AISkillSuggestion|undefined} value
|
|
2779
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2780
|
+
*/
|
|
2781
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.setSkillSuggestion = function(value) {
|
|
2782
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* Clears the message field making it undefined.
|
|
2788
|
+
* @return {!proto.gateway.web.v1.AIProjectInsight} returns this
|
|
2789
|
+
*/
|
|
2790
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.clearSkillSuggestion = function() {
|
|
2791
|
+
return this.setSkillSuggestion(undefined);
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* Returns whether this field is set.
|
|
2797
|
+
* @return {boolean}
|
|
2798
|
+
*/
|
|
2799
|
+
proto.gateway.web.v1.AIProjectInsight.prototype.hasSkillSuggestion = function() {
|
|
2800
|
+
return jspb.Message.getField(this, 13) != null;
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2808
|
+
/**
|
|
2809
|
+
* Creates an object representation of this proto.
|
|
2810
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2811
|
+
* Optional fields that are not set will be set to undefined.
|
|
2812
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2813
|
+
* For the list of reserved names please see:
|
|
2814
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2815
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2816
|
+
* JSPB instance for transitional soy proto support:
|
|
2817
|
+
* http://goto/soy-param-migration
|
|
2818
|
+
* @return {!Object}
|
|
2819
|
+
*/
|
|
2820
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.toObject = function(opt_includeInstance) {
|
|
2821
|
+
return proto.gateway.web.v1.AIProjectInsightCitation.toObject(opt_includeInstance, this);
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
/**
|
|
2826
|
+
* Static version of the {@see toObject} method.
|
|
2827
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2828
|
+
* the JSPB instance for transitional soy proto support:
|
|
2829
|
+
* http://goto/soy-param-migration
|
|
2830
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCitation} msg The msg instance to transform.
|
|
2831
|
+
* @return {!Object}
|
|
2832
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2833
|
+
*/
|
|
2834
|
+
proto.gateway.web.v1.AIProjectInsightCitation.toObject = function(includeInstance, msg) {
|
|
2835
|
+
var f, obj = {
|
|
2836
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2837
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2838
|
+
eventRef: (f = msg.getEventRef()) && proto_gateway_web_v1_ai_gateway_pb.AISessionEventRef.toObject(includeInstance, f)
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
if (includeInstance) {
|
|
2842
|
+
obj.$jspbMessageInstance = msg;
|
|
2843
|
+
}
|
|
2844
|
+
return obj;
|
|
2845
|
+
};
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2851
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2852
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation}
|
|
2853
|
+
*/
|
|
2854
|
+
proto.gateway.web.v1.AIProjectInsightCitation.deserializeBinary = function(bytes) {
|
|
2855
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2856
|
+
var msg = new proto.gateway.web.v1.AIProjectInsightCitation;
|
|
2857
|
+
return proto.gateway.web.v1.AIProjectInsightCitation.deserializeBinaryFromReader(msg, reader);
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2863
|
+
* given reader into the given message object.
|
|
2864
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCitation} msg The message object to deserialize into.
|
|
2865
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2866
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation}
|
|
2867
|
+
*/
|
|
2868
|
+
proto.gateway.web.v1.AIProjectInsightCitation.deserializeBinaryFromReader = function(msg, reader) {
|
|
2869
|
+
while (reader.nextField()) {
|
|
2870
|
+
if (reader.isEndGroup()) {
|
|
2871
|
+
break;
|
|
2872
|
+
}
|
|
2873
|
+
var field = reader.getFieldNumber();
|
|
2874
|
+
switch (field) {
|
|
2875
|
+
case 1:
|
|
2876
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2877
|
+
msg.setSourceSystem(value);
|
|
2878
|
+
break;
|
|
2879
|
+
case 2:
|
|
2880
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2881
|
+
msg.setSessionId(value);
|
|
2882
|
+
break;
|
|
2883
|
+
case 3:
|
|
2884
|
+
var value = new proto_gateway_web_v1_ai_gateway_pb.AISessionEventRef;
|
|
2885
|
+
reader.readMessage(value,proto_gateway_web_v1_ai_gateway_pb.AISessionEventRef.deserializeBinaryFromReader);
|
|
2886
|
+
msg.setEventRef(value);
|
|
2887
|
+
break;
|
|
2888
|
+
default:
|
|
2889
|
+
reader.skipField();
|
|
2890
|
+
break;
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
return msg;
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2899
|
+
* @return {!Uint8Array}
|
|
2900
|
+
*/
|
|
2901
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.serializeBinary = function() {
|
|
2902
|
+
var writer = new jspb.BinaryWriter();
|
|
2903
|
+
proto.gateway.web.v1.AIProjectInsightCitation.serializeBinaryToWriter(this, writer);
|
|
2904
|
+
return writer.getResultBuffer();
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2910
|
+
* format), writing to the given BinaryWriter.
|
|
2911
|
+
* @param {!proto.gateway.web.v1.AIProjectInsightCitation} message
|
|
2912
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2913
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2914
|
+
*/
|
|
2915
|
+
proto.gateway.web.v1.AIProjectInsightCitation.serializeBinaryToWriter = function(message, writer) {
|
|
2916
|
+
var f = undefined;
|
|
2917
|
+
f = message.getSourceSystem();
|
|
2918
|
+
if (f.length > 0) {
|
|
2919
|
+
writer.writeString(
|
|
2920
|
+
1,
|
|
2921
|
+
f
|
|
2922
|
+
);
|
|
2923
|
+
}
|
|
2924
|
+
f = message.getSessionId();
|
|
2925
|
+
if (f.length > 0) {
|
|
2926
|
+
writer.writeString(
|
|
2927
|
+
2,
|
|
2928
|
+
f
|
|
2929
|
+
);
|
|
2930
|
+
}
|
|
2931
|
+
f = message.getEventRef();
|
|
2932
|
+
if (f != null) {
|
|
2933
|
+
writer.writeMessage(
|
|
2934
|
+
3,
|
|
2935
|
+
f,
|
|
2936
|
+
proto_gateway_web_v1_ai_gateway_pb.AISessionEventRef.serializeBinaryToWriter
|
|
2937
|
+
);
|
|
2938
|
+
}
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2941
|
+
|
|
2942
|
+
/**
|
|
2943
|
+
* optional string source_system = 1;
|
|
2944
|
+
* @return {string}
|
|
2945
|
+
*/
|
|
2946
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.getSourceSystem = function() {
|
|
2947
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* @param {string} value
|
|
2953
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation} returns this
|
|
2954
|
+
*/
|
|
2955
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.setSourceSystem = function(value) {
|
|
2956
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
/**
|
|
2961
|
+
* optional string session_id = 2;
|
|
2962
|
+
* @return {string}
|
|
2963
|
+
*/
|
|
2964
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.getSessionId = function() {
|
|
2965
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* @param {string} value
|
|
2971
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation} returns this
|
|
2972
|
+
*/
|
|
2973
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.setSessionId = function(value) {
|
|
2974
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* optional AISessionEventRef event_ref = 3;
|
|
2980
|
+
* @return {?proto.gateway.web.v1.AISessionEventRef}
|
|
2981
|
+
*/
|
|
2982
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.getEventRef = function() {
|
|
2983
|
+
return /** @type{?proto.gateway.web.v1.AISessionEventRef} */ (
|
|
2984
|
+
jspb.Message.getWrapperField(this, proto_gateway_web_v1_ai_gateway_pb.AISessionEventRef, 3));
|
|
2985
|
+
};
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* @param {?proto.gateway.web.v1.AISessionEventRef|undefined} value
|
|
2990
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation} returns this
|
|
2991
|
+
*/
|
|
2992
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.setEventRef = function(value) {
|
|
2993
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
/**
|
|
2998
|
+
* Clears the message field making it undefined.
|
|
2999
|
+
* @return {!proto.gateway.web.v1.AIProjectInsightCitation} returns this
|
|
3000
|
+
*/
|
|
3001
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.clearEventRef = function() {
|
|
3002
|
+
return this.setEventRef(undefined);
|
|
3003
|
+
};
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Returns whether this field is set.
|
|
3008
|
+
* @return {boolean}
|
|
3009
|
+
*/
|
|
3010
|
+
proto.gateway.web.v1.AIProjectInsightCitation.prototype.hasEventRef = function() {
|
|
3011
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3012
|
+
};
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
3018
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
3019
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
3020
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
3021
|
+
* @private {!Array<!Array<number>>}
|
|
3022
|
+
* @const
|
|
3023
|
+
*/
|
|
3024
|
+
proto.gateway.web.v1.InsightRef.oneofGroups_ = [[1,2,3]];
|
|
3025
|
+
|
|
3026
|
+
/**
|
|
3027
|
+
* @enum {number}
|
|
3028
|
+
*/
|
|
3029
|
+
proto.gateway.web.v1.InsightRef.InsightCase = {
|
|
3030
|
+
INSIGHT_NOT_SET: 0,
|
|
3031
|
+
SESSION_INSIGHT_ID: 1,
|
|
3032
|
+
PROJECT_INSIGHT_ID: 2,
|
|
3033
|
+
SESSION_SCORE_ID: 3
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
/**
|
|
3037
|
+
* @return {proto.gateway.web.v1.InsightRef.InsightCase}
|
|
3038
|
+
*/
|
|
3039
|
+
proto.gateway.web.v1.InsightRef.prototype.getInsightCase = function() {
|
|
3040
|
+
return /** @type {proto.gateway.web.v1.InsightRef.InsightCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.InsightRef.oneofGroups_[0]));
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3046
|
+
/**
|
|
3047
|
+
* Creates an object representation of this proto.
|
|
3048
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3049
|
+
* Optional fields that are not set will be set to undefined.
|
|
3050
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3051
|
+
* For the list of reserved names please see:
|
|
3052
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3053
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3054
|
+
* JSPB instance for transitional soy proto support:
|
|
3055
|
+
* http://goto/soy-param-migration
|
|
3056
|
+
* @return {!Object}
|
|
3057
|
+
*/
|
|
3058
|
+
proto.gateway.web.v1.InsightRef.prototype.toObject = function(opt_includeInstance) {
|
|
3059
|
+
return proto.gateway.web.v1.InsightRef.toObject(opt_includeInstance, this);
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
/**
|
|
3064
|
+
* Static version of the {@see toObject} method.
|
|
3065
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3066
|
+
* the JSPB instance for transitional soy proto support:
|
|
3067
|
+
* http://goto/soy-param-migration
|
|
3068
|
+
* @param {!proto.gateway.web.v1.InsightRef} msg The msg instance to transform.
|
|
3069
|
+
* @return {!Object}
|
|
3070
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3071
|
+
*/
|
|
3072
|
+
proto.gateway.web.v1.InsightRef.toObject = function(includeInstance, msg) {
|
|
3073
|
+
var f, obj = {
|
|
3074
|
+
sessionInsightId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
3075
|
+
projectInsightId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
3076
|
+
sessionScoreId: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
if (includeInstance) {
|
|
3080
|
+
obj.$jspbMessageInstance = msg;
|
|
3081
|
+
}
|
|
3082
|
+
return obj;
|
|
3083
|
+
};
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3089
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3090
|
+
* @return {!proto.gateway.web.v1.InsightRef}
|
|
3091
|
+
*/
|
|
3092
|
+
proto.gateway.web.v1.InsightRef.deserializeBinary = function(bytes) {
|
|
3093
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3094
|
+
var msg = new proto.gateway.web.v1.InsightRef;
|
|
3095
|
+
return proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader(msg, reader);
|
|
3096
|
+
};
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3101
|
+
* given reader into the given message object.
|
|
3102
|
+
* @param {!proto.gateway.web.v1.InsightRef} msg The message object to deserialize into.
|
|
3103
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3104
|
+
* @return {!proto.gateway.web.v1.InsightRef}
|
|
3105
|
+
*/
|
|
3106
|
+
proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader = function(msg, reader) {
|
|
3107
|
+
while (reader.nextField()) {
|
|
3108
|
+
if (reader.isEndGroup()) {
|
|
3109
|
+
break;
|
|
3110
|
+
}
|
|
3111
|
+
var field = reader.getFieldNumber();
|
|
3112
|
+
switch (field) {
|
|
3113
|
+
case 1:
|
|
3114
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3115
|
+
msg.setSessionInsightId(value);
|
|
3116
|
+
break;
|
|
3117
|
+
case 2:
|
|
3118
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3119
|
+
msg.setProjectInsightId(value);
|
|
3120
|
+
break;
|
|
3121
|
+
case 3:
|
|
3122
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3123
|
+
msg.setSessionScoreId(value);
|
|
3124
|
+
break;
|
|
3125
|
+
default:
|
|
3126
|
+
reader.skipField();
|
|
3127
|
+
break;
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
return msg;
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3136
|
+
* @return {!Uint8Array}
|
|
3137
|
+
*/
|
|
3138
|
+
proto.gateway.web.v1.InsightRef.prototype.serializeBinary = function() {
|
|
3139
|
+
var writer = new jspb.BinaryWriter();
|
|
3140
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter(this, writer);
|
|
3141
|
+
return writer.getResultBuffer();
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3147
|
+
* format), writing to the given BinaryWriter.
|
|
3148
|
+
* @param {!proto.gateway.web.v1.InsightRef} message
|
|
3149
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3150
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3151
|
+
*/
|
|
3152
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter = function(message, writer) {
|
|
3153
|
+
var f = undefined;
|
|
3154
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
3155
|
+
if (f != null) {
|
|
3156
|
+
writer.writeString(
|
|
3157
|
+
1,
|
|
3158
|
+
f
|
|
3159
|
+
);
|
|
3160
|
+
}
|
|
3161
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
3162
|
+
if (f != null) {
|
|
3163
|
+
writer.writeString(
|
|
3164
|
+
2,
|
|
3165
|
+
f
|
|
3166
|
+
);
|
|
3167
|
+
}
|
|
3168
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
3169
|
+
if (f != null) {
|
|
3170
|
+
writer.writeString(
|
|
3171
|
+
3,
|
|
3172
|
+
f
|
|
3173
|
+
);
|
|
3174
|
+
}
|
|
3175
|
+
};
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* optional string session_insight_id = 1;
|
|
3180
|
+
* @return {string}
|
|
3181
|
+
*/
|
|
3182
|
+
proto.gateway.web.v1.InsightRef.prototype.getSessionInsightId = function() {
|
|
3183
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3184
|
+
};
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* @param {string} value
|
|
3189
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3190
|
+
*/
|
|
3191
|
+
proto.gateway.web.v1.InsightRef.prototype.setSessionInsightId = function(value) {
|
|
3192
|
+
return jspb.Message.setOneofField(this, 1, proto.gateway.web.v1.InsightRef.oneofGroups_[0], value);
|
|
3193
|
+
};
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* Clears the field making it undefined.
|
|
3198
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3199
|
+
*/
|
|
3200
|
+
proto.gateway.web.v1.InsightRef.prototype.clearSessionInsightId = function() {
|
|
3201
|
+
return jspb.Message.setOneofField(this, 1, proto.gateway.web.v1.InsightRef.oneofGroups_[0], undefined);
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* Returns whether this field is set.
|
|
3207
|
+
* @return {boolean}
|
|
3208
|
+
*/
|
|
3209
|
+
proto.gateway.web.v1.InsightRef.prototype.hasSessionInsightId = function() {
|
|
3210
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3211
|
+
};
|
|
3212
|
+
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* optional string project_insight_id = 2;
|
|
3216
|
+
* @return {string}
|
|
3217
|
+
*/
|
|
3218
|
+
proto.gateway.web.v1.InsightRef.prototype.getProjectInsightId = function() {
|
|
3219
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3220
|
+
};
|
|
3221
|
+
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* @param {string} value
|
|
3225
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3226
|
+
*/
|
|
3227
|
+
proto.gateway.web.v1.InsightRef.prototype.setProjectInsightId = function(value) {
|
|
3228
|
+
return jspb.Message.setOneofField(this, 2, proto.gateway.web.v1.InsightRef.oneofGroups_[0], value);
|
|
3229
|
+
};
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
/**
|
|
3233
|
+
* Clears the field making it undefined.
|
|
3234
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3235
|
+
*/
|
|
3236
|
+
proto.gateway.web.v1.InsightRef.prototype.clearProjectInsightId = function() {
|
|
3237
|
+
return jspb.Message.setOneofField(this, 2, proto.gateway.web.v1.InsightRef.oneofGroups_[0], undefined);
|
|
3238
|
+
};
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
/**
|
|
3242
|
+
* Returns whether this field is set.
|
|
3243
|
+
* @return {boolean}
|
|
3244
|
+
*/
|
|
3245
|
+
proto.gateway.web.v1.InsightRef.prototype.hasProjectInsightId = function() {
|
|
3246
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* optional string session_score_id = 3;
|
|
3252
|
+
* @return {string}
|
|
3253
|
+
*/
|
|
3254
|
+
proto.gateway.web.v1.InsightRef.prototype.getSessionScoreId = function() {
|
|
3255
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
|
|
3259
|
+
/**
|
|
3260
|
+
* @param {string} value
|
|
3261
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3262
|
+
*/
|
|
3263
|
+
proto.gateway.web.v1.InsightRef.prototype.setSessionScoreId = function(value) {
|
|
3264
|
+
return jspb.Message.setOneofField(this, 3, proto.gateway.web.v1.InsightRef.oneofGroups_[0], value);
|
|
3265
|
+
};
|
|
3266
|
+
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Clears the field making it undefined.
|
|
3270
|
+
* @return {!proto.gateway.web.v1.InsightRef} returns this
|
|
3271
|
+
*/
|
|
3272
|
+
proto.gateway.web.v1.InsightRef.prototype.clearSessionScoreId = function() {
|
|
3273
|
+
return jspb.Message.setOneofField(this, 3, proto.gateway.web.v1.InsightRef.oneofGroups_[0], undefined);
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
|
|
3277
|
+
/**
|
|
3278
|
+
* Returns whether this field is set.
|
|
3279
|
+
* @return {boolean}
|
|
3280
|
+
*/
|
|
3281
|
+
proto.gateway.web.v1.InsightRef.prototype.hasSessionScoreId = function() {
|
|
3282
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3283
|
+
};
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3290
|
+
/**
|
|
3291
|
+
* Creates an object representation of this proto.
|
|
3292
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3293
|
+
* Optional fields that are not set will be set to undefined.
|
|
3294
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3295
|
+
* For the list of reserved names please see:
|
|
3296
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3297
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3298
|
+
* JSPB instance for transitional soy proto support:
|
|
3299
|
+
* http://goto/soy-param-migration
|
|
3300
|
+
* @return {!Object}
|
|
3301
|
+
*/
|
|
3302
|
+
proto.gateway.web.v1.InsightRating.prototype.toObject = function(opt_includeInstance) {
|
|
3303
|
+
return proto.gateway.web.v1.InsightRating.toObject(opt_includeInstance, this);
|
|
3304
|
+
};
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* Static version of the {@see toObject} method.
|
|
3309
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3310
|
+
* the JSPB instance for transitional soy proto support:
|
|
3311
|
+
* http://goto/soy-param-migration
|
|
3312
|
+
* @param {!proto.gateway.web.v1.InsightRating} msg The msg instance to transform.
|
|
3313
|
+
* @return {!Object}
|
|
3314
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3315
|
+
*/
|
|
3316
|
+
proto.gateway.web.v1.InsightRating.toObject = function(includeInstance, msg) {
|
|
3317
|
+
var f, obj = {
|
|
3318
|
+
insight: (f = msg.getInsight()) && proto.gateway.web.v1.InsightRef.toObject(includeInstance, f),
|
|
3319
|
+
rating: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3320
|
+
ratedAt: (f = msg.getRatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
3321
|
+
};
|
|
3322
|
+
|
|
3323
|
+
if (includeInstance) {
|
|
3324
|
+
obj.$jspbMessageInstance = msg;
|
|
3325
|
+
}
|
|
3326
|
+
return obj;
|
|
3327
|
+
};
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3333
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3334
|
+
* @return {!proto.gateway.web.v1.InsightRating}
|
|
3335
|
+
*/
|
|
3336
|
+
proto.gateway.web.v1.InsightRating.deserializeBinary = function(bytes) {
|
|
3337
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3338
|
+
var msg = new proto.gateway.web.v1.InsightRating;
|
|
3339
|
+
return proto.gateway.web.v1.InsightRating.deserializeBinaryFromReader(msg, reader);
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3345
|
+
* given reader into the given message object.
|
|
3346
|
+
* @param {!proto.gateway.web.v1.InsightRating} msg The message object to deserialize into.
|
|
3347
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3348
|
+
* @return {!proto.gateway.web.v1.InsightRating}
|
|
3349
|
+
*/
|
|
3350
|
+
proto.gateway.web.v1.InsightRating.deserializeBinaryFromReader = function(msg, reader) {
|
|
3351
|
+
while (reader.nextField()) {
|
|
3352
|
+
if (reader.isEndGroup()) {
|
|
3353
|
+
break;
|
|
3354
|
+
}
|
|
3355
|
+
var field = reader.getFieldNumber();
|
|
3356
|
+
switch (field) {
|
|
3357
|
+
case 1:
|
|
3358
|
+
var value = new proto.gateway.web.v1.InsightRef;
|
|
3359
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader);
|
|
3360
|
+
msg.setInsight(value);
|
|
3361
|
+
break;
|
|
3362
|
+
case 2:
|
|
3363
|
+
var value = /** @type {!proto.gateway.web.v1.AIInsightRating} */ (reader.readEnum());
|
|
3364
|
+
msg.setRating(value);
|
|
3365
|
+
break;
|
|
3366
|
+
case 3:
|
|
3367
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3368
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3369
|
+
msg.setRatedAt(value);
|
|
3370
|
+
break;
|
|
3371
|
+
default:
|
|
3372
|
+
reader.skipField();
|
|
3373
|
+
break;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
return msg;
|
|
3377
|
+
};
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3382
|
+
* @return {!Uint8Array}
|
|
3383
|
+
*/
|
|
3384
|
+
proto.gateway.web.v1.InsightRating.prototype.serializeBinary = function() {
|
|
3385
|
+
var writer = new jspb.BinaryWriter();
|
|
3386
|
+
proto.gateway.web.v1.InsightRating.serializeBinaryToWriter(this, writer);
|
|
3387
|
+
return writer.getResultBuffer();
|
|
3388
|
+
};
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
/**
|
|
3392
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3393
|
+
* format), writing to the given BinaryWriter.
|
|
3394
|
+
* @param {!proto.gateway.web.v1.InsightRating} message
|
|
3395
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3396
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3397
|
+
*/
|
|
3398
|
+
proto.gateway.web.v1.InsightRating.serializeBinaryToWriter = function(message, writer) {
|
|
3399
|
+
var f = undefined;
|
|
3400
|
+
f = message.getInsight();
|
|
3401
|
+
if (f != null) {
|
|
3402
|
+
writer.writeMessage(
|
|
3403
|
+
1,
|
|
3404
|
+
f,
|
|
3405
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter
|
|
3406
|
+
);
|
|
3407
|
+
}
|
|
3408
|
+
f = message.getRating();
|
|
3409
|
+
if (f !== 0.0) {
|
|
3410
|
+
writer.writeEnum(
|
|
3411
|
+
2,
|
|
3412
|
+
f
|
|
3413
|
+
);
|
|
3414
|
+
}
|
|
3415
|
+
f = message.getRatedAt();
|
|
3416
|
+
if (f != null) {
|
|
3417
|
+
writer.writeMessage(
|
|
3418
|
+
3,
|
|
3419
|
+
f,
|
|
3420
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3421
|
+
);
|
|
3422
|
+
}
|
|
3423
|
+
};
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* optional InsightRef insight = 1;
|
|
3428
|
+
* @return {?proto.gateway.web.v1.InsightRef}
|
|
3429
|
+
*/
|
|
3430
|
+
proto.gateway.web.v1.InsightRating.prototype.getInsight = function() {
|
|
3431
|
+
return /** @type{?proto.gateway.web.v1.InsightRef} */ (
|
|
3432
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.InsightRef, 1));
|
|
3433
|
+
};
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* @param {?proto.gateway.web.v1.InsightRef|undefined} value
|
|
3438
|
+
* @return {!proto.gateway.web.v1.InsightRating} returns this
|
|
3439
|
+
*/
|
|
3440
|
+
proto.gateway.web.v1.InsightRating.prototype.setInsight = function(value) {
|
|
3441
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3442
|
+
};
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
/**
|
|
3446
|
+
* Clears the message field making it undefined.
|
|
3447
|
+
* @return {!proto.gateway.web.v1.InsightRating} returns this
|
|
3448
|
+
*/
|
|
3449
|
+
proto.gateway.web.v1.InsightRating.prototype.clearInsight = function() {
|
|
3450
|
+
return this.setInsight(undefined);
|
|
3451
|
+
};
|
|
3452
|
+
|
|
3453
|
+
|
|
3454
|
+
/**
|
|
3455
|
+
* Returns whether this field is set.
|
|
3456
|
+
* @return {boolean}
|
|
3457
|
+
*/
|
|
3458
|
+
proto.gateway.web.v1.InsightRating.prototype.hasInsight = function() {
|
|
3459
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3460
|
+
};
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* optional AIInsightRating rating = 2;
|
|
3465
|
+
* @return {!proto.gateway.web.v1.AIInsightRating}
|
|
3466
|
+
*/
|
|
3467
|
+
proto.gateway.web.v1.InsightRating.prototype.getRating = function() {
|
|
3468
|
+
return /** @type {!proto.gateway.web.v1.AIInsightRating} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3469
|
+
};
|
|
3470
|
+
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* @param {!proto.gateway.web.v1.AIInsightRating} value
|
|
3474
|
+
* @return {!proto.gateway.web.v1.InsightRating} returns this
|
|
3475
|
+
*/
|
|
3476
|
+
proto.gateway.web.v1.InsightRating.prototype.setRating = function(value) {
|
|
3477
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3480
|
+
|
|
3481
|
+
/**
|
|
3482
|
+
* optional google.protobuf.Timestamp rated_at = 3;
|
|
3483
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3484
|
+
*/
|
|
3485
|
+
proto.gateway.web.v1.InsightRating.prototype.getRatedAt = function() {
|
|
3486
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3487
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
3488
|
+
};
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3493
|
+
* @return {!proto.gateway.web.v1.InsightRating} returns this
|
|
3494
|
+
*/
|
|
3495
|
+
proto.gateway.web.v1.InsightRating.prototype.setRatedAt = function(value) {
|
|
3496
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
3497
|
+
};
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* Clears the message field making it undefined.
|
|
3502
|
+
* @return {!proto.gateway.web.v1.InsightRating} returns this
|
|
3503
|
+
*/
|
|
3504
|
+
proto.gateway.web.v1.InsightRating.prototype.clearRatedAt = function() {
|
|
3505
|
+
return this.setRatedAt(undefined);
|
|
3506
|
+
};
|
|
3507
|
+
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Returns whether this field is set.
|
|
3511
|
+
* @return {boolean}
|
|
3512
|
+
*/
|
|
3513
|
+
proto.gateway.web.v1.InsightRating.prototype.hasRatedAt = function() {
|
|
3514
|
+
return jspb.Message.getField(this, 3) != null;
|
|
3515
|
+
};
|
|
3516
|
+
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
/**
|
|
3520
|
+
* List of repeated fields within this message type.
|
|
3521
|
+
* @private {!Array<number>}
|
|
3522
|
+
* @const
|
|
3523
|
+
*/
|
|
3524
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.repeatedFields_ = [3];
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3529
|
+
/**
|
|
3530
|
+
* Creates an object representation of this proto.
|
|
3531
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3532
|
+
* Optional fields that are not set will be set to undefined.
|
|
3533
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3534
|
+
* For the list of reserved names please see:
|
|
3535
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3536
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3537
|
+
* JSPB instance for transitional soy proto support:
|
|
3538
|
+
* http://goto/soy-param-migration
|
|
3539
|
+
* @return {!Object}
|
|
3540
|
+
*/
|
|
3541
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3542
|
+
return proto.gateway.web.v1.BatchGetInsightRatingsRequest.toObject(opt_includeInstance, this);
|
|
3543
|
+
};
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
/**
|
|
3547
|
+
* Static version of the {@see toObject} method.
|
|
3548
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3549
|
+
* the JSPB instance for transitional soy proto support:
|
|
3550
|
+
* http://goto/soy-param-migration
|
|
3551
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} msg The msg instance to transform.
|
|
3552
|
+
* @return {!Object}
|
|
3553
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3554
|
+
*/
|
|
3555
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.toObject = function(includeInstance, msg) {
|
|
3556
|
+
var f, obj = {
|
|
3557
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3558
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3559
|
+
insightsList: jspb.Message.toObjectList(msg.getInsightsList(),
|
|
3560
|
+
proto.gateway.web.v1.InsightRef.toObject, includeInstance)
|
|
3561
|
+
};
|
|
3562
|
+
|
|
3563
|
+
if (includeInstance) {
|
|
3564
|
+
obj.$jspbMessageInstance = msg;
|
|
3565
|
+
}
|
|
3566
|
+
return obj;
|
|
3567
|
+
};
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3573
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3574
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest}
|
|
3575
|
+
*/
|
|
3576
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.deserializeBinary = function(bytes) {
|
|
3577
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3578
|
+
var msg = new proto.gateway.web.v1.BatchGetInsightRatingsRequest;
|
|
3579
|
+
return proto.gateway.web.v1.BatchGetInsightRatingsRequest.deserializeBinaryFromReader(msg, reader);
|
|
3580
|
+
};
|
|
3581
|
+
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3585
|
+
* given reader into the given message object.
|
|
3586
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} msg The message object to deserialize into.
|
|
3587
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3588
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest}
|
|
3589
|
+
*/
|
|
3590
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3591
|
+
while (reader.nextField()) {
|
|
3592
|
+
if (reader.isEndGroup()) {
|
|
3593
|
+
break;
|
|
3594
|
+
}
|
|
3595
|
+
var field = reader.getFieldNumber();
|
|
3596
|
+
switch (field) {
|
|
3597
|
+
case 1:
|
|
3598
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3599
|
+
msg.setOrganizationId(value);
|
|
3600
|
+
break;
|
|
3601
|
+
case 2:
|
|
3602
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3603
|
+
msg.setProjectId(value);
|
|
3604
|
+
break;
|
|
3605
|
+
case 3:
|
|
3606
|
+
var value = new proto.gateway.web.v1.InsightRef;
|
|
3607
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader);
|
|
3608
|
+
msg.addInsights(value);
|
|
3609
|
+
break;
|
|
3610
|
+
default:
|
|
3611
|
+
reader.skipField();
|
|
3612
|
+
break;
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
return msg;
|
|
3616
|
+
};
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3621
|
+
* @return {!Uint8Array}
|
|
3622
|
+
*/
|
|
3623
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.serializeBinary = function() {
|
|
3624
|
+
var writer = new jspb.BinaryWriter();
|
|
3625
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.serializeBinaryToWriter(this, writer);
|
|
3626
|
+
return writer.getResultBuffer();
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3632
|
+
* format), writing to the given BinaryWriter.
|
|
3633
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} message
|
|
3634
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3635
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3636
|
+
*/
|
|
3637
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3638
|
+
var f = undefined;
|
|
3639
|
+
f = message.getOrganizationId();
|
|
3640
|
+
if (f.length > 0) {
|
|
3641
|
+
writer.writeString(
|
|
3642
|
+
1,
|
|
3643
|
+
f
|
|
3644
|
+
);
|
|
3645
|
+
}
|
|
3646
|
+
f = message.getProjectId();
|
|
3647
|
+
if (f.length > 0) {
|
|
3648
|
+
writer.writeString(
|
|
3649
|
+
2,
|
|
3650
|
+
f
|
|
3651
|
+
);
|
|
3652
|
+
}
|
|
3653
|
+
f = message.getInsightsList();
|
|
3654
|
+
if (f.length > 0) {
|
|
3655
|
+
writer.writeRepeatedMessage(
|
|
3656
|
+
3,
|
|
3657
|
+
f,
|
|
3658
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter
|
|
3659
|
+
);
|
|
3660
|
+
}
|
|
3661
|
+
};
|
|
3662
|
+
|
|
3663
|
+
|
|
3664
|
+
/**
|
|
3665
|
+
* optional string organization_id = 1;
|
|
3666
|
+
* @return {string}
|
|
3667
|
+
*/
|
|
3668
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.getOrganizationId = function() {
|
|
3669
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* @param {string} value
|
|
3675
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} returns this
|
|
3676
|
+
*/
|
|
3677
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.setOrganizationId = function(value) {
|
|
3678
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* optional string project_id = 2;
|
|
3684
|
+
* @return {string}
|
|
3685
|
+
*/
|
|
3686
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.getProjectId = function() {
|
|
3687
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3688
|
+
};
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* @param {string} value
|
|
3693
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} returns this
|
|
3694
|
+
*/
|
|
3695
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.setProjectId = function(value) {
|
|
3696
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3697
|
+
};
|
|
3698
|
+
|
|
3699
|
+
|
|
3700
|
+
/**
|
|
3701
|
+
* repeated InsightRef insights = 3;
|
|
3702
|
+
* @return {!Array<!proto.gateway.web.v1.InsightRef>}
|
|
3703
|
+
*/
|
|
3704
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.getInsightsList = function() {
|
|
3705
|
+
return /** @type{!Array<!proto.gateway.web.v1.InsightRef>} */ (
|
|
3706
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InsightRef, 3));
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* @param {!Array<!proto.gateway.web.v1.InsightRef>} value
|
|
3712
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} returns this
|
|
3713
|
+
*/
|
|
3714
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.setInsightsList = function(value) {
|
|
3715
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
3716
|
+
};
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
/**
|
|
3720
|
+
* @param {!proto.gateway.web.v1.InsightRef=} opt_value
|
|
3721
|
+
* @param {number=} opt_index
|
|
3722
|
+
* @return {!proto.gateway.web.v1.InsightRef}
|
|
3723
|
+
*/
|
|
3724
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.addInsights = function(opt_value, opt_index) {
|
|
3725
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.InsightRef, opt_index);
|
|
3726
|
+
};
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* Clears the list making it empty but non-null.
|
|
3731
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsRequest} returns this
|
|
3732
|
+
*/
|
|
3733
|
+
proto.gateway.web.v1.BatchGetInsightRatingsRequest.prototype.clearInsightsList = function() {
|
|
3734
|
+
return this.setInsightsList([]);
|
|
3735
|
+
};
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
/**
|
|
3740
|
+
* List of repeated fields within this message type.
|
|
3741
|
+
* @private {!Array<number>}
|
|
3742
|
+
* @const
|
|
3743
|
+
*/
|
|
3744
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.repeatedFields_ = [2];
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3749
|
+
/**
|
|
3750
|
+
* Creates an object representation of this proto.
|
|
3751
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3752
|
+
* Optional fields that are not set will be set to undefined.
|
|
3753
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3754
|
+
* For the list of reserved names please see:
|
|
3755
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3756
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3757
|
+
* JSPB instance for transitional soy proto support:
|
|
3758
|
+
* http://goto/soy-param-migration
|
|
3759
|
+
* @return {!Object}
|
|
3760
|
+
*/
|
|
3761
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3762
|
+
return proto.gateway.web.v1.BatchGetInsightRatingsResponse.toObject(opt_includeInstance, this);
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
/**
|
|
3767
|
+
* Static version of the {@see toObject} method.
|
|
3768
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3769
|
+
* the JSPB instance for transitional soy proto support:
|
|
3770
|
+
* http://goto/soy-param-migration
|
|
3771
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} msg The msg instance to transform.
|
|
3772
|
+
* @return {!Object}
|
|
3773
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3774
|
+
*/
|
|
3775
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.toObject = function(includeInstance, msg) {
|
|
3776
|
+
var f, obj = {
|
|
3777
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
3778
|
+
ratingsList: jspb.Message.toObjectList(msg.getRatingsList(),
|
|
3779
|
+
proto.gateway.web.v1.InsightRating.toObject, includeInstance)
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3782
|
+
if (includeInstance) {
|
|
3783
|
+
obj.$jspbMessageInstance = msg;
|
|
3784
|
+
}
|
|
3785
|
+
return obj;
|
|
3786
|
+
};
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3792
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3793
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse}
|
|
3794
|
+
*/
|
|
3795
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.deserializeBinary = function(bytes) {
|
|
3796
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3797
|
+
var msg = new proto.gateway.web.v1.BatchGetInsightRatingsResponse;
|
|
3798
|
+
return proto.gateway.web.v1.BatchGetInsightRatingsResponse.deserializeBinaryFromReader(msg, reader);
|
|
3799
|
+
};
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
/**
|
|
3803
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3804
|
+
* given reader into the given message object.
|
|
3805
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} msg The message object to deserialize into.
|
|
3806
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3807
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse}
|
|
3808
|
+
*/
|
|
3809
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3810
|
+
while (reader.nextField()) {
|
|
3811
|
+
if (reader.isEndGroup()) {
|
|
3812
|
+
break;
|
|
3813
|
+
}
|
|
3814
|
+
var field = reader.getFieldNumber();
|
|
3815
|
+
switch (field) {
|
|
3816
|
+
case 1:
|
|
3817
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
3818
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
3819
|
+
msg.setStatus(value);
|
|
3820
|
+
break;
|
|
3821
|
+
case 2:
|
|
3822
|
+
var value = new proto.gateway.web.v1.InsightRating;
|
|
3823
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRating.deserializeBinaryFromReader);
|
|
3824
|
+
msg.addRatings(value);
|
|
3825
|
+
break;
|
|
3826
|
+
default:
|
|
3827
|
+
reader.skipField();
|
|
3828
|
+
break;
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
return msg;
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3837
|
+
* @return {!Uint8Array}
|
|
3838
|
+
*/
|
|
3839
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.serializeBinary = function() {
|
|
3840
|
+
var writer = new jspb.BinaryWriter();
|
|
3841
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.serializeBinaryToWriter(this, writer);
|
|
3842
|
+
return writer.getResultBuffer();
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3848
|
+
* format), writing to the given BinaryWriter.
|
|
3849
|
+
* @param {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} message
|
|
3850
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3851
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3852
|
+
*/
|
|
3853
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3854
|
+
var f = undefined;
|
|
3855
|
+
f = message.getStatus();
|
|
3856
|
+
if (f != null) {
|
|
3857
|
+
writer.writeMessage(
|
|
3858
|
+
1,
|
|
3859
|
+
f,
|
|
3860
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
3861
|
+
);
|
|
3862
|
+
}
|
|
3863
|
+
f = message.getRatingsList();
|
|
3864
|
+
if (f.length > 0) {
|
|
3865
|
+
writer.writeRepeatedMessage(
|
|
3866
|
+
2,
|
|
3867
|
+
f,
|
|
3868
|
+
proto.gateway.web.v1.InsightRating.serializeBinaryToWriter
|
|
3869
|
+
);
|
|
3870
|
+
}
|
|
3871
|
+
};
|
|
3872
|
+
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
3876
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
3877
|
+
*/
|
|
3878
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.getStatus = function() {
|
|
3879
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
3880
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
3881
|
+
};
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
3886
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} returns this
|
|
3887
|
+
*/
|
|
3888
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.setStatus = function(value) {
|
|
3889
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3890
|
+
};
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
/**
|
|
3894
|
+
* Clears the message field making it undefined.
|
|
3895
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} returns this
|
|
3896
|
+
*/
|
|
3897
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.clearStatus = function() {
|
|
3898
|
+
return this.setStatus(undefined);
|
|
3899
|
+
};
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
/**
|
|
3903
|
+
* Returns whether this field is set.
|
|
3904
|
+
* @return {boolean}
|
|
3905
|
+
*/
|
|
3906
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.hasStatus = function() {
|
|
3907
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3908
|
+
};
|
|
3909
|
+
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* repeated InsightRating ratings = 2;
|
|
3913
|
+
* @return {!Array<!proto.gateway.web.v1.InsightRating>}
|
|
3914
|
+
*/
|
|
3915
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.getRatingsList = function() {
|
|
3916
|
+
return /** @type{!Array<!proto.gateway.web.v1.InsightRating>} */ (
|
|
3917
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InsightRating, 2));
|
|
3918
|
+
};
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* @param {!Array<!proto.gateway.web.v1.InsightRating>} value
|
|
3923
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} returns this
|
|
3924
|
+
*/
|
|
3925
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.setRatingsList = function(value) {
|
|
3926
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
3927
|
+
};
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
/**
|
|
3931
|
+
* @param {!proto.gateway.web.v1.InsightRating=} opt_value
|
|
3932
|
+
* @param {number=} opt_index
|
|
3933
|
+
* @return {!proto.gateway.web.v1.InsightRating}
|
|
3934
|
+
*/
|
|
3935
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.addRatings = function(opt_value, opt_index) {
|
|
3936
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InsightRating, opt_index);
|
|
3937
|
+
};
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
/**
|
|
3941
|
+
* Clears the list making it empty but non-null.
|
|
3942
|
+
* @return {!proto.gateway.web.v1.BatchGetInsightRatingsResponse} returns this
|
|
3943
|
+
*/
|
|
3944
|
+
proto.gateway.web.v1.BatchGetInsightRatingsResponse.prototype.clearRatingsList = function() {
|
|
3945
|
+
return this.setRatingsList([]);
|
|
3946
|
+
};
|
|
3947
|
+
|
|
3948
|
+
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3953
|
+
/**
|
|
3954
|
+
* Creates an object representation of this proto.
|
|
3955
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3956
|
+
* Optional fields that are not set will be set to undefined.
|
|
3957
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3958
|
+
* For the list of reserved names please see:
|
|
3959
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3960
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3961
|
+
* JSPB instance for transitional soy proto support:
|
|
3962
|
+
* http://goto/soy-param-migration
|
|
3963
|
+
* @return {!Object}
|
|
3964
|
+
*/
|
|
3965
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3966
|
+
return proto.gateway.web.v1.SetInsightRatingRequest.toObject(opt_includeInstance, this);
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* Static version of the {@see toObject} method.
|
|
3972
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3973
|
+
* the JSPB instance for transitional soy proto support:
|
|
3974
|
+
* http://goto/soy-param-migration
|
|
3975
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingRequest} msg The msg instance to transform.
|
|
3976
|
+
* @return {!Object}
|
|
3977
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3978
|
+
*/
|
|
3979
|
+
proto.gateway.web.v1.SetInsightRatingRequest.toObject = function(includeInstance, msg) {
|
|
3980
|
+
var f, obj = {
|
|
3981
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3982
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3983
|
+
insight: (f = msg.getInsight()) && proto.gateway.web.v1.InsightRef.toObject(includeInstance, f),
|
|
3984
|
+
rating: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
3985
|
+
};
|
|
3986
|
+
|
|
3987
|
+
if (includeInstance) {
|
|
3988
|
+
obj.$jspbMessageInstance = msg;
|
|
3989
|
+
}
|
|
3990
|
+
return obj;
|
|
3991
|
+
};
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
/**
|
|
3996
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3997
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3998
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest}
|
|
3999
|
+
*/
|
|
4000
|
+
proto.gateway.web.v1.SetInsightRatingRequest.deserializeBinary = function(bytes) {
|
|
4001
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4002
|
+
var msg = new proto.gateway.web.v1.SetInsightRatingRequest;
|
|
4003
|
+
return proto.gateway.web.v1.SetInsightRatingRequest.deserializeBinaryFromReader(msg, reader);
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4009
|
+
* given reader into the given message object.
|
|
4010
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingRequest} msg The message object to deserialize into.
|
|
4011
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4012
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest}
|
|
4013
|
+
*/
|
|
4014
|
+
proto.gateway.web.v1.SetInsightRatingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4015
|
+
while (reader.nextField()) {
|
|
4016
|
+
if (reader.isEndGroup()) {
|
|
4017
|
+
break;
|
|
4018
|
+
}
|
|
4019
|
+
var field = reader.getFieldNumber();
|
|
4020
|
+
switch (field) {
|
|
4021
|
+
case 1:
|
|
4022
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4023
|
+
msg.setOrganizationId(value);
|
|
4024
|
+
break;
|
|
4025
|
+
case 2:
|
|
4026
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4027
|
+
msg.setProjectId(value);
|
|
4028
|
+
break;
|
|
4029
|
+
case 3:
|
|
4030
|
+
var value = new proto.gateway.web.v1.InsightRef;
|
|
4031
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader);
|
|
4032
|
+
msg.setInsight(value);
|
|
4033
|
+
break;
|
|
4034
|
+
case 4:
|
|
4035
|
+
var value = /** @type {!proto.gateway.web.v1.AIInsightRating} */ (reader.readEnum());
|
|
4036
|
+
msg.setRating(value);
|
|
4037
|
+
break;
|
|
4038
|
+
default:
|
|
4039
|
+
reader.skipField();
|
|
4040
|
+
break;
|
|
4041
|
+
}
|
|
4042
|
+
}
|
|
4043
|
+
return msg;
|
|
4044
|
+
};
|
|
4045
|
+
|
|
4046
|
+
|
|
4047
|
+
/**
|
|
4048
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4049
|
+
* @return {!Uint8Array}
|
|
4050
|
+
*/
|
|
4051
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.serializeBinary = function() {
|
|
4052
|
+
var writer = new jspb.BinaryWriter();
|
|
4053
|
+
proto.gateway.web.v1.SetInsightRatingRequest.serializeBinaryToWriter(this, writer);
|
|
4054
|
+
return writer.getResultBuffer();
|
|
4055
|
+
};
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
/**
|
|
4059
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4060
|
+
* format), writing to the given BinaryWriter.
|
|
4061
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingRequest} message
|
|
4062
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4063
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4064
|
+
*/
|
|
4065
|
+
proto.gateway.web.v1.SetInsightRatingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4066
|
+
var f = undefined;
|
|
4067
|
+
f = message.getOrganizationId();
|
|
4068
|
+
if (f.length > 0) {
|
|
4069
|
+
writer.writeString(
|
|
4070
|
+
1,
|
|
4071
|
+
f
|
|
4072
|
+
);
|
|
4073
|
+
}
|
|
4074
|
+
f = message.getProjectId();
|
|
4075
|
+
if (f.length > 0) {
|
|
4076
|
+
writer.writeString(
|
|
4077
|
+
2,
|
|
4078
|
+
f
|
|
4079
|
+
);
|
|
4080
|
+
}
|
|
4081
|
+
f = message.getInsight();
|
|
4082
|
+
if (f != null) {
|
|
4083
|
+
writer.writeMessage(
|
|
4084
|
+
3,
|
|
4085
|
+
f,
|
|
4086
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter
|
|
4087
|
+
);
|
|
4088
|
+
}
|
|
4089
|
+
f = message.getRating();
|
|
4090
|
+
if (f !== 0.0) {
|
|
4091
|
+
writer.writeEnum(
|
|
4092
|
+
4,
|
|
4093
|
+
f
|
|
4094
|
+
);
|
|
4095
|
+
}
|
|
4096
|
+
};
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
/**
|
|
4100
|
+
* optional string organization_id = 1;
|
|
4101
|
+
* @return {string}
|
|
4102
|
+
*/
|
|
4103
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.getOrganizationId = function() {
|
|
4104
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4105
|
+
};
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
/**
|
|
4109
|
+
* @param {string} value
|
|
4110
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest} returns this
|
|
4111
|
+
*/
|
|
4112
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.setOrganizationId = function(value) {
|
|
4113
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4114
|
+
};
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* optional string project_id = 2;
|
|
4119
|
+
* @return {string}
|
|
4120
|
+
*/
|
|
4121
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.getProjectId = function() {
|
|
4122
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
/**
|
|
4127
|
+
* @param {string} value
|
|
4128
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest} returns this
|
|
4129
|
+
*/
|
|
4130
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.setProjectId = function(value) {
|
|
4131
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4132
|
+
};
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
/**
|
|
4136
|
+
* optional InsightRef insight = 3;
|
|
4137
|
+
* @return {?proto.gateway.web.v1.InsightRef}
|
|
4138
|
+
*/
|
|
4139
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.getInsight = function() {
|
|
4140
|
+
return /** @type{?proto.gateway.web.v1.InsightRef} */ (
|
|
4141
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.InsightRef, 3));
|
|
4142
|
+
};
|
|
4143
|
+
|
|
4144
|
+
|
|
4145
|
+
/**
|
|
4146
|
+
* @param {?proto.gateway.web.v1.InsightRef|undefined} value
|
|
4147
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest} returns this
|
|
4148
|
+
*/
|
|
4149
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.setInsight = function(value) {
|
|
4150
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
4151
|
+
};
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
/**
|
|
4155
|
+
* Clears the message field making it undefined.
|
|
4156
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest} returns this
|
|
4157
|
+
*/
|
|
4158
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.clearInsight = function() {
|
|
4159
|
+
return this.setInsight(undefined);
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* Returns whether this field is set.
|
|
4165
|
+
* @return {boolean}
|
|
4166
|
+
*/
|
|
4167
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.hasInsight = function() {
|
|
4168
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* optional AIInsightRating rating = 4;
|
|
4174
|
+
* @return {!proto.gateway.web.v1.AIInsightRating}
|
|
4175
|
+
*/
|
|
4176
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.getRating = function() {
|
|
4177
|
+
return /** @type {!proto.gateway.web.v1.AIInsightRating} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
4178
|
+
};
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
/**
|
|
4182
|
+
* @param {!proto.gateway.web.v1.AIInsightRating} value
|
|
4183
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingRequest} returns this
|
|
4184
|
+
*/
|
|
4185
|
+
proto.gateway.web.v1.SetInsightRatingRequest.prototype.setRating = function(value) {
|
|
4186
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
4187
|
+
};
|
|
4188
|
+
|
|
4189
|
+
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4194
|
+
/**
|
|
4195
|
+
* Creates an object representation of this proto.
|
|
4196
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4197
|
+
* Optional fields that are not set will be set to undefined.
|
|
4198
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4199
|
+
* For the list of reserved names please see:
|
|
4200
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4201
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4202
|
+
* JSPB instance for transitional soy proto support:
|
|
4203
|
+
* http://goto/soy-param-migration
|
|
4204
|
+
* @return {!Object}
|
|
4205
|
+
*/
|
|
4206
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4207
|
+
return proto.gateway.web.v1.SetInsightRatingResponse.toObject(opt_includeInstance, this);
|
|
4208
|
+
};
|
|
4209
|
+
|
|
4210
|
+
|
|
4211
|
+
/**
|
|
4212
|
+
* Static version of the {@see toObject} method.
|
|
4213
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4214
|
+
* the JSPB instance for transitional soy proto support:
|
|
4215
|
+
* http://goto/soy-param-migration
|
|
4216
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingResponse} msg The msg instance to transform.
|
|
4217
|
+
* @return {!Object}
|
|
4218
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4219
|
+
*/
|
|
4220
|
+
proto.gateway.web.v1.SetInsightRatingResponse.toObject = function(includeInstance, msg) {
|
|
4221
|
+
var f, obj = {
|
|
4222
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
4223
|
+
rating: (f = msg.getRating()) && proto.gateway.web.v1.InsightRating.toObject(includeInstance, f)
|
|
4224
|
+
};
|
|
4225
|
+
|
|
4226
|
+
if (includeInstance) {
|
|
4227
|
+
obj.$jspbMessageInstance = msg;
|
|
4228
|
+
}
|
|
4229
|
+
return obj;
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
/**
|
|
4235
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4236
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
4237
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse}
|
|
4238
|
+
*/
|
|
4239
|
+
proto.gateway.web.v1.SetInsightRatingResponse.deserializeBinary = function(bytes) {
|
|
4240
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4241
|
+
var msg = new proto.gateway.web.v1.SetInsightRatingResponse;
|
|
4242
|
+
return proto.gateway.web.v1.SetInsightRatingResponse.deserializeBinaryFromReader(msg, reader);
|
|
4243
|
+
};
|
|
4244
|
+
|
|
4245
|
+
|
|
4246
|
+
/**
|
|
4247
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4248
|
+
* given reader into the given message object.
|
|
4249
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingResponse} msg The message object to deserialize into.
|
|
4250
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4251
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse}
|
|
4252
|
+
*/
|
|
4253
|
+
proto.gateway.web.v1.SetInsightRatingResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4254
|
+
while (reader.nextField()) {
|
|
4255
|
+
if (reader.isEndGroup()) {
|
|
4256
|
+
break;
|
|
4257
|
+
}
|
|
4258
|
+
var field = reader.getFieldNumber();
|
|
4259
|
+
switch (field) {
|
|
4260
|
+
case 1:
|
|
4261
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
4262
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
4263
|
+
msg.setStatus(value);
|
|
4264
|
+
break;
|
|
4265
|
+
case 2:
|
|
4266
|
+
var value = new proto.gateway.web.v1.InsightRating;
|
|
4267
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRating.deserializeBinaryFromReader);
|
|
4268
|
+
msg.setRating(value);
|
|
4269
|
+
break;
|
|
4270
|
+
default:
|
|
4271
|
+
reader.skipField();
|
|
4272
|
+
break;
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
return msg;
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
/**
|
|
4280
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4281
|
+
* @return {!Uint8Array}
|
|
4282
|
+
*/
|
|
4283
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.serializeBinary = function() {
|
|
4284
|
+
var writer = new jspb.BinaryWriter();
|
|
4285
|
+
proto.gateway.web.v1.SetInsightRatingResponse.serializeBinaryToWriter(this, writer);
|
|
4286
|
+
return writer.getResultBuffer();
|
|
4287
|
+
};
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4292
|
+
* format), writing to the given BinaryWriter.
|
|
4293
|
+
* @param {!proto.gateway.web.v1.SetInsightRatingResponse} message
|
|
4294
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4295
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4296
|
+
*/
|
|
4297
|
+
proto.gateway.web.v1.SetInsightRatingResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4298
|
+
var f = undefined;
|
|
4299
|
+
f = message.getStatus();
|
|
4300
|
+
if (f != null) {
|
|
4301
|
+
writer.writeMessage(
|
|
4302
|
+
1,
|
|
4303
|
+
f,
|
|
4304
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
4305
|
+
);
|
|
4306
|
+
}
|
|
4307
|
+
f = message.getRating();
|
|
4308
|
+
if (f != null) {
|
|
4309
|
+
writer.writeMessage(
|
|
4310
|
+
2,
|
|
4311
|
+
f,
|
|
4312
|
+
proto.gateway.web.v1.InsightRating.serializeBinaryToWriter
|
|
4313
|
+
);
|
|
4314
|
+
}
|
|
4315
|
+
};
|
|
4316
|
+
|
|
4317
|
+
|
|
4318
|
+
/**
|
|
4319
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
4320
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
4321
|
+
*/
|
|
4322
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.getStatus = function() {
|
|
4323
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
4324
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4327
|
+
|
|
4328
|
+
/**
|
|
4329
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
4330
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse} returns this
|
|
4331
|
+
*/
|
|
4332
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.setStatus = function(value) {
|
|
4333
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4334
|
+
};
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Clears the message field making it undefined.
|
|
4339
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse} returns this
|
|
4340
|
+
*/
|
|
4341
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.clearStatus = function() {
|
|
4342
|
+
return this.setStatus(undefined);
|
|
4343
|
+
};
|
|
4344
|
+
|
|
4345
|
+
|
|
4346
|
+
/**
|
|
4347
|
+
* Returns whether this field is set.
|
|
4348
|
+
* @return {boolean}
|
|
4349
|
+
*/
|
|
4350
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.hasStatus = function() {
|
|
4351
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
|
|
4355
|
+
/**
|
|
4356
|
+
* optional InsightRating rating = 2;
|
|
4357
|
+
* @return {?proto.gateway.web.v1.InsightRating}
|
|
4358
|
+
*/
|
|
4359
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.getRating = function() {
|
|
4360
|
+
return /** @type{?proto.gateway.web.v1.InsightRating} */ (
|
|
4361
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.InsightRating, 2));
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
|
|
4365
|
+
/**
|
|
4366
|
+
* @param {?proto.gateway.web.v1.InsightRating|undefined} value
|
|
4367
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse} returns this
|
|
4368
|
+
*/
|
|
4369
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.setRating = function(value) {
|
|
4370
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* Clears the message field making it undefined.
|
|
4376
|
+
* @return {!proto.gateway.web.v1.SetInsightRatingResponse} returns this
|
|
4377
|
+
*/
|
|
4378
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.clearRating = function() {
|
|
4379
|
+
return this.setRating(undefined);
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
/**
|
|
4384
|
+
* Returns whether this field is set.
|
|
4385
|
+
* @return {boolean}
|
|
4386
|
+
*/
|
|
4387
|
+
proto.gateway.web.v1.SetInsightRatingResponse.prototype.hasRating = function() {
|
|
4388
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4396
|
+
/**
|
|
4397
|
+
* Creates an object representation of this proto.
|
|
4398
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4399
|
+
* Optional fields that are not set will be set to undefined.
|
|
4400
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4401
|
+
* For the list of reserved names please see:
|
|
4402
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4403
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4404
|
+
* JSPB instance for transitional soy proto support:
|
|
4405
|
+
* http://goto/soy-param-migration
|
|
4406
|
+
* @return {!Object}
|
|
4407
|
+
*/
|
|
4408
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4409
|
+
return proto.gateway.web.v1.DeleteInsightRatingRequest.toObject(opt_includeInstance, this);
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* Static version of the {@see toObject} method.
|
|
4415
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4416
|
+
* the JSPB instance for transitional soy proto support:
|
|
4417
|
+
* http://goto/soy-param-migration
|
|
4418
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingRequest} msg The msg instance to transform.
|
|
4419
|
+
* @return {!Object}
|
|
4420
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4421
|
+
*/
|
|
4422
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.toObject = function(includeInstance, msg) {
|
|
4423
|
+
var f, obj = {
|
|
4424
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4425
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4426
|
+
insight: (f = msg.getInsight()) && proto.gateway.web.v1.InsightRef.toObject(includeInstance, f)
|
|
4427
|
+
};
|
|
4428
|
+
|
|
4429
|
+
if (includeInstance) {
|
|
4430
|
+
obj.$jspbMessageInstance = msg;
|
|
4431
|
+
}
|
|
4432
|
+
return obj;
|
|
4433
|
+
};
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
|
|
4437
|
+
/**
|
|
4438
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4439
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
4440
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest}
|
|
4441
|
+
*/
|
|
4442
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.deserializeBinary = function(bytes) {
|
|
4443
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4444
|
+
var msg = new proto.gateway.web.v1.DeleteInsightRatingRequest;
|
|
4445
|
+
return proto.gateway.web.v1.DeleteInsightRatingRequest.deserializeBinaryFromReader(msg, reader);
|
|
4446
|
+
};
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4451
|
+
* given reader into the given message object.
|
|
4452
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingRequest} msg The message object to deserialize into.
|
|
4453
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4454
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest}
|
|
4455
|
+
*/
|
|
4456
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4457
|
+
while (reader.nextField()) {
|
|
4458
|
+
if (reader.isEndGroup()) {
|
|
4459
|
+
break;
|
|
4460
|
+
}
|
|
4461
|
+
var field = reader.getFieldNumber();
|
|
4462
|
+
switch (field) {
|
|
4463
|
+
case 1:
|
|
4464
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4465
|
+
msg.setOrganizationId(value);
|
|
4466
|
+
break;
|
|
4467
|
+
case 2:
|
|
4468
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4469
|
+
msg.setProjectId(value);
|
|
4470
|
+
break;
|
|
4471
|
+
case 3:
|
|
4472
|
+
var value = new proto.gateway.web.v1.InsightRef;
|
|
4473
|
+
reader.readMessage(value,proto.gateway.web.v1.InsightRef.deserializeBinaryFromReader);
|
|
4474
|
+
msg.setInsight(value);
|
|
4475
|
+
break;
|
|
4476
|
+
default:
|
|
4477
|
+
reader.skipField();
|
|
4478
|
+
break;
|
|
4479
|
+
}
|
|
4480
|
+
}
|
|
4481
|
+
return msg;
|
|
4482
|
+
};
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
/**
|
|
4486
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4487
|
+
* @return {!Uint8Array}
|
|
4488
|
+
*/
|
|
4489
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.serializeBinary = function() {
|
|
4490
|
+
var writer = new jspb.BinaryWriter();
|
|
4491
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.serializeBinaryToWriter(this, writer);
|
|
4492
|
+
return writer.getResultBuffer();
|
|
4493
|
+
};
|
|
4494
|
+
|
|
4495
|
+
|
|
4496
|
+
/**
|
|
4497
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4498
|
+
* format), writing to the given BinaryWriter.
|
|
4499
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingRequest} message
|
|
4500
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4501
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4502
|
+
*/
|
|
4503
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4504
|
+
var f = undefined;
|
|
4505
|
+
f = message.getOrganizationId();
|
|
4506
|
+
if (f.length > 0) {
|
|
4507
|
+
writer.writeString(
|
|
4508
|
+
1,
|
|
4509
|
+
f
|
|
4510
|
+
);
|
|
4511
|
+
}
|
|
4512
|
+
f = message.getProjectId();
|
|
4513
|
+
if (f.length > 0) {
|
|
4514
|
+
writer.writeString(
|
|
4515
|
+
2,
|
|
4516
|
+
f
|
|
4517
|
+
);
|
|
4518
|
+
}
|
|
4519
|
+
f = message.getInsight();
|
|
4520
|
+
if (f != null) {
|
|
4521
|
+
writer.writeMessage(
|
|
4522
|
+
3,
|
|
4523
|
+
f,
|
|
4524
|
+
proto.gateway.web.v1.InsightRef.serializeBinaryToWriter
|
|
4525
|
+
);
|
|
4526
|
+
}
|
|
4527
|
+
};
|
|
4528
|
+
|
|
4529
|
+
|
|
4530
|
+
/**
|
|
4531
|
+
* optional string organization_id = 1;
|
|
4532
|
+
* @return {string}
|
|
4533
|
+
*/
|
|
4534
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.getOrganizationId = function() {
|
|
4535
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4536
|
+
};
|
|
4537
|
+
|
|
4538
|
+
|
|
4539
|
+
/**
|
|
4540
|
+
* @param {string} value
|
|
4541
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest} returns this
|
|
4542
|
+
*/
|
|
4543
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.setOrganizationId = function(value) {
|
|
4544
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4545
|
+
};
|
|
4546
|
+
|
|
4547
|
+
|
|
4548
|
+
/**
|
|
4549
|
+
* optional string project_id = 2;
|
|
4550
|
+
* @return {string}
|
|
4551
|
+
*/
|
|
4552
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.getProjectId = function() {
|
|
4553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4554
|
+
};
|
|
4555
|
+
|
|
4556
|
+
|
|
4557
|
+
/**
|
|
4558
|
+
* @param {string} value
|
|
4559
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest} returns this
|
|
4560
|
+
*/
|
|
4561
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.setProjectId = function(value) {
|
|
4562
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4563
|
+
};
|
|
4564
|
+
|
|
4565
|
+
|
|
4566
|
+
/**
|
|
4567
|
+
* optional InsightRef insight = 3;
|
|
4568
|
+
* @return {?proto.gateway.web.v1.InsightRef}
|
|
4569
|
+
*/
|
|
4570
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.getInsight = function() {
|
|
4571
|
+
return /** @type{?proto.gateway.web.v1.InsightRef} */ (
|
|
4572
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.InsightRef, 3));
|
|
4573
|
+
};
|
|
4574
|
+
|
|
4575
|
+
|
|
4576
|
+
/**
|
|
4577
|
+
* @param {?proto.gateway.web.v1.InsightRef|undefined} value
|
|
4578
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest} returns this
|
|
4579
|
+
*/
|
|
4580
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.setInsight = function(value) {
|
|
4581
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
4582
|
+
};
|
|
4583
|
+
|
|
4584
|
+
|
|
4585
|
+
/**
|
|
4586
|
+
* Clears the message field making it undefined.
|
|
4587
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingRequest} returns this
|
|
4588
|
+
*/
|
|
4589
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.clearInsight = function() {
|
|
4590
|
+
return this.setInsight(undefined);
|
|
4591
|
+
};
|
|
4592
|
+
|
|
4593
|
+
|
|
4594
|
+
/**
|
|
4595
|
+
* Returns whether this field is set.
|
|
4596
|
+
* @return {boolean}
|
|
4597
|
+
*/
|
|
4598
|
+
proto.gateway.web.v1.DeleteInsightRatingRequest.prototype.hasInsight = function() {
|
|
4599
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4600
|
+
};
|
|
4601
|
+
|
|
4602
|
+
|
|
4603
|
+
|
|
4604
|
+
|
|
4605
|
+
|
|
4606
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4607
|
+
/**
|
|
4608
|
+
* Creates an object representation of this proto.
|
|
4609
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4610
|
+
* Optional fields that are not set will be set to undefined.
|
|
4611
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4612
|
+
* For the list of reserved names please see:
|
|
4613
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4614
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4615
|
+
* JSPB instance for transitional soy proto support:
|
|
4616
|
+
* http://goto/soy-param-migration
|
|
4617
|
+
* @return {!Object}
|
|
4618
|
+
*/
|
|
4619
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4620
|
+
return proto.gateway.web.v1.DeleteInsightRatingResponse.toObject(opt_includeInstance, this);
|
|
4621
|
+
};
|
|
4622
|
+
|
|
4623
|
+
|
|
4624
|
+
/**
|
|
4625
|
+
* Static version of the {@see toObject} method.
|
|
4626
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4627
|
+
* the JSPB instance for transitional soy proto support:
|
|
4628
|
+
* http://goto/soy-param-migration
|
|
4629
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingResponse} msg The msg instance to transform.
|
|
4630
|
+
* @return {!Object}
|
|
4631
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4632
|
+
*/
|
|
4633
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.toObject = function(includeInstance, msg) {
|
|
4634
|
+
var f, obj = {
|
|
4635
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
4636
|
+
};
|
|
4637
|
+
|
|
4638
|
+
if (includeInstance) {
|
|
4639
|
+
obj.$jspbMessageInstance = msg;
|
|
4640
|
+
}
|
|
4641
|
+
return obj;
|
|
4642
|
+
};
|
|
4643
|
+
}
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4648
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
4649
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingResponse}
|
|
4650
|
+
*/
|
|
4651
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.deserializeBinary = function(bytes) {
|
|
4652
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4653
|
+
var msg = new proto.gateway.web.v1.DeleteInsightRatingResponse;
|
|
4654
|
+
return proto.gateway.web.v1.DeleteInsightRatingResponse.deserializeBinaryFromReader(msg, reader);
|
|
4655
|
+
};
|
|
4656
|
+
|
|
4657
|
+
|
|
4658
|
+
/**
|
|
4659
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4660
|
+
* given reader into the given message object.
|
|
4661
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingResponse} msg The message object to deserialize into.
|
|
4662
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4663
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingResponse}
|
|
4664
|
+
*/
|
|
4665
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4666
|
+
while (reader.nextField()) {
|
|
4667
|
+
if (reader.isEndGroup()) {
|
|
4668
|
+
break;
|
|
4669
|
+
}
|
|
4670
|
+
var field = reader.getFieldNumber();
|
|
4671
|
+
switch (field) {
|
|
4672
|
+
case 1:
|
|
4673
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
4674
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
4675
|
+
msg.setStatus(value);
|
|
4676
|
+
break;
|
|
4677
|
+
default:
|
|
4678
|
+
reader.skipField();
|
|
4679
|
+
break;
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
return msg;
|
|
4683
|
+
};
|
|
4684
|
+
|
|
4685
|
+
|
|
4686
|
+
/**
|
|
4687
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4688
|
+
* @return {!Uint8Array}
|
|
4689
|
+
*/
|
|
4690
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.serializeBinary = function() {
|
|
4691
|
+
var writer = new jspb.BinaryWriter();
|
|
4692
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.serializeBinaryToWriter(this, writer);
|
|
4693
|
+
return writer.getResultBuffer();
|
|
4694
|
+
};
|
|
4695
|
+
|
|
4696
|
+
|
|
4697
|
+
/**
|
|
4698
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4699
|
+
* format), writing to the given BinaryWriter.
|
|
4700
|
+
* @param {!proto.gateway.web.v1.DeleteInsightRatingResponse} message
|
|
4701
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4702
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4703
|
+
*/
|
|
4704
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4705
|
+
var f = undefined;
|
|
4706
|
+
f = message.getStatus();
|
|
4707
|
+
if (f != null) {
|
|
4708
|
+
writer.writeMessage(
|
|
4709
|
+
1,
|
|
4710
|
+
f,
|
|
4711
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
4712
|
+
);
|
|
4713
|
+
}
|
|
4714
|
+
};
|
|
4715
|
+
|
|
4716
|
+
|
|
4717
|
+
/**
|
|
4718
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
4719
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
4720
|
+
*/
|
|
4721
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.getStatus = function() {
|
|
4722
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
4723
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
4724
|
+
};
|
|
4725
|
+
|
|
4726
|
+
|
|
4727
|
+
/**
|
|
4728
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
4729
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingResponse} returns this
|
|
4730
|
+
*/
|
|
4731
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.setStatus = function(value) {
|
|
4732
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4733
|
+
};
|
|
4734
|
+
|
|
4735
|
+
|
|
4736
|
+
/**
|
|
4737
|
+
* Clears the message field making it undefined.
|
|
4738
|
+
* @return {!proto.gateway.web.v1.DeleteInsightRatingResponse} returns this
|
|
4739
|
+
*/
|
|
4740
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.clearStatus = function() {
|
|
4741
|
+
return this.setStatus(undefined);
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
|
|
4745
|
+
/**
|
|
4746
|
+
* Returns whether this field is set.
|
|
4747
|
+
* @return {boolean}
|
|
4748
|
+
*/
|
|
4749
|
+
proto.gateway.web.v1.DeleteInsightRatingResponse.prototype.hasStatus = function() {
|
|
4750
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4751
|
+
};
|
|
4752
|
+
|
|
4753
|
+
|
|
4754
|
+
/**
|
|
4755
|
+
* @enum {number}
|
|
4756
|
+
*/
|
|
4757
|
+
proto.gateway.web.v1.SessionInsightSort = {
|
|
4758
|
+
SESSION_INSIGHT_SORT_UNSPECIFIED: 0,
|
|
4759
|
+
SESSION_INSIGHT_SORT_RECENT: 1
|
|
4760
|
+
};
|
|
4761
|
+
|
|
4762
|
+
/**
|
|
4763
|
+
* @enum {number}
|
|
4764
|
+
*/
|
|
4765
|
+
proto.gateway.web.v1.AIProjectInsightKind = {
|
|
4766
|
+
AI_PROJECT_INSIGHT_KIND_UNSPECIFIED: 0,
|
|
4767
|
+
AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW: 1,
|
|
4768
|
+
AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE: 2,
|
|
4769
|
+
AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW: 3,
|
|
4770
|
+
AI_PROJECT_INSIGHT_KIND_TOOLING_MCP: 4,
|
|
4771
|
+
AI_PROJECT_INSIGHT_KIND_COORDINATION: 5,
|
|
4772
|
+
AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS: 6,
|
|
4773
|
+
AI_PROJECT_INSIGHT_KIND_SKILL_SHARING: 7,
|
|
4774
|
+
AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE: 8
|
|
4775
|
+
};
|
|
4776
|
+
|
|
4777
|
+
/**
|
|
4778
|
+
* @enum {number}
|
|
4779
|
+
*/
|
|
4780
|
+
proto.gateway.web.v1.AIInsightRating = {
|
|
4781
|
+
AI_INSIGHT_RATING_UNSPECIFIED: 0,
|
|
4782
|
+
AI_INSIGHT_RATING_NOT_HELPFUL: 1,
|
|
4783
|
+
AI_INSIGHT_RATING_HELPFUL: 2,
|
|
4784
|
+
AI_INSIGHT_RATING_VERY_HELPFUL: 3
|
|
4785
|
+
};
|
|
4786
|
+
|
|
4787
|
+
goog.object.extend(exports, proto.gateway.web.v1);
|