@gitpod/ide-metrics-api-grpcweb 0.0.1-sefftinge-add-phone-verification-11339.34 → 0.0.1-sje-no-log-envvars.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.
@@ -17,8 +17,12 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  goog.exportSymbol('proto.ide_metrics_api.AddCounterRequest', null, global);
19
19
  goog.exportSymbol('proto.ide_metrics_api.AddCounterResponse', null, global);
20
+ goog.exportSymbol('proto.ide_metrics_api.AddHistogramRequest', null, global);
21
+ goog.exportSymbol('proto.ide_metrics_api.AddHistogramResponse', null, global);
20
22
  goog.exportSymbol('proto.ide_metrics_api.ObserveHistogramRequest', null, global);
21
23
  goog.exportSymbol('proto.ide_metrics_api.ObserveHistogramResponse', null, global);
24
+ goog.exportSymbol('proto.ide_metrics_api.ReportErrorRequest', null, global);
25
+ goog.exportSymbol('proto.ide_metrics_api.ReportErrorResponse', null, global);
22
26
  /**
23
27
  * Generated by JsPbCodeGenerator.
24
28
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -103,6 +107,90 @@ if (goog.DEBUG && !COMPILED) {
103
107
  */
104
108
  proto.ide_metrics_api.ObserveHistogramResponse.displayName = 'proto.ide_metrics_api.ObserveHistogramResponse';
105
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.ide_metrics_api.AddHistogramRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ide_metrics_api.AddHistogramRequest.repeatedFields_, null);
122
+ };
123
+ goog.inherits(proto.ide_metrics_api.AddHistogramRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.ide_metrics_api.AddHistogramRequest.displayName = 'proto.ide_metrics_api.AddHistogramRequest';
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.ide_metrics_api.AddHistogramResponse = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.ide_metrics_api.AddHistogramResponse, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.ide_metrics_api.AddHistogramResponse.displayName = 'proto.ide_metrics_api.AddHistogramResponse';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.ide_metrics_api.ReportErrorRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.ide_metrics_api.ReportErrorRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.ide_metrics_api.ReportErrorRequest.displayName = 'proto.ide_metrics_api.ReportErrorRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.ide_metrics_api.ReportErrorResponse = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.ide_metrics_api.ReportErrorResponse, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.ide_metrics_api.ReportErrorResponse.displayName = 'proto.ide_metrics_api.ReportErrorResponse';
193
+ }
106
194
 
107
195
 
108
196
 
