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

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