github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/proto/dump_pb.js (about)

     1  // source: dump.proto
     2  /**
     3   * @fileoverview
     4   * @enhanceable
     5   * @suppress {missingRequire} reports error on implicit type usages.
     6   * @suppress {messageConventions} JS Compiler reports an error if a variable or
     7   *     field starts with 'MSG_' and isn't a translatable message.
     8   * @public
     9   */
    10  // GENERATED CODE -- DO NOT EDIT!
    11  /* eslint-disable */
    12  // @ts-nocheck
    13  
    14  var jspb = require('google-protobuf');
    15  var goog = jspb;
    16  var global = Function('return this')();
    17  
    18  var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js');
    19  goog.object.extend(proto, gogoproto_gogo_pb);
    20  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
    21  goog.object.extend(proto, google_protobuf_timestamp_pb);
    22  var acm_pb = require('./acm_pb.js');
    23  goog.object.extend(proto, acm_pb);
    24  var exec_pb = require('./exec_pb.js');
    25  goog.object.extend(proto, exec_pb);
    26  var names_pb = require('./names_pb.js');
    27  goog.object.extend(proto, names_pb);
    28  goog.exportSymbol('proto.dump.AccountStorage', null, global);
    29  goog.exportSymbol('proto.dump.Dump', null, global);
    30  goog.exportSymbol('proto.dump.EVMEvent', null, global);
    31  goog.exportSymbol('proto.dump.Storage', null, global);
    32  /**
    33   * Generated by JsPbCodeGenerator.
    34   * @param {Array=} opt_data Optional initial data array, typically from a
    35   * server response, or constructed directly in Javascript. The array is used
    36   * in place and becomes part of the constructed object. It is not cloned.
    37   * If no data is provided, the constructed object will be empty, but still
    38   * valid.
    39   * @extends {jspb.Message}
    40   * @constructor
    41   */
    42  proto.dump.Storage = function(opt_data) {
    43    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    44  };
    45  goog.inherits(proto.dump.Storage, jspb.Message);
    46  if (goog.DEBUG && !COMPILED) {
    47    /**
    48     * @public
    49     * @override
    50     */
    51    proto.dump.Storage.displayName = 'proto.dump.Storage';
    52  }
    53  /**
    54   * Generated by JsPbCodeGenerator.
    55   * @param {Array=} opt_data Optional initial data array, typically from a
    56   * server response, or constructed directly in Javascript. The array is used
    57   * in place and becomes part of the constructed object. It is not cloned.
    58   * If no data is provided, the constructed object will be empty, but still
    59   * valid.
    60   * @extends {jspb.Message}
    61   * @constructor
    62   */
    63  proto.dump.AccountStorage = function(opt_data) {
    64    jspb.Message.initialize(this, opt_data, 0, -1, proto.dump.AccountStorage.repeatedFields_, null);
    65  };
    66  goog.inherits(proto.dump.AccountStorage, jspb.Message);
    67  if (goog.DEBUG && !COMPILED) {
    68    /**
    69     * @public
    70     * @override
    71     */
    72    proto.dump.AccountStorage.displayName = 'proto.dump.AccountStorage';
    73  }
    74  /**
    75   * Generated by JsPbCodeGenerator.
    76   * @param {Array=} opt_data Optional initial data array, typically from a
    77   * server response, or constructed directly in Javascript. The array is used
    78   * in place and becomes part of the constructed object. It is not cloned.
    79   * If no data is provided, the constructed object will be empty, but still
    80   * valid.
    81   * @extends {jspb.Message}
    82   * @constructor
    83   */
    84  proto.dump.EVMEvent = function(opt_data) {
    85    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    86  };
    87  goog.inherits(proto.dump.EVMEvent, jspb.Message);
    88  if (goog.DEBUG && !COMPILED) {
    89    /**
    90     * @public
    91     * @override
    92     */
    93    proto.dump.EVMEvent.displayName = 'proto.dump.EVMEvent';
    94  }
    95  /**
    96   * Generated by JsPbCodeGenerator.
    97   * @param {Array=} opt_data Optional initial data array, typically from a
    98   * server response, or constructed directly in Javascript. The array is used
    99   * in place and becomes part of the constructed object. It is not cloned.
   100   * If no data is provided, the constructed object will be empty, but still
   101   * valid.
   102   * @extends {jspb.Message}
   103   * @constructor
   104   */
   105  proto.dump.Dump = function(opt_data) {
   106    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   107  };
   108  goog.inherits(proto.dump.Dump, jspb.Message);
   109  if (goog.DEBUG && !COMPILED) {
   110    /**
   111     * @public
   112     * @override
   113     */
   114    proto.dump.Dump.displayName = 'proto.dump.Dump';
   115  }
   116  
   117  
   118  
   119  if (jspb.Message.GENERATE_TO_OBJECT) {
   120  /**
   121   * Creates an object representation of this proto.
   122   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   123   * Optional fields that are not set will be set to undefined.
   124   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   125   * For the list of reserved names please see:
   126   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   127   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   128   *     JSPB instance for transitional soy proto support:
   129   *     http://goto/soy-param-migration
   130   * @return {!Object}
   131   */
   132  proto.dump.Storage.prototype.toObject = function(opt_includeInstance) {
   133    return proto.dump.Storage.toObject(opt_includeInstance, this);
   134  };
   135  
   136  
   137  /**
   138   * Static version of the {@see toObject} method.
   139   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   140   *     the JSPB instance for transitional soy proto support:
   141   *     http://goto/soy-param-migration
   142   * @param {!proto.dump.Storage} msg The msg instance to transform.
   143   * @return {!Object}
   144   * @suppress {unusedLocalVariables} f is only used for nested messages
   145   */
   146  proto.dump.Storage.toObject = function(includeInstance, msg) {
   147    var f, obj = {
   148      key: msg.getKey_asB64(),
   149      value: msg.getValue_asB64()
   150    };
   151  
   152    if (includeInstance) {
   153      obj.$jspbMessageInstance = msg;
   154    }
   155    return obj;
   156  };
   157  }
   158  
   159  
   160  /**
   161   * Deserializes binary data (in protobuf wire format).
   162   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   163   * @return {!proto.dump.Storage}
   164   */
   165  proto.dump.Storage.deserializeBinary = function(bytes) {
   166    var reader = new jspb.BinaryReader(bytes);
   167    var msg = new proto.dump.Storage;
   168    return proto.dump.Storage.deserializeBinaryFromReader(msg, reader);
   169  };
   170  
   171  
   172  /**
   173   * Deserializes binary data (in protobuf wire format) from the
   174   * given reader into the given message object.
   175   * @param {!proto.dump.Storage} msg The message object to deserialize into.
   176   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   177   * @return {!proto.dump.Storage}
   178   */
   179  proto.dump.Storage.deserializeBinaryFromReader = function(msg, reader) {
   180    while (reader.nextField()) {
   181      if (reader.isEndGroup()) {
   182        break;
   183      }
   184      var field = reader.getFieldNumber();
   185      switch (field) {
   186      case 1:
   187        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   188        msg.setKey(value);
   189        break;
   190      case 2:
   191        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   192        msg.setValue(value);
   193        break;
   194      default:
   195        reader.skipField();
   196        break;
   197      }
   198    }
   199    return msg;
   200  };
   201  
   202  
   203  /**
   204   * Serializes the message to binary data (in protobuf wire format).
   205   * @return {!Uint8Array}
   206   */
   207  proto.dump.Storage.prototype.serializeBinary = function() {
   208    var writer = new jspb.BinaryWriter();
   209    proto.dump.Storage.serializeBinaryToWriter(this, writer);
   210    return writer.getResultBuffer();
   211  };
   212  
   213  
   214  /**
   215   * Serializes the given message to binary data (in protobuf wire
   216   * format), writing to the given BinaryWriter.
   217   * @param {!proto.dump.Storage} message
   218   * @param {!jspb.BinaryWriter} writer
   219   * @suppress {unusedLocalVariables} f is only used for nested messages
   220   */
   221  proto.dump.Storage.serializeBinaryToWriter = function(message, writer) {
   222    var f = undefined;
   223    f = message.getKey_asU8();
   224    if (f.length > 0) {
   225      writer.writeBytes(
   226        1,
   227        f
   228      );
   229    }
   230    f = message.getValue_asU8();
   231    if (f.length > 0) {
   232      writer.writeBytes(
   233        2,
   234        f
   235      );
   236    }
   237  };
   238  
   239  
   240  /**
   241   * optional bytes Key = 1;
   242   * @return {!(string|Uint8Array)}
   243   */
   244  proto.dump.Storage.prototype.getKey = function() {
   245    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   246  };
   247  
   248  
   249  /**
   250   * optional bytes Key = 1;
   251   * This is a type-conversion wrapper around `getKey()`
   252   * @return {string}
   253   */
   254  proto.dump.Storage.prototype.getKey_asB64 = function() {
   255    return /** @type {string} */ (jspb.Message.bytesAsB64(
   256        this.getKey()));
   257  };
   258  
   259  
   260  /**
   261   * optional bytes Key = 1;
   262   * Note that Uint8Array is not supported on all browsers.
   263   * @see http://caniuse.com/Uint8Array
   264   * This is a type-conversion wrapper around `getKey()`
   265   * @return {!Uint8Array}
   266   */
   267  proto.dump.Storage.prototype.getKey_asU8 = function() {
   268    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   269        this.getKey()));
   270  };
   271  
   272  
   273  /**
   274   * @param {!(string|Uint8Array)} value
   275   * @return {!proto.dump.Storage} returns this
   276   */
   277  proto.dump.Storage.prototype.setKey = function(value) {
   278    return jspb.Message.setProto3BytesField(this, 1, value);
   279  };
   280  
   281  
   282  /**
   283   * optional bytes Value = 2;
   284   * @return {!(string|Uint8Array)}
   285   */
   286  proto.dump.Storage.prototype.getValue = function() {
   287    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
   288  };
   289  
   290  
   291  /**
   292   * optional bytes Value = 2;
   293   * This is a type-conversion wrapper around `getValue()`
   294   * @return {string}
   295   */
   296  proto.dump.Storage.prototype.getValue_asB64 = function() {
   297    return /** @type {string} */ (jspb.Message.bytesAsB64(
   298        this.getValue()));
   299  };
   300  
   301  
   302  /**
   303   * optional bytes Value = 2;
   304   * Note that Uint8Array is not supported on all browsers.
   305   * @see http://caniuse.com/Uint8Array
   306   * This is a type-conversion wrapper around `getValue()`
   307   * @return {!Uint8Array}
   308   */
   309  proto.dump.Storage.prototype.getValue_asU8 = function() {
   310    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   311        this.getValue()));
   312  };
   313  
   314  
   315  /**
   316   * @param {!(string|Uint8Array)} value
   317   * @return {!proto.dump.Storage} returns this
   318   */
   319  proto.dump.Storage.prototype.setValue = function(value) {
   320    return jspb.Message.setProto3BytesField(this, 2, value);
   321  };
   322  
   323  
   324  
   325  /**
   326   * List of repeated fields within this message type.
   327   * @private {!Array<number>}
   328   * @const
   329   */
   330  proto.dump.AccountStorage.repeatedFields_ = [2];
   331  
   332  
   333  
   334  if (jspb.Message.GENERATE_TO_OBJECT) {
   335  /**
   336   * Creates an object representation of this proto.
   337   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   338   * Optional fields that are not set will be set to undefined.
   339   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   340   * For the list of reserved names please see:
   341   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   342   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   343   *     JSPB instance for transitional soy proto support:
   344   *     http://goto/soy-param-migration
   345   * @return {!Object}
   346   */
   347  proto.dump.AccountStorage.prototype.toObject = function(opt_includeInstance) {
   348    return proto.dump.AccountStorage.toObject(opt_includeInstance, this);
   349  };
   350  
   351  
   352  /**
   353   * Static version of the {@see toObject} method.
   354   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   355   *     the JSPB instance for transitional soy proto support:
   356   *     http://goto/soy-param-migration
   357   * @param {!proto.dump.AccountStorage} msg The msg instance to transform.
   358   * @return {!Object}
   359   * @suppress {unusedLocalVariables} f is only used for nested messages
   360   */
   361  proto.dump.AccountStorage.toObject = function(includeInstance, msg) {
   362    var f, obj = {
   363      address: msg.getAddress_asB64(),
   364      storageList: jspb.Message.toObjectList(msg.getStorageList(),
   365      proto.dump.Storage.toObject, includeInstance)
   366    };
   367  
   368    if (includeInstance) {
   369      obj.$jspbMessageInstance = msg;
   370    }
   371    return obj;
   372  };
   373  }
   374  
   375  
   376  /**
   377   * Deserializes binary data (in protobuf wire format).
   378   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   379   * @return {!proto.dump.AccountStorage}
   380   */
   381  proto.dump.AccountStorage.deserializeBinary = function(bytes) {
   382    var reader = new jspb.BinaryReader(bytes);
   383    var msg = new proto.dump.AccountStorage;
   384    return proto.dump.AccountStorage.deserializeBinaryFromReader(msg, reader);
   385  };
   386  
   387  
   388  /**
   389   * Deserializes binary data (in protobuf wire format) from the
   390   * given reader into the given message object.
   391   * @param {!proto.dump.AccountStorage} msg The message object to deserialize into.
   392   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   393   * @return {!proto.dump.AccountStorage}
   394   */
   395  proto.dump.AccountStorage.deserializeBinaryFromReader = function(msg, reader) {
   396    while (reader.nextField()) {
   397      if (reader.isEndGroup()) {
   398        break;
   399      }
   400      var field = reader.getFieldNumber();
   401      switch (field) {
   402      case 1:
   403        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   404        msg.setAddress(value);
   405        break;
   406      case 2:
   407        var value = new proto.dump.Storage;
   408        reader.readMessage(value,proto.dump.Storage.deserializeBinaryFromReader);
   409        msg.addStorage(value);
   410        break;
   411      default:
   412        reader.skipField();
   413        break;
   414      }
   415    }
   416    return msg;
   417  };
   418  
   419  
   420  /**
   421   * Serializes the message to binary data (in protobuf wire format).
   422   * @return {!Uint8Array}
   423   */
   424  proto.dump.AccountStorage.prototype.serializeBinary = function() {
   425    var writer = new jspb.BinaryWriter();
   426    proto.dump.AccountStorage.serializeBinaryToWriter(this, writer);
   427    return writer.getResultBuffer();
   428  };
   429  
   430  
   431  /**
   432   * Serializes the given message to binary data (in protobuf wire
   433   * format), writing to the given BinaryWriter.
   434   * @param {!proto.dump.AccountStorage} message
   435   * @param {!jspb.BinaryWriter} writer
   436   * @suppress {unusedLocalVariables} f is only used for nested messages
   437   */
   438  proto.dump.AccountStorage.serializeBinaryToWriter = function(message, writer) {
   439    var f = undefined;
   440    f = message.getAddress_asU8();
   441    if (f.length > 0) {
   442      writer.writeBytes(
   443        1,
   444        f
   445      );
   446    }
   447    f = message.getStorageList();
   448    if (f.length > 0) {
   449      writer.writeRepeatedMessage(
   450        2,
   451        f,
   452        proto.dump.Storage.serializeBinaryToWriter
   453      );
   454    }
   455  };
   456  
   457  
   458  /**
   459   * optional bytes Address = 1;
   460   * @return {!(string|Uint8Array)}
   461   */
   462  proto.dump.AccountStorage.prototype.getAddress = function() {
   463    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   464  };
   465  
   466  
   467  /**
   468   * optional bytes Address = 1;
   469   * This is a type-conversion wrapper around `getAddress()`
   470   * @return {string}
   471   */
   472  proto.dump.AccountStorage.prototype.getAddress_asB64 = function() {
   473    return /** @type {string} */ (jspb.Message.bytesAsB64(
   474        this.getAddress()));
   475  };
   476  
   477  
   478  /**
   479   * optional bytes Address = 1;
   480   * Note that Uint8Array is not supported on all browsers.
   481   * @see http://caniuse.com/Uint8Array
   482   * This is a type-conversion wrapper around `getAddress()`
   483   * @return {!Uint8Array}
   484   */
   485  proto.dump.AccountStorage.prototype.getAddress_asU8 = function() {
   486    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   487        this.getAddress()));
   488  };
   489  
   490  
   491  /**
   492   * @param {!(string|Uint8Array)} value
   493   * @return {!proto.dump.AccountStorage} returns this
   494   */
   495  proto.dump.AccountStorage.prototype.setAddress = function(value) {
   496    return jspb.Message.setProto3BytesField(this, 1, value);
   497  };
   498  
   499  
   500  /**
   501   * repeated Storage Storage = 2;
   502   * @return {!Array<!proto.dump.Storage>}
   503   */
   504  proto.dump.AccountStorage.prototype.getStorageList = function() {
   505    return /** @type{!Array<!proto.dump.Storage>} */ (
   506      jspb.Message.getRepeatedWrapperField(this, proto.dump.Storage, 2));
   507  };
   508  
   509  
   510  /**
   511   * @param {!Array<!proto.dump.Storage>} value
   512   * @return {!proto.dump.AccountStorage} returns this
   513  */
   514  proto.dump.AccountStorage.prototype.setStorageList = function(value) {
   515    return jspb.Message.setRepeatedWrapperField(this, 2, value);
   516  };
   517  
   518  
   519  /**
   520   * @param {!proto.dump.Storage=} opt_value
   521   * @param {number=} opt_index
   522   * @return {!proto.dump.Storage}
   523   */
   524  proto.dump.AccountStorage.prototype.addStorage = function(opt_value, opt_index) {
   525    return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.dump.Storage, opt_index);
   526  };
   527  
   528  
   529  /**
   530   * Clears the list making it empty but non-null.
   531   * @return {!proto.dump.AccountStorage} returns this
   532   */
   533  proto.dump.AccountStorage.prototype.clearStorageList = function() {
   534    return this.setStorageList([]);
   535  };
   536  
   537  
   538  
   539  
   540  
   541  if (jspb.Message.GENERATE_TO_OBJECT) {
   542  /**
   543   * Creates an object representation of this proto.
   544   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   545   * Optional fields that are not set will be set to undefined.
   546   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   547   * For the list of reserved names please see:
   548   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   549   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   550   *     JSPB instance for transitional soy proto support:
   551   *     http://goto/soy-param-migration
   552   * @return {!Object}
   553   */
   554  proto.dump.EVMEvent.prototype.toObject = function(opt_includeInstance) {
   555    return proto.dump.EVMEvent.toObject(opt_includeInstance, this);
   556  };
   557  
   558  
   559  /**
   560   * Static version of the {@see toObject} method.
   561   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   562   *     the JSPB instance for transitional soy proto support:
   563   *     http://goto/soy-param-migration
   564   * @param {!proto.dump.EVMEvent} msg The msg instance to transform.
   565   * @return {!Object}
   566   * @suppress {unusedLocalVariables} f is only used for nested messages
   567   */
   568  proto.dump.EVMEvent.toObject = function(includeInstance, msg) {
   569    var f, obj = {
   570      chainid: jspb.Message.getFieldWithDefault(msg, 1, ""),
   571      index: jspb.Message.getFieldWithDefault(msg, 4, 0),
   572      time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
   573      event: (f = msg.getEvent()) && exec_pb.LogEvent.toObject(includeInstance, f)
   574    };
   575  
   576    if (includeInstance) {
   577      obj.$jspbMessageInstance = msg;
   578    }
   579    return obj;
   580  };
   581  }
   582  
   583  
   584  /**
   585   * Deserializes binary data (in protobuf wire format).
   586   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   587   * @return {!proto.dump.EVMEvent}
   588   */
   589  proto.dump.EVMEvent.deserializeBinary = function(bytes) {
   590    var reader = new jspb.BinaryReader(bytes);
   591    var msg = new proto.dump.EVMEvent;
   592    return proto.dump.EVMEvent.deserializeBinaryFromReader(msg, reader);
   593  };
   594  
   595  
   596  /**
   597   * Deserializes binary data (in protobuf wire format) from the
   598   * given reader into the given message object.
   599   * @param {!proto.dump.EVMEvent} msg The message object to deserialize into.
   600   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   601   * @return {!proto.dump.EVMEvent}
   602   */
   603  proto.dump.EVMEvent.deserializeBinaryFromReader = function(msg, reader) {
   604    while (reader.nextField()) {
   605      if (reader.isEndGroup()) {
   606        break;
   607      }
   608      var field = reader.getFieldNumber();
   609      switch (field) {
   610      case 1:
   611        var value = /** @type {string} */ (reader.readString());
   612        msg.setChainid(value);
   613        break;
   614      case 4:
   615        var value = /** @type {number} */ (reader.readUint64());
   616        msg.setIndex(value);
   617        break;
   618      case 2:
   619        var value = new google_protobuf_timestamp_pb.Timestamp;
   620        reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
   621        msg.setTime(value);
   622        break;
   623      case 3:
   624        var value = new exec_pb.LogEvent;
   625        reader.readMessage(value,exec_pb.LogEvent.deserializeBinaryFromReader);
   626        msg.setEvent(value);
   627        break;
   628      default:
   629        reader.skipField();
   630        break;
   631      }
   632    }
   633    return msg;
   634  };
   635  
   636  
   637  /**
   638   * Serializes the message to binary data (in protobuf wire format).
   639   * @return {!Uint8Array}
   640   */
   641  proto.dump.EVMEvent.prototype.serializeBinary = function() {
   642    var writer = new jspb.BinaryWriter();
   643    proto.dump.EVMEvent.serializeBinaryToWriter(this, writer);
   644    return writer.getResultBuffer();
   645  };
   646  
   647  
   648  /**
   649   * Serializes the given message to binary data (in protobuf wire
   650   * format), writing to the given BinaryWriter.
   651   * @param {!proto.dump.EVMEvent} message
   652   * @param {!jspb.BinaryWriter} writer
   653   * @suppress {unusedLocalVariables} f is only used for nested messages
   654   */
   655  proto.dump.EVMEvent.serializeBinaryToWriter = function(message, writer) {
   656    var f = undefined;
   657    f = message.getChainid();
   658    if (f.length > 0) {
   659      writer.writeString(
   660        1,
   661        f
   662      );
   663    }
   664    f = message.getIndex();
   665    if (f !== 0) {
   666      writer.writeUint64(
   667        4,
   668        f
   669      );
   670    }
   671    f = message.getTime();
   672    if (f != null) {
   673      writer.writeMessage(
   674        2,
   675        f,
   676        google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
   677      );
   678    }
   679    f = message.getEvent();
   680    if (f != null) {
   681      writer.writeMessage(
   682        3,
   683        f,
   684        exec_pb.LogEvent.serializeBinaryToWriter
   685      );
   686    }
   687  };
   688  
   689  
   690  /**
   691   * optional string ChainID = 1;
   692   * @return {string}
   693   */
   694  proto.dump.EVMEvent.prototype.getChainid = function() {
   695    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   696  };
   697  
   698  
   699  /**
   700   * @param {string} value
   701   * @return {!proto.dump.EVMEvent} returns this
   702   */
   703  proto.dump.EVMEvent.prototype.setChainid = function(value) {
   704    return jspb.Message.setProto3StringField(this, 1, value);
   705  };
   706  
   707  
   708  /**
   709   * optional uint64 Index = 4;
   710   * @return {number}
   711   */
   712  proto.dump.EVMEvent.prototype.getIndex = function() {
   713    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
   714  };
   715  
   716  
   717  /**
   718   * @param {number} value
   719   * @return {!proto.dump.EVMEvent} returns this
   720   */
   721  proto.dump.EVMEvent.prototype.setIndex = function(value) {
   722    return jspb.Message.setProto3IntField(this, 4, value);
   723  };
   724  
   725  
   726  /**
   727   * optional google.protobuf.Timestamp Time = 2;
   728   * @return {?proto.google.protobuf.Timestamp}
   729   */
   730  proto.dump.EVMEvent.prototype.getTime = function() {
   731    return /** @type{?proto.google.protobuf.Timestamp} */ (
   732      jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
   733  };
   734  
   735  
   736  /**
   737   * @param {?proto.google.protobuf.Timestamp|undefined} value
   738   * @return {!proto.dump.EVMEvent} returns this
   739  */
   740  proto.dump.EVMEvent.prototype.setTime = function(value) {
   741    return jspb.Message.setWrapperField(this, 2, value);
   742  };
   743  
   744  
   745  /**
   746   * Clears the message field making it undefined.
   747   * @return {!proto.dump.EVMEvent} returns this
   748   */
   749  proto.dump.EVMEvent.prototype.clearTime = function() {
   750    return this.setTime(undefined);
   751  };
   752  
   753  
   754  /**
   755   * Returns whether this field is set.
   756   * @return {boolean}
   757   */
   758  proto.dump.EVMEvent.prototype.hasTime = function() {
   759    return jspb.Message.getField(this, 2) != null;
   760  };
   761  
   762  
   763  /**
   764   * optional exec.LogEvent Event = 3;
   765   * @return {?proto.exec.LogEvent}
   766   */
   767  proto.dump.EVMEvent.prototype.getEvent = function() {
   768    return /** @type{?proto.exec.LogEvent} */ (
   769      jspb.Message.getWrapperField(this, exec_pb.LogEvent, 3));
   770  };
   771  
   772  
   773  /**
   774   * @param {?proto.exec.LogEvent|undefined} value
   775   * @return {!proto.dump.EVMEvent} returns this
   776  */
   777  proto.dump.EVMEvent.prototype.setEvent = function(value) {
   778    return jspb.Message.setWrapperField(this, 3, value);
   779  };
   780  
   781  
   782  /**
   783   * Clears the message field making it undefined.
   784   * @return {!proto.dump.EVMEvent} returns this
   785   */
   786  proto.dump.EVMEvent.prototype.clearEvent = function() {
   787    return this.setEvent(undefined);
   788  };
   789  
   790  
   791  /**
   792   * Returns whether this field is set.
   793   * @return {boolean}
   794   */
   795  proto.dump.EVMEvent.prototype.hasEvent = function() {
   796    return jspb.Message.getField(this, 3) != null;
   797  };
   798  
   799  
   800  
   801  
   802  
   803  if (jspb.Message.GENERATE_TO_OBJECT) {
   804  /**
   805   * Creates an object representation of this proto.
   806   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   807   * Optional fields that are not set will be set to undefined.
   808   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   809   * For the list of reserved names please see:
   810   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   811   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   812   *     JSPB instance for transitional soy proto support:
   813   *     http://goto/soy-param-migration
   814   * @return {!Object}
   815   */
   816  proto.dump.Dump.prototype.toObject = function(opt_includeInstance) {
   817    return proto.dump.Dump.toObject(opt_includeInstance, this);
   818  };
   819  
   820  
   821  /**
   822   * Static version of the {@see toObject} method.
   823   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   824   *     the JSPB instance for transitional soy proto support:
   825   *     http://goto/soy-param-migration
   826   * @param {!proto.dump.Dump} msg The msg instance to transform.
   827   * @return {!Object}
   828   * @suppress {unusedLocalVariables} f is only used for nested messages
   829   */
   830  proto.dump.Dump.toObject = function(includeInstance, msg) {
   831    var f, obj = {
   832      height: jspb.Message.getFieldWithDefault(msg, 1, 0),
   833      account: (f = msg.getAccount()) && acm_pb.Account.toObject(includeInstance, f),
   834      accountstorage: (f = msg.getAccountstorage()) && proto.dump.AccountStorage.toObject(includeInstance, f),
   835      evmevent: (f = msg.getEvmevent()) && proto.dump.EVMEvent.toObject(includeInstance, f),
   836      name: (f = msg.getName()) && names_pb.Entry.toObject(includeInstance, f)
   837    };
   838  
   839    if (includeInstance) {
   840      obj.$jspbMessageInstance = msg;
   841    }
   842    return obj;
   843  };
   844  }
   845  
   846  
   847  /**
   848   * Deserializes binary data (in protobuf wire format).
   849   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   850   * @return {!proto.dump.Dump}
   851   */
   852  proto.dump.Dump.deserializeBinary = function(bytes) {
   853    var reader = new jspb.BinaryReader(bytes);
   854    var msg = new proto.dump.Dump;
   855    return proto.dump.Dump.deserializeBinaryFromReader(msg, reader);
   856  };
   857  
   858  
   859  /**
   860   * Deserializes binary data (in protobuf wire format) from the
   861   * given reader into the given message object.
   862   * @param {!proto.dump.Dump} msg The message object to deserialize into.
   863   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   864   * @return {!proto.dump.Dump}
   865   */
   866  proto.dump.Dump.deserializeBinaryFromReader = function(msg, reader) {
   867    while (reader.nextField()) {
   868      if (reader.isEndGroup()) {
   869        break;
   870      }
   871      var field = reader.getFieldNumber();
   872      switch (field) {
   873      case 1:
   874        var value = /** @type {number} */ (reader.readUint64());
   875        msg.setHeight(value);
   876        break;
   877      case 2:
   878        var value = new acm_pb.Account;
   879        reader.readMessage(value,acm_pb.Account.deserializeBinaryFromReader);
   880        msg.setAccount(value);
   881        break;
   882      case 3:
   883        var value = new proto.dump.AccountStorage;
   884        reader.readMessage(value,proto.dump.AccountStorage.deserializeBinaryFromReader);
   885        msg.setAccountstorage(value);
   886        break;
   887      case 4:
   888        var value = new proto.dump.EVMEvent;
   889        reader.readMessage(value,proto.dump.EVMEvent.deserializeBinaryFromReader);
   890        msg.setEvmevent(value);
   891        break;
   892      case 5:
   893        var value = new names_pb.Entry;
   894        reader.readMessage(value,names_pb.Entry.deserializeBinaryFromReader);
   895        msg.setName(value);
   896        break;
   897      default:
   898        reader.skipField();
   899        break;
   900      }
   901    }
   902    return msg;
   903  };
   904  
   905  
   906  /**
   907   * Serializes the message to binary data (in protobuf wire format).
   908   * @return {!Uint8Array}
   909   */
   910  proto.dump.Dump.prototype.serializeBinary = function() {
   911    var writer = new jspb.BinaryWriter();
   912    proto.dump.Dump.serializeBinaryToWriter(this, writer);
   913    return writer.getResultBuffer();
   914  };
   915  
   916  
   917  /**
   918   * Serializes the given message to binary data (in protobuf wire
   919   * format), writing to the given BinaryWriter.
   920   * @param {!proto.dump.Dump} message
   921   * @param {!jspb.BinaryWriter} writer
   922   * @suppress {unusedLocalVariables} f is only used for nested messages
   923   */
   924  proto.dump.Dump.serializeBinaryToWriter = function(message, writer) {
   925    var f = undefined;
   926    f = message.getHeight();
   927    if (f !== 0) {
   928      writer.writeUint64(
   929        1,
   930        f
   931      );
   932    }
   933    f = message.getAccount();
   934    if (f != null) {
   935      writer.writeMessage(
   936        2,
   937        f,
   938        acm_pb.Account.serializeBinaryToWriter
   939      );
   940    }
   941    f = message.getAccountstorage();
   942    if (f != null) {
   943      writer.writeMessage(
   944        3,
   945        f,
   946        proto.dump.AccountStorage.serializeBinaryToWriter
   947      );
   948    }
   949    f = message.getEvmevent();
   950    if (f != null) {
   951      writer.writeMessage(
   952        4,
   953        f,
   954        proto.dump.EVMEvent.serializeBinaryToWriter
   955      );
   956    }
   957    f = message.getName();
   958    if (f != null) {
   959      writer.writeMessage(
   960        5,
   961        f,
   962        names_pb.Entry.serializeBinaryToWriter
   963      );
   964    }
   965  };
   966  
   967  
   968  /**
   969   * optional uint64 Height = 1;
   970   * @return {number}
   971   */
   972  proto.dump.Dump.prototype.getHeight = function() {
   973    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
   974  };
   975  
   976  
   977  /**
   978   * @param {number} value
   979   * @return {!proto.dump.Dump} returns this
   980   */
   981  proto.dump.Dump.prototype.setHeight = function(value) {
   982    return jspb.Message.setProto3IntField(this, 1, value);
   983  };
   984  
   985  
   986  /**
   987   * optional acm.Account Account = 2;
   988   * @return {?proto.acm.Account}
   989   */
   990  proto.dump.Dump.prototype.getAccount = function() {
   991    return /** @type{?proto.acm.Account} */ (
   992      jspb.Message.getWrapperField(this, acm_pb.Account, 2));
   993  };
   994  
   995  
   996  /**
   997   * @param {?proto.acm.Account|undefined} value
   998   * @return {!proto.dump.Dump} returns this
   999  */
  1000  proto.dump.Dump.prototype.setAccount = function(value) {
  1001    return jspb.Message.setWrapperField(this, 2, value);
  1002  };
  1003  
  1004  
  1005  /**
  1006   * Clears the message field making it undefined.
  1007   * @return {!proto.dump.Dump} returns this
  1008   */
  1009  proto.dump.Dump.prototype.clearAccount = function() {
  1010    return this.setAccount(undefined);
  1011  };
  1012  
  1013  
  1014  /**
  1015   * Returns whether this field is set.
  1016   * @return {boolean}
  1017   */
  1018  proto.dump.Dump.prototype.hasAccount = function() {
  1019    return jspb.Message.getField(this, 2) != null;
  1020  };
  1021  
  1022  
  1023  /**
  1024   * optional AccountStorage AccountStorage = 3;
  1025   * @return {?proto.dump.AccountStorage}
  1026   */
  1027  proto.dump.Dump.prototype.getAccountstorage = function() {
  1028    return /** @type{?proto.dump.AccountStorage} */ (
  1029      jspb.Message.getWrapperField(this, proto.dump.AccountStorage, 3));
  1030  };
  1031  
  1032  
  1033  /**
  1034   * @param {?proto.dump.AccountStorage|undefined} value
  1035   * @return {!proto.dump.Dump} returns this
  1036  */
  1037  proto.dump.Dump.prototype.setAccountstorage = function(value) {
  1038    return jspb.Message.setWrapperField(this, 3, value);
  1039  };
  1040  
  1041  
  1042  /**
  1043   * Clears the message field making it undefined.
  1044   * @return {!proto.dump.Dump} returns this
  1045   */
  1046  proto.dump.Dump.prototype.clearAccountstorage = function() {
  1047    return this.setAccountstorage(undefined);
  1048  };
  1049  
  1050  
  1051  /**
  1052   * Returns whether this field is set.
  1053   * @return {boolean}
  1054   */
  1055  proto.dump.Dump.prototype.hasAccountstorage = function() {
  1056    return jspb.Message.getField(this, 3) != null;
  1057  };
  1058  
  1059  
  1060  /**
  1061   * optional EVMEvent EVMEvent = 4;
  1062   * @return {?proto.dump.EVMEvent}
  1063   */
  1064  proto.dump.Dump.prototype.getEvmevent = function() {
  1065    return /** @type{?proto.dump.EVMEvent} */ (
  1066      jspb.Message.getWrapperField(this, proto.dump.EVMEvent, 4));
  1067  };
  1068  
  1069  
  1070  /**
  1071   * @param {?proto.dump.EVMEvent|undefined} value
  1072   * @return {!proto.dump.Dump} returns this
  1073  */
  1074  proto.dump.Dump.prototype.setEvmevent = function(value) {
  1075    return jspb.Message.setWrapperField(this, 4, value);
  1076  };
  1077  
  1078  
  1079  /**
  1080   * Clears the message field making it undefined.
  1081   * @return {!proto.dump.Dump} returns this
  1082   */
  1083  proto.dump.Dump.prototype.clearEvmevent = function() {
  1084    return this.setEvmevent(undefined);
  1085  };
  1086  
  1087  
  1088  /**
  1089   * Returns whether this field is set.
  1090   * @return {boolean}
  1091   */
  1092  proto.dump.Dump.prototype.hasEvmevent = function() {
  1093    return jspb.Message.getField(this, 4) != null;
  1094  };
  1095  
  1096  
  1097  /**
  1098   * optional names.Entry Name = 5;
  1099   * @return {?proto.names.Entry}
  1100   */
  1101  proto.dump.Dump.prototype.getName = function() {
  1102    return /** @type{?proto.names.Entry} */ (
  1103      jspb.Message.getWrapperField(this, names_pb.Entry, 5));
  1104  };
  1105  
  1106  
  1107  /**
  1108   * @param {?proto.names.Entry|undefined} value
  1109   * @return {!proto.dump.Dump} returns this
  1110  */
  1111  proto.dump.Dump.prototype.setName = function(value) {
  1112    return jspb.Message.setWrapperField(this, 5, value);
  1113  };
  1114  
  1115  
  1116  /**
  1117   * Clears the message field making it undefined.
  1118   * @return {!proto.dump.Dump} returns this
  1119   */
  1120  proto.dump.Dump.prototype.clearName = function() {
  1121    return this.setName(undefined);
  1122  };
  1123  
  1124  
  1125  /**
  1126   * Returns whether this field is set.
  1127   * @return {boolean}
  1128   */
  1129  proto.dump.Dump.prototype.hasName = function() {
  1130    return jspb.Message.getField(this, 5) != null;
  1131  };
  1132  
  1133  
  1134  goog.object.extend(exports, proto.dump);