@@ -228,8 +316,8 @@ proto.ide_metrics_api.AddCounterRequest.serializeBinaryToWriter = function(messa
228
316
  if (f && f.getLength() > 0) {
229
317
  f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
230
318
  }
231
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
232
- if (f != null) {
319
+ f = message.getValue();
320
+ if (f !== 0) {
233
321
  writer.writeInt32(
234
322
  3,
235
323
  f
@@ -292,25 +380,7 @@ proto.ide_metrics_api.AddCounterRequest.prototype.getValue = function() {
292
380
  * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
293
381
  */
294
382
  proto.ide_metrics_api.AddCounterRequest.prototype.setValue = function(value) {
295
- return jspb.Message.setField(this, 3, value);
296
- };
297
-
298
-
299
- /**
300
- * Clears the field making it undefined.
301
- * @return {!proto.ide_metrics_api.AddCounterRequest} returns this
302
- */
303
- proto.ide_metrics_api.AddCounterRequest.prototype.clearValue = function() {
304
- return jspb.Message.setField(this, 3, undefined);
305
- };
306
-
307
-
308
- /**
309
- * Returns whether this field is set.
310
- * @return {boolean}
311
- */
312
- proto.ide_metrics_api.AddCounterRequest.prototype.hasValue = function() {
313
- return jspb.Message.getField(this, 3) != null;
383
+ return jspb.Message.setProto3IntField(this, 3, value);
314
384
  };
315
385
 
316
386
 
@@ -709,4 +779,800 @@ proto.ide_metrics_api.ObserveHistogramResponse.serializeBinaryToWriter = functio
709
779
  };
710
780
 
711
781
 
782
+
783
+ /**
784
+ * List of repeated fields within this message type.
785
+ * @private {!Array<number>}
786
+ * @const
787
+ */
788
+ proto.ide_metrics_api.AddHistogramRequest.repeatedFields_ = [5];
789
+
790
+
791
+
792
+ if (jspb.Message.GENERATE_TO_OBJECT) {
793
+ /**
794
+ * Creates an object representation of this proto.
795
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
796
+ * Optional fields that are not set will be set to undefined.
797
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
798
+ * For the list of reserved names please see:
799
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
800
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
801
+ * JSPB instance for transitional soy proto support:
802
+ * http://goto/soy-param-migration
803
+ * @return {!Object}
804
+ */
805
+ proto.ide_metrics_api.AddHistogramRequest.prototype.toObject = function(opt_includeInstance) {
806
+ return proto.ide_metrics_api.AddHistogramRequest.toObject(opt_includeInstance, this);
807
+ };
808
+
809
+
810
+ /**
811
+ * Static version of the {@see toObject} method.
812
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
813
+ * the JSPB instance for transitional soy proto support:
814
+ * http://goto/soy-param-migration
815
+ * @param {!proto.ide_metrics_api.AddHistogramRequest} msg The msg instance to transform.
816
+ * @return {!Object}
817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
818
+ */
819
+ proto.ide_metrics_api.AddHistogramRequest.toObject = function(includeInstance, msg) {
820
+ var f, obj = {
821
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
822
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [],
823
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0),
824
+ sum: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
825
+ bucketsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
826
+ };
827
+
828
+ if (includeInstance) {
829
+ obj.$jspbMessageInstance = msg;
830
+ }
831
+ return obj;
832
+ };
833
+ }
834
+
835
+
836
+ /**
837
+ * Deserializes binary data (in protobuf wire format).
838
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
839
+ * @return {!proto.ide_metrics_api.AddHistogramRequest}
840
+ */
841
+ proto.ide_metrics_api.AddHistogramRequest.deserializeBinary = function(bytes) {
842
+ var reader = new jspb.BinaryReader(bytes);
843
+ var msg = new proto.ide_metrics_api.AddHistogramRequest;
844
+ return proto.ide_metrics_api.AddHistogramRequest.deserializeBinaryFromReader(msg, reader);
845
+ };
846
+
847
+
848
+ /**
849
+ * Deserializes binary data (in protobuf wire format) from the
850
+ * given reader into the given message object.
851
+ * @param {!proto.ide_metrics_api.AddHistogramRequest} msg The message object to deserialize into.
852
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
853
+ * @return {!proto.ide_metrics_api.AddHistogramRequest}
854
+ */
855
+ proto.ide_metrics_api.AddHistogramRequest.deserializeBinaryFromReader = function(msg, reader) {
856
+ while (reader.nextField()) {
857
+ if (reader.isEndGroup()) {
858
+ break;
859
+ }
860
+ var field = reader.getFieldNumber();
861
+ switch (field) {
862
+ case 1:
863
+ var value = /** @type {string} */ (reader.readString());
864
+ msg.setName(value);
865
+ break;
866
+ case 2:
867
+ var value = msg.getLabelsMap();
868
+ reader.readMessage(value, function(message, reader) {
869
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
870
+ });
871
+ break;
872
+ case 3:
873
+ var value = /** @type {number} */ (reader.readUint64());
874
+ msg.setCount(value);
875
+ break;
876
+ case 4:
877
+ var value = /** @type {number} */ (reader.readDouble());
878
+ msg.setSum(value);
879
+ break;
880
+ case 5:
881
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
882
+ for (var i = 0; i < values.length; i++) {
883
+ msg.addBuckets(values[i]);
884
+ }
885
+ break;
886
+ default:
887
+ reader.skipField();
888
+ break;
889
+ }
890
+ }
891
+ return msg;
892
+ };
893
+
894
+
895
+ /**
896
+ * Serializes the message to binary data (in protobuf wire format).
897
+ * @return {!Uint8Array}
898
+ */
899
+ proto.ide_metrics_api.AddHistogramRequest.prototype.serializeBinary = function() {
900
+ var writer = new jspb.BinaryWriter();
901
+ proto.ide_metrics_api.AddHistogramRequest.serializeBinaryToWriter(this, writer);
902
+ return writer.getResultBuffer();
903
+ };
904
+
905
+
906
+ /**
907
+ * Serializes the given message to binary data (in protobuf wire
908
+ * format), writing to the given BinaryWriter.
909
+ * @param {!proto.ide_metrics_api.AddHistogramRequest} message
910
+ * @param {!jspb.BinaryWriter} writer
911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
912
+ */
913
+ proto.ide_metrics_api.AddHistogramRequest.serializeBinaryToWriter = function(message, writer) {
914
+ var f = undefined;
915
+ f = message.getName();
916
+ if (f.length > 0) {
917
+ writer.writeString(
918
+ 1,
919
+ f
920
+ );
921
+ }
922
+ f = message.getLabelsMap(true);
923
+ if (f && f.getLength() > 0) {
924
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
925
+ }
926
+ f = message.getCount();
927
+ if (f !== 0) {
928
+ writer.writeUint64(
929
+ 3,
930
+ f
931
+ );
932
+ }
933
+ f = message.getSum();
934
+ if (f !== 0.0) {
935
+ writer.writeDouble(
936
+ 4,
937
+ f
938
+ );
939
+ }
940
+ f = message.getBucketsList();
941
+ if (f.length > 0) {
942
+ writer.writePackedUint64(
943
+ 5,
944
+ f
945
+ );
946
+ }
947
+ };
948
+
949
+
950
+ /**
951
+ * optional string name = 1;
952
+ * @return {string}
953
+ */
954
+ proto.ide_metrics_api.AddHistogramRequest.prototype.getName = function() {
955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
956
+ };
957
+
958
+
959
+ /**
960
+ * @param {string} value
961
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
962
+ */
963
+ proto.ide_metrics_api.AddHistogramRequest.prototype.setName = function(value) {
964
+ return jspb.Message.setProto3StringField(this, 1, value);
965
+ };
966
+
967
+
968
+ /**
969
+ * map<string, string> labels = 2;
970
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
971
+ * empty, instead returning `undefined`
972
+ * @return {!jspb.Map<string,string>}
973
+ */
974
+ proto.ide_metrics_api.AddHistogramRequest.prototype.getLabelsMap = function(opt_noLazyCreate) {
975
+ return /** @type {!jspb.Map<string,string>} */ (
976
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
977
+ null));
978
+ };
979
+
980
+
981
+ /**
982
+ * Clears values from the map. The map will be non-null.
983
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
984
+ */
985
+ proto.ide_metrics_api.AddHistogramRequest.prototype.clearLabelsMap = function() {
986
+ this.getLabelsMap().clear();
987
+ return this;};
988
+
989
+
990
+ /**
991
+ * optional uint64 count = 3;
992
+ * @return {number}
993
+ */
994
+ proto.ide_metrics_api.AddHistogramRequest.prototype.getCount = function() {
995
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
996
+ };
997
+
998
+
999
+ /**
1000
+ * @param {number} value
1001
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
1002
+ */
1003
+ proto.ide_metrics_api.AddHistogramRequest.prototype.setCount = function(value) {
1004
+ return jspb.Message.setProto3IntField(this, 3, value);
1005
+ };
1006
+
1007
+
1008
+ /**
1009
+ * optional double sum = 4;
1010
+ * @return {number}
1011
+ */
1012
+ proto.ide_metrics_api.AddHistogramRequest.prototype.getSum = function() {
1013
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * @param {number} value
1019
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
1020
+ */
1021
+ proto.ide_metrics_api.AddHistogramRequest.prototype.setSum = function(value) {
1022
+ return jspb.Message.setProto3FloatField(this, 4, value);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * repeated uint64 buckets = 5;
1028
+ * @return {!Array<number>}
1029
+ */
1030
+ proto.ide_metrics_api.AddHistogramRequest.prototype.getBucketsList = function() {
1031
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * @param {!Array<number>} value
1037
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
1038
+ */
1039
+ proto.ide_metrics_api.AddHistogramRequest.prototype.setBucketsList = function(value) {
1040
+ return jspb.Message.setField(this, 5, value || []);
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * @param {number} value
1046
+ * @param {number=} opt_index
1047
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
1048
+ */
1049
+ proto.ide_metrics_api.AddHistogramRequest.prototype.addBuckets = function(value, opt_index) {
1050
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * Clears the list making it empty but non-null.
1056
+ * @return {!proto.ide_metrics_api.AddHistogramRequest} returns this
1057
+ */
1058
+ proto.ide_metrics_api.AddHistogramRequest.prototype.clearBucketsList = function() {
1059
+ return this.setBucketsList([]);
1060
+ };
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1067
+ /**
1068
+ * Creates an object representation of this proto.
1069
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1070
+ * Optional fields that are not set will be set to undefined.
1071
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1072
+ * For the list of reserved names please see:
1073
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1074
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1075
+ * JSPB instance for transitional soy proto support:
1076
+ * http://goto/soy-param-migration
1077
+ * @return {!Object}
1078
+ */
1079
+ proto.ide_metrics_api.AddHistogramResponse.prototype.toObject = function(opt_includeInstance) {
1080
+ return proto.ide_metrics_api.AddHistogramResponse.toObject(opt_includeInstance, this);
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Static version of the {@see toObject} method.
1086
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1087
+ * the JSPB instance for transitional soy proto support:
1088
+ * http://goto/soy-param-migration
1089
+ * @param {!proto.ide_metrics_api.AddHistogramResponse} msg The msg instance to transform.
1090
+ * @return {!Object}
1091
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1092
+ */
1093
+ proto.ide_metrics_api.AddHistogramResponse.toObject = function(includeInstance, msg) {
1094
+ var f, obj = {
1095
+
1096
+ };
1097
+
1098
+ if (includeInstance) {
1099
+ obj.$jspbMessageInstance = msg;
1100
+ }
1101
+ return obj;
1102
+ };
1103
+ }
1104
+
1105
+
1106
+ /**
1107
+ * Deserializes binary data (in protobuf wire format).
1108
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1109
+ * @return {!proto.ide_metrics_api.AddHistogramResponse}
1110
+ */
1111
+ proto.ide_metrics_api.AddHistogramResponse.deserializeBinary = function(bytes) {
1112
+ var reader = new jspb.BinaryReader(bytes);
1113
+ var msg = new proto.ide_metrics_api.AddHistogramResponse;
1114
+ return proto.ide_metrics_api.AddHistogramResponse.deserializeBinaryFromReader(msg, reader);
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * Deserializes binary data (in protobuf wire format) from the
1120
+ * given reader into the given message object.
1121
+ * @param {!proto.ide_metrics_api.AddHistogramResponse} msg The message object to deserialize into.
1122
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1123
+ * @return {!proto.ide_metrics_api.AddHistogramResponse}
1124
+ */
1125
+ proto.ide_metrics_api.AddHistogramResponse.deserializeBinaryFromReader = function(msg, reader) {
1126
+ while (reader.nextField()) {
1127
+ if (reader.isEndGroup()) {
1128
+ break;
1129
+ }
1130
+ var field = reader.getFieldNumber();
1131
+ switch (field) {
1132
+ default:
1133
+ reader.skipField();
1134
+ break;
1135
+ }
1136
+ }
1137
+ return msg;
1138
+ };
1139
+
1140
+
1141
+ /**
1142
+ * Serializes the message to binary data (in protobuf wire format).
1143
+ * @return {!Uint8Array}
1144
+ */
1145
+ proto.ide_metrics_api.AddHistogramResponse.prototype.serializeBinary = function() {
1146
+ var writer = new jspb.BinaryWriter();
1147
+ proto.ide_metrics_api.AddHistogramResponse.serializeBinaryToWriter(this, writer);
1148
+ return writer.getResultBuffer();
1149
+ };
1150
+
1151
+
1152
+ /**
1153
+ * Serializes the given message to binary data (in protobuf wire
1154
+ * format), writing to the given BinaryWriter.
1155
+ * @param {!proto.ide_metrics_api.AddHistogramResponse} message
1156
+ * @param {!jspb.BinaryWriter} writer
1157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1158
+ */
1159
+ proto.ide_metrics_api.AddHistogramResponse.serializeBinaryToWriter = function(message, writer) {
1160
+ var f = undefined;
1161
+ };
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1168
+ /**
1169
+ * Creates an object representation of this proto.
1170
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1171
+ * Optional fields that are not set will be set to undefined.
1172
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1173
+ * For the list of reserved names please see:
1174
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1175
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1176
+ * JSPB instance for transitional soy proto support:
1177
+ * http://goto/soy-param-migration
1178
+ * @return {!Object}
1179
+ */
1180
+ proto.ide_metrics_api.ReportErrorRequest.prototype.toObject = function(opt_includeInstance) {
1181
+ return proto.ide_metrics_api.ReportErrorRequest.toObject(opt_includeInstance, this);
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * Static version of the {@see toObject} method.
1187
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1188
+ * the JSPB instance for transitional soy proto support:
1189
+ * http://goto/soy-param-migration
1190
+ * @param {!proto.ide_metrics_api.ReportErrorRequest} msg The msg instance to transform.
1191
+ * @return {!Object}
1192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1193
+ */
1194
+ proto.ide_metrics_api.ReportErrorRequest.toObject = function(includeInstance, msg) {
1195
+ var f, obj = {
1196
+ errorStack: jspb.Message.getFieldWithDefault(msg, 1, ""),
1197
+ component: jspb.Message.getFieldWithDefault(msg, 2, ""),
1198
+ version: jspb.Message.getFieldWithDefault(msg, 3, ""),
1199
+ userId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1200
+ workspaceId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1201
+ instanceId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1202
+ propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : []
1203
+ };
1204
+
1205
+ if (includeInstance) {
1206
+ obj.$jspbMessageInstance = msg;
1207
+ }
1208
+ return obj;
1209
+ };
1210
+ }
1211
+
1212
+
1213
+ /**
1214
+ * Deserializes binary data (in protobuf wire format).
1215
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1216
+ * @return {!proto.ide_metrics_api.ReportErrorRequest}
1217
+ */
1218
+ proto.ide_metrics_api.ReportErrorRequest.deserializeBinary = function(bytes) {
1219
+ var reader = new jspb.BinaryReader(bytes);
1220
+ var msg = new proto.ide_metrics_api.ReportErrorRequest;
1221
+ return proto.ide_metrics_api.ReportErrorRequest.deserializeBinaryFromReader(msg, reader);
1222
+ };
1223
+
1224
+
1225
+ /**
1226
+ * Deserializes binary data (in protobuf wire format) from the
1227
+ * given reader into the given message object.
1228
+ * @param {!proto.ide_metrics_api.ReportErrorRequest} msg The message object to deserialize into.
1229
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1230
+ * @return {!proto.ide_metrics_api.ReportErrorRequest}
1231
+ */
1232
+ proto.ide_metrics_api.ReportErrorRequest.deserializeBinaryFromReader = function(msg, reader) {
1233
+ while (reader.nextField()) {
1234
+ if (reader.isEndGroup()) {
1235
+ break;
1236
+ }
1237
+ var field = reader.getFieldNumber();
1238
+ switch (field) {
1239
+ case 1:
1240
+ var value = /** @type {string} */ (reader.readString());
1241
+ msg.setErrorStack(value);
1242
+ break;
1243
+ case 2:
1244
+ var value = /** @type {string} */ (reader.readString());
1245
+ msg.setComponent(value);
1246
+ break;
1247
+ case 3:
1248
+ var value = /** @type {string} */ (reader.readString());
1249
+ msg.setVersion(value);
1250
+ break;
1251
+ case 4:
1252
+ var value = /** @type {string} */ (reader.readString());
1253
+ msg.setUserId(value);
1254
+ break;
1255
+ case 5:
1256
+ var value = /** @type {string} */ (reader.readString());
1257
+ msg.setWorkspaceId(value);
1258
+ break;
1259
+ case 6:
1260
+ var value = /** @type {string} */ (reader.readString());
1261
+ msg.setInstanceId(value);
1262
+ break;
1263
+ case 7:
1264
+ var value = msg.getPropertiesMap();
1265
+ reader.readMessage(value, function(message, reader) {
1266
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1267
+ });
1268
+ break;
1269
+ default:
1270
+ reader.skipField();
1271
+ break;
1272
+ }
1273
+ }
1274
+ return msg;
1275
+ };
1276
+
1277
+
1278
+ /**
1279
+ * Serializes the message to binary data (in protobuf wire format).
1280
+ * @return {!Uint8Array}
1281
+ */
1282
+ proto.ide_metrics_api.ReportErrorRequest.prototype.serializeBinary = function() {
1283
+ var writer = new jspb.BinaryWriter();
1284
+ proto.ide_metrics_api.ReportErrorRequest.serializeBinaryToWriter(this, writer);
1285
+ return writer.getResultBuffer();
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Serializes the given message to binary data (in protobuf wire
1291
+ * format), writing to the given BinaryWriter.
1292
+ * @param {!proto.ide_metrics_api.ReportErrorRequest} message
1293
+ * @param {!jspb.BinaryWriter} writer
1294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1295
+ */
1296
+ proto.ide_metrics_api.ReportErrorRequest.serializeBinaryToWriter = function(message, writer) {
1297
+ var f = undefined;
1298
+ f = message.getErrorStack();
1299
+ if (f.length > 0) {
1300
+ writer.writeString(
1301
+ 1,
1302
+ f
1303
+ );
1304
+ }
1305
+ f = message.getComponent();
1306
+ if (f.length > 0) {
1307
+ writer.writeString(
1308
+ 2,
1309
+ f
1310
+ );
1311
+ }
1312
+ f = message.getVersion();
1313
+ if (f.length > 0) {
1314
+ writer.writeString(
1315
+ 3,
1316
+ f
1317
+ );
1318
+ }
1319
+ f = message.getUserId();
1320
+ if (f.length > 0) {
1321
+ writer.writeString(
1322
+ 4,
1323
+ f
1324
+ );
1325
+ }
1326
+ f = message.getWorkspaceId();
1327
+ if (f.length > 0) {
1328
+ writer.writeString(
1329
+ 5,
1330
+ f
1331
+ );
1332
+ }
1333
+ f = message.getInstanceId();
1334
+ if (f.length > 0) {
1335
+ writer.writeString(
1336
+ 6,
1337
+ f
1338
+ );
1339
+ }
1340
+ f = message.getPropertiesMap(true);
1341
+ if (f && f.getLength() > 0) {
1342
+ f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1343
+ }
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * optional string error_stack = 1;
1349
+ * @return {string}
1350
+ */
1351
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getErrorStack = function() {
1352
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * @param {string} value
1358
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1359
+ */
1360
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setErrorStack = function(value) {
1361
+ return jspb.Message.setProto3StringField(this, 1, value);
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * optional string component = 2;
1367
+ * @return {string}
1368
+ */
1369
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getComponent = function() {
1370
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * @param {string} value
1376
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1377
+ */
1378
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setComponent = function(value) {
1379
+ return jspb.Message.setProto3StringField(this, 2, value);
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * optional string version = 3;
1385
+ * @return {string}
1386
+ */
1387
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getVersion = function() {
1388
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * @param {string} value
1394
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1395
+ */
1396
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setVersion = function(value) {
1397
+ return jspb.Message.setProto3StringField(this, 3, value);
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * optional string user_id = 4;
1403
+ * @return {string}
1404
+ */
1405
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getUserId = function() {
1406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1407
+ };
1408
+
1409
+
1410
+ /**
1411
+ * @param {string} value
1412
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1413
+ */
1414
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setUserId = function(value) {
1415
+ return jspb.Message.setProto3StringField(this, 4, value);
1416
+ };
1417
+
1418
+
1419
+ /**
1420
+ * optional string workspace_id = 5;
1421
+ * @return {string}
1422
+ */
1423
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getWorkspaceId = function() {
1424
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1425
+ };
1426
+
1427
+
1428
+ /**
1429
+ * @param {string} value
1430
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1431
+ */
1432
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setWorkspaceId = function(value) {
1433
+ return jspb.Message.setProto3StringField(this, 5, value);
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * optional string instance_id = 6;
1439
+ * @return {string}
1440
+ */
1441
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getInstanceId = function() {
1442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * @param {string} value
1448
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1449
+ */
1450
+ proto.ide_metrics_api.ReportErrorRequest.prototype.setInstanceId = function(value) {
1451
+ return jspb.Message.setProto3StringField(this, 6, value);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * map<string, string> properties = 7;
1457
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1458
+ * empty, instead returning `undefined`
1459
+ * @return {!jspb.Map<string,string>}
1460
+ */
1461
+ proto.ide_metrics_api.ReportErrorRequest.prototype.getPropertiesMap = function(opt_noLazyCreate) {
1462
+ return /** @type {!jspb.Map<string,string>} */ (
1463
+ jspb.Message.getMapField(this, 7, opt_noLazyCreate,
1464
+ null));
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * Clears values from the map. The map will be non-null.
1470
+ * @return {!proto.ide_metrics_api.ReportErrorRequest} returns this
1471
+ */
1472
+ proto.ide_metrics_api.ReportErrorRequest.prototype.clearPropertiesMap = function() {
1473
+ this.getPropertiesMap().clear();
1474
+ return this;};
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1481
+ /**
1482
+ * Creates an object representation of this proto.
1483
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1484
+ * Optional fields that are not set will be set to undefined.
1485
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1486
+ * For the list of reserved names please see:
1487
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1488
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1489
+ * JSPB instance for transitional soy proto support:
1490
+ * http://goto/soy-param-migration
1491
+ * @return {!Object}
1492
+ */
1493
+ proto.ide_metrics_api.ReportErrorResponse.prototype.toObject = function(opt_includeInstance) {
1494
+ return proto.ide_metrics_api.ReportErrorResponse.toObject(opt_includeInstance, this);
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * Static version of the {@see toObject} method.
1500
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1501
+ * the JSPB instance for transitional soy proto support:
1502
+ * http://goto/soy-param-migration
1503
+ * @param {!proto.ide_metrics_api.ReportErrorResponse} msg The msg instance to transform.
1504
+ * @return {!Object}
1505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1506
+ */
1507
+ proto.ide_metrics_api.ReportErrorResponse.toObject = function(includeInstance, msg) {
1508
+ var f, obj = {
1509
+
1510
+ };
1511
+
1512
+ if (includeInstance) {
1513
+ obj.$jspbMessageInstance = msg;
1514
+ }
1515
+ return obj;
1516
+ };
1517
+ }
1518
+
1519
+
1520
+ /**
1521
+ * Deserializes binary data (in protobuf wire format).
1522
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1523
+ * @return {!proto.ide_metrics_api.ReportErrorResponse}
1524
+ */
1525
+ proto.ide_metrics_api.ReportErrorResponse.deserializeBinary = function(bytes) {
1526
+ var reader = new jspb.BinaryReader(bytes);
1527
+ var msg = new proto.ide_metrics_api.ReportErrorResponse;
1528
+ return proto.ide_metrics_api.ReportErrorResponse.deserializeBinaryFromReader(msg, reader);
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * Deserializes binary data (in protobuf wire format) from the
1534
+ * given reader into the given message object.
1535
+ * @param {!proto.ide_metrics_api.ReportErrorResponse} msg The message object to deserialize into.
1536
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1537
+ * @return {!proto.ide_metrics_api.ReportErrorResponse}
1538
+ */
1539
+ proto.ide_metrics_api.ReportErrorResponse.deserializeBinaryFromReader = function(msg, reader) {
1540
+ while (reader.nextField()) {
1541
+ if (reader.isEndGroup()) {
1542
+ break;
1543
+ }
1544
+ var field = reader.getFieldNumber();
1545
+ switch (field) {
1546
+ default:
1547
+ reader.skipField();
1548
+ break;
1549
+ }
1550
+ }
1551
+ return msg;
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * Serializes the message to binary data (in protobuf wire format).
1557
+ * @return {!Uint8Array}
1558
+ */
1559
+ proto.ide_metrics_api.ReportErrorResponse.prototype.serializeBinary = function() {
1560
+ var writer = new jspb.BinaryWriter();
1561
+ proto.ide_metrics_api.ReportErrorResponse.serializeBinaryToWriter(this, writer);
1562
+ return writer.getResultBuffer();
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Serializes the given message to binary data (in protobuf wire
1568
+ * format), writing to the given BinaryWriter.
1569
+ * @param {!proto.ide_metrics_api.ReportErrorResponse} message
1570
+ * @param {!jspb.BinaryWriter} writer
1571
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1572
+ */
1573
+ proto.ide_metrics_api.ReportErrorResponse.serializeBinaryToWriter = function(message, writer) {
1574
+ var f = undefined;
1575
+ };
1576
+
1577
+
712
1578
  goog.object.extend(exports, proto.ide_metrics_api);