@aldiokta/protocgen 1.1.65 → 1.1.67
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/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +1764 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +71 -0
- package/prisca/v1/core/auth/auth_pb.js +599 -1
- package/prisca/v1/core/currency_exchange_rate/currency_exchange_rate_grpc_pb.js +180 -0
- package/prisca/v1/core/currency_exchange_rate/currency_exchange_rate_pb.js +2696 -0
- package/prisca/v1/core/employee/employee_pb.js +61 -1
- package/prisca/v1/core/subscription/subscription_grpc_pb.js +82 -0
- package/prisca/v1/core/subscription/subscription_pb.js +1713 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +24 -0
- package/prisca/v1/invoice/invoice_pb.js +1102 -108
- package/prisca/v1/purchase_order/purchase_order_pb.js +62 -2
|
@@ -0,0 +1,1713 @@
|
|
|
1
|
+
// source: prisca/v1/core/subscription/subscription.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 prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
19
|
+
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
20
|
+
goog.exportSymbol('proto.GetEntitlementRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.GetEntitlementResponse', null, global);
|
|
22
|
+
goog.exportSymbol('proto.ProcessSubscriptionEventRequest', null, global);
|
|
23
|
+
goog.exportSymbol('proto.ProcessSubscriptionEventResponse', null, global);
|
|
24
|
+
goog.exportSymbol('proto.SubscriptionEntitlement', null, global);
|
|
25
|
+
goog.exportSymbol('proto.SubscriptionQuota', null, global);
|
|
26
|
+
/**
|
|
27
|
+
* Generated by JsPbCodeGenerator.
|
|
28
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
29
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
30
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
31
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
32
|
+
* valid.
|
|
33
|
+
* @extends {jspb.Message}
|
|
34
|
+
* @constructor
|
|
35
|
+
*/
|
|
36
|
+
proto.ProcessSubscriptionEventRequest = function(opt_data) {
|
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
38
|
+
};
|
|
39
|
+
goog.inherits(proto.ProcessSubscriptionEventRequest, jspb.Message);
|
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* @override
|
|
44
|
+
*/
|
|
45
|
+
proto.ProcessSubscriptionEventRequest.displayName = 'proto.ProcessSubscriptionEventRequest';
|
|
46
|
+
}
|
|
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.ProcessSubscriptionEventResponse = function(opt_data) {
|
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
+
};
|
|
60
|
+
goog.inherits(proto.ProcessSubscriptionEventResponse, jspb.Message);
|
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @override
|
|
65
|
+
*/
|
|
66
|
+
proto.ProcessSubscriptionEventResponse.displayName = 'proto.ProcessSubscriptionEventResponse';
|
|
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.SubscriptionQuota = function(opt_data) {
|
|
79
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
80
|
+
};
|
|
81
|
+
goog.inherits(proto.SubscriptionQuota, jspb.Message);
|
|
82
|
+
if (goog.DEBUG && !COMPILED) {
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @override
|
|
86
|
+
*/
|
|
87
|
+
proto.SubscriptionQuota.displayName = 'proto.SubscriptionQuota';
|
|
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.SubscriptionEntitlement = function(opt_data) {
|
|
100
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.SubscriptionEntitlement.repeatedFields_, null);
|
|
101
|
+
};
|
|
102
|
+
goog.inherits(proto.SubscriptionEntitlement, jspb.Message);
|
|
103
|
+
if (goog.DEBUG && !COMPILED) {
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @override
|
|
107
|
+
*/
|
|
108
|
+
proto.SubscriptionEntitlement.displayName = 'proto.SubscriptionEntitlement';
|
|
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.GetEntitlementRequest = function(opt_data) {
|
|
121
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
122
|
+
};
|
|
123
|
+
goog.inherits(proto.GetEntitlementRequest, jspb.Message);
|
|
124
|
+
if (goog.DEBUG && !COMPILED) {
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @override
|
|
128
|
+
*/
|
|
129
|
+
proto.GetEntitlementRequest.displayName = 'proto.GetEntitlementRequest';
|
|
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.GetEntitlementResponse = function(opt_data) {
|
|
142
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
143
|
+
};
|
|
144
|
+
goog.inherits(proto.GetEntitlementResponse, jspb.Message);
|
|
145
|
+
if (goog.DEBUG && !COMPILED) {
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
* @override
|
|
149
|
+
*/
|
|
150
|
+
proto.GetEntitlementResponse.displayName = 'proto.GetEntitlementResponse';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
156
|
+
/**
|
|
157
|
+
* Creates an object representation of this proto.
|
|
158
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
159
|
+
* Optional fields that are not set will be set to undefined.
|
|
160
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
161
|
+
* For the list of reserved names please see:
|
|
162
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
163
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
164
|
+
* JSPB instance for transitional soy proto support:
|
|
165
|
+
* http://goto/soy-param-migration
|
|
166
|
+
* @return {!Object}
|
|
167
|
+
*/
|
|
168
|
+
proto.ProcessSubscriptionEventRequest.prototype.toObject = function(opt_includeInstance) {
|
|
169
|
+
return proto.ProcessSubscriptionEventRequest.toObject(opt_includeInstance, this);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Static version of the {@see toObject} method.
|
|
175
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
176
|
+
* the JSPB instance for transitional soy proto support:
|
|
177
|
+
* http://goto/soy-param-migration
|
|
178
|
+
* @param {!proto.ProcessSubscriptionEventRequest} msg The msg instance to transform.
|
|
179
|
+
* @return {!Object}
|
|
180
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
181
|
+
*/
|
|
182
|
+
proto.ProcessSubscriptionEventRequest.toObject = function(includeInstance, msg) {
|
|
183
|
+
var f, obj = {
|
|
184
|
+
eventId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
185
|
+
eventType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
186
|
+
externalTenantId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
187
|
+
rawBody: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
188
|
+
receivedAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
189
|
+
sourceIp: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
if (includeInstance) {
|
|
193
|
+
obj.$jspbMessageInstance = msg;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Deserializes binary data (in protobuf wire format).
|
|
202
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
203
|
+
* @return {!proto.ProcessSubscriptionEventRequest}
|
|
204
|
+
*/
|
|
205
|
+
proto.ProcessSubscriptionEventRequest.deserializeBinary = function(bytes) {
|
|
206
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
207
|
+
var msg = new proto.ProcessSubscriptionEventRequest;
|
|
208
|
+
return proto.ProcessSubscriptionEventRequest.deserializeBinaryFromReader(msg, reader);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
214
|
+
* given reader into the given message object.
|
|
215
|
+
* @param {!proto.ProcessSubscriptionEventRequest} msg The message object to deserialize into.
|
|
216
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
217
|
+
* @return {!proto.ProcessSubscriptionEventRequest}
|
|
218
|
+
*/
|
|
219
|
+
proto.ProcessSubscriptionEventRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
220
|
+
while (reader.nextField()) {
|
|
221
|
+
if (reader.isEndGroup()) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
var field = reader.getFieldNumber();
|
|
225
|
+
switch (field) {
|
|
226
|
+
case 1:
|
|
227
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
228
|
+
msg.setEventId(value);
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
232
|
+
msg.setEventType(value);
|
|
233
|
+
break;
|
|
234
|
+
case 3:
|
|
235
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
236
|
+
msg.setExternalTenantId(value);
|
|
237
|
+
break;
|
|
238
|
+
case 4:
|
|
239
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
240
|
+
msg.setRawBody(value);
|
|
241
|
+
break;
|
|
242
|
+
case 5:
|
|
243
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
244
|
+
msg.setReceivedAt(value);
|
|
245
|
+
break;
|
|
246
|
+
case 6:
|
|
247
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
248
|
+
msg.setSourceIp(value);
|
|
249
|
+
break;
|
|
250
|
+
default:
|
|
251
|
+
reader.skipField();
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return msg;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
261
|
+
* @return {!Uint8Array}
|
|
262
|
+
*/
|
|
263
|
+
proto.ProcessSubscriptionEventRequest.prototype.serializeBinary = function() {
|
|
264
|
+
var writer = new jspb.BinaryWriter();
|
|
265
|
+
proto.ProcessSubscriptionEventRequest.serializeBinaryToWriter(this, writer);
|
|
266
|
+
return writer.getResultBuffer();
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
272
|
+
* format), writing to the given BinaryWriter.
|
|
273
|
+
* @param {!proto.ProcessSubscriptionEventRequest} message
|
|
274
|
+
* @param {!jspb.BinaryWriter} writer
|
|
275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
276
|
+
*/
|
|
277
|
+
proto.ProcessSubscriptionEventRequest.serializeBinaryToWriter = function(message, writer) {
|
|
278
|
+
var f = undefined;
|
|
279
|
+
f = message.getEventId();
|
|
280
|
+
if (f.length > 0) {
|
|
281
|
+
writer.writeString(
|
|
282
|
+
1,
|
|
283
|
+
f
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
f = message.getEventType();
|
|
287
|
+
if (f.length > 0) {
|
|
288
|
+
writer.writeString(
|
|
289
|
+
2,
|
|
290
|
+
f
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
f = message.getExternalTenantId();
|
|
294
|
+
if (f.length > 0) {
|
|
295
|
+
writer.writeString(
|
|
296
|
+
3,
|
|
297
|
+
f
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
f = message.getRawBody();
|
|
301
|
+
if (f.length > 0) {
|
|
302
|
+
writer.writeString(
|
|
303
|
+
4,
|
|
304
|
+
f
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
f = message.getReceivedAt();
|
|
308
|
+
if (f.length > 0) {
|
|
309
|
+
writer.writeString(
|
|
310
|
+
5,
|
|
311
|
+
f
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
f = message.getSourceIp();
|
|
315
|
+
if (f.length > 0) {
|
|
316
|
+
writer.writeString(
|
|
317
|
+
6,
|
|
318
|
+
f
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* optional string event_id = 1;
|
|
326
|
+
* @return {string}
|
|
327
|
+
*/
|
|
328
|
+
proto.ProcessSubscriptionEventRequest.prototype.getEventId = function() {
|
|
329
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @param {string} value
|
|
335
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
336
|
+
*/
|
|
337
|
+
proto.ProcessSubscriptionEventRequest.prototype.setEventId = function(value) {
|
|
338
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* optional string event_type = 2;
|
|
344
|
+
* @return {string}
|
|
345
|
+
*/
|
|
346
|
+
proto.ProcessSubscriptionEventRequest.prototype.getEventType = function() {
|
|
347
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @param {string} value
|
|
353
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
354
|
+
*/
|
|
355
|
+
proto.ProcessSubscriptionEventRequest.prototype.setEventType = function(value) {
|
|
356
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* optional string external_tenant_id = 3;
|
|
362
|
+
* @return {string}
|
|
363
|
+
*/
|
|
364
|
+
proto.ProcessSubscriptionEventRequest.prototype.getExternalTenantId = function() {
|
|
365
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @param {string} value
|
|
371
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
372
|
+
*/
|
|
373
|
+
proto.ProcessSubscriptionEventRequest.prototype.setExternalTenantId = function(value) {
|
|
374
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* optional string raw_body = 4;
|
|
380
|
+
* @return {string}
|
|
381
|
+
*/
|
|
382
|
+
proto.ProcessSubscriptionEventRequest.prototype.getRawBody = function() {
|
|
383
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @param {string} value
|
|
389
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
390
|
+
*/
|
|
391
|
+
proto.ProcessSubscriptionEventRequest.prototype.setRawBody = function(value) {
|
|
392
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* optional string received_at = 5;
|
|
398
|
+
* @return {string}
|
|
399
|
+
*/
|
|
400
|
+
proto.ProcessSubscriptionEventRequest.prototype.getReceivedAt = function() {
|
|
401
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @param {string} value
|
|
407
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
408
|
+
*/
|
|
409
|
+
proto.ProcessSubscriptionEventRequest.prototype.setReceivedAt = function(value) {
|
|
410
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* optional string source_ip = 6;
|
|
416
|
+
* @return {string}
|
|
417
|
+
*/
|
|
418
|
+
proto.ProcessSubscriptionEventRequest.prototype.getSourceIp = function() {
|
|
419
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @param {string} value
|
|
425
|
+
* @return {!proto.ProcessSubscriptionEventRequest} returns this
|
|
426
|
+
*/
|
|
427
|
+
proto.ProcessSubscriptionEventRequest.prototype.setSourceIp = function(value) {
|
|
428
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
436
|
+
/**
|
|
437
|
+
* Creates an object representation of this proto.
|
|
438
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
439
|
+
* Optional fields that are not set will be set to undefined.
|
|
440
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
441
|
+
* For the list of reserved names please see:
|
|
442
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
443
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
444
|
+
* JSPB instance for transitional soy proto support:
|
|
445
|
+
* http://goto/soy-param-migration
|
|
446
|
+
* @return {!Object}
|
|
447
|
+
*/
|
|
448
|
+
proto.ProcessSubscriptionEventResponse.prototype.toObject = function(opt_includeInstance) {
|
|
449
|
+
return proto.ProcessSubscriptionEventResponse.toObject(opt_includeInstance, this);
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Static version of the {@see toObject} method.
|
|
455
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
456
|
+
* the JSPB instance for transitional soy proto support:
|
|
457
|
+
* http://goto/soy-param-migration
|
|
458
|
+
* @param {!proto.ProcessSubscriptionEventResponse} msg The msg instance to transform.
|
|
459
|
+
* @return {!Object}
|
|
460
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
461
|
+
*/
|
|
462
|
+
proto.ProcessSubscriptionEventResponse.toObject = function(includeInstance, msg) {
|
|
463
|
+
var f, obj = {
|
|
464
|
+
responseStatus: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
465
|
+
responseBody: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
466
|
+
result: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
467
|
+
rejectReason: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
468
|
+
isReplay: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
if (includeInstance) {
|
|
472
|
+
obj.$jspbMessageInstance = msg;
|
|
473
|
+
}
|
|
474
|
+
return obj;
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Deserializes binary data (in protobuf wire format).
|
|
481
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
482
|
+
* @return {!proto.ProcessSubscriptionEventResponse}
|
|
483
|
+
*/
|
|
484
|
+
proto.ProcessSubscriptionEventResponse.deserializeBinary = function(bytes) {
|
|
485
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
486
|
+
var msg = new proto.ProcessSubscriptionEventResponse;
|
|
487
|
+
return proto.ProcessSubscriptionEventResponse.deserializeBinaryFromReader(msg, reader);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
493
|
+
* given reader into the given message object.
|
|
494
|
+
* @param {!proto.ProcessSubscriptionEventResponse} msg The message object to deserialize into.
|
|
495
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
496
|
+
* @return {!proto.ProcessSubscriptionEventResponse}
|
|
497
|
+
*/
|
|
498
|
+
proto.ProcessSubscriptionEventResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
499
|
+
while (reader.nextField()) {
|
|
500
|
+
if (reader.isEndGroup()) {
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
var field = reader.getFieldNumber();
|
|
504
|
+
switch (field) {
|
|
505
|
+
case 1:
|
|
506
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
507
|
+
msg.setResponseStatus(value);
|
|
508
|
+
break;
|
|
509
|
+
case 2:
|
|
510
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
511
|
+
msg.setResponseBody(value);
|
|
512
|
+
break;
|
|
513
|
+
case 3:
|
|
514
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
515
|
+
msg.setResult(value);
|
|
516
|
+
break;
|
|
517
|
+
case 4:
|
|
518
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
519
|
+
msg.setRejectReason(value);
|
|
520
|
+
break;
|
|
521
|
+
case 5:
|
|
522
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
523
|
+
msg.setIsReplay(value);
|
|
524
|
+
break;
|
|
525
|
+
default:
|
|
526
|
+
reader.skipField();
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return msg;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
536
|
+
* @return {!Uint8Array}
|
|
537
|
+
*/
|
|
538
|
+
proto.ProcessSubscriptionEventResponse.prototype.serializeBinary = function() {
|
|
539
|
+
var writer = new jspb.BinaryWriter();
|
|
540
|
+
proto.ProcessSubscriptionEventResponse.serializeBinaryToWriter(this, writer);
|
|
541
|
+
return writer.getResultBuffer();
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
547
|
+
* format), writing to the given BinaryWriter.
|
|
548
|
+
* @param {!proto.ProcessSubscriptionEventResponse} message
|
|
549
|
+
* @param {!jspb.BinaryWriter} writer
|
|
550
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
551
|
+
*/
|
|
552
|
+
proto.ProcessSubscriptionEventResponse.serializeBinaryToWriter = function(message, writer) {
|
|
553
|
+
var f = undefined;
|
|
554
|
+
f = message.getResponseStatus();
|
|
555
|
+
if (f !== 0) {
|
|
556
|
+
writer.writeInt32(
|
|
557
|
+
1,
|
|
558
|
+
f
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
f = message.getResponseBody();
|
|
562
|
+
if (f.length > 0) {
|
|
563
|
+
writer.writeString(
|
|
564
|
+
2,
|
|
565
|
+
f
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
f = message.getResult();
|
|
569
|
+
if (f.length > 0) {
|
|
570
|
+
writer.writeString(
|
|
571
|
+
3,
|
|
572
|
+
f
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
f = message.getRejectReason();
|
|
576
|
+
if (f.length > 0) {
|
|
577
|
+
writer.writeString(
|
|
578
|
+
4,
|
|
579
|
+
f
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
f = message.getIsReplay();
|
|
583
|
+
if (f) {
|
|
584
|
+
writer.writeBool(
|
|
585
|
+
5,
|
|
586
|
+
f
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* optional int32 response_status = 1;
|
|
594
|
+
* @return {number}
|
|
595
|
+
*/
|
|
596
|
+
proto.ProcessSubscriptionEventResponse.prototype.getResponseStatus = function() {
|
|
597
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* @param {number} value
|
|
603
|
+
* @return {!proto.ProcessSubscriptionEventResponse} returns this
|
|
604
|
+
*/
|
|
605
|
+
proto.ProcessSubscriptionEventResponse.prototype.setResponseStatus = function(value) {
|
|
606
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* optional string response_body = 2;
|
|
612
|
+
* @return {string}
|
|
613
|
+
*/
|
|
614
|
+
proto.ProcessSubscriptionEventResponse.prototype.getResponseBody = function() {
|
|
615
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @param {string} value
|
|
621
|
+
* @return {!proto.ProcessSubscriptionEventResponse} returns this
|
|
622
|
+
*/
|
|
623
|
+
proto.ProcessSubscriptionEventResponse.prototype.setResponseBody = function(value) {
|
|
624
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* optional string result = 3;
|
|
630
|
+
* @return {string}
|
|
631
|
+
*/
|
|
632
|
+
proto.ProcessSubscriptionEventResponse.prototype.getResult = function() {
|
|
633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* @param {string} value
|
|
639
|
+
* @return {!proto.ProcessSubscriptionEventResponse} returns this
|
|
640
|
+
*/
|
|
641
|
+
proto.ProcessSubscriptionEventResponse.prototype.setResult = function(value) {
|
|
642
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* optional string reject_reason = 4;
|
|
648
|
+
* @return {string}
|
|
649
|
+
*/
|
|
650
|
+
proto.ProcessSubscriptionEventResponse.prototype.getRejectReason = function() {
|
|
651
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* @param {string} value
|
|
657
|
+
* @return {!proto.ProcessSubscriptionEventResponse} returns this
|
|
658
|
+
*/
|
|
659
|
+
proto.ProcessSubscriptionEventResponse.prototype.setRejectReason = function(value) {
|
|
660
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* optional bool is_replay = 5;
|
|
666
|
+
* @return {boolean}
|
|
667
|
+
*/
|
|
668
|
+
proto.ProcessSubscriptionEventResponse.prototype.getIsReplay = function() {
|
|
669
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* @param {boolean} value
|
|
675
|
+
* @return {!proto.ProcessSubscriptionEventResponse} returns this
|
|
676
|
+
*/
|
|
677
|
+
proto.ProcessSubscriptionEventResponse.prototype.setIsReplay = function(value) {
|
|
678
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
686
|
+
/**
|
|
687
|
+
* Creates an object representation of this proto.
|
|
688
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
689
|
+
* Optional fields that are not set will be set to undefined.
|
|
690
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
691
|
+
* For the list of reserved names please see:
|
|
692
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
693
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
694
|
+
* JSPB instance for transitional soy proto support:
|
|
695
|
+
* http://goto/soy-param-migration
|
|
696
|
+
* @return {!Object}
|
|
697
|
+
*/
|
|
698
|
+
proto.SubscriptionQuota.prototype.toObject = function(opt_includeInstance) {
|
|
699
|
+
return proto.SubscriptionQuota.toObject(opt_includeInstance, this);
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Static version of the {@see toObject} method.
|
|
705
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
706
|
+
* the JSPB instance for transitional soy proto support:
|
|
707
|
+
* http://goto/soy-param-migration
|
|
708
|
+
* @param {!proto.SubscriptionQuota} msg The msg instance to transform.
|
|
709
|
+
* @return {!Object}
|
|
710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
711
|
+
*/
|
|
712
|
+
proto.SubscriptionQuota.toObject = function(includeInstance, msg) {
|
|
713
|
+
var f, obj = {
|
|
714
|
+
metric: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
715
|
+
limitValue: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
716
|
+
usedValue: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
if (includeInstance) {
|
|
720
|
+
obj.$jspbMessageInstance = msg;
|
|
721
|
+
}
|
|
722
|
+
return obj;
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Deserializes binary data (in protobuf wire format).
|
|
729
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
730
|
+
* @return {!proto.SubscriptionQuota}
|
|
731
|
+
*/
|
|
732
|
+
proto.SubscriptionQuota.deserializeBinary = function(bytes) {
|
|
733
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
734
|
+
var msg = new proto.SubscriptionQuota;
|
|
735
|
+
return proto.SubscriptionQuota.deserializeBinaryFromReader(msg, reader);
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
741
|
+
* given reader into the given message object.
|
|
742
|
+
* @param {!proto.SubscriptionQuota} msg The message object to deserialize into.
|
|
743
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
744
|
+
* @return {!proto.SubscriptionQuota}
|
|
745
|
+
*/
|
|
746
|
+
proto.SubscriptionQuota.deserializeBinaryFromReader = function(msg, reader) {
|
|
747
|
+
while (reader.nextField()) {
|
|
748
|
+
if (reader.isEndGroup()) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
var field = reader.getFieldNumber();
|
|
752
|
+
switch (field) {
|
|
753
|
+
case 1:
|
|
754
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
755
|
+
msg.setMetric(value);
|
|
756
|
+
break;
|
|
757
|
+
case 2:
|
|
758
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
759
|
+
msg.setLimitValue(value);
|
|
760
|
+
break;
|
|
761
|
+
case 3:
|
|
762
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
763
|
+
msg.setUsedValue(value);
|
|
764
|
+
break;
|
|
765
|
+
default:
|
|
766
|
+
reader.skipField();
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
return msg;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
776
|
+
* @return {!Uint8Array}
|
|
777
|
+
*/
|
|
778
|
+
proto.SubscriptionQuota.prototype.serializeBinary = function() {
|
|
779
|
+
var writer = new jspb.BinaryWriter();
|
|
780
|
+
proto.SubscriptionQuota.serializeBinaryToWriter(this, writer);
|
|
781
|
+
return writer.getResultBuffer();
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
787
|
+
* format), writing to the given BinaryWriter.
|
|
788
|
+
* @param {!proto.SubscriptionQuota} message
|
|
789
|
+
* @param {!jspb.BinaryWriter} writer
|
|
790
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
791
|
+
*/
|
|
792
|
+
proto.SubscriptionQuota.serializeBinaryToWriter = function(message, writer) {
|
|
793
|
+
var f = undefined;
|
|
794
|
+
f = message.getMetric();
|
|
795
|
+
if (f.length > 0) {
|
|
796
|
+
writer.writeString(
|
|
797
|
+
1,
|
|
798
|
+
f
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
f = message.getLimitValue();
|
|
802
|
+
if (f !== 0) {
|
|
803
|
+
writer.writeInt64(
|
|
804
|
+
2,
|
|
805
|
+
f
|
|
806
|
+
);
|
|
807
|
+
}
|
|
808
|
+
f = message.getUsedValue();
|
|
809
|
+
if (f !== 0) {
|
|
810
|
+
writer.writeInt64(
|
|
811
|
+
3,
|
|
812
|
+
f
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* optional string metric = 1;
|
|
820
|
+
* @return {string}
|
|
821
|
+
*/
|
|
822
|
+
proto.SubscriptionQuota.prototype.getMetric = function() {
|
|
823
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @param {string} value
|
|
829
|
+
* @return {!proto.SubscriptionQuota} returns this
|
|
830
|
+
*/
|
|
831
|
+
proto.SubscriptionQuota.prototype.setMetric = function(value) {
|
|
832
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* optional int64 limit_value = 2;
|
|
838
|
+
* @return {number}
|
|
839
|
+
*/
|
|
840
|
+
proto.SubscriptionQuota.prototype.getLimitValue = function() {
|
|
841
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @param {number} value
|
|
847
|
+
* @return {!proto.SubscriptionQuota} returns this
|
|
848
|
+
*/
|
|
849
|
+
proto.SubscriptionQuota.prototype.setLimitValue = function(value) {
|
|
850
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* optional int64 used_value = 3;
|
|
856
|
+
* @return {number}
|
|
857
|
+
*/
|
|
858
|
+
proto.SubscriptionQuota.prototype.getUsedValue = function() {
|
|
859
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @param {number} value
|
|
865
|
+
* @return {!proto.SubscriptionQuota} returns this
|
|
866
|
+
*/
|
|
867
|
+
proto.SubscriptionQuota.prototype.setUsedValue = function(value) {
|
|
868
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* List of repeated fields within this message type.
|
|
875
|
+
* @private {!Array<number>}
|
|
876
|
+
* @const
|
|
877
|
+
*/
|
|
878
|
+
proto.SubscriptionEntitlement.repeatedFields_ = [6,7];
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
883
|
+
/**
|
|
884
|
+
* Creates an object representation of this proto.
|
|
885
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
886
|
+
* Optional fields that are not set will be set to undefined.
|
|
887
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
888
|
+
* For the list of reserved names please see:
|
|
889
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
890
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
891
|
+
* JSPB instance for transitional soy proto support:
|
|
892
|
+
* http://goto/soy-param-migration
|
|
893
|
+
* @return {!Object}
|
|
894
|
+
*/
|
|
895
|
+
proto.SubscriptionEntitlement.prototype.toObject = function(opt_includeInstance) {
|
|
896
|
+
return proto.SubscriptionEntitlement.toObject(opt_includeInstance, this);
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Static version of the {@see toObject} method.
|
|
902
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
903
|
+
* the JSPB instance for transitional soy proto support:
|
|
904
|
+
* http://goto/soy-param-migration
|
|
905
|
+
* @param {!proto.SubscriptionEntitlement} msg The msg instance to transform.
|
|
906
|
+
* @return {!Object}
|
|
907
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
908
|
+
*/
|
|
909
|
+
proto.SubscriptionEntitlement.toObject = function(includeInstance, msg) {
|
|
910
|
+
var f, obj = {
|
|
911
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
912
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
913
|
+
subscriptionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
914
|
+
provisioningStatus: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
915
|
+
planCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
916
|
+
enabledModulesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
917
|
+
quotasList: jspb.Message.toObjectList(msg.getQuotasList(),
|
|
918
|
+
proto.SubscriptionQuota.toObject, includeInstance),
|
|
919
|
+
validUntil: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
920
|
+
lastEventId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
921
|
+
lastEventAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
922
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
923
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
if (includeInstance) {
|
|
927
|
+
obj.$jspbMessageInstance = msg;
|
|
928
|
+
}
|
|
929
|
+
return obj;
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Deserializes binary data (in protobuf wire format).
|
|
936
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
937
|
+
* @return {!proto.SubscriptionEntitlement}
|
|
938
|
+
*/
|
|
939
|
+
proto.SubscriptionEntitlement.deserializeBinary = function(bytes) {
|
|
940
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
941
|
+
var msg = new proto.SubscriptionEntitlement;
|
|
942
|
+
return proto.SubscriptionEntitlement.deserializeBinaryFromReader(msg, reader);
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
948
|
+
* given reader into the given message object.
|
|
949
|
+
* @param {!proto.SubscriptionEntitlement} msg The message object to deserialize into.
|
|
950
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
951
|
+
* @return {!proto.SubscriptionEntitlement}
|
|
952
|
+
*/
|
|
953
|
+
proto.SubscriptionEntitlement.deserializeBinaryFromReader = function(msg, reader) {
|
|
954
|
+
while (reader.nextField()) {
|
|
955
|
+
if (reader.isEndGroup()) {
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
var field = reader.getFieldNumber();
|
|
959
|
+
switch (field) {
|
|
960
|
+
case 1:
|
|
961
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
962
|
+
msg.setReferencesId(value);
|
|
963
|
+
break;
|
|
964
|
+
case 2:
|
|
965
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
966
|
+
msg.setCompaniesReferencesId(value);
|
|
967
|
+
break;
|
|
968
|
+
case 3:
|
|
969
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
970
|
+
msg.setSubscriptionId(value);
|
|
971
|
+
break;
|
|
972
|
+
case 4:
|
|
973
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
974
|
+
msg.setProvisioningStatus(value);
|
|
975
|
+
break;
|
|
976
|
+
case 5:
|
|
977
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
978
|
+
msg.setPlanCode(value);
|
|
979
|
+
break;
|
|
980
|
+
case 6:
|
|
981
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
982
|
+
msg.addEnabledModules(value);
|
|
983
|
+
break;
|
|
984
|
+
case 7:
|
|
985
|
+
var value = new proto.SubscriptionQuota;
|
|
986
|
+
reader.readMessage(value,proto.SubscriptionQuota.deserializeBinaryFromReader);
|
|
987
|
+
msg.addQuotas(value);
|
|
988
|
+
break;
|
|
989
|
+
case 8:
|
|
990
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
991
|
+
msg.setValidUntil(value);
|
|
992
|
+
break;
|
|
993
|
+
case 9:
|
|
994
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
995
|
+
msg.setLastEventId(value);
|
|
996
|
+
break;
|
|
997
|
+
case 10:
|
|
998
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
999
|
+
msg.setLastEventAt(value);
|
|
1000
|
+
break;
|
|
1001
|
+
case 11:
|
|
1002
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1003
|
+
msg.setCreatedAt(value);
|
|
1004
|
+
break;
|
|
1005
|
+
case 12:
|
|
1006
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1007
|
+
msg.setUpdatedAt(value);
|
|
1008
|
+
break;
|
|
1009
|
+
default:
|
|
1010
|
+
reader.skipField();
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return msg;
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1020
|
+
* @return {!Uint8Array}
|
|
1021
|
+
*/
|
|
1022
|
+
proto.SubscriptionEntitlement.prototype.serializeBinary = function() {
|
|
1023
|
+
var writer = new jspb.BinaryWriter();
|
|
1024
|
+
proto.SubscriptionEntitlement.serializeBinaryToWriter(this, writer);
|
|
1025
|
+
return writer.getResultBuffer();
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1031
|
+
* format), writing to the given BinaryWriter.
|
|
1032
|
+
* @param {!proto.SubscriptionEntitlement} message
|
|
1033
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1034
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1035
|
+
*/
|
|
1036
|
+
proto.SubscriptionEntitlement.serializeBinaryToWriter = function(message, writer) {
|
|
1037
|
+
var f = undefined;
|
|
1038
|
+
f = message.getReferencesId();
|
|
1039
|
+
if (f.length > 0) {
|
|
1040
|
+
writer.writeString(
|
|
1041
|
+
1,
|
|
1042
|
+
f
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
f = message.getCompaniesReferencesId();
|
|
1046
|
+
if (f.length > 0) {
|
|
1047
|
+
writer.writeString(
|
|
1048
|
+
2,
|
|
1049
|
+
f
|
|
1050
|
+
);
|
|
1051
|
+
}
|
|
1052
|
+
f = message.getSubscriptionId();
|
|
1053
|
+
if (f.length > 0) {
|
|
1054
|
+
writer.writeString(
|
|
1055
|
+
3,
|
|
1056
|
+
f
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
f = message.getProvisioningStatus();
|
|
1060
|
+
if (f.length > 0) {
|
|
1061
|
+
writer.writeString(
|
|
1062
|
+
4,
|
|
1063
|
+
f
|
|
1064
|
+
);
|
|
1065
|
+
}
|
|
1066
|
+
f = message.getPlanCode();
|
|
1067
|
+
if (f.length > 0) {
|
|
1068
|
+
writer.writeString(
|
|
1069
|
+
5,
|
|
1070
|
+
f
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
f = message.getEnabledModulesList();
|
|
1074
|
+
if (f.length > 0) {
|
|
1075
|
+
writer.writeRepeatedString(
|
|
1076
|
+
6,
|
|
1077
|
+
f
|
|
1078
|
+
);
|
|
1079
|
+
}
|
|
1080
|
+
f = message.getQuotasList();
|
|
1081
|
+
if (f.length > 0) {
|
|
1082
|
+
writer.writeRepeatedMessage(
|
|
1083
|
+
7,
|
|
1084
|
+
f,
|
|
1085
|
+
proto.SubscriptionQuota.serializeBinaryToWriter
|
|
1086
|
+
);
|
|
1087
|
+
}
|
|
1088
|
+
f = message.getValidUntil();
|
|
1089
|
+
if (f.length > 0) {
|
|
1090
|
+
writer.writeString(
|
|
1091
|
+
8,
|
|
1092
|
+
f
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
f = message.getLastEventId();
|
|
1096
|
+
if (f.length > 0) {
|
|
1097
|
+
writer.writeString(
|
|
1098
|
+
9,
|
|
1099
|
+
f
|
|
1100
|
+
);
|
|
1101
|
+
}
|
|
1102
|
+
f = message.getLastEventAt();
|
|
1103
|
+
if (f.length > 0) {
|
|
1104
|
+
writer.writeString(
|
|
1105
|
+
10,
|
|
1106
|
+
f
|
|
1107
|
+
);
|
|
1108
|
+
}
|
|
1109
|
+
f = message.getCreatedAt();
|
|
1110
|
+
if (f.length > 0) {
|
|
1111
|
+
writer.writeString(
|
|
1112
|
+
11,
|
|
1113
|
+
f
|
|
1114
|
+
);
|
|
1115
|
+
}
|
|
1116
|
+
f = message.getUpdatedAt();
|
|
1117
|
+
if (f.length > 0) {
|
|
1118
|
+
writer.writeString(
|
|
1119
|
+
12,
|
|
1120
|
+
f
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* optional string references_id = 1;
|
|
1128
|
+
* @return {string}
|
|
1129
|
+
*/
|
|
1130
|
+
proto.SubscriptionEntitlement.prototype.getReferencesId = function() {
|
|
1131
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* @param {string} value
|
|
1137
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1138
|
+
*/
|
|
1139
|
+
proto.SubscriptionEntitlement.prototype.setReferencesId = function(value) {
|
|
1140
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* optional string companies_references_id = 2;
|
|
1146
|
+
* @return {string}
|
|
1147
|
+
*/
|
|
1148
|
+
proto.SubscriptionEntitlement.prototype.getCompaniesReferencesId = function() {
|
|
1149
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* @param {string} value
|
|
1155
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1156
|
+
*/
|
|
1157
|
+
proto.SubscriptionEntitlement.prototype.setCompaniesReferencesId = function(value) {
|
|
1158
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* optional string subscription_id = 3;
|
|
1164
|
+
* @return {string}
|
|
1165
|
+
*/
|
|
1166
|
+
proto.SubscriptionEntitlement.prototype.getSubscriptionId = function() {
|
|
1167
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* @param {string} value
|
|
1173
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1174
|
+
*/
|
|
1175
|
+
proto.SubscriptionEntitlement.prototype.setSubscriptionId = function(value) {
|
|
1176
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* optional string provisioning_status = 4;
|
|
1182
|
+
* @return {string}
|
|
1183
|
+
*/
|
|
1184
|
+
proto.SubscriptionEntitlement.prototype.getProvisioningStatus = function() {
|
|
1185
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* @param {string} value
|
|
1191
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1192
|
+
*/
|
|
1193
|
+
proto.SubscriptionEntitlement.prototype.setProvisioningStatus = function(value) {
|
|
1194
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* optional string plan_code = 5;
|
|
1200
|
+
* @return {string}
|
|
1201
|
+
*/
|
|
1202
|
+
proto.SubscriptionEntitlement.prototype.getPlanCode = function() {
|
|
1203
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @param {string} value
|
|
1209
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1210
|
+
*/
|
|
1211
|
+
proto.SubscriptionEntitlement.prototype.setPlanCode = function(value) {
|
|
1212
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* repeated string enabled_modules = 6;
|
|
1218
|
+
* @return {!Array<string>}
|
|
1219
|
+
*/
|
|
1220
|
+
proto.SubscriptionEntitlement.prototype.getEnabledModulesList = function() {
|
|
1221
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @param {!Array<string>} value
|
|
1227
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1228
|
+
*/
|
|
1229
|
+
proto.SubscriptionEntitlement.prototype.setEnabledModulesList = function(value) {
|
|
1230
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* @param {string} value
|
|
1236
|
+
* @param {number=} opt_index
|
|
1237
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1238
|
+
*/
|
|
1239
|
+
proto.SubscriptionEntitlement.prototype.addEnabledModules = function(value, opt_index) {
|
|
1240
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Clears the list making it empty but non-null.
|
|
1246
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1247
|
+
*/
|
|
1248
|
+
proto.SubscriptionEntitlement.prototype.clearEnabledModulesList = function() {
|
|
1249
|
+
return this.setEnabledModulesList([]);
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* repeated SubscriptionQuota quotas = 7;
|
|
1255
|
+
* @return {!Array<!proto.SubscriptionQuota>}
|
|
1256
|
+
*/
|
|
1257
|
+
proto.SubscriptionEntitlement.prototype.getQuotasList = function() {
|
|
1258
|
+
return /** @type{!Array<!proto.SubscriptionQuota>} */ (
|
|
1259
|
+
jspb.Message.getRepeatedWrapperField(this, proto.SubscriptionQuota, 7));
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* @param {!Array<!proto.SubscriptionQuota>} value
|
|
1265
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1266
|
+
*/
|
|
1267
|
+
proto.SubscriptionEntitlement.prototype.setQuotasList = function(value) {
|
|
1268
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @param {!proto.SubscriptionQuota=} opt_value
|
|
1274
|
+
* @param {number=} opt_index
|
|
1275
|
+
* @return {!proto.SubscriptionQuota}
|
|
1276
|
+
*/
|
|
1277
|
+
proto.SubscriptionEntitlement.prototype.addQuotas = function(opt_value, opt_index) {
|
|
1278
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.SubscriptionQuota, opt_index);
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Clears the list making it empty but non-null.
|
|
1284
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1285
|
+
*/
|
|
1286
|
+
proto.SubscriptionEntitlement.prototype.clearQuotasList = function() {
|
|
1287
|
+
return this.setQuotasList([]);
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* optional string valid_until = 8;
|
|
1293
|
+
* @return {string}
|
|
1294
|
+
*/
|
|
1295
|
+
proto.SubscriptionEntitlement.prototype.getValidUntil = function() {
|
|
1296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* @param {string} value
|
|
1302
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1303
|
+
*/
|
|
1304
|
+
proto.SubscriptionEntitlement.prototype.setValidUntil = function(value) {
|
|
1305
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* optional string last_event_id = 9;
|
|
1311
|
+
* @return {string}
|
|
1312
|
+
*/
|
|
1313
|
+
proto.SubscriptionEntitlement.prototype.getLastEventId = function() {
|
|
1314
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* @param {string} value
|
|
1320
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1321
|
+
*/
|
|
1322
|
+
proto.SubscriptionEntitlement.prototype.setLastEventId = function(value) {
|
|
1323
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* optional string last_event_at = 10;
|
|
1329
|
+
* @return {string}
|
|
1330
|
+
*/
|
|
1331
|
+
proto.SubscriptionEntitlement.prototype.getLastEventAt = function() {
|
|
1332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {string} value
|
|
1338
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1339
|
+
*/
|
|
1340
|
+
proto.SubscriptionEntitlement.prototype.setLastEventAt = function(value) {
|
|
1341
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* optional string created_at = 11;
|
|
1347
|
+
* @return {string}
|
|
1348
|
+
*/
|
|
1349
|
+
proto.SubscriptionEntitlement.prototype.getCreatedAt = function() {
|
|
1350
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* @param {string} value
|
|
1356
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1357
|
+
*/
|
|
1358
|
+
proto.SubscriptionEntitlement.prototype.setCreatedAt = function(value) {
|
|
1359
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* optional string updated_at = 12;
|
|
1365
|
+
* @return {string}
|
|
1366
|
+
*/
|
|
1367
|
+
proto.SubscriptionEntitlement.prototype.getUpdatedAt = function() {
|
|
1368
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* @param {string} value
|
|
1374
|
+
* @return {!proto.SubscriptionEntitlement} returns this
|
|
1375
|
+
*/
|
|
1376
|
+
proto.SubscriptionEntitlement.prototype.setUpdatedAt = function(value) {
|
|
1377
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1385
|
+
/**
|
|
1386
|
+
* Creates an object representation of this proto.
|
|
1387
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1388
|
+
* Optional fields that are not set will be set to undefined.
|
|
1389
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1390
|
+
* For the list of reserved names please see:
|
|
1391
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1392
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1393
|
+
* JSPB instance for transitional soy proto support:
|
|
1394
|
+
* http://goto/soy-param-migration
|
|
1395
|
+
* @return {!Object}
|
|
1396
|
+
*/
|
|
1397
|
+
proto.GetEntitlementRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1398
|
+
return proto.GetEntitlementRequest.toObject(opt_includeInstance, this);
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Static version of the {@see toObject} method.
|
|
1404
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1405
|
+
* the JSPB instance for transitional soy proto support:
|
|
1406
|
+
* http://goto/soy-param-migration
|
|
1407
|
+
* @param {!proto.GetEntitlementRequest} msg The msg instance to transform.
|
|
1408
|
+
* @return {!Object}
|
|
1409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1410
|
+
*/
|
|
1411
|
+
proto.GetEntitlementRequest.toObject = function(includeInstance, msg) {
|
|
1412
|
+
var f, obj = {
|
|
1413
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
if (includeInstance) {
|
|
1417
|
+
obj.$jspbMessageInstance = msg;
|
|
1418
|
+
}
|
|
1419
|
+
return obj;
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1426
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1427
|
+
* @return {!proto.GetEntitlementRequest}
|
|
1428
|
+
*/
|
|
1429
|
+
proto.GetEntitlementRequest.deserializeBinary = function(bytes) {
|
|
1430
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1431
|
+
var msg = new proto.GetEntitlementRequest;
|
|
1432
|
+
return proto.GetEntitlementRequest.deserializeBinaryFromReader(msg, reader);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1438
|
+
* given reader into the given message object.
|
|
1439
|
+
* @param {!proto.GetEntitlementRequest} msg The message object to deserialize into.
|
|
1440
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1441
|
+
* @return {!proto.GetEntitlementRequest}
|
|
1442
|
+
*/
|
|
1443
|
+
proto.GetEntitlementRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1444
|
+
while (reader.nextField()) {
|
|
1445
|
+
if (reader.isEndGroup()) {
|
|
1446
|
+
break;
|
|
1447
|
+
}
|
|
1448
|
+
var field = reader.getFieldNumber();
|
|
1449
|
+
switch (field) {
|
|
1450
|
+
case 1:
|
|
1451
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1452
|
+
msg.setCompaniesReferencesId(value);
|
|
1453
|
+
break;
|
|
1454
|
+
default:
|
|
1455
|
+
reader.skipField();
|
|
1456
|
+
break;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
return msg;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1465
|
+
* @return {!Uint8Array}
|
|
1466
|
+
*/
|
|
1467
|
+
proto.GetEntitlementRequest.prototype.serializeBinary = function() {
|
|
1468
|
+
var writer = new jspb.BinaryWriter();
|
|
1469
|
+
proto.GetEntitlementRequest.serializeBinaryToWriter(this, writer);
|
|
1470
|
+
return writer.getResultBuffer();
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1476
|
+
* format), writing to the given BinaryWriter.
|
|
1477
|
+
* @param {!proto.GetEntitlementRequest} message
|
|
1478
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1479
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1480
|
+
*/
|
|
1481
|
+
proto.GetEntitlementRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1482
|
+
var f = undefined;
|
|
1483
|
+
f = message.getCompaniesReferencesId();
|
|
1484
|
+
if (f.length > 0) {
|
|
1485
|
+
writer.writeString(
|
|
1486
|
+
1,
|
|
1487
|
+
f
|
|
1488
|
+
);
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* optional string companies_references_id = 1;
|
|
1495
|
+
* @return {string}
|
|
1496
|
+
*/
|
|
1497
|
+
proto.GetEntitlementRequest.prototype.getCompaniesReferencesId = function() {
|
|
1498
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* @param {string} value
|
|
1504
|
+
* @return {!proto.GetEntitlementRequest} returns this
|
|
1505
|
+
*/
|
|
1506
|
+
proto.GetEntitlementRequest.prototype.setCompaniesReferencesId = function(value) {
|
|
1507
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1515
|
+
/**
|
|
1516
|
+
* Creates an object representation of this proto.
|
|
1517
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1518
|
+
* Optional fields that are not set will be set to undefined.
|
|
1519
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1520
|
+
* For the list of reserved names please see:
|
|
1521
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1522
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1523
|
+
* JSPB instance for transitional soy proto support:
|
|
1524
|
+
* http://goto/soy-param-migration
|
|
1525
|
+
* @return {!Object}
|
|
1526
|
+
*/
|
|
1527
|
+
proto.GetEntitlementResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1528
|
+
return proto.GetEntitlementResponse.toObject(opt_includeInstance, this);
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Static version of the {@see toObject} method.
|
|
1534
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1535
|
+
* the JSPB instance for transitional soy proto support:
|
|
1536
|
+
* http://goto/soy-param-migration
|
|
1537
|
+
* @param {!proto.GetEntitlementResponse} msg The msg instance to transform.
|
|
1538
|
+
* @return {!Object}
|
|
1539
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1540
|
+
*/
|
|
1541
|
+
proto.GetEntitlementResponse.toObject = function(includeInstance, msg) {
|
|
1542
|
+
var f, obj = {
|
|
1543
|
+
entitlement: (f = msg.getEntitlement()) && proto.SubscriptionEntitlement.toObject(includeInstance, f),
|
|
1544
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1545
|
+
};
|
|
1546
|
+
|
|
1547
|
+
if (includeInstance) {
|
|
1548
|
+
obj.$jspbMessageInstance = msg;
|
|
1549
|
+
}
|
|
1550
|
+
return obj;
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1557
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1558
|
+
* @return {!proto.GetEntitlementResponse}
|
|
1559
|
+
*/
|
|
1560
|
+
proto.GetEntitlementResponse.deserializeBinary = function(bytes) {
|
|
1561
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1562
|
+
var msg = new proto.GetEntitlementResponse;
|
|
1563
|
+
return proto.GetEntitlementResponse.deserializeBinaryFromReader(msg, reader);
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1569
|
+
* given reader into the given message object.
|
|
1570
|
+
* @param {!proto.GetEntitlementResponse} msg The message object to deserialize into.
|
|
1571
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1572
|
+
* @return {!proto.GetEntitlementResponse}
|
|
1573
|
+
*/
|
|
1574
|
+
proto.GetEntitlementResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1575
|
+
while (reader.nextField()) {
|
|
1576
|
+
if (reader.isEndGroup()) {
|
|
1577
|
+
break;
|
|
1578
|
+
}
|
|
1579
|
+
var field = reader.getFieldNumber();
|
|
1580
|
+
switch (field) {
|
|
1581
|
+
case 1:
|
|
1582
|
+
var value = new proto.SubscriptionEntitlement;
|
|
1583
|
+
reader.readMessage(value,proto.SubscriptionEntitlement.deserializeBinaryFromReader);
|
|
1584
|
+
msg.setEntitlement(value);
|
|
1585
|
+
break;
|
|
1586
|
+
case 2:
|
|
1587
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
1588
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
1589
|
+
msg.setMeta(value);
|
|
1590
|
+
break;
|
|
1591
|
+
default:
|
|
1592
|
+
reader.skipField();
|
|
1593
|
+
break;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return msg;
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1602
|
+
* @return {!Uint8Array}
|
|
1603
|
+
*/
|
|
1604
|
+
proto.GetEntitlementResponse.prototype.serializeBinary = function() {
|
|
1605
|
+
var writer = new jspb.BinaryWriter();
|
|
1606
|
+
proto.GetEntitlementResponse.serializeBinaryToWriter(this, writer);
|
|
1607
|
+
return writer.getResultBuffer();
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1613
|
+
* format), writing to the given BinaryWriter.
|
|
1614
|
+
* @param {!proto.GetEntitlementResponse} message
|
|
1615
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1616
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1617
|
+
*/
|
|
1618
|
+
proto.GetEntitlementResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1619
|
+
var f = undefined;
|
|
1620
|
+
f = message.getEntitlement();
|
|
1621
|
+
if (f != null) {
|
|
1622
|
+
writer.writeMessage(
|
|
1623
|
+
1,
|
|
1624
|
+
f,
|
|
1625
|
+
proto.SubscriptionEntitlement.serializeBinaryToWriter
|
|
1626
|
+
);
|
|
1627
|
+
}
|
|
1628
|
+
f = message.getMeta();
|
|
1629
|
+
if (f != null) {
|
|
1630
|
+
writer.writeMessage(
|
|
1631
|
+
2,
|
|
1632
|
+
f,
|
|
1633
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
1634
|
+
);
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* optional SubscriptionEntitlement entitlement = 1;
|
|
1641
|
+
* @return {?proto.SubscriptionEntitlement}
|
|
1642
|
+
*/
|
|
1643
|
+
proto.GetEntitlementResponse.prototype.getEntitlement = function() {
|
|
1644
|
+
return /** @type{?proto.SubscriptionEntitlement} */ (
|
|
1645
|
+
jspb.Message.getWrapperField(this, proto.SubscriptionEntitlement, 1));
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @param {?proto.SubscriptionEntitlement|undefined} value
|
|
1651
|
+
* @return {!proto.GetEntitlementResponse} returns this
|
|
1652
|
+
*/
|
|
1653
|
+
proto.GetEntitlementResponse.prototype.setEntitlement = function(value) {
|
|
1654
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Clears the message field making it undefined.
|
|
1660
|
+
* @return {!proto.GetEntitlementResponse} returns this
|
|
1661
|
+
*/
|
|
1662
|
+
proto.GetEntitlementResponse.prototype.clearEntitlement = function() {
|
|
1663
|
+
return this.setEntitlement(undefined);
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* Returns whether this field is set.
|
|
1669
|
+
* @return {boolean}
|
|
1670
|
+
*/
|
|
1671
|
+
proto.GetEntitlementResponse.prototype.hasEntitlement = function() {
|
|
1672
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
1678
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
1679
|
+
*/
|
|
1680
|
+
proto.GetEntitlementResponse.prototype.getMeta = function() {
|
|
1681
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
1682
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
1688
|
+
* @return {!proto.GetEntitlementResponse} returns this
|
|
1689
|
+
*/
|
|
1690
|
+
proto.GetEntitlementResponse.prototype.setMeta = function(value) {
|
|
1691
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Clears the message field making it undefined.
|
|
1697
|
+
* @return {!proto.GetEntitlementResponse} returns this
|
|
1698
|
+
*/
|
|
1699
|
+
proto.GetEntitlementResponse.prototype.clearMeta = function() {
|
|
1700
|
+
return this.setMeta(undefined);
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Returns whether this field is set.
|
|
1706
|
+
* @return {boolean}
|
|
1707
|
+
*/
|
|
1708
|
+
proto.GetEntitlementResponse.prototype.hasMeta = function() {
|
|
1709
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
goog.object.extend(exports, proto);
|