@marleena/trb-proto 0.1.1 → 0.1.2
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/README.md +3 -1
- package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
- package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
- package/gen/js-ts/db_api/db_api_pb.js +3371 -0
- package/gen/js-ts/nats/ManagerServiceClientPb.ts +43 -0
- package/gen/js-ts/nats/manager_pb.d.ts +46 -0
- package/gen/js-ts/nats/manager_pb.js +394 -0
- package/package.json +1 -1
|
@@ -426,6 +426,49 @@ export class NatsJetStreamManagerClient {
|
|
|
426
426
|
this.methodDescriptorGetMsg);
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
+
methodDescriptorGetMsgs = new grpcWeb.MethodDescriptor(
|
|
430
|
+
'/trb.nats.manager.public.contract.v1.NatsJetStreamManager/GetMsgs',
|
|
431
|
+
grpcWeb.MethodType.UNARY,
|
|
432
|
+
nats_manager_pb.MsgRange,
|
|
433
|
+
nats_manager_pb.MsgList,
|
|
434
|
+
(request: nats_manager_pb.MsgRange) => {
|
|
435
|
+
return request.serializeBinary();
|
|
436
|
+
},
|
|
437
|
+
nats_manager_pb.MsgList.deserializeBinary
|
|
438
|
+
);
|
|
439
|
+
|
|
440
|
+
getMsgs(
|
|
441
|
+
request: nats_manager_pb.MsgRange,
|
|
442
|
+
metadata?: grpcWeb.Metadata | null): Promise<nats_manager_pb.MsgList>;
|
|
443
|
+
|
|
444
|
+
getMsgs(
|
|
445
|
+
request: nats_manager_pb.MsgRange,
|
|
446
|
+
metadata: grpcWeb.Metadata | null,
|
|
447
|
+
callback: (err: grpcWeb.RpcError,
|
|
448
|
+
response: nats_manager_pb.MsgList) => void): grpcWeb.ClientReadableStream<nats_manager_pb.MsgList>;
|
|
449
|
+
|
|
450
|
+
getMsgs(
|
|
451
|
+
request: nats_manager_pb.MsgRange,
|
|
452
|
+
metadata?: grpcWeb.Metadata | null,
|
|
453
|
+
callback?: (err: grpcWeb.RpcError,
|
|
454
|
+
response: nats_manager_pb.MsgList) => void) {
|
|
455
|
+
if (callback !== undefined) {
|
|
456
|
+
return this.client_.rpcCall(
|
|
457
|
+
this.hostname_ +
|
|
458
|
+
'/trb.nats.manager.public.contract.v1.NatsJetStreamManager/GetMsgs',
|
|
459
|
+
request,
|
|
460
|
+
metadata || {},
|
|
461
|
+
this.methodDescriptorGetMsgs,
|
|
462
|
+
callback);
|
|
463
|
+
}
|
|
464
|
+
return this.client_.unaryCall(
|
|
465
|
+
this.hostname_ +
|
|
466
|
+
'/trb.nats.manager.public.contract.v1.NatsJetStreamManager/GetMsgs',
|
|
467
|
+
request,
|
|
468
|
+
metadata || {},
|
|
469
|
+
this.methodDescriptorGetMsgs);
|
|
470
|
+
}
|
|
471
|
+
|
|
429
472
|
methodDescriptorGetLastMsg = new grpcWeb.MethodDescriptor(
|
|
430
473
|
'/trb.nats.manager.public.contract.v1.NatsJetStreamManager/GetLastMsg',
|
|
431
474
|
grpcWeb.MethodType.UNARY,
|
|
@@ -842,6 +842,52 @@ export namespace Msg {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
+
export class MsgRange extends jspb.Message {
|
|
846
|
+
getName(): string;
|
|
847
|
+
setName(value: string): MsgRange;
|
|
848
|
+
|
|
849
|
+
getFromSeq(): number;
|
|
850
|
+
setFromSeq(value: number): MsgRange;
|
|
851
|
+
|
|
852
|
+
getToSeq(): number;
|
|
853
|
+
setToSeq(value: number): MsgRange;
|
|
854
|
+
|
|
855
|
+
serializeBinary(): Uint8Array;
|
|
856
|
+
toObject(includeInstance?: boolean): MsgRange.AsObject;
|
|
857
|
+
static toObject(includeInstance: boolean, msg: MsgRange): MsgRange.AsObject;
|
|
858
|
+
static serializeBinaryToWriter(message: MsgRange, writer: jspb.BinaryWriter): void;
|
|
859
|
+
static deserializeBinary(bytes: Uint8Array): MsgRange;
|
|
860
|
+
static deserializeBinaryFromReader(message: MsgRange, reader: jspb.BinaryReader): MsgRange;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export namespace MsgRange {
|
|
864
|
+
export type AsObject = {
|
|
865
|
+
name: string,
|
|
866
|
+
fromSeq: number,
|
|
867
|
+
toSeq: number,
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export class MsgList extends jspb.Message {
|
|
872
|
+
getItemsList(): Array<RawStreamMsg>;
|
|
873
|
+
setItemsList(value: Array<RawStreamMsg>): MsgList;
|
|
874
|
+
clearItemsList(): MsgList;
|
|
875
|
+
addItems(value?: RawStreamMsg, index?: number): RawStreamMsg;
|
|
876
|
+
|
|
877
|
+
serializeBinary(): Uint8Array;
|
|
878
|
+
toObject(includeInstance?: boolean): MsgList.AsObject;
|
|
879
|
+
static toObject(includeInstance: boolean, msg: MsgList): MsgList.AsObject;
|
|
880
|
+
static serializeBinaryToWriter(message: MsgList, writer: jspb.BinaryWriter): void;
|
|
881
|
+
static deserializeBinary(bytes: Uint8Array): MsgList;
|
|
882
|
+
static deserializeBinaryFromReader(message: MsgList, reader: jspb.BinaryReader): MsgList;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export namespace MsgList {
|
|
886
|
+
export type AsObject = {
|
|
887
|
+
itemsList: Array<RawStreamMsg.AsObject>,
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
845
891
|
export class LastMsg extends jspb.Message {
|
|
846
892
|
getName(): string;
|
|
847
893
|
setName(value: string): LastMsg;
|
|
@@ -41,6 +41,8 @@ goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.ExternalStream', nu
|
|
|
41
41
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.JsOpts', null, global);
|
|
42
42
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.LastMsg', null, global);
|
|
43
43
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.Msg', null, global);
|
|
44
|
+
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.MsgList', null, global);
|
|
45
|
+
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.MsgRange', null, global);
|
|
44
46
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.PeerInfo', null, global);
|
|
45
47
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.Placement', null, global);
|
|
46
48
|
goog.exportSymbol('proto.trb.nats.manager.public.contract.v1.PublishRequest', null, global);
|
|
@@ -610,6 +612,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
610
612
|
*/
|
|
611
613
|
proto.trb.nats.manager.public.contract.v1.Msg.displayName = 'proto.trb.nats.manager.public.contract.v1.Msg';
|
|
612
614
|
}
|
|
615
|
+
/**
|
|
616
|
+
* Generated by JsPbCodeGenerator.
|
|
617
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
618
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
619
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
620
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
621
|
+
* valid.
|
|
622
|
+
* @extends {jspb.Message}
|
|
623
|
+
* @constructor
|
|
624
|
+
*/
|
|
625
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange = function(opt_data) {
|
|
626
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
627
|
+
};
|
|
628
|
+
goog.inherits(proto.trb.nats.manager.public.contract.v1.MsgRange, jspb.Message);
|
|
629
|
+
if (goog.DEBUG && !COMPILED) {
|
|
630
|
+
/**
|
|
631
|
+
* @public
|
|
632
|
+
* @override
|
|
633
|
+
*/
|
|
634
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.displayName = 'proto.trb.nats.manager.public.contract.v1.MsgRange';
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Generated by JsPbCodeGenerator.
|
|
638
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
639
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
640
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
641
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
642
|
+
* valid.
|
|
643
|
+
* @extends {jspb.Message}
|
|
644
|
+
* @constructor
|
|
645
|
+
*/
|
|
646
|
+
proto.trb.nats.manager.public.contract.v1.MsgList = function(opt_data) {
|
|
647
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.nats.manager.public.contract.v1.MsgList.repeatedFields_, null);
|
|
648
|
+
};
|
|
649
|
+
goog.inherits(proto.trb.nats.manager.public.contract.v1.MsgList, jspb.Message);
|
|
650
|
+
if (goog.DEBUG && !COMPILED) {
|
|
651
|
+
/**
|
|
652
|
+
* @public
|
|
653
|
+
* @override
|
|
654
|
+
*/
|
|
655
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.displayName = 'proto.trb.nats.manager.public.contract.v1.MsgList';
|
|
656
|
+
}
|
|
613
657
|
/**
|
|
614
658
|
* Generated by JsPbCodeGenerator.
|
|
615
659
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7309,6 +7353,356 @@ proto.trb.nats.manager.public.contract.v1.Msg.prototype.setSeq = function(value)
|
|
|
7309
7353
|
|
|
7310
7354
|
|
|
7311
7355
|
|
|
7356
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7357
|
+
/**
|
|
7358
|
+
* Creates an object representation of this proto.
|
|
7359
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7360
|
+
* Optional fields that are not set will be set to undefined.
|
|
7361
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7362
|
+
* For the list of reserved names please see:
|
|
7363
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7364
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7365
|
+
* JSPB instance for transitional soy proto support:
|
|
7366
|
+
* http://goto/soy-param-migration
|
|
7367
|
+
* @return {!Object}
|
|
7368
|
+
*/
|
|
7369
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.toObject = function(opt_includeInstance) {
|
|
7370
|
+
return proto.trb.nats.manager.public.contract.v1.MsgRange.toObject(opt_includeInstance, this);
|
|
7371
|
+
};
|
|
7372
|
+
|
|
7373
|
+
|
|
7374
|
+
/**
|
|
7375
|
+
* Static version of the {@see toObject} method.
|
|
7376
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7377
|
+
* the JSPB instance for transitional soy proto support:
|
|
7378
|
+
* http://goto/soy-param-migration
|
|
7379
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgRange} msg The msg instance to transform.
|
|
7380
|
+
* @return {!Object}
|
|
7381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7382
|
+
*/
|
|
7383
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.toObject = function(includeInstance, msg) {
|
|
7384
|
+
var f, obj = {
|
|
7385
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7386
|
+
fromSeq: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7387
|
+
toSeq: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
if (includeInstance) {
|
|
7391
|
+
obj.$jspbMessageInstance = msg;
|
|
7392
|
+
}
|
|
7393
|
+
return obj;
|
|
7394
|
+
};
|
|
7395
|
+
}
|
|
7396
|
+
|
|
7397
|
+
|
|
7398
|
+
/**
|
|
7399
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7400
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7401
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgRange}
|
|
7402
|
+
*/
|
|
7403
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.deserializeBinary = function(bytes) {
|
|
7404
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7405
|
+
var msg = new proto.trb.nats.manager.public.contract.v1.MsgRange;
|
|
7406
|
+
return proto.trb.nats.manager.public.contract.v1.MsgRange.deserializeBinaryFromReader(msg, reader);
|
|
7407
|
+
};
|
|
7408
|
+
|
|
7409
|
+
|
|
7410
|
+
/**
|
|
7411
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7412
|
+
* given reader into the given message object.
|
|
7413
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgRange} msg The message object to deserialize into.
|
|
7414
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7415
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgRange}
|
|
7416
|
+
*/
|
|
7417
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.deserializeBinaryFromReader = function(msg, reader) {
|
|
7418
|
+
while (reader.nextField()) {
|
|
7419
|
+
if (reader.isEndGroup()) {
|
|
7420
|
+
break;
|
|
7421
|
+
}
|
|
7422
|
+
var field = reader.getFieldNumber();
|
|
7423
|
+
switch (field) {
|
|
7424
|
+
case 1:
|
|
7425
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7426
|
+
msg.setName(value);
|
|
7427
|
+
break;
|
|
7428
|
+
case 2:
|
|
7429
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7430
|
+
msg.setFromSeq(value);
|
|
7431
|
+
break;
|
|
7432
|
+
case 3:
|
|
7433
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7434
|
+
msg.setToSeq(value);
|
|
7435
|
+
break;
|
|
7436
|
+
default:
|
|
7437
|
+
reader.skipField();
|
|
7438
|
+
break;
|
|
7439
|
+
}
|
|
7440
|
+
}
|
|
7441
|
+
return msg;
|
|
7442
|
+
};
|
|
7443
|
+
|
|
7444
|
+
|
|
7445
|
+
/**
|
|
7446
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7447
|
+
* @return {!Uint8Array}
|
|
7448
|
+
*/
|
|
7449
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.serializeBinary = function() {
|
|
7450
|
+
var writer = new jspb.BinaryWriter();
|
|
7451
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.serializeBinaryToWriter(this, writer);
|
|
7452
|
+
return writer.getResultBuffer();
|
|
7453
|
+
};
|
|
7454
|
+
|
|
7455
|
+
|
|
7456
|
+
/**
|
|
7457
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7458
|
+
* format), writing to the given BinaryWriter.
|
|
7459
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgRange} message
|
|
7460
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7461
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7462
|
+
*/
|
|
7463
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.serializeBinaryToWriter = function(message, writer) {
|
|
7464
|
+
var f = undefined;
|
|
7465
|
+
f = message.getName();
|
|
7466
|
+
if (f.length > 0) {
|
|
7467
|
+
writer.writeString(
|
|
7468
|
+
1,
|
|
7469
|
+
f
|
|
7470
|
+
);
|
|
7471
|
+
}
|
|
7472
|
+
f = message.getFromSeq();
|
|
7473
|
+
if (f !== 0) {
|
|
7474
|
+
writer.writeUint64(
|
|
7475
|
+
2,
|
|
7476
|
+
f
|
|
7477
|
+
);
|
|
7478
|
+
}
|
|
7479
|
+
f = message.getToSeq();
|
|
7480
|
+
if (f !== 0) {
|
|
7481
|
+
writer.writeUint64(
|
|
7482
|
+
3,
|
|
7483
|
+
f
|
|
7484
|
+
);
|
|
7485
|
+
}
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
|
|
7489
|
+
/**
|
|
7490
|
+
* optional string name = 1;
|
|
7491
|
+
* @return {string}
|
|
7492
|
+
*/
|
|
7493
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.getName = function() {
|
|
7494
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7495
|
+
};
|
|
7496
|
+
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* @param {string} value
|
|
7500
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgRange} returns this
|
|
7501
|
+
*/
|
|
7502
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.setName = function(value) {
|
|
7503
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
|
|
7507
|
+
/**
|
|
7508
|
+
* optional uint64 from_seq = 2;
|
|
7509
|
+
* @return {number}
|
|
7510
|
+
*/
|
|
7511
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.getFromSeq = function() {
|
|
7512
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7513
|
+
};
|
|
7514
|
+
|
|
7515
|
+
|
|
7516
|
+
/**
|
|
7517
|
+
* @param {number} value
|
|
7518
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgRange} returns this
|
|
7519
|
+
*/
|
|
7520
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.setFromSeq = function(value) {
|
|
7521
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
7522
|
+
};
|
|
7523
|
+
|
|
7524
|
+
|
|
7525
|
+
/**
|
|
7526
|
+
* optional uint64 to_seq = 3;
|
|
7527
|
+
* @return {number}
|
|
7528
|
+
*/
|
|
7529
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.getToSeq = function() {
|
|
7530
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
7531
|
+
};
|
|
7532
|
+
|
|
7533
|
+
|
|
7534
|
+
/**
|
|
7535
|
+
* @param {number} value
|
|
7536
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgRange} returns this
|
|
7537
|
+
*/
|
|
7538
|
+
proto.trb.nats.manager.public.contract.v1.MsgRange.prototype.setToSeq = function(value) {
|
|
7539
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
7540
|
+
};
|
|
7541
|
+
|
|
7542
|
+
|
|
7543
|
+
|
|
7544
|
+
/**
|
|
7545
|
+
* List of repeated fields within this message type.
|
|
7546
|
+
* @private {!Array<number>}
|
|
7547
|
+
* @const
|
|
7548
|
+
*/
|
|
7549
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.repeatedFields_ = [1];
|
|
7550
|
+
|
|
7551
|
+
|
|
7552
|
+
|
|
7553
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7554
|
+
/**
|
|
7555
|
+
* Creates an object representation of this proto.
|
|
7556
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7557
|
+
* Optional fields that are not set will be set to undefined.
|
|
7558
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7559
|
+
* For the list of reserved names please see:
|
|
7560
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7561
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7562
|
+
* JSPB instance for transitional soy proto support:
|
|
7563
|
+
* http://goto/soy-param-migration
|
|
7564
|
+
* @return {!Object}
|
|
7565
|
+
*/
|
|
7566
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.toObject = function(opt_includeInstance) {
|
|
7567
|
+
return proto.trb.nats.manager.public.contract.v1.MsgList.toObject(opt_includeInstance, this);
|
|
7568
|
+
};
|
|
7569
|
+
|
|
7570
|
+
|
|
7571
|
+
/**
|
|
7572
|
+
* Static version of the {@see toObject} method.
|
|
7573
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7574
|
+
* the JSPB instance for transitional soy proto support:
|
|
7575
|
+
* http://goto/soy-param-migration
|
|
7576
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgList} msg The msg instance to transform.
|
|
7577
|
+
* @return {!Object}
|
|
7578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7579
|
+
*/
|
|
7580
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.toObject = function(includeInstance, msg) {
|
|
7581
|
+
var f, obj = {
|
|
7582
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
7583
|
+
proto.trb.nats.manager.public.contract.v1.RawStreamMsg.toObject, includeInstance)
|
|
7584
|
+
};
|
|
7585
|
+
|
|
7586
|
+
if (includeInstance) {
|
|
7587
|
+
obj.$jspbMessageInstance = msg;
|
|
7588
|
+
}
|
|
7589
|
+
return obj;
|
|
7590
|
+
};
|
|
7591
|
+
}
|
|
7592
|
+
|
|
7593
|
+
|
|
7594
|
+
/**
|
|
7595
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7596
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7597
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgList}
|
|
7598
|
+
*/
|
|
7599
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.deserializeBinary = function(bytes) {
|
|
7600
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7601
|
+
var msg = new proto.trb.nats.manager.public.contract.v1.MsgList;
|
|
7602
|
+
return proto.trb.nats.manager.public.contract.v1.MsgList.deserializeBinaryFromReader(msg, reader);
|
|
7603
|
+
};
|
|
7604
|
+
|
|
7605
|
+
|
|
7606
|
+
/**
|
|
7607
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7608
|
+
* given reader into the given message object.
|
|
7609
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgList} msg The message object to deserialize into.
|
|
7610
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7611
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgList}
|
|
7612
|
+
*/
|
|
7613
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.deserializeBinaryFromReader = function(msg, reader) {
|
|
7614
|
+
while (reader.nextField()) {
|
|
7615
|
+
if (reader.isEndGroup()) {
|
|
7616
|
+
break;
|
|
7617
|
+
}
|
|
7618
|
+
var field = reader.getFieldNumber();
|
|
7619
|
+
switch (field) {
|
|
7620
|
+
case 1:
|
|
7621
|
+
var value = new proto.trb.nats.manager.public.contract.v1.RawStreamMsg;
|
|
7622
|
+
reader.readMessage(value,proto.trb.nats.manager.public.contract.v1.RawStreamMsg.deserializeBinaryFromReader);
|
|
7623
|
+
msg.addItems(value);
|
|
7624
|
+
break;
|
|
7625
|
+
default:
|
|
7626
|
+
reader.skipField();
|
|
7627
|
+
break;
|
|
7628
|
+
}
|
|
7629
|
+
}
|
|
7630
|
+
return msg;
|
|
7631
|
+
};
|
|
7632
|
+
|
|
7633
|
+
|
|
7634
|
+
/**
|
|
7635
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7636
|
+
* @return {!Uint8Array}
|
|
7637
|
+
*/
|
|
7638
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.serializeBinary = function() {
|
|
7639
|
+
var writer = new jspb.BinaryWriter();
|
|
7640
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.serializeBinaryToWriter(this, writer);
|
|
7641
|
+
return writer.getResultBuffer();
|
|
7642
|
+
};
|
|
7643
|
+
|
|
7644
|
+
|
|
7645
|
+
/**
|
|
7646
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7647
|
+
* format), writing to the given BinaryWriter.
|
|
7648
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.MsgList} message
|
|
7649
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7651
|
+
*/
|
|
7652
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.serializeBinaryToWriter = function(message, writer) {
|
|
7653
|
+
var f = undefined;
|
|
7654
|
+
f = message.getItemsList();
|
|
7655
|
+
if (f.length > 0) {
|
|
7656
|
+
writer.writeRepeatedMessage(
|
|
7657
|
+
1,
|
|
7658
|
+
f,
|
|
7659
|
+
proto.trb.nats.manager.public.contract.v1.RawStreamMsg.serializeBinaryToWriter
|
|
7660
|
+
);
|
|
7661
|
+
}
|
|
7662
|
+
};
|
|
7663
|
+
|
|
7664
|
+
|
|
7665
|
+
/**
|
|
7666
|
+
* repeated RawStreamMsg items = 1;
|
|
7667
|
+
* @return {!Array<!proto.trb.nats.manager.public.contract.v1.RawStreamMsg>}
|
|
7668
|
+
*/
|
|
7669
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.getItemsList = function() {
|
|
7670
|
+
return /** @type{!Array<!proto.trb.nats.manager.public.contract.v1.RawStreamMsg>} */ (
|
|
7671
|
+
jspb.Message.getRepeatedWrapperField(this, proto.trb.nats.manager.public.contract.v1.RawStreamMsg, 1));
|
|
7672
|
+
};
|
|
7673
|
+
|
|
7674
|
+
|
|
7675
|
+
/**
|
|
7676
|
+
* @param {!Array<!proto.trb.nats.manager.public.contract.v1.RawStreamMsg>} value
|
|
7677
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgList} returns this
|
|
7678
|
+
*/
|
|
7679
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.setItemsList = function(value) {
|
|
7680
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
7681
|
+
};
|
|
7682
|
+
|
|
7683
|
+
|
|
7684
|
+
/**
|
|
7685
|
+
* @param {!proto.trb.nats.manager.public.contract.v1.RawStreamMsg=} opt_value
|
|
7686
|
+
* @param {number=} opt_index
|
|
7687
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.RawStreamMsg}
|
|
7688
|
+
*/
|
|
7689
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.addItems = function(opt_value, opt_index) {
|
|
7690
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.nats.manager.public.contract.v1.RawStreamMsg, opt_index);
|
|
7691
|
+
};
|
|
7692
|
+
|
|
7693
|
+
|
|
7694
|
+
/**
|
|
7695
|
+
* Clears the list making it empty but non-null.
|
|
7696
|
+
* @return {!proto.trb.nats.manager.public.contract.v1.MsgList} returns this
|
|
7697
|
+
*/
|
|
7698
|
+
proto.trb.nats.manager.public.contract.v1.MsgList.prototype.clearItemsList = function() {
|
|
7699
|
+
return this.setItemsList([]);
|
|
7700
|
+
};
|
|
7701
|
+
|
|
7702
|
+
|
|
7703
|
+
|
|
7704
|
+
|
|
7705
|
+
|
|
7312
7706
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7313
7707
|
/**
|
|
7314
7708
|
* Creates an object representation of this proto.
|