@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
893 lines (773 loc) • 26.3 kB
JavaScript
// source: ethermint/evm/v1/events.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.ethermint.evm.v1.EventBlockBloom', null, global);
goog.exportSymbol('proto.ethermint.evm.v1.EventEthereumTx', null, global);
goog.exportSymbol('proto.ethermint.evm.v1.EventMessage', null, global);
goog.exportSymbol('proto.ethermint.evm.v1.EventTxLog', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ethermint.evm.v1.EventEthereumTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ethermint.evm.v1.EventEthereumTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ethermint.evm.v1.EventEthereumTx.displayName = 'proto.ethermint.evm.v1.EventEthereumTx';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ethermint.evm.v1.EventTxLog = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ethermint.evm.v1.EventTxLog.repeatedFields_, null);
};
goog.inherits(proto.ethermint.evm.v1.EventTxLog, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ethermint.evm.v1.EventTxLog.displayName = 'proto.ethermint.evm.v1.EventTxLog';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ethermint.evm.v1.EventMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ethermint.evm.v1.EventMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ethermint.evm.v1.EventMessage.displayName = 'proto.ethermint.evm.v1.EventMessage';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ethermint.evm.v1.EventBlockBloom = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ethermint.evm.v1.EventBlockBloom, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ethermint.evm.v1.EventBlockBloom.displayName = 'proto.ethermint.evm.v1.EventBlockBloom';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.toObject = function(opt_includeInstance) {
return proto.ethermint.evm.v1.EventEthereumTx.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ethermint.evm.v1.EventEthereumTx} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventEthereumTx.toObject = function(includeInstance, msg) {
var f, obj = {
amount: jspb.Message.getFieldWithDefault(msg, 1, ""),
ethHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
index: jspb.Message.getFieldWithDefault(msg, 3, ""),
gasUsed: jspb.Message.getFieldWithDefault(msg, 4, ""),
hash: jspb.Message.getFieldWithDefault(msg, 5, ""),
recipient: jspb.Message.getFieldWithDefault(msg, 6, ""),
ethTxFailed: jspb.Message.getFieldWithDefault(msg, 7, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ethermint.evm.v1.EventEthereumTx}
*/
proto.ethermint.evm.v1.EventEthereumTx.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ethermint.evm.v1.EventEthereumTx;
return proto.ethermint.evm.v1.EventEthereumTx.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ethermint.evm.v1.EventEthereumTx} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ethermint.evm.v1.EventEthereumTx}
*/
proto.ethermint.evm.v1.EventEthereumTx.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAmount(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setEthHash(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setIndex(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setGasUsed(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setHash(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setRecipient(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setEthTxFailed(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ethermint.evm.v1.EventEthereumTx.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ethermint.evm.v1.EventEthereumTx} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventEthereumTx.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAmount();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getEthHash();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getIndex();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getGasUsed();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getHash();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getRecipient();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getEthTxFailed();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
};
/**
* optional string amount = 1;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getAmount = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setAmount = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string eth_hash = 2;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getEthHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setEthHash = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string index = 3;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getIndex = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setIndex = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string gas_used = 4;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getGasUsed = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setGasUsed = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string hash = 5;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setHash = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string recipient = 6;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getRecipient = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setRecipient = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string eth_tx_failed = 7;
* @return {string}
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.getEthTxFailed = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventEthereumTx} returns this
*/
proto.ethermint.evm.v1.EventEthereumTx.prototype.setEthTxFailed = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ethermint.evm.v1.EventTxLog.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ethermint.evm.v1.EventTxLog.prototype.toObject = function(opt_includeInstance) {
return proto.ethermint.evm.v1.EventTxLog.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ethermint.evm.v1.EventTxLog} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventTxLog.toObject = function(includeInstance, msg) {
var f, obj = {
txLogsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ethermint.evm.v1.EventTxLog}
*/
proto.ethermint.evm.v1.EventTxLog.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ethermint.evm.v1.EventTxLog;
return proto.ethermint.evm.v1.EventTxLog.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ethermint.evm.v1.EventTxLog} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ethermint.evm.v1.EventTxLog}
*/
proto.ethermint.evm.v1.EventTxLog.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.addTxLogs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ethermint.evm.v1.EventTxLog.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ethermint.evm.v1.EventTxLog.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ethermint.evm.v1.EventTxLog} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventTxLog.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTxLogsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string tx_logs = 1;
* @return {!Array<string>}
*/
proto.ethermint.evm.v1.EventTxLog.prototype.getTxLogsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.ethermint.evm.v1.EventTxLog} returns this
*/
proto.ethermint.evm.v1.EventTxLog.prototype.setTxLogsList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.ethermint.evm.v1.EventTxLog} returns this
*/
proto.ethermint.evm.v1.EventTxLog.prototype.addTxLogs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ethermint.evm.v1.EventTxLog} returns this
*/
proto.ethermint.evm.v1.EventTxLog.prototype.clearTxLogsList = function() {
return this.setTxLogsList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ethermint.evm.v1.EventMessage.prototype.toObject = function(opt_includeInstance) {
return proto.ethermint.evm.v1.EventMessage.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ethermint.evm.v1.EventMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventMessage.toObject = function(includeInstance, msg) {
var f, obj = {
module: jspb.Message.getFieldWithDefault(msg, 1, ""),
sender: jspb.Message.getFieldWithDefault(msg, 2, ""),
txType: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ethermint.evm.v1.EventMessage}
*/
proto.ethermint.evm.v1.EventMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ethermint.evm.v1.EventMessage;
return proto.ethermint.evm.v1.EventMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ethermint.evm.v1.EventMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ethermint.evm.v1.EventMessage}
*/
proto.ethermint.evm.v1.EventMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setModule(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSender(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTxType(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ethermint.evm.v1.EventMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ethermint.evm.v1.EventMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ethermint.evm.v1.EventMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getModule();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getTxType();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string module = 1;
* @return {string}
*/
proto.ethermint.evm.v1.EventMessage.prototype.getModule = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventMessage} returns this
*/
proto.ethermint.evm.v1.EventMessage.prototype.setModule = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sender = 2;
* @return {string}
*/
proto.ethermint.evm.v1.EventMessage.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventMessage} returns this
*/
proto.ethermint.evm.v1.EventMessage.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string tx_type = 3;
* @return {string}
*/
proto.ethermint.evm.v1.EventMessage.prototype.getTxType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventMessage} returns this
*/
proto.ethermint.evm.v1.EventMessage.prototype.setTxType = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ethermint.evm.v1.EventBlockBloom.prototype.toObject = function(opt_includeInstance) {
return proto.ethermint.evm.v1.EventBlockBloom.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ethermint.evm.v1.EventBlockBloom} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventBlockBloom.toObject = function(includeInstance, msg) {
var f, obj = {
bloom: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ethermint.evm.v1.EventBlockBloom}
*/
proto.ethermint.evm.v1.EventBlockBloom.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ethermint.evm.v1.EventBlockBloom;
return proto.ethermint.evm.v1.EventBlockBloom.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ethermint.evm.v1.EventBlockBloom} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ethermint.evm.v1.EventBlockBloom}
*/
proto.ethermint.evm.v1.EventBlockBloom.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setBloom(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ethermint.evm.v1.EventBlockBloom.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ethermint.evm.v1.EventBlockBloom.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ethermint.evm.v1.EventBlockBloom} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ethermint.evm.v1.EventBlockBloom.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBloom();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string bloom = 1;
* @return {string}
*/
proto.ethermint.evm.v1.EventBlockBloom.prototype.getBloom = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.ethermint.evm.v1.EventBlockBloom} returns this
*/
proto.ethermint.evm.v1.EventBlockBloom.prototype.setBloom = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
goog.object.extend(exports, proto.ethermint.evm.v1);