You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

391 lines
14 KiB

  1. /**
  2. * @fileoverview
  3. * @enhanceable
  4. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  5. * field starts with 'MSG_' and isn't a translatable message.
  6. * @public
  7. */
  8. // GENERATED CODE -- DO NOT EDIT!
  9. var jspb = require('google-protobuf');
  10. var goog = jspb;
  11. var global = Function('return this')();
  12. var ResultReply_pb = require('./ResultReply_pb.js');
  13. var EmptyRequest_pb = require('./EmptyRequest_pb.js');
  14. goog.exportSymbol('proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo', null, global);
  15. goog.exportSymbol('proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply', null, global);
  16. /**
  17. * Generated by JsPbCodeGenerator.
  18. * @param {Array=} opt_data Optional initial data array, typically from a
  19. * server response, or constructed directly in Javascript. The array is used
  20. * in place and becomes part of the constructed object. It is not cloned.
  21. * If no data is provided, the constructed object will be empty, but still
  22. * valid.
  23. * @extends {jspb.Message}
  24. * @constructor
  25. */
  26. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply = function(opt_data) {
  27. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  28. };
  29. goog.inherits(proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply, jspb.Message);
  30. if (goog.DEBUG && !COMPILED) {
  31. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.displayName = 'proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply';
  32. }
  33. if (jspb.Message.GENERATE_TO_OBJECT) {
  34. /**
  35. * Creates an object representation of this proto suitable for use in Soy templates.
  36. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  37. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  38. * For the list of reserved names please see:
  39. * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
  40. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
  41. * for transitional soy proto support: http://goto/soy-param-migration
  42. * @return {!Object}
  43. */
  44. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.toObject = function(opt_includeInstance) {
  45. return proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.toObject(opt_includeInstance, this);
  46. };
  47. /**
  48. * Static version of the {@see toObject} method.
  49. * @param {boolean|undefined} includeInstance Whether to include the JSPB
  50. * instance for transitional soy proto support:
  51. * http://goto/soy-param-migration
  52. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply} msg The msg instance to transform.
  53. * @return {!Object}
  54. * @suppress {unusedLocalVariables} f is only used for nested messages
  55. */
  56. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.toObject = function(includeInstance, msg) {
  57. var f, obj = {
  58. atomiccounterinfo: (f = msg.getAtomiccounterinfo()) && proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.toObject(includeInstance, f),
  59. resultreply: (f = msg.getResultreply()) && ResultReply_pb.ResultReply.toObject(includeInstance, f)
  60. };
  61. if (includeInstance) {
  62. obj.$jspbMessageInstance = msg;
  63. }
  64. return obj;
  65. };
  66. }
  67. /**
  68. * Deserializes binary data (in protobuf wire format).
  69. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  70. * @return {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply}
  71. */
  72. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.deserializeBinary = function(bytes) {
  73. var reader = new jspb.BinaryReader(bytes);
  74. var msg = new proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply;
  75. return proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.deserializeBinaryFromReader(msg, reader);
  76. };
  77. /**
  78. * Deserializes binary data (in protobuf wire format) from the
  79. * given reader into the given message object.
  80. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply} msg The message object to deserialize into.
  81. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  82. * @return {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply}
  83. */
  84. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.deserializeBinaryFromReader = function(msg, reader) {
  85. while (reader.nextField()) {
  86. if (reader.isEndGroup()) {
  87. break;
  88. }
  89. var field = reader.getFieldNumber();
  90. switch (field) {
  91. case 1:
  92. var value = new proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo;
  93. reader.readMessage(value,proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.deserializeBinaryFromReader);
  94. msg.setAtomiccounterinfo(value);
  95. break;
  96. case 2:
  97. var value = new ResultReply_pb.ResultReply;
  98. reader.readMessage(value,ResultReply_pb.ResultReply.deserializeBinaryFromReader);
  99. msg.setResultreply(value);
  100. break;
  101. default:
  102. reader.skipField();
  103. break;
  104. }
  105. }
  106. return msg;
  107. };
  108. /**
  109. * Serializes the message to binary data (in protobuf wire format).
  110. * @return {!Uint8Array}
  111. */
  112. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.serializeBinary = function() {
  113. var writer = new jspb.BinaryWriter();
  114. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.serializeBinaryToWriter(this, writer);
  115. return writer.getResultBuffer();
  116. };
  117. /**
  118. * Serializes the given message to binary data (in protobuf wire
  119. * format), writing to the given BinaryWriter.
  120. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply} message
  121. * @param {!jspb.BinaryWriter} writer
  122. * @suppress {unusedLocalVariables} f is only used for nested messages
  123. */
  124. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.serializeBinaryToWriter = function(message, writer) {
  125. var f = undefined;
  126. f = message.getAtomiccounterinfo();
  127. if (f != null) {
  128. writer.writeMessage(
  129. 1,
  130. f,
  131. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.serializeBinaryToWriter
  132. );
  133. }
  134. f = message.getResultreply();
  135. if (f != null) {
  136. writer.writeMessage(
  137. 2,
  138. f,
  139. ResultReply_pb.ResultReply.serializeBinaryToWriter
  140. );
  141. }
  142. };
  143. /**
  144. * optional AtomicCounterInfo AtomicCounterInfo = 1;
  145. * @return {?proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo}
  146. */
  147. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.getAtomiccounterinfo = function() {
  148. return /** @type{?proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo} */ (
  149. jspb.Message.getWrapperField(this, proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo, 1));
  150. };
  151. /** @param {?proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo|undefined} value */
  152. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.setAtomiccounterinfo = function(value) {
  153. jspb.Message.setWrapperField(this, 1, value);
  154. };
  155. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.clearAtomiccounterinfo = function() {
  156. this.setAtomiccounterinfo(undefined);
  157. };
  158. /**
  159. * Returns whether this field is set.
  160. * @return {!boolean}
  161. */
  162. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.hasAtomiccounterinfo = function() {
  163. return jspb.Message.getField(this, 1) != null;
  164. };
  165. /**
  166. * optional JT808.GrpcDashbord.ServiceGrpcBase.ResultReply ResultReply = 2;
  167. * @return {?proto.JT808.GrpcDashbord.ServiceGrpcBase.ResultReply}
  168. */
  169. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.getResultreply = function() {
  170. return /** @type{?proto.JT808.GrpcDashbord.ServiceGrpcBase.ResultReply} */ (
  171. jspb.Message.getWrapperField(this, ResultReply_pb.ResultReply, 2));
  172. };
  173. /** @param {?proto.JT808.GrpcDashbord.ServiceGrpcBase.ResultReply|undefined} value */
  174. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.setResultreply = function(value) {
  175. jspb.Message.setWrapperField(this, 2, value);
  176. };
  177. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.clearResultreply = function() {
  178. this.setResultreply(undefined);
  179. };
  180. /**
  181. * Returns whether this field is set.
  182. * @return {!boolean}
  183. */
  184. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterReply.prototype.hasResultreply = function() {
  185. return jspb.Message.getField(this, 2) != null;
  186. };
  187. /**
  188. * Generated by JsPbCodeGenerator.
  189. * @param {Array=} opt_data Optional initial data array, typically from a
  190. * server response, or constructed directly in Javascript. The array is used
  191. * in place and becomes part of the constructed object. It is not cloned.
  192. * If no data is provided, the constructed object will be empty, but still
  193. * valid.
  194. * @extends {jspb.Message}
  195. * @constructor
  196. */
  197. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo = function(opt_data) {
  198. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  199. };
  200. goog.inherits(proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo, jspb.Message);
  201. if (goog.DEBUG && !COMPILED) {
  202. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.displayName = 'proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo';
  203. }
  204. if (jspb.Message.GENERATE_TO_OBJECT) {
  205. /**
  206. * Creates an object representation of this proto suitable for use in Soy templates.
  207. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  208. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  209. * For the list of reserved names please see:
  210. * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
  211. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
  212. * for transitional soy proto support: http://goto/soy-param-migration
  213. * @return {!Object}
  214. */
  215. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.toObject = function(opt_includeInstance) {
  216. return proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.toObject(opt_includeInstance, this);
  217. };
  218. /**
  219. * Static version of the {@see toObject} method.
  220. * @param {boolean|undefined} includeInstance Whether to include the JSPB
  221. * instance for transitional soy proto support:
  222. * http://goto/soy-param-migration
  223. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo} msg The msg instance to transform.
  224. * @return {!Object}
  225. * @suppress {unusedLocalVariables} f is only used for nested messages
  226. */
  227. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.toObject = function(includeInstance, msg) {
  228. var f, obj = {
  229. msgsuccesscount: jspb.Message.getFieldWithDefault(msg, 1, 0),
  230. msgfailcount: jspb.Message.getFieldWithDefault(msg, 2, 0)
  231. };
  232. if (includeInstance) {
  233. obj.$jspbMessageInstance = msg;
  234. }
  235. return obj;
  236. };
  237. }
  238. /**
  239. * Deserializes binary data (in protobuf wire format).
  240. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  241. * @return {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo}
  242. */
  243. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.deserializeBinary = function(bytes) {
  244. var reader = new jspb.BinaryReader(bytes);
  245. var msg = new proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo;
  246. return proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.deserializeBinaryFromReader(msg, reader);
  247. };
  248. /**
  249. * Deserializes binary data (in protobuf wire format) from the
  250. * given reader into the given message object.
  251. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo} msg The message object to deserialize into.
  252. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  253. * @return {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo}
  254. */
  255. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.deserializeBinaryFromReader = function(msg, reader) {
  256. while (reader.nextField()) {
  257. if (reader.isEndGroup()) {
  258. break;
  259. }
  260. var field = reader.getFieldNumber();
  261. switch (field) {
  262. case 1:
  263. var value = /** @type {number} */ (reader.readInt32());
  264. msg.setMsgsuccesscount(value);
  265. break;
  266. case 2:
  267. var value = /** @type {number} */ (reader.readInt32());
  268. msg.setMsgfailcount(value);
  269. break;
  270. default:
  271. reader.skipField();
  272. break;
  273. }
  274. }
  275. return msg;
  276. };
  277. /**
  278. * Serializes the message to binary data (in protobuf wire format).
  279. * @return {!Uint8Array}
  280. */
  281. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.serializeBinary = function() {
  282. var writer = new jspb.BinaryWriter();
  283. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.serializeBinaryToWriter(this, writer);
  284. return writer.getResultBuffer();
  285. };
  286. /**
  287. * Serializes the given message to binary data (in protobuf wire
  288. * format), writing to the given BinaryWriter.
  289. * @param {!proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo} message
  290. * @param {!jspb.BinaryWriter} writer
  291. * @suppress {unusedLocalVariables} f is only used for nested messages
  292. */
  293. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.serializeBinaryToWriter = function(message, writer) {
  294. var f = undefined;
  295. f = message.getMsgsuccesscount();
  296. if (f !== 0) {
  297. writer.writeInt32(
  298. 1,
  299. f
  300. );
  301. }
  302. f = message.getMsgfailcount();
  303. if (f !== 0) {
  304. writer.writeInt32(
  305. 2,
  306. f
  307. );
  308. }
  309. };
  310. /**
  311. * optional int32 MsgSuccessCount = 1;
  312. * @return {number}
  313. */
  314. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.getMsgsuccesscount = function() {
  315. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  316. };
  317. /** @param {number} value */
  318. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.setMsgsuccesscount = function(value) {
  319. jspb.Message.setProto3IntField(this, 1, value);
  320. };
  321. /**
  322. * optional int32 MsgFailCount = 2;
  323. * @return {number}
  324. */
  325. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.getMsgfailcount = function() {
  326. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  327. };
  328. /** @param {number} value */
  329. proto.JT808.GrpcDashbord.AtomicCounterGrpcService.AtomicCounterInfo.prototype.setMsgfailcount = function(value) {
  330. jspb.Message.setProto3IntField(this, 2, value);
  331. };
  332. goog.object.extend(exports, proto.JT808.GrpcDashbord.AtomicCounterGrpcService);