@marleena/trb-proto 0.1.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.
@@ -0,0 +1,634 @@
1
+ // source: example/Example.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ goog.exportSymbol('proto.example.contract.v1.MessageRequest', null, global);
27
+ goog.exportSymbol('proto.example.contract.v1.MessageResponse', null, global);
28
+ goog.exportSymbol('proto.example.contract.v1.MessageStreamRequest', null, global);
29
+ goog.exportSymbol('proto.example.contract.v1.MessageStreamResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.example.contract.v1.MessageRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.example.contract.v1.MessageRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.example.contract.v1.MessageRequest.displayName = 'proto.example.contract.v1.MessageRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.example.contract.v1.MessageResponse = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.example.contract.v1.MessageResponse, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.example.contract.v1.MessageResponse.displayName = 'proto.example.contract.v1.MessageResponse';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.example.contract.v1.MessageStreamRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.example.contract.v1.MessageStreamRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.example.contract.v1.MessageStreamRequest.displayName = 'proto.example.contract.v1.MessageStreamRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.example.contract.v1.MessageStreamResponse = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.example.contract.v1.MessageStreamResponse, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.example.contract.v1.MessageStreamResponse.displayName = 'proto.example.contract.v1.MessageStreamResponse';
113
+ }
114
+
115
+
116
+
117
+ if (jspb.Message.GENERATE_TO_OBJECT) {
118
+ /**
119
+ * Creates an object representation of this proto.
120
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
121
+ * Optional fields that are not set will be set to undefined.
122
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
123
+ * For the list of reserved names please see:
124
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
125
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
126
+ * JSPB instance for transitional soy proto support:
127
+ * http://goto/soy-param-migration
128
+ * @return {!Object}
129
+ */
130
+ proto.example.contract.v1.MessageRequest.prototype.toObject = function(opt_includeInstance) {
131
+ return proto.example.contract.v1.MessageRequest.toObject(opt_includeInstance, this);
132
+ };
133
+
134
+
135
+ /**
136
+ * Static version of the {@see toObject} method.
137
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
138
+ * the JSPB instance for transitional soy proto support:
139
+ * http://goto/soy-param-migration
140
+ * @param {!proto.example.contract.v1.MessageRequest} msg The msg instance to transform.
141
+ * @return {!Object}
142
+ * @suppress {unusedLocalVariables} f is only used for nested messages
143
+ */
144
+ proto.example.contract.v1.MessageRequest.toObject = function(includeInstance, msg) {
145
+ var f, obj = {
146
+ text: jspb.Message.getFieldWithDefault(msg, 1, "")
147
+ };
148
+
149
+ if (includeInstance) {
150
+ obj.$jspbMessageInstance = msg;
151
+ }
152
+ return obj;
153
+ };
154
+ }
155
+
156
+
157
+ /**
158
+ * Deserializes binary data (in protobuf wire format).
159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
160
+ * @return {!proto.example.contract.v1.MessageRequest}
161
+ */
162
+ proto.example.contract.v1.MessageRequest.deserializeBinary = function(bytes) {
163
+ var reader = new jspb.BinaryReader(bytes);
164
+ var msg = new proto.example.contract.v1.MessageRequest;
165
+ return proto.example.contract.v1.MessageRequest.deserializeBinaryFromReader(msg, reader);
166
+ };
167
+
168
+
169
+ /**
170
+ * Deserializes binary data (in protobuf wire format) from the
171
+ * given reader into the given message object.
172
+ * @param {!proto.example.contract.v1.MessageRequest} msg The message object to deserialize into.
173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
174
+ * @return {!proto.example.contract.v1.MessageRequest}
175
+ */
176
+ proto.example.contract.v1.MessageRequest.deserializeBinaryFromReader = function(msg, reader) {
177
+ while (reader.nextField()) {
178
+ if (reader.isEndGroup()) {
179
+ break;
180
+ }
181
+ var field = reader.getFieldNumber();
182
+ switch (field) {
183
+ case 1:
184
+ var value = /** @type {string} */ (reader.readString());
185
+ msg.setText(value);
186
+ break;
187
+ default:
188
+ reader.skipField();
189
+ break;
190
+ }
191
+ }
192
+ return msg;
193
+ };
194
+
195
+
196
+ /**
197
+ * Serializes the message to binary data (in protobuf wire format).
198
+ * @return {!Uint8Array}
199
+ */
200
+ proto.example.contract.v1.MessageRequest.prototype.serializeBinary = function() {
201
+ var writer = new jspb.BinaryWriter();
202
+ proto.example.contract.v1.MessageRequest.serializeBinaryToWriter(this, writer);
203
+ return writer.getResultBuffer();
204
+ };
205
+
206
+
207
+ /**
208
+ * Serializes the given message to binary data (in protobuf wire
209
+ * format), writing to the given BinaryWriter.
210
+ * @param {!proto.example.contract.v1.MessageRequest} message
211
+ * @param {!jspb.BinaryWriter} writer
212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
213
+ */
214
+ proto.example.contract.v1.MessageRequest.serializeBinaryToWriter = function(message, writer) {
215
+ var f = undefined;
216
+ f = message.getText();
217
+ if (f.length > 0) {
218
+ writer.writeString(
219
+ 1,
220
+ f
221
+ );
222
+ }
223
+ };
224
+
225
+
226
+ /**
227
+ * optional string text = 1;
228
+ * @return {string}
229
+ */
230
+ proto.example.contract.v1.MessageRequest.prototype.getText = function() {
231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
232
+ };
233
+
234
+
235
+ /**
236
+ * @param {string} value
237
+ * @return {!proto.example.contract.v1.MessageRequest} returns this
238
+ */
239
+ proto.example.contract.v1.MessageRequest.prototype.setText = function(value) {
240
+ return jspb.Message.setProto3StringField(this, 1, value);
241
+ };
242
+
243
+
244
+
245
+
246
+
247
+ if (jspb.Message.GENERATE_TO_OBJECT) {
248
+ /**
249
+ * Creates an object representation of this proto.
250
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
251
+ * Optional fields that are not set will be set to undefined.
252
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
253
+ * For the list of reserved names please see:
254
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
255
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
256
+ * JSPB instance for transitional soy proto support:
257
+ * http://goto/soy-param-migration
258
+ * @return {!Object}
259
+ */
260
+ proto.example.contract.v1.MessageResponse.prototype.toObject = function(opt_includeInstance) {
261
+ return proto.example.contract.v1.MessageResponse.toObject(opt_includeInstance, this);
262
+ };
263
+
264
+
265
+ /**
266
+ * Static version of the {@see toObject} method.
267
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
268
+ * the JSPB instance for transitional soy proto support:
269
+ * http://goto/soy-param-migration
270
+ * @param {!proto.example.contract.v1.MessageResponse} msg The msg instance to transform.
271
+ * @return {!Object}
272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
273
+ */
274
+ proto.example.contract.v1.MessageResponse.toObject = function(includeInstance, msg) {
275
+ var f, obj = {
276
+ text: jspb.Message.getFieldWithDefault(msg, 1, "")
277
+ };
278
+
279
+ if (includeInstance) {
280
+ obj.$jspbMessageInstance = msg;
281
+ }
282
+ return obj;
283
+ };
284
+ }
285
+
286
+
287
+ /**
288
+ * Deserializes binary data (in protobuf wire format).
289
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
290
+ * @return {!proto.example.contract.v1.MessageResponse}
291
+ */
292
+ proto.example.contract.v1.MessageResponse.deserializeBinary = function(bytes) {
293
+ var reader = new jspb.BinaryReader(bytes);
294
+ var msg = new proto.example.contract.v1.MessageResponse;
295
+ return proto.example.contract.v1.MessageResponse.deserializeBinaryFromReader(msg, reader);
296
+ };
297
+
298
+
299
+ /**
300
+ * Deserializes binary data (in protobuf wire format) from the
301
+ * given reader into the given message object.
302
+ * @param {!proto.example.contract.v1.MessageResponse} msg The message object to deserialize into.
303
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
304
+ * @return {!proto.example.contract.v1.MessageResponse}
305
+ */
306
+ proto.example.contract.v1.MessageResponse.deserializeBinaryFromReader = function(msg, reader) {
307
+ while (reader.nextField()) {
308
+ if (reader.isEndGroup()) {
309
+ break;
310
+ }
311
+ var field = reader.getFieldNumber();
312
+ switch (field) {
313
+ case 1:
314
+ var value = /** @type {string} */ (reader.readString());
315
+ msg.setText(value);
316
+ break;
317
+ default:
318
+ reader.skipField();
319
+ break;
320
+ }
321
+ }
322
+ return msg;
323
+ };
324
+
325
+
326
+ /**
327
+ * Serializes the message to binary data (in protobuf wire format).
328
+ * @return {!Uint8Array}
329
+ */
330
+ proto.example.contract.v1.MessageResponse.prototype.serializeBinary = function() {
331
+ var writer = new jspb.BinaryWriter();
332
+ proto.example.contract.v1.MessageResponse.serializeBinaryToWriter(this, writer);
333
+ return writer.getResultBuffer();
334
+ };
335
+
336
+
337
+ /**
338
+ * Serializes the given message to binary data (in protobuf wire
339
+ * format), writing to the given BinaryWriter.
340
+ * @param {!proto.example.contract.v1.MessageResponse} message
341
+ * @param {!jspb.BinaryWriter} writer
342
+ * @suppress {unusedLocalVariables} f is only used for nested messages
343
+ */
344
+ proto.example.contract.v1.MessageResponse.serializeBinaryToWriter = function(message, writer) {
345
+ var f = undefined;
346
+ f = message.getText();
347
+ if (f.length > 0) {
348
+ writer.writeString(
349
+ 1,
350
+ f
351
+ );
352
+ }
353
+ };
354
+
355
+
356
+ /**
357
+ * optional string text = 1;
358
+ * @return {string}
359
+ */
360
+ proto.example.contract.v1.MessageResponse.prototype.getText = function() {
361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
362
+ };
363
+
364
+
365
+ /**
366
+ * @param {string} value
367
+ * @return {!proto.example.contract.v1.MessageResponse} returns this
368
+ */
369
+ proto.example.contract.v1.MessageResponse.prototype.setText = function(value) {
370
+ return jspb.Message.setProto3StringField(this, 1, value);
371
+ };
372
+
373
+
374
+
375
+
376
+
377
+ if (jspb.Message.GENERATE_TO_OBJECT) {
378
+ /**
379
+ * Creates an object representation of this proto.
380
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
381
+ * Optional fields that are not set will be set to undefined.
382
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
383
+ * For the list of reserved names please see:
384
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
385
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
386
+ * JSPB instance for transitional soy proto support:
387
+ * http://goto/soy-param-migration
388
+ * @return {!Object}
389
+ */
390
+ proto.example.contract.v1.MessageStreamRequest.prototype.toObject = function(opt_includeInstance) {
391
+ return proto.example.contract.v1.MessageStreamRequest.toObject(opt_includeInstance, this);
392
+ };
393
+
394
+
395
+ /**
396
+ * Static version of the {@see toObject} method.
397
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
398
+ * the JSPB instance for transitional soy proto support:
399
+ * http://goto/soy-param-migration
400
+ * @param {!proto.example.contract.v1.MessageStreamRequest} msg The msg instance to transform.
401
+ * @return {!Object}
402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
403
+ */
404
+ proto.example.contract.v1.MessageStreamRequest.toObject = function(includeInstance, msg) {
405
+ var f, obj = {
406
+ text: jspb.Message.getFieldWithDefault(msg, 1, "")
407
+ };
408
+
409
+ if (includeInstance) {
410
+ obj.$jspbMessageInstance = msg;
411
+ }
412
+ return obj;
413
+ };
414
+ }
415
+
416
+
417
+ /**
418
+ * Deserializes binary data (in protobuf wire format).
419
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
420
+ * @return {!proto.example.contract.v1.MessageStreamRequest}
421
+ */
422
+ proto.example.contract.v1.MessageStreamRequest.deserializeBinary = function(bytes) {
423
+ var reader = new jspb.BinaryReader(bytes);
424
+ var msg = new proto.example.contract.v1.MessageStreamRequest;
425
+ return proto.example.contract.v1.MessageStreamRequest.deserializeBinaryFromReader(msg, reader);
426
+ };
427
+
428
+
429
+ /**
430
+ * Deserializes binary data (in protobuf wire format) from the
431
+ * given reader into the given message object.
432
+ * @param {!proto.example.contract.v1.MessageStreamRequest} msg The message object to deserialize into.
433
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
434
+ * @return {!proto.example.contract.v1.MessageStreamRequest}
435
+ */
436
+ proto.example.contract.v1.MessageStreamRequest.deserializeBinaryFromReader = function(msg, reader) {
437
+ while (reader.nextField()) {
438
+ if (reader.isEndGroup()) {
439
+ break;
440
+ }
441
+ var field = reader.getFieldNumber();
442
+ switch (field) {
443
+ case 1:
444
+ var value = /** @type {string} */ (reader.readString());
445
+ msg.setText(value);
446
+ break;
447
+ default:
448
+ reader.skipField();
449
+ break;
450
+ }
451
+ }
452
+ return msg;
453
+ };
454
+
455
+
456
+ /**
457
+ * Serializes the message to binary data (in protobuf wire format).
458
+ * @return {!Uint8Array}
459
+ */
460
+ proto.example.contract.v1.MessageStreamRequest.prototype.serializeBinary = function() {
461
+ var writer = new jspb.BinaryWriter();
462
+ proto.example.contract.v1.MessageStreamRequest.serializeBinaryToWriter(this, writer);
463
+ return writer.getResultBuffer();
464
+ };
465
+
466
+
467
+ /**
468
+ * Serializes the given message to binary data (in protobuf wire
469
+ * format), writing to the given BinaryWriter.
470
+ * @param {!proto.example.contract.v1.MessageStreamRequest} message
471
+ * @param {!jspb.BinaryWriter} writer
472
+ * @suppress {unusedLocalVariables} f is only used for nested messages
473
+ */
474
+ proto.example.contract.v1.MessageStreamRequest.serializeBinaryToWriter = function(message, writer) {
475
+ var f = undefined;
476
+ f = message.getText();
477
+ if (f.length > 0) {
478
+ writer.writeString(
479
+ 1,
480
+ f
481
+ );
482
+ }
483
+ };
484
+
485
+
486
+ /**
487
+ * optional string text = 1;
488
+ * @return {string}
489
+ */
490
+ proto.example.contract.v1.MessageStreamRequest.prototype.getText = function() {
491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
492
+ };
493
+
494
+
495
+ /**
496
+ * @param {string} value
497
+ * @return {!proto.example.contract.v1.MessageStreamRequest} returns this
498
+ */
499
+ proto.example.contract.v1.MessageStreamRequest.prototype.setText = function(value) {
500
+ return jspb.Message.setProto3StringField(this, 1, value);
501
+ };
502
+
503
+
504
+
505
+
506
+
507
+ if (jspb.Message.GENERATE_TO_OBJECT) {
508
+ /**
509
+ * Creates an object representation of this proto.
510
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
511
+ * Optional fields that are not set will be set to undefined.
512
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
513
+ * For the list of reserved names please see:
514
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
515
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
516
+ * JSPB instance for transitional soy proto support:
517
+ * http://goto/soy-param-migration
518
+ * @return {!Object}
519
+ */
520
+ proto.example.contract.v1.MessageStreamResponse.prototype.toObject = function(opt_includeInstance) {
521
+ return proto.example.contract.v1.MessageStreamResponse.toObject(opt_includeInstance, this);
522
+ };
523
+
524
+
525
+ /**
526
+ * Static version of the {@see toObject} method.
527
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
528
+ * the JSPB instance for transitional soy proto support:
529
+ * http://goto/soy-param-migration
530
+ * @param {!proto.example.contract.v1.MessageStreamResponse} msg The msg instance to transform.
531
+ * @return {!Object}
532
+ * @suppress {unusedLocalVariables} f is only used for nested messages
533
+ */
534
+ proto.example.contract.v1.MessageStreamResponse.toObject = function(includeInstance, msg) {
535
+ var f, obj = {
536
+ text: jspb.Message.getFieldWithDefault(msg, 1, "")
537
+ };
538
+
539
+ if (includeInstance) {
540
+ obj.$jspbMessageInstance = msg;
541
+ }
542
+ return obj;
543
+ };
544
+ }
545
+
546
+
547
+ /**
548
+ * Deserializes binary data (in protobuf wire format).
549
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
550
+ * @return {!proto.example.contract.v1.MessageStreamResponse}
551
+ */
552
+ proto.example.contract.v1.MessageStreamResponse.deserializeBinary = function(bytes) {
553
+ var reader = new jspb.BinaryReader(bytes);
554
+ var msg = new proto.example.contract.v1.MessageStreamResponse;
555
+ return proto.example.contract.v1.MessageStreamResponse.deserializeBinaryFromReader(msg, reader);
556
+ };
557
+
558
+
559
+ /**
560
+ * Deserializes binary data (in protobuf wire format) from the
561
+ * given reader into the given message object.
562
+ * @param {!proto.example.contract.v1.MessageStreamResponse} msg The message object to deserialize into.
563
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
564
+ * @return {!proto.example.contract.v1.MessageStreamResponse}
565
+ */
566
+ proto.example.contract.v1.MessageStreamResponse.deserializeBinaryFromReader = function(msg, reader) {
567
+ while (reader.nextField()) {
568
+ if (reader.isEndGroup()) {
569
+ break;
570
+ }
571
+ var field = reader.getFieldNumber();
572
+ switch (field) {
573
+ case 1:
574
+ var value = /** @type {string} */ (reader.readString());
575
+ msg.setText(value);
576
+ break;
577
+ default:
578
+ reader.skipField();
579
+ break;
580
+ }
581
+ }
582
+ return msg;
583
+ };
584
+
585
+
586
+ /**
587
+ * Serializes the message to binary data (in protobuf wire format).
588
+ * @return {!Uint8Array}
589
+ */
590
+ proto.example.contract.v1.MessageStreamResponse.prototype.serializeBinary = function() {
591
+ var writer = new jspb.BinaryWriter();
592
+ proto.example.contract.v1.MessageStreamResponse.serializeBinaryToWriter(this, writer);
593
+ return writer.getResultBuffer();
594
+ };
595
+
596
+
597
+ /**
598
+ * Serializes the given message to binary data (in protobuf wire
599
+ * format), writing to the given BinaryWriter.
600
+ * @param {!proto.example.contract.v1.MessageStreamResponse} message
601
+ * @param {!jspb.BinaryWriter} writer
602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
603
+ */
604
+ proto.example.contract.v1.MessageStreamResponse.serializeBinaryToWriter = function(message, writer) {
605
+ var f = undefined;
606
+ f = message.getText();
607
+ if (f.length > 0) {
608
+ writer.writeString(
609
+ 1,
610
+ f
611
+ );
612
+ }
613
+ };
614
+
615
+
616
+ /**
617
+ * optional string text = 1;
618
+ * @return {string}
619
+ */
620
+ proto.example.contract.v1.MessageStreamResponse.prototype.getText = function() {
621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {string} value
627
+ * @return {!proto.example.contract.v1.MessageStreamResponse} returns this
628
+ */
629
+ proto.example.contract.v1.MessageStreamResponse.prototype.setText = function(value) {
630
+ return jspb.Message.setProto3StringField(this, 1, value);
631
+ };
632
+
633
+
634
+ goog.object.extend(exports, proto.example.contract.v1);
@@ -0,0 +1,6 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_api_http_pb from '../../google/api/http_pb'; // proto import: "google/api/http.proto"
4
+ import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; // proto import: "google/protobuf/descriptor.proto"
5
+
6
+
@@ -0,0 +1,54 @@
1
+ // source: google/api/annotations.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_http_pb = require('../../google/api/http_pb.js');
25
+ goog.object.extend(proto, google_api_http_pb);
26
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
27
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
28
+ goog.exportSymbol('proto.google.api.http', null, global);
29
+
30
+ /**
31
+ * A tuple of {field number, class constructor} for the extension
32
+ * field named `http`.
33
+ * @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
34
+ */
35
+ proto.google.api.http = new jspb.ExtensionFieldInfo(
36
+ 72295728,
37
+ {http: 0},
38
+ google_api_http_pb.HttpRule,
39
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
40
+ google_api_http_pb.HttpRule.toObject),
41
+ 0);
42
+
43
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(
44
+ proto.google.api.http,
45
+ jspb.BinaryReader.prototype.readMessage,
46
+ jspb.BinaryWriter.prototype.writeMessage,
47
+ google_api_http_pb.HttpRule.serializeBinaryToWriter,
48
+ google_api_http_pb.HttpRule.deserializeBinaryFromReader,
49
+ false);
50
+ // This registers the extension field with the extended class, so that
51
+ // toObject() will function correctly.
52
+ google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
53
+
54
+ goog.object.extend(exports, proto.google.api);
@@ -0,0 +1,15 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; // proto import: "google/protobuf/descriptor.proto"
4
+
5
+
6
+ export enum FieldBehavior {
7
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
8
+ OPTIONAL = 1,
9
+ REQUIRED = 2,
10
+ OUTPUT_ONLY = 3,
11
+ INPUT_ONLY = 4,
12
+ IMMUTABLE = 5,
13
+ UNORDERED_LIST = 6,
14
+ NON_EMPTY_DEFAULT = 7,
15
+ }