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

     1  // source: rpctransact.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_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
    21  goog.object.extend(proto, google_protobuf_duration_pb);
    22  var exec_pb = require('./exec_pb.js');
    23  goog.object.extend(proto, exec_pb);
    24  var payload_pb = require('./payload_pb.js');
    25  goog.object.extend(proto, payload_pb);
    26  var txs_pb = require('./txs_pb.js');
    27  goog.object.extend(proto, txs_pb);
    28  goog.exportSymbol('proto.rpctransact.CallCodeParam', null, global);
    29  goog.exportSymbol('proto.rpctransact.TxEnvelope', null, global);
    30  goog.exportSymbol('proto.rpctransact.TxEnvelopeParam', null, global);
    31  /**
    32   * Generated by JsPbCodeGenerator.
    33   * @param {Array=} opt_data Optional initial data array, typically from a
    34   * server response, or constructed directly in Javascript. The array is used
    35   * in place and becomes part of the constructed object. It is not cloned.
    36   * If no data is provided, the constructed object will be empty, but still
    37   * valid.
    38   * @extends {jspb.Message}
    39   * @constructor
    40   */
    41  proto.rpctransact.CallCodeParam = function(opt_data) {
    42    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    43  };
    44  goog.inherits(proto.rpctransact.CallCodeParam, jspb.Message);
    45  if (goog.DEBUG && !COMPILED) {
    46    /**
    47     * @public
    48     * @override
    49     */
    50    proto.rpctransact.CallCodeParam.displayName = 'proto.rpctransact.CallCodeParam';
    51  }
    52  /**
    53   * Generated by JsPbCodeGenerator.
    54   * @param {Array=} opt_data Optional initial data array, typically from a
    55   * server response, or constructed directly in Javascript. The array is used
    56   * in place and becomes part of the constructed object. It is not cloned.
    57   * If no data is provided, the constructed object will be empty, but still
    58   * valid.
    59   * @extends {jspb.Message}
    60   * @constructor
    61   */
    62  proto.rpctransact.TxEnvelope = function(opt_data) {
    63    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    64  };
    65  goog.inherits(proto.rpctransact.TxEnvelope, jspb.Message);
    66  if (goog.DEBUG && !COMPILED) {
    67    /**
    68     * @public
    69     * @override
    70     */
    71    proto.rpctransact.TxEnvelope.displayName = 'proto.rpctransact.TxEnvelope';
    72  }
    73  /**
    74   * Generated by JsPbCodeGenerator.
    75   * @param {Array=} opt_data Optional initial data array, typically from a
    76   * server response, or constructed directly in Javascript. The array is used
    77   * in place and becomes part of the constructed object. It is not cloned.
    78   * If no data is provided, the constructed object will be empty, but still
    79   * valid.
    80   * @extends {jspb.Message}
    81   * @constructor
    82   */
    83  proto.rpctransact.TxEnvelopeParam = function(opt_data) {
    84    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    85  };
    86  goog.inherits(proto.rpctransact.TxEnvelopeParam, jspb.Message);
    87  if (goog.DEBUG && !COMPILED) {
    88    /**
    89     * @public
    90     * @override
    91     */
    92    proto.rpctransact.TxEnvelopeParam.displayName = 'proto.rpctransact.TxEnvelopeParam';
    93  }
    94  
    95  
    96  
    97  if (jspb.Message.GENERATE_TO_OBJECT) {
    98  /**
    99   * Creates an object representation of this proto.
   100   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   101   * Optional fields that are not set will be set to undefined.
   102   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   103   * For the list of reserved names please see:
   104   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   105   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   106   *     JSPB instance for transitional soy proto support:
   107   *     http://goto/soy-param-migration
   108   * @return {!Object}
   109   */
   110  proto.rpctransact.CallCodeParam.prototype.toObject = function(opt_includeInstance) {
   111    return proto.rpctransact.CallCodeParam.toObject(opt_includeInstance, this);
   112  };
   113  
   114  
   115  /**
   116   * Static version of the {@see toObject} method.
   117   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   118   *     the JSPB instance for transitional soy proto support:
   119   *     http://goto/soy-param-migration
   120   * @param {!proto.rpctransact.CallCodeParam} msg The msg instance to transform.
   121   * @return {!Object}
   122   * @suppress {unusedLocalVariables} f is only used for nested messages
   123   */
   124  proto.rpctransact.CallCodeParam.toObject = function(includeInstance, msg) {
   125    var f, obj = {
   126      fromaddress: msg.getFromaddress_asB64(),
   127      code: msg.getCode_asB64(),
   128      data: msg.getData_asB64()
   129    };
   130  
   131    if (includeInstance) {
   132      obj.$jspbMessageInstance = msg;
   133    }
   134    return obj;
   135  };
   136  }
   137  
   138  
   139  /**
   140   * Deserializes binary data (in protobuf wire format).
   141   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   142   * @return {!proto.rpctransact.CallCodeParam}
   143   */
   144  proto.rpctransact.CallCodeParam.deserializeBinary = function(bytes) {
   145    var reader = new jspb.BinaryReader(bytes);
   146    var msg = new proto.rpctransact.CallCodeParam;
   147    return proto.rpctransact.CallCodeParam.deserializeBinaryFromReader(msg, reader);
   148  };
   149  
   150  
   151  /**
   152   * Deserializes binary data (in protobuf wire format) from the
   153   * given reader into the given message object.
   154   * @param {!proto.rpctransact.CallCodeParam} msg The message object to deserialize into.
   155   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   156   * @return {!proto.rpctransact.CallCodeParam}
   157   */
   158  proto.rpctransact.CallCodeParam.deserializeBinaryFromReader = function(msg, reader) {
   159    while (reader.nextField()) {
   160      if (reader.isEndGroup()) {
   161        break;
   162      }
   163      var field = reader.getFieldNumber();
   164      switch (field) {
   165      case 1:
   166        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   167        msg.setFromaddress(value);
   168        break;
   169      case 2:
   170        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   171        msg.setCode(value);
   172        break;
   173      case 3:
   174        var value = /** @type {!Uint8Array} */ (reader.readBytes());
   175        msg.setData(value);
   176        break;
   177      default:
   178        reader.skipField();
   179        break;
   180      }
   181    }
   182    return msg;
   183  };
   184  
   185  
   186  /**
   187   * Serializes the message to binary data (in protobuf wire format).
   188   * @return {!Uint8Array}
   189   */
   190  proto.rpctransact.CallCodeParam.prototype.serializeBinary = function() {
   191    var writer = new jspb.BinaryWriter();
   192    proto.rpctransact.CallCodeParam.serializeBinaryToWriter(this, writer);
   193    return writer.getResultBuffer();
   194  };
   195  
   196  
   197  /**
   198   * Serializes the given message to binary data (in protobuf wire
   199   * format), writing to the given BinaryWriter.
   200   * @param {!proto.rpctransact.CallCodeParam} message
   201   * @param {!jspb.BinaryWriter} writer
   202   * @suppress {unusedLocalVariables} f is only used for nested messages
   203   */
   204  proto.rpctransact.CallCodeParam.serializeBinaryToWriter = function(message, writer) {
   205    var f = undefined;
   206    f = message.getFromaddress_asU8();
   207    if (f.length > 0) {
   208      writer.writeBytes(
   209        1,
   210        f
   211      );
   212    }
   213    f = message.getCode_asU8();
   214    if (f.length > 0) {
   215      writer.writeBytes(
   216        2,
   217        f
   218      );
   219    }
   220    f = message.getData_asU8();
   221    if (f.length > 0) {
   222      writer.writeBytes(
   223        3,
   224        f
   225      );
   226    }
   227  };
   228  
   229  
   230  /**
   231   * optional bytes FromAddress = 1;
   232   * @return {!(string|Uint8Array)}
   233   */
   234  proto.rpctransact.CallCodeParam.prototype.getFromaddress = function() {
   235    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   236  };
   237  
   238  
   239  /**
   240   * optional bytes FromAddress = 1;
   241   * This is a type-conversion wrapper around `getFromaddress()`
   242   * @return {string}
   243   */
   244  proto.rpctransact.CallCodeParam.prototype.getFromaddress_asB64 = function() {
   245    return /** @type {string} */ (jspb.Message.bytesAsB64(
   246        this.getFromaddress()));
   247  };
   248  
   249  
   250  /**
   251   * optional bytes FromAddress = 1;
   252   * Note that Uint8Array is not supported on all browsers.
   253   * @see http://caniuse.com/Uint8Array
   254   * This is a type-conversion wrapper around `getFromaddress()`
   255   * @return {!Uint8Array}
   256   */
   257  proto.rpctransact.CallCodeParam.prototype.getFromaddress_asU8 = function() {
   258    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   259        this.getFromaddress()));
   260  };
   261  
   262  
   263  /**
   264   * @param {!(string|Uint8Array)} value
   265   * @return {!proto.rpctransact.CallCodeParam} returns this
   266   */
   267  proto.rpctransact.CallCodeParam.prototype.setFromaddress = function(value) {
   268    return jspb.Message.setProto3BytesField(this, 1, value);
   269  };
   270  
   271  
   272  /**
   273   * optional bytes Code = 2;
   274   * @return {!(string|Uint8Array)}
   275   */
   276  proto.rpctransact.CallCodeParam.prototype.getCode = function() {
   277    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
   278  };
   279  
   280  
   281  /**
   282   * optional bytes Code = 2;
   283   * This is a type-conversion wrapper around `getCode()`
   284   * @return {string}
   285   */
   286  proto.rpctransact.CallCodeParam.prototype.getCode_asB64 = function() {
   287    return /** @type {string} */ (jspb.Message.bytesAsB64(
   288        this.getCode()));
   289  };
   290  
   291  
   292  /**
   293   * optional bytes Code = 2;
   294   * Note that Uint8Array is not supported on all browsers.
   295   * @see http://caniuse.com/Uint8Array
   296   * This is a type-conversion wrapper around `getCode()`
   297   * @return {!Uint8Array}
   298   */
   299  proto.rpctransact.CallCodeParam.prototype.getCode_asU8 = function() {
   300    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   301        this.getCode()));
   302  };
   303  
   304  
   305  /**
   306   * @param {!(string|Uint8Array)} value
   307   * @return {!proto.rpctransact.CallCodeParam} returns this
   308   */
   309  proto.rpctransact.CallCodeParam.prototype.setCode = function(value) {
   310    return jspb.Message.setProto3BytesField(this, 2, value);
   311  };
   312  
   313  
   314  /**
   315   * optional bytes Data = 3;
   316   * @return {!(string|Uint8Array)}
   317   */
   318  proto.rpctransact.CallCodeParam.prototype.getData = function() {
   319    return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
   320  };
   321  
   322  
   323  /**
   324   * optional bytes Data = 3;
   325   * This is a type-conversion wrapper around `getData()`
   326   * @return {string}
   327   */
   328  proto.rpctransact.CallCodeParam.prototype.getData_asB64 = function() {
   329    return /** @type {string} */ (jspb.Message.bytesAsB64(
   330        this.getData()));
   331  };
   332  
   333  
   334  /**
   335   * optional bytes Data = 3;
   336   * Note that Uint8Array is not supported on all browsers.
   337   * @see http://caniuse.com/Uint8Array
   338   * This is a type-conversion wrapper around `getData()`
   339   * @return {!Uint8Array}
   340   */
   341  proto.rpctransact.CallCodeParam.prototype.getData_asU8 = function() {
   342    return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
   343        this.getData()));
   344  };
   345  
   346  
   347  /**
   348   * @param {!(string|Uint8Array)} value
   349   * @return {!proto.rpctransact.CallCodeParam} returns this
   350   */
   351  proto.rpctransact.CallCodeParam.prototype.setData = function(value) {
   352    return jspb.Message.setProto3BytesField(this, 3, value);
   353  };
   354  
   355  
   356  
   357  
   358  
   359  if (jspb.Message.GENERATE_TO_OBJECT) {
   360  /**
   361   * Creates an object representation of this proto.
   362   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   363   * Optional fields that are not set will be set to undefined.
   364   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   365   * For the list of reserved names please see:
   366   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   367   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   368   *     JSPB instance for transitional soy proto support:
   369   *     http://goto/soy-param-migration
   370   * @return {!Object}
   371   */
   372  proto.rpctransact.TxEnvelope.prototype.toObject = function(opt_includeInstance) {
   373    return proto.rpctransact.TxEnvelope.toObject(opt_includeInstance, this);
   374  };
   375  
   376  
   377  /**
   378   * Static version of the {@see toObject} method.
   379   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   380   *     the JSPB instance for transitional soy proto support:
   381   *     http://goto/soy-param-migration
   382   * @param {!proto.rpctransact.TxEnvelope} msg The msg instance to transform.
   383   * @return {!Object}
   384   * @suppress {unusedLocalVariables} f is only used for nested messages
   385   */
   386  proto.rpctransact.TxEnvelope.toObject = function(includeInstance, msg) {
   387    var f, obj = {
   388      envelope: (f = msg.getEnvelope()) && txs_pb.Envelope.toObject(includeInstance, f)
   389    };
   390  
   391    if (includeInstance) {
   392      obj.$jspbMessageInstance = msg;
   393    }
   394    return obj;
   395  };
   396  }
   397  
   398  
   399  /**
   400   * Deserializes binary data (in protobuf wire format).
   401   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   402   * @return {!proto.rpctransact.TxEnvelope}
   403   */
   404  proto.rpctransact.TxEnvelope.deserializeBinary = function(bytes) {
   405    var reader = new jspb.BinaryReader(bytes);
   406    var msg = new proto.rpctransact.TxEnvelope;
   407    return proto.rpctransact.TxEnvelope.deserializeBinaryFromReader(msg, reader);
   408  };
   409  
   410  
   411  /**
   412   * Deserializes binary data (in protobuf wire format) from the
   413   * given reader into the given message object.
   414   * @param {!proto.rpctransact.TxEnvelope} msg The message object to deserialize into.
   415   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   416   * @return {!proto.rpctransact.TxEnvelope}
   417   */
   418  proto.rpctransact.TxEnvelope.deserializeBinaryFromReader = function(msg, reader) {
   419    while (reader.nextField()) {
   420      if (reader.isEndGroup()) {
   421        break;
   422      }
   423      var field = reader.getFieldNumber();
   424      switch (field) {
   425      case 1:
   426        var value = new txs_pb.Envelope;
   427        reader.readMessage(value,txs_pb.Envelope.deserializeBinaryFromReader);
   428        msg.setEnvelope(value);
   429        break;
   430      default:
   431        reader.skipField();
   432        break;
   433      }
   434    }
   435    return msg;
   436  };
   437  
   438  
   439  /**
   440   * Serializes the message to binary data (in protobuf wire format).
   441   * @return {!Uint8Array}
   442   */
   443  proto.rpctransact.TxEnvelope.prototype.serializeBinary = function() {
   444    var writer = new jspb.BinaryWriter();
   445    proto.rpctransact.TxEnvelope.serializeBinaryToWriter(this, writer);
   446    return writer.getResultBuffer();
   447  };
   448  
   449  
   450  /**
   451   * Serializes the given message to binary data (in protobuf wire
   452   * format), writing to the given BinaryWriter.
   453   * @param {!proto.rpctransact.TxEnvelope} message
   454   * @param {!jspb.BinaryWriter} writer
   455   * @suppress {unusedLocalVariables} f is only used for nested messages
   456   */
   457  proto.rpctransact.TxEnvelope.serializeBinaryToWriter = function(message, writer) {
   458    var f = undefined;
   459    f = message.getEnvelope();
   460    if (f != null) {
   461      writer.writeMessage(
   462        1,
   463        f,
   464        txs_pb.Envelope.serializeBinaryToWriter
   465      );
   466    }
   467  };
   468  
   469  
   470  /**
   471   * optional txs.Envelope Envelope = 1;
   472   * @return {?proto.txs.Envelope}
   473   */
   474  proto.rpctransact.TxEnvelope.prototype.getEnvelope = function() {
   475    return /** @type{?proto.txs.Envelope} */ (
   476      jspb.Message.getWrapperField(this, txs_pb.Envelope, 1));
   477  };
   478  
   479  
   480  /**
   481   * @param {?proto.txs.Envelope|undefined} value
   482   * @return {!proto.rpctransact.TxEnvelope} returns this
   483  */
   484  proto.rpctransact.TxEnvelope.prototype.setEnvelope = function(value) {
   485    return jspb.Message.setWrapperField(this, 1, value);
   486  };
   487  
   488  
   489  /**
   490   * Clears the message field making it undefined.
   491   * @return {!proto.rpctransact.TxEnvelope} returns this
   492   */
   493  proto.rpctransact.TxEnvelope.prototype.clearEnvelope = function() {
   494    return this.setEnvelope(undefined);
   495  };
   496  
   497  
   498  /**
   499   * Returns whether this field is set.
   500   * @return {boolean}
   501   */
   502  proto.rpctransact.TxEnvelope.prototype.hasEnvelope = function() {
   503    return jspb.Message.getField(this, 1) != null;
   504  };
   505  
   506  
   507  
   508  
   509  
   510  if (jspb.Message.GENERATE_TO_OBJECT) {
   511  /**
   512   * Creates an object representation of this proto.
   513   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   514   * Optional fields that are not set will be set to undefined.
   515   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   516   * For the list of reserved names please see:
   517   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   518   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   519   *     JSPB instance for transitional soy proto support:
   520   *     http://goto/soy-param-migration
   521   * @return {!Object}
   522   */
   523  proto.rpctransact.TxEnvelopeParam.prototype.toObject = function(opt_includeInstance) {
   524    return proto.rpctransact.TxEnvelopeParam.toObject(opt_includeInstance, this);
   525  };
   526  
   527  
   528  /**
   529   * Static version of the {@see toObject} method.
   530   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   531   *     the JSPB instance for transitional soy proto support:
   532   *     http://goto/soy-param-migration
   533   * @param {!proto.rpctransact.TxEnvelopeParam} msg The msg instance to transform.
   534   * @return {!Object}
   535   * @suppress {unusedLocalVariables} f is only used for nested messages
   536   */
   537  proto.rpctransact.TxEnvelopeParam.toObject = function(includeInstance, msg) {
   538    var f, obj = {
   539      envelope: (f = msg.getEnvelope()) && txs_pb.Envelope.toObject(includeInstance, f),
   540      payload: (f = msg.getPayload()) && payload_pb.Any.toObject(includeInstance, f),
   541      timeout: (f = msg.getTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
   542    };
   543  
   544    if (includeInstance) {
   545      obj.$jspbMessageInstance = msg;
   546    }
   547    return obj;
   548  };
   549  }
   550  
   551  
   552  /**
   553   * Deserializes binary data (in protobuf wire format).
   554   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   555   * @return {!proto.rpctransact.TxEnvelopeParam}
   556   */
   557  proto.rpctransact.TxEnvelopeParam.deserializeBinary = function(bytes) {
   558    var reader = new jspb.BinaryReader(bytes);
   559    var msg = new proto.rpctransact.TxEnvelopeParam;
   560    return proto.rpctransact.TxEnvelopeParam.deserializeBinaryFromReader(msg, reader);
   561  };
   562  
   563  
   564  /**
   565   * Deserializes binary data (in protobuf wire format) from the
   566   * given reader into the given message object.
   567   * @param {!proto.rpctransact.TxEnvelopeParam} msg The message object to deserialize into.
   568   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   569   * @return {!proto.rpctransact.TxEnvelopeParam}
   570   */
   571  proto.rpctransact.TxEnvelopeParam.deserializeBinaryFromReader = function(msg, reader) {
   572    while (reader.nextField()) {
   573      if (reader.isEndGroup()) {
   574        break;
   575      }
   576      var field = reader.getFieldNumber();
   577      switch (field) {
   578      case 1:
   579        var value = new txs_pb.Envelope;
   580        reader.readMessage(value,txs_pb.Envelope.deserializeBinaryFromReader);
   581        msg.setEnvelope(value);
   582        break;
   583      case 2:
   584        var value = new payload_pb.Any;
   585        reader.readMessage(value,payload_pb.Any.deserializeBinaryFromReader);
   586        msg.setPayload(value);
   587        break;
   588      case 3:
   589        var value = new google_protobuf_duration_pb.Duration;
   590        reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
   591        msg.setTimeout(value);
   592        break;
   593      default:
   594        reader.skipField();
   595        break;
   596      }
   597    }
   598    return msg;
   599  };
   600  
   601  
   602  /**
   603   * Serializes the message to binary data (in protobuf wire format).
   604   * @return {!Uint8Array}
   605   */
   606  proto.rpctransact.TxEnvelopeParam.prototype.serializeBinary = function() {
   607    var writer = new jspb.BinaryWriter();
   608    proto.rpctransact.TxEnvelopeParam.serializeBinaryToWriter(this, writer);
   609    return writer.getResultBuffer();
   610  };
   611  
   612  
   613  /**
   614   * Serializes the given message to binary data (in protobuf wire
   615   * format), writing to the given BinaryWriter.
   616   * @param {!proto.rpctransact.TxEnvelopeParam} message
   617   * @param {!jspb.BinaryWriter} writer
   618   * @suppress {unusedLocalVariables} f is only used for nested messages
   619   */
   620  proto.rpctransact.TxEnvelopeParam.serializeBinaryToWriter = function(message, writer) {
   621    var f = undefined;
   622    f = message.getEnvelope();
   623    if (f != null) {
   624      writer.writeMessage(
   625        1,
   626        f,
   627        txs_pb.Envelope.serializeBinaryToWriter
   628      );
   629    }
   630    f = message.getPayload();
   631    if (f != null) {
   632      writer.writeMessage(
   633        2,
   634        f,
   635        payload_pb.Any.serializeBinaryToWriter
   636      );
   637    }
   638    f = message.getTimeout();
   639    if (f != null) {
   640      writer.writeMessage(
   641        3,
   642        f,
   643        google_protobuf_duration_pb.Duration.serializeBinaryToWriter
   644      );
   645    }
   646  };
   647  
   648  
   649  /**
   650   * optional txs.Envelope Envelope = 1;
   651   * @return {?proto.txs.Envelope}
   652   */
   653  proto.rpctransact.TxEnvelopeParam.prototype.getEnvelope = function() {
   654    return /** @type{?proto.txs.Envelope} */ (
   655      jspb.Message.getWrapperField(this, txs_pb.Envelope, 1));
   656  };
   657  
   658  
   659  /**
   660   * @param {?proto.txs.Envelope|undefined} value
   661   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   662  */
   663  proto.rpctransact.TxEnvelopeParam.prototype.setEnvelope = function(value) {
   664    return jspb.Message.setWrapperField(this, 1, value);
   665  };
   666  
   667  
   668  /**
   669   * Clears the message field making it undefined.
   670   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   671   */
   672  proto.rpctransact.TxEnvelopeParam.prototype.clearEnvelope = function() {
   673    return this.setEnvelope(undefined);
   674  };
   675  
   676  
   677  /**
   678   * Returns whether this field is set.
   679   * @return {boolean}
   680   */
   681  proto.rpctransact.TxEnvelopeParam.prototype.hasEnvelope = function() {
   682    return jspb.Message.getField(this, 1) != null;
   683  };
   684  
   685  
   686  /**
   687   * optional payload.Any Payload = 2;
   688   * @return {?proto.payload.Any}
   689   */
   690  proto.rpctransact.TxEnvelopeParam.prototype.getPayload = function() {
   691    return /** @type{?proto.payload.Any} */ (
   692      jspb.Message.getWrapperField(this, payload_pb.Any, 2));
   693  };
   694  
   695  
   696  /**
   697   * @param {?proto.payload.Any|undefined} value
   698   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   699  */
   700  proto.rpctransact.TxEnvelopeParam.prototype.setPayload = function(value) {
   701    return jspb.Message.setWrapperField(this, 2, value);
   702  };
   703  
   704  
   705  /**
   706   * Clears the message field making it undefined.
   707   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   708   */
   709  proto.rpctransact.TxEnvelopeParam.prototype.clearPayload = function() {
   710    return this.setPayload(undefined);
   711  };
   712  
   713  
   714  /**
   715   * Returns whether this field is set.
   716   * @return {boolean}
   717   */
   718  proto.rpctransact.TxEnvelopeParam.prototype.hasPayload = function() {
   719    return jspb.Message.getField(this, 2) != null;
   720  };
   721  
   722  
   723  /**
   724   * optional google.protobuf.Duration Timeout = 3;
   725   * @return {?proto.google.protobuf.Duration}
   726   */
   727  proto.rpctransact.TxEnvelopeParam.prototype.getTimeout = function() {
   728    return /** @type{?proto.google.protobuf.Duration} */ (
   729      jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
   730  };
   731  
   732  
   733  /**
   734   * @param {?proto.google.protobuf.Duration|undefined} value
   735   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   736  */
   737  proto.rpctransact.TxEnvelopeParam.prototype.setTimeout = function(value) {
   738    return jspb.Message.setWrapperField(this, 3, value);
   739  };
   740  
   741  
   742  /**
   743   * Clears the message field making it undefined.
   744   * @return {!proto.rpctransact.TxEnvelopeParam} returns this
   745   */
   746  proto.rpctransact.TxEnvelopeParam.prototype.clearTimeout = function() {
   747    return this.setTimeout(undefined);
   748  };
   749  
   750  
   751  /**
   752   * Returns whether this field is set.
   753   * @return {boolean}
   754   */
   755  proto.rpctransact.TxEnvelopeParam.prototype.hasTimeout = function() {
   756    return jspb.Message.getField(this, 3) != null;
   757  };
   758  
   759  
   760  goog.object.extend(exports, proto.rpctransact);