protobuf-platform 1.0.241 → 1.0.243
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/log/log.proto +7 -5
- package/log/log_grpc_pb.js +34 -0
- package/log/log_pb.js +133 -124
- package/package.json +1 -1
package/log/log.proto
CHANGED
@@ -4,24 +4,26 @@ package log;
|
|
4
4
|
|
5
5
|
service Log {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
//Issues
|
8
|
+
rpc readListIssues(PaginationRequest) returns (IssueItemsResponse);
|
7
9
|
}
|
8
10
|
|
9
11
|
message PingRequest { string ping = 1; }
|
10
12
|
message PongResponse { string pong = 1; }
|
11
13
|
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LogSearchRequest log_search_params = 3; }
|
12
14
|
message LogSearchRequest {
|
13
|
-
|
14
|
-
|
15
|
+
repeated string service = 1;
|
16
|
+
repeated string type = 2;
|
15
17
|
}
|
16
|
-
message
|
18
|
+
message IssueItem {
|
17
19
|
string hash = 1;
|
18
20
|
string type = 2;
|
19
21
|
string service = 3;
|
20
22
|
string message = 4;
|
21
23
|
string created = 5;
|
22
24
|
}
|
23
|
-
message
|
24
|
-
repeated
|
25
|
+
message IssueItemsResponse {
|
26
|
+
repeated IssueItem items = 1;
|
25
27
|
optional int32 total_pages = 2;
|
26
28
|
optional int32 total_items = 3;
|
27
29
|
}
|
package/log/log_grpc_pb.js
CHANGED
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var log_pb = require('./log_pb.js');
|
6
6
|
|
7
|
+
function serialize_log_IssueItemsResponse(arg) {
|
8
|
+
if (!(arg instanceof log_pb.IssueItemsResponse)) {
|
9
|
+
throw new Error('Expected argument of type log.IssueItemsResponse');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_log_IssueItemsResponse(buffer_arg) {
|
15
|
+
return log_pb.IssueItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_log_PaginationRequest(arg) {
|
19
|
+
if (!(arg instanceof log_pb.PaginationRequest)) {
|
20
|
+
throw new Error('Expected argument of type log.PaginationRequest');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_log_PaginationRequest(buffer_arg) {
|
26
|
+
return log_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_log_PingRequest(arg) {
|
8
30
|
if (!(arg instanceof log_pb.PingRequest)) {
|
9
31
|
throw new Error('Expected argument of type log.PingRequest');
|
@@ -39,6 +61,18 @@ var LogService = exports.LogService = {
|
|
39
61
|
responseSerialize: serialize_log_PongResponse,
|
40
62
|
responseDeserialize: deserialize_log_PongResponse,
|
41
63
|
},
|
64
|
+
// Issues
|
65
|
+
readListIssues: {
|
66
|
+
path: '/log.Log/readListIssues',
|
67
|
+
requestStream: false,
|
68
|
+
responseStream: false,
|
69
|
+
requestType: log_pb.PaginationRequest,
|
70
|
+
responseType: log_pb.IssueItemsResponse,
|
71
|
+
requestSerialize: serialize_log_PaginationRequest,
|
72
|
+
requestDeserialize: deserialize_log_PaginationRequest,
|
73
|
+
responseSerialize: serialize_log_IssueItemsResponse,
|
74
|
+
responseDeserialize: deserialize_log_IssueItemsResponse,
|
75
|
+
},
|
42
76
|
};
|
43
77
|
|
44
78
|
exports.LogClient = grpc.makeGenericClientConstructor(LogService);
|
package/log/log_pb.js
CHANGED
@@ -21,8 +21,8 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
-
goog.exportSymbol('proto.log.
|
25
|
-
goog.exportSymbol('proto.log.
|
24
|
+
goog.exportSymbol('proto.log.IssueItem', null, global);
|
25
|
+
goog.exportSymbol('proto.log.IssueItemsResponse', null, global);
|
26
26
|
goog.exportSymbol('proto.log.LogSearchRequest', null, global);
|
27
27
|
goog.exportSymbol('proto.log.PaginationRequest', null, global);
|
28
28
|
goog.exportSymbol('proto.log.PingRequest', null, global);
|
@@ -101,7 +101,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
101
101
|
* @constructor
|
102
102
|
*/
|
103
103
|
proto.log.LogSearchRequest = function(opt_data) {
|
104
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
104
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.log.LogSearchRequest.repeatedFields_, null);
|
105
105
|
};
|
106
106
|
goog.inherits(proto.log.LogSearchRequest, jspb.Message);
|
107
107
|
if (goog.DEBUG && !COMPILED) {
|
@@ -121,16 +121,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
121
121
|
* @extends {jspb.Message}
|
122
122
|
* @constructor
|
123
123
|
*/
|
124
|
-
proto.log.
|
124
|
+
proto.log.IssueItem = function(opt_data) {
|
125
125
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
126
126
|
};
|
127
|
-
goog.inherits(proto.log.
|
127
|
+
goog.inherits(proto.log.IssueItem, jspb.Message);
|
128
128
|
if (goog.DEBUG && !COMPILED) {
|
129
129
|
/**
|
130
130
|
* @public
|
131
131
|
* @override
|
132
132
|
*/
|
133
|
-
proto.log.
|
133
|
+
proto.log.IssueItem.displayName = 'proto.log.IssueItem';
|
134
134
|
}
|
135
135
|
/**
|
136
136
|
* Generated by JsPbCodeGenerator.
|
@@ -142,16 +142,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
142
142
|
* @extends {jspb.Message}
|
143
143
|
* @constructor
|
144
144
|
*/
|
145
|
-
proto.log.
|
146
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.log.
|
145
|
+
proto.log.IssueItemsResponse = function(opt_data) {
|
146
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.log.IssueItemsResponse.repeatedFields_, null);
|
147
147
|
};
|
148
|
-
goog.inherits(proto.log.
|
148
|
+
goog.inherits(proto.log.IssueItemsResponse, jspb.Message);
|
149
149
|
if (goog.DEBUG && !COMPILED) {
|
150
150
|
/**
|
151
151
|
* @public
|
152
152
|
* @override
|
153
153
|
*/
|
154
|
-
proto.log.
|
154
|
+
proto.log.IssueItemsResponse.displayName = 'proto.log.IssueItemsResponse';
|
155
155
|
}
|
156
156
|
|
157
157
|
|
@@ -625,6 +625,13 @@ proto.log.PaginationRequest.prototype.hasLogSearchParams = function() {
|
|
625
625
|
|
626
626
|
|
627
627
|
|
628
|
+
/**
|
629
|
+
* List of repeated fields within this message type.
|
630
|
+
* @private {!Array<number>}
|
631
|
+
* @const
|
632
|
+
*/
|
633
|
+
proto.log.LogSearchRequest.repeatedFields_ = [1,2];
|
634
|
+
|
628
635
|
|
629
636
|
|
630
637
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -656,8 +663,8 @@ proto.log.LogSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
656
663
|
*/
|
657
664
|
proto.log.LogSearchRequest.toObject = function(includeInstance, msg) {
|
658
665
|
var f, obj = {
|
659
|
-
|
660
|
-
|
666
|
+
serviceList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
667
|
+
typeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
661
668
|
};
|
662
669
|
|
663
670
|
if (includeInstance) {
|
@@ -696,11 +703,11 @@ proto.log.LogSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
696
703
|
switch (field) {
|
697
704
|
case 1:
|
698
705
|
var value = /** @type {string} */ (reader.readString());
|
699
|
-
msg.
|
706
|
+
msg.addService(value);
|
700
707
|
break;
|
701
708
|
case 2:
|
702
709
|
var value = /** @type {string} */ (reader.readString());
|
703
|
-
msg.
|
710
|
+
msg.addType(value);
|
704
711
|
break;
|
705
712
|
default:
|
706
713
|
reader.skipField();
|
@@ -731,16 +738,16 @@ proto.log.LogSearchRequest.prototype.serializeBinary = function() {
|
|
731
738
|
*/
|
732
739
|
proto.log.LogSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
733
740
|
var f = undefined;
|
734
|
-
f =
|
735
|
-
if (f
|
736
|
-
writer.
|
741
|
+
f = message.getServiceList();
|
742
|
+
if (f.length > 0) {
|
743
|
+
writer.writeRepeatedString(
|
737
744
|
1,
|
738
745
|
f
|
739
746
|
);
|
740
747
|
}
|
741
|
-
f =
|
742
|
-
if (f
|
743
|
-
writer.
|
748
|
+
f = message.getTypeList();
|
749
|
+
if (f.length > 0) {
|
750
|
+
writer.writeRepeatedString(
|
744
751
|
2,
|
745
752
|
f
|
746
753
|
);
|
@@ -749,74 +756,76 @@ proto.log.LogSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
749
756
|
|
750
757
|
|
751
758
|
/**
|
752
|
-
*
|
753
|
-
* @return {string}
|
759
|
+
* repeated string service = 1;
|
760
|
+
* @return {!Array<string>}
|
754
761
|
*/
|
755
|
-
proto.log.LogSearchRequest.prototype.
|
756
|
-
return /** @type {string} */ (jspb.Message.
|
762
|
+
proto.log.LogSearchRequest.prototype.getServiceList = function() {
|
763
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
757
764
|
};
|
758
765
|
|
759
766
|
|
760
767
|
/**
|
761
|
-
* @param {string} value
|
768
|
+
* @param {!Array<string>} value
|
762
769
|
* @return {!proto.log.LogSearchRequest} returns this
|
763
770
|
*/
|
764
|
-
proto.log.LogSearchRequest.prototype.
|
765
|
-
return jspb.Message.setField(this, 1, value);
|
771
|
+
proto.log.LogSearchRequest.prototype.setServiceList = function(value) {
|
772
|
+
return jspb.Message.setField(this, 1, value || []);
|
766
773
|
};
|
767
774
|
|
768
775
|
|
769
776
|
/**
|
770
|
-
*
|
777
|
+
* @param {string} value
|
778
|
+
* @param {number=} opt_index
|
771
779
|
* @return {!proto.log.LogSearchRequest} returns this
|
772
780
|
*/
|
773
|
-
proto.log.LogSearchRequest.prototype.
|
774
|
-
return jspb.Message.
|
781
|
+
proto.log.LogSearchRequest.prototype.addService = function(value, opt_index) {
|
782
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
775
783
|
};
|
776
784
|
|
777
785
|
|
778
786
|
/**
|
779
|
-
*
|
780
|
-
* @return {
|
787
|
+
* Clears the list making it empty but non-null.
|
788
|
+
* @return {!proto.log.LogSearchRequest} returns this
|
781
789
|
*/
|
782
|
-
proto.log.LogSearchRequest.prototype.
|
783
|
-
return
|
790
|
+
proto.log.LogSearchRequest.prototype.clearServiceList = function() {
|
791
|
+
return this.setServiceList([]);
|
784
792
|
};
|
785
793
|
|
786
794
|
|
787
795
|
/**
|
788
|
-
*
|
789
|
-
* @return {string}
|
796
|
+
* repeated string type = 2;
|
797
|
+
* @return {!Array<string>}
|
790
798
|
*/
|
791
|
-
proto.log.LogSearchRequest.prototype.
|
792
|
-
return /** @type {string} */ (jspb.Message.
|
799
|
+
proto.log.LogSearchRequest.prototype.getTypeList = function() {
|
800
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
793
801
|
};
|
794
802
|
|
795
803
|
|
796
804
|
/**
|
797
|
-
* @param {string} value
|
805
|
+
* @param {!Array<string>} value
|
798
806
|
* @return {!proto.log.LogSearchRequest} returns this
|
799
807
|
*/
|
800
|
-
proto.log.LogSearchRequest.prototype.
|
801
|
-
return jspb.Message.setField(this, 2, value);
|
808
|
+
proto.log.LogSearchRequest.prototype.setTypeList = function(value) {
|
809
|
+
return jspb.Message.setField(this, 2, value || []);
|
802
810
|
};
|
803
811
|
|
804
812
|
|
805
813
|
/**
|
806
|
-
*
|
814
|
+
* @param {string} value
|
815
|
+
* @param {number=} opt_index
|
807
816
|
* @return {!proto.log.LogSearchRequest} returns this
|
808
817
|
*/
|
809
|
-
proto.log.LogSearchRequest.prototype.
|
810
|
-
return jspb.Message.
|
818
|
+
proto.log.LogSearchRequest.prototype.addType = function(value, opt_index) {
|
819
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
811
820
|
};
|
812
821
|
|
813
822
|
|
814
823
|
/**
|
815
|
-
*
|
816
|
-
* @return {
|
824
|
+
* Clears the list making it empty but non-null.
|
825
|
+
* @return {!proto.log.LogSearchRequest} returns this
|
817
826
|
*/
|
818
|
-
proto.log.LogSearchRequest.prototype.
|
819
|
-
return
|
827
|
+
proto.log.LogSearchRequest.prototype.clearTypeList = function() {
|
828
|
+
return this.setTypeList([]);
|
820
829
|
};
|
821
830
|
|
822
831
|
|
@@ -836,8 +845,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
836
845
|
* http://goto/soy-param-migration
|
837
846
|
* @return {!Object}
|
838
847
|
*/
|
839
|
-
proto.log.
|
840
|
-
return proto.log.
|
848
|
+
proto.log.IssueItem.prototype.toObject = function(opt_includeInstance) {
|
849
|
+
return proto.log.IssueItem.toObject(opt_includeInstance, this);
|
841
850
|
};
|
842
851
|
|
843
852
|
|
@@ -846,11 +855,11 @@ proto.log.LogItem.prototype.toObject = function(opt_includeInstance) {
|
|
846
855
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
847
856
|
* the JSPB instance for transitional soy proto support:
|
848
857
|
* http://goto/soy-param-migration
|
849
|
-
* @param {!proto.log.
|
858
|
+
* @param {!proto.log.IssueItem} msg The msg instance to transform.
|
850
859
|
* @return {!Object}
|
851
860
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
852
861
|
*/
|
853
|
-
proto.log.
|
862
|
+
proto.log.IssueItem.toObject = function(includeInstance, msg) {
|
854
863
|
var f, obj = {
|
855
864
|
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
856
865
|
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
@@ -870,23 +879,23 @@ proto.log.LogItem.toObject = function(includeInstance, msg) {
|
|
870
879
|
/**
|
871
880
|
* Deserializes binary data (in protobuf wire format).
|
872
881
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
873
|
-
* @return {!proto.log.
|
882
|
+
* @return {!proto.log.IssueItem}
|
874
883
|
*/
|
875
|
-
proto.log.
|
884
|
+
proto.log.IssueItem.deserializeBinary = function(bytes) {
|
876
885
|
var reader = new jspb.BinaryReader(bytes);
|
877
|
-
var msg = new proto.log.
|
878
|
-
return proto.log.
|
886
|
+
var msg = new proto.log.IssueItem;
|
887
|
+
return proto.log.IssueItem.deserializeBinaryFromReader(msg, reader);
|
879
888
|
};
|
880
889
|
|
881
890
|
|
882
891
|
/**
|
883
892
|
* Deserializes binary data (in protobuf wire format) from the
|
884
893
|
* given reader into the given message object.
|
885
|
-
* @param {!proto.log.
|
894
|
+
* @param {!proto.log.IssueItem} msg The message object to deserialize into.
|
886
895
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
887
|
-
* @return {!proto.log.
|
896
|
+
* @return {!proto.log.IssueItem}
|
888
897
|
*/
|
889
|
-
proto.log.
|
898
|
+
proto.log.IssueItem.deserializeBinaryFromReader = function(msg, reader) {
|
890
899
|
while (reader.nextField()) {
|
891
900
|
if (reader.isEndGroup()) {
|
892
901
|
break;
|
@@ -926,9 +935,9 @@ proto.log.LogItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
926
935
|
* Serializes the message to binary data (in protobuf wire format).
|
927
936
|
* @return {!Uint8Array}
|
928
937
|
*/
|
929
|
-
proto.log.
|
938
|
+
proto.log.IssueItem.prototype.serializeBinary = function() {
|
930
939
|
var writer = new jspb.BinaryWriter();
|
931
|
-
proto.log.
|
940
|
+
proto.log.IssueItem.serializeBinaryToWriter(this, writer);
|
932
941
|
return writer.getResultBuffer();
|
933
942
|
};
|
934
943
|
|
@@ -936,11 +945,11 @@ proto.log.LogItem.prototype.serializeBinary = function() {
|
|
936
945
|
/**
|
937
946
|
* Serializes the given message to binary data (in protobuf wire
|
938
947
|
* format), writing to the given BinaryWriter.
|
939
|
-
* @param {!proto.log.
|
948
|
+
* @param {!proto.log.IssueItem} message
|
940
949
|
* @param {!jspb.BinaryWriter} writer
|
941
950
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
942
951
|
*/
|
943
|
-
proto.log.
|
952
|
+
proto.log.IssueItem.serializeBinaryToWriter = function(message, writer) {
|
944
953
|
var f = undefined;
|
945
954
|
f = message.getHash();
|
946
955
|
if (f.length > 0) {
|
@@ -984,16 +993,16 @@ proto.log.LogItem.serializeBinaryToWriter = function(message, writer) {
|
|
984
993
|
* optional string hash = 1;
|
985
994
|
* @return {string}
|
986
995
|
*/
|
987
|
-
proto.log.
|
996
|
+
proto.log.IssueItem.prototype.getHash = function() {
|
988
997
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
989
998
|
};
|
990
999
|
|
991
1000
|
|
992
1001
|
/**
|
993
1002
|
* @param {string} value
|
994
|
-
* @return {!proto.log.
|
1003
|
+
* @return {!proto.log.IssueItem} returns this
|
995
1004
|
*/
|
996
|
-
proto.log.
|
1005
|
+
proto.log.IssueItem.prototype.setHash = function(value) {
|
997
1006
|
return jspb.Message.setProto3StringField(this, 1, value);
|
998
1007
|
};
|
999
1008
|
|
@@ -1002,16 +1011,16 @@ proto.log.LogItem.prototype.setHash = function(value) {
|
|
1002
1011
|
* optional string type = 2;
|
1003
1012
|
* @return {string}
|
1004
1013
|
*/
|
1005
|
-
proto.log.
|
1014
|
+
proto.log.IssueItem.prototype.getType = function() {
|
1006
1015
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1007
1016
|
};
|
1008
1017
|
|
1009
1018
|
|
1010
1019
|
/**
|
1011
1020
|
* @param {string} value
|
1012
|
-
* @return {!proto.log.
|
1021
|
+
* @return {!proto.log.IssueItem} returns this
|
1013
1022
|
*/
|
1014
|
-
proto.log.
|
1023
|
+
proto.log.IssueItem.prototype.setType = function(value) {
|
1015
1024
|
return jspb.Message.setProto3StringField(this, 2, value);
|
1016
1025
|
};
|
1017
1026
|
|
@@ -1020,16 +1029,16 @@ proto.log.LogItem.prototype.setType = function(value) {
|
|
1020
1029
|
* optional string service = 3;
|
1021
1030
|
* @return {string}
|
1022
1031
|
*/
|
1023
|
-
proto.log.
|
1032
|
+
proto.log.IssueItem.prototype.getService = function() {
|
1024
1033
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1025
1034
|
};
|
1026
1035
|
|
1027
1036
|
|
1028
1037
|
/**
|
1029
1038
|
* @param {string} value
|
1030
|
-
* @return {!proto.log.
|
1039
|
+
* @return {!proto.log.IssueItem} returns this
|
1031
1040
|
*/
|
1032
|
-
proto.log.
|
1041
|
+
proto.log.IssueItem.prototype.setService = function(value) {
|
1033
1042
|
return jspb.Message.setProto3StringField(this, 3, value);
|
1034
1043
|
};
|
1035
1044
|
|
@@ -1038,16 +1047,16 @@ proto.log.LogItem.prototype.setService = function(value) {
|
|
1038
1047
|
* optional string message = 4;
|
1039
1048
|
* @return {string}
|
1040
1049
|
*/
|
1041
|
-
proto.log.
|
1050
|
+
proto.log.IssueItem.prototype.getMessage = function() {
|
1042
1051
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1043
1052
|
};
|
1044
1053
|
|
1045
1054
|
|
1046
1055
|
/**
|
1047
1056
|
* @param {string} value
|
1048
|
-
* @return {!proto.log.
|
1057
|
+
* @return {!proto.log.IssueItem} returns this
|
1049
1058
|
*/
|
1050
|
-
proto.log.
|
1059
|
+
proto.log.IssueItem.prototype.setMessage = function(value) {
|
1051
1060
|
return jspb.Message.setProto3StringField(this, 4, value);
|
1052
1061
|
};
|
1053
1062
|
|
@@ -1056,16 +1065,16 @@ proto.log.LogItem.prototype.setMessage = function(value) {
|
|
1056
1065
|
* optional string created = 5;
|
1057
1066
|
* @return {string}
|
1058
1067
|
*/
|
1059
|
-
proto.log.
|
1068
|
+
proto.log.IssueItem.prototype.getCreated = function() {
|
1060
1069
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1061
1070
|
};
|
1062
1071
|
|
1063
1072
|
|
1064
1073
|
/**
|
1065
1074
|
* @param {string} value
|
1066
|
-
* @return {!proto.log.
|
1075
|
+
* @return {!proto.log.IssueItem} returns this
|
1067
1076
|
*/
|
1068
|
-
proto.log.
|
1077
|
+
proto.log.IssueItem.prototype.setCreated = function(value) {
|
1069
1078
|
return jspb.Message.setProto3StringField(this, 5, value);
|
1070
1079
|
};
|
1071
1080
|
|
@@ -1076,7 +1085,7 @@ proto.log.LogItem.prototype.setCreated = function(value) {
|
|
1076
1085
|
* @private {!Array<number>}
|
1077
1086
|
* @const
|
1078
1087
|
*/
|
1079
|
-
proto.log.
|
1088
|
+
proto.log.IssueItemsResponse.repeatedFields_ = [1];
|
1080
1089
|
|
1081
1090
|
|
1082
1091
|
|
@@ -1093,8 +1102,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1093
1102
|
* http://goto/soy-param-migration
|
1094
1103
|
* @return {!Object}
|
1095
1104
|
*/
|
1096
|
-
proto.log.
|
1097
|
-
return proto.log.
|
1105
|
+
proto.log.IssueItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
1106
|
+
return proto.log.IssueItemsResponse.toObject(opt_includeInstance, this);
|
1098
1107
|
};
|
1099
1108
|
|
1100
1109
|
|
@@ -1103,14 +1112,14 @@ proto.log.LogItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1103
1112
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1104
1113
|
* the JSPB instance for transitional soy proto support:
|
1105
1114
|
* http://goto/soy-param-migration
|
1106
|
-
* @param {!proto.log.
|
1115
|
+
* @param {!proto.log.IssueItemsResponse} msg The msg instance to transform.
|
1107
1116
|
* @return {!Object}
|
1108
1117
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1109
1118
|
*/
|
1110
|
-
proto.log.
|
1119
|
+
proto.log.IssueItemsResponse.toObject = function(includeInstance, msg) {
|
1111
1120
|
var f, obj = {
|
1112
1121
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
1113
|
-
proto.log.
|
1122
|
+
proto.log.IssueItem.toObject, includeInstance),
|
1114
1123
|
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1115
1124
|
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1116
1125
|
};
|
@@ -1126,23 +1135,23 @@ proto.log.LogItemsResponse.toObject = function(includeInstance, msg) {
|
|
1126
1135
|
/**
|
1127
1136
|
* Deserializes binary data (in protobuf wire format).
|
1128
1137
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1129
|
-
* @return {!proto.log.
|
1138
|
+
* @return {!proto.log.IssueItemsResponse}
|
1130
1139
|
*/
|
1131
|
-
proto.log.
|
1140
|
+
proto.log.IssueItemsResponse.deserializeBinary = function(bytes) {
|
1132
1141
|
var reader = new jspb.BinaryReader(bytes);
|
1133
|
-
var msg = new proto.log.
|
1134
|
-
return proto.log.
|
1142
|
+
var msg = new proto.log.IssueItemsResponse;
|
1143
|
+
return proto.log.IssueItemsResponse.deserializeBinaryFromReader(msg, reader);
|
1135
1144
|
};
|
1136
1145
|
|
1137
1146
|
|
1138
1147
|
/**
|
1139
1148
|
* Deserializes binary data (in protobuf wire format) from the
|
1140
1149
|
* given reader into the given message object.
|
1141
|
-
* @param {!proto.log.
|
1150
|
+
* @param {!proto.log.IssueItemsResponse} msg The message object to deserialize into.
|
1142
1151
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1143
|
-
* @return {!proto.log.
|
1152
|
+
* @return {!proto.log.IssueItemsResponse}
|
1144
1153
|
*/
|
1145
|
-
proto.log.
|
1154
|
+
proto.log.IssueItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
1146
1155
|
while (reader.nextField()) {
|
1147
1156
|
if (reader.isEndGroup()) {
|
1148
1157
|
break;
|
@@ -1150,8 +1159,8 @@ proto.log.LogItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1150
1159
|
var field = reader.getFieldNumber();
|
1151
1160
|
switch (field) {
|
1152
1161
|
case 1:
|
1153
|
-
var value = new proto.log.
|
1154
|
-
reader.readMessage(value,proto.log.
|
1162
|
+
var value = new proto.log.IssueItem;
|
1163
|
+
reader.readMessage(value,proto.log.IssueItem.deserializeBinaryFromReader);
|
1155
1164
|
msg.addItems(value);
|
1156
1165
|
break;
|
1157
1166
|
case 2:
|
@@ -1175,9 +1184,9 @@ proto.log.LogItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1175
1184
|
* Serializes the message to binary data (in protobuf wire format).
|
1176
1185
|
* @return {!Uint8Array}
|
1177
1186
|
*/
|
1178
|
-
proto.log.
|
1187
|
+
proto.log.IssueItemsResponse.prototype.serializeBinary = function() {
|
1179
1188
|
var writer = new jspb.BinaryWriter();
|
1180
|
-
proto.log.
|
1189
|
+
proto.log.IssueItemsResponse.serializeBinaryToWriter(this, writer);
|
1181
1190
|
return writer.getResultBuffer();
|
1182
1191
|
};
|
1183
1192
|
|
@@ -1185,18 +1194,18 @@ proto.log.LogItemsResponse.prototype.serializeBinary = function() {
|
|
1185
1194
|
/**
|
1186
1195
|
* Serializes the given message to binary data (in protobuf wire
|
1187
1196
|
* format), writing to the given BinaryWriter.
|
1188
|
-
* @param {!proto.log.
|
1197
|
+
* @param {!proto.log.IssueItemsResponse} message
|
1189
1198
|
* @param {!jspb.BinaryWriter} writer
|
1190
1199
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1191
1200
|
*/
|
1192
|
-
proto.log.
|
1201
|
+
proto.log.IssueItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
1193
1202
|
var f = undefined;
|
1194
1203
|
f = message.getItemsList();
|
1195
1204
|
if (f.length > 0) {
|
1196
1205
|
writer.writeRepeatedMessage(
|
1197
1206
|
1,
|
1198
1207
|
f,
|
1199
|
-
proto.log.
|
1208
|
+
proto.log.IssueItem.serializeBinaryToWriter
|
1200
1209
|
);
|
1201
1210
|
}
|
1202
1211
|
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
@@ -1217,39 +1226,39 @@ proto.log.LogItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1217
1226
|
|
1218
1227
|
|
1219
1228
|
/**
|
1220
|
-
* repeated
|
1221
|
-
* @return {!Array<!proto.log.
|
1229
|
+
* repeated IssueItem items = 1;
|
1230
|
+
* @return {!Array<!proto.log.IssueItem>}
|
1222
1231
|
*/
|
1223
|
-
proto.log.
|
1224
|
-
return /** @type{!Array<!proto.log.
|
1225
|
-
jspb.Message.getRepeatedWrapperField(this, proto.log.
|
1232
|
+
proto.log.IssueItemsResponse.prototype.getItemsList = function() {
|
1233
|
+
return /** @type{!Array<!proto.log.IssueItem>} */ (
|
1234
|
+
jspb.Message.getRepeatedWrapperField(this, proto.log.IssueItem, 1));
|
1226
1235
|
};
|
1227
1236
|
|
1228
1237
|
|
1229
1238
|
/**
|
1230
|
-
* @param {!Array<!proto.log.
|
1231
|
-
* @return {!proto.log.
|
1239
|
+
* @param {!Array<!proto.log.IssueItem>} value
|
1240
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1232
1241
|
*/
|
1233
|
-
proto.log.
|
1242
|
+
proto.log.IssueItemsResponse.prototype.setItemsList = function(value) {
|
1234
1243
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
1235
1244
|
};
|
1236
1245
|
|
1237
1246
|
|
1238
1247
|
/**
|
1239
|
-
* @param {!proto.log.
|
1248
|
+
* @param {!proto.log.IssueItem=} opt_value
|
1240
1249
|
* @param {number=} opt_index
|
1241
|
-
* @return {!proto.log.
|
1250
|
+
* @return {!proto.log.IssueItem}
|
1242
1251
|
*/
|
1243
|
-
proto.log.
|
1244
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.
|
1252
|
+
proto.log.IssueItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
1253
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.IssueItem, opt_index);
|
1245
1254
|
};
|
1246
1255
|
|
1247
1256
|
|
1248
1257
|
/**
|
1249
1258
|
* Clears the list making it empty but non-null.
|
1250
|
-
* @return {!proto.log.
|
1259
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1251
1260
|
*/
|
1252
|
-
proto.log.
|
1261
|
+
proto.log.IssueItemsResponse.prototype.clearItemsList = function() {
|
1253
1262
|
return this.setItemsList([]);
|
1254
1263
|
};
|
1255
1264
|
|
@@ -1258,25 +1267,25 @@ proto.log.LogItemsResponse.prototype.clearItemsList = function() {
|
|
1258
1267
|
* optional int32 total_pages = 2;
|
1259
1268
|
* @return {number}
|
1260
1269
|
*/
|
1261
|
-
proto.log.
|
1270
|
+
proto.log.IssueItemsResponse.prototype.getTotalPages = function() {
|
1262
1271
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1263
1272
|
};
|
1264
1273
|
|
1265
1274
|
|
1266
1275
|
/**
|
1267
1276
|
* @param {number} value
|
1268
|
-
* @return {!proto.log.
|
1277
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1269
1278
|
*/
|
1270
|
-
proto.log.
|
1279
|
+
proto.log.IssueItemsResponse.prototype.setTotalPages = function(value) {
|
1271
1280
|
return jspb.Message.setField(this, 2, value);
|
1272
1281
|
};
|
1273
1282
|
|
1274
1283
|
|
1275
1284
|
/**
|
1276
1285
|
* Clears the field making it undefined.
|
1277
|
-
* @return {!proto.log.
|
1286
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1278
1287
|
*/
|
1279
|
-
proto.log.
|
1288
|
+
proto.log.IssueItemsResponse.prototype.clearTotalPages = function() {
|
1280
1289
|
return jspb.Message.setField(this, 2, undefined);
|
1281
1290
|
};
|
1282
1291
|
|
@@ -1285,7 +1294,7 @@ proto.log.LogItemsResponse.prototype.clearTotalPages = function() {
|
|
1285
1294
|
* Returns whether this field is set.
|
1286
1295
|
* @return {boolean}
|
1287
1296
|
*/
|
1288
|
-
proto.log.
|
1297
|
+
proto.log.IssueItemsResponse.prototype.hasTotalPages = function() {
|
1289
1298
|
return jspb.Message.getField(this, 2) != null;
|
1290
1299
|
};
|
1291
1300
|
|
@@ -1294,25 +1303,25 @@ proto.log.LogItemsResponse.prototype.hasTotalPages = function() {
|
|
1294
1303
|
* optional int32 total_items = 3;
|
1295
1304
|
* @return {number}
|
1296
1305
|
*/
|
1297
|
-
proto.log.
|
1306
|
+
proto.log.IssueItemsResponse.prototype.getTotalItems = function() {
|
1298
1307
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1299
1308
|
};
|
1300
1309
|
|
1301
1310
|
|
1302
1311
|
/**
|
1303
1312
|
* @param {number} value
|
1304
|
-
* @return {!proto.log.
|
1313
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1305
1314
|
*/
|
1306
|
-
proto.log.
|
1315
|
+
proto.log.IssueItemsResponse.prototype.setTotalItems = function(value) {
|
1307
1316
|
return jspb.Message.setField(this, 3, value);
|
1308
1317
|
};
|
1309
1318
|
|
1310
1319
|
|
1311
1320
|
/**
|
1312
1321
|
* Clears the field making it undefined.
|
1313
|
-
* @return {!proto.log.
|
1322
|
+
* @return {!proto.log.IssueItemsResponse} returns this
|
1314
1323
|
*/
|
1315
|
-
proto.log.
|
1324
|
+
proto.log.IssueItemsResponse.prototype.clearTotalItems = function() {
|
1316
1325
|
return jspb.Message.setField(this, 3, undefined);
|
1317
1326
|
};
|
1318
1327
|
|
@@ -1321,7 +1330,7 @@ proto.log.LogItemsResponse.prototype.clearTotalItems = function() {
|
|
1321
1330
|
* Returns whether this field is set.
|
1322
1331
|
* @return {boolean}
|
1323
1332
|
*/
|
1324
|
-
proto.log.
|
1333
|
+
proto.log.IssueItemsResponse.prototype.hasTotalItems = function() {
|
1325
1334
|
return jspb.Message.getField(this, 3) != null;
|
1326
1335
|
};
|
1327
1336
|
|