@paradeum/burrow
Version:
TypeScript library that calls a Hyperledger Burrow server over GRPC.
1,691 lines (1,498 loc) • 157 kB
JavaScript
// source: exec.proto
/**
* @fileoverview
* @enhanceable
* @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!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var github_com_gogo_protobuf_gogoproto_gogo_pb = require('./github.com/gogo/protobuf/gogoproto/gogo_pb.js');
goog.object.extend(proto, github_com_gogo_protobuf_gogoproto_gogo_pb);
var github_com_tendermint_tendermint_abci_types_types_pb = require('./github.com/tendermint/tendermint/abci/types/types_pb.js');
goog.object.extend(proto, github_com_tendermint_tendermint_abci_types_types_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var errors_pb = require('./errors_pb.js');
goog.object.extend(proto, errors_pb);
var names_pb = require('./names_pb.js');
goog.object.extend(proto, names_pb);
var txs_pb = require('./txs_pb.js');
goog.object.extend(proto, txs_pb);
var permission_pb = require('./permission_pb.js');
goog.object.extend(proto, permission_pb);
var spec_pb = require('./spec_pb.js');
goog.object.extend(proto, spec_pb);
goog.exportSymbol('proto.exec.BeginBlock', null, global);
goog.exportSymbol('proto.exec.BeginTx', null, global);
goog.exportSymbol('proto.exec.BlockExecution', null, global);
goog.exportSymbol('proto.exec.CallData', null, global);
goog.exportSymbol('proto.exec.CallEvent', null, global);
goog.exportSymbol('proto.exec.EndBlock', null, global);
goog.exportSymbol('proto.exec.EndTx', null, global);
goog.exportSymbol('proto.exec.Event', null, global);
goog.exportSymbol('proto.exec.GovernAccountEvent', null, global);
goog.exportSymbol('proto.exec.Header', null, global);
goog.exportSymbol('proto.exec.InputEvent', null, global);
goog.exportSymbol('proto.exec.LogEvent', null, global);
goog.exportSymbol('proto.exec.Origin', null, global);
goog.exportSymbol('proto.exec.OutputEvent', null, global);
goog.exportSymbol('proto.exec.Result', null, global);
goog.exportSymbol('proto.exec.StreamEvent', null, global);
goog.exportSymbol('proto.exec.StreamEvents', null, global);
goog.exportSymbol('proto.exec.TxExecution', null, global);
goog.exportSymbol('proto.exec.TxExecutionKey', null, global);
goog.exportSymbol('proto.exec.TxHeader', 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.exec.StreamEvents = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.exec.StreamEvents.repeatedFields_, null);
};
goog.inherits(proto.exec.StreamEvents, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.StreamEvents.displayName = 'proto.exec.StreamEvents';
}
/**
* 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.exec.StreamEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.StreamEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.StreamEvent.displayName = 'proto.exec.StreamEvent';
}
/**
* 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.exec.BeginBlock = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.BeginBlock, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.BeginBlock.displayName = 'proto.exec.BeginBlock';
}
/**
* 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.exec.EndBlock = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.EndBlock, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.EndBlock.displayName = 'proto.exec.EndBlock';
}
/**
* 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.exec.BeginTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.BeginTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.BeginTx.displayName = 'proto.exec.BeginTx';
}
/**
* 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.exec.EndTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.EndTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.EndTx.displayName = 'proto.exec.EndTx';
}
/**
* 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.exec.TxHeader = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.TxHeader, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.TxHeader.displayName = 'proto.exec.TxHeader';
}
/**
* 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.exec.BlockExecution = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.exec.BlockExecution.repeatedFields_, null);
};
goog.inherits(proto.exec.BlockExecution, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.BlockExecution.displayName = 'proto.exec.BlockExecution';
}
/**
* 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.exec.TxExecutionKey = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.TxExecutionKey, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.TxExecutionKey.displayName = 'proto.exec.TxExecutionKey';
}
/**
* 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.exec.TxExecution = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.exec.TxExecution.repeatedFields_, null);
};
goog.inherits(proto.exec.TxExecution, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.TxExecution.displayName = 'proto.exec.TxExecution';
}
/**
* 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.exec.Origin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.Origin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.Origin.displayName = 'proto.exec.Origin';
}
/**
* 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.exec.Header = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.Header, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.Header.displayName = 'proto.exec.Header';
}
/**
* 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.exec.Event = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.Event, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.Event.displayName = 'proto.exec.Event';
}
/**
* 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.exec.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.Result.displayName = 'proto.exec.Result';
}
/**
* 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.exec.LogEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.exec.LogEvent.repeatedFields_, null);
};
goog.inherits(proto.exec.LogEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.LogEvent.displayName = 'proto.exec.LogEvent';
}
/**
* 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.exec.CallEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.CallEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.CallEvent.displayName = 'proto.exec.CallEvent';
}
/**
* 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.exec.GovernAccountEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.GovernAccountEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.GovernAccountEvent.displayName = 'proto.exec.GovernAccountEvent';
}
/**
* 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.exec.InputEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.InputEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.InputEvent.displayName = 'proto.exec.InputEvent';
}
/**
* 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.exec.OutputEvent = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.OutputEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.OutputEvent.displayName = 'proto.exec.OutputEvent';
}
/**
* 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.exec.CallData = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.exec.CallData, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.exec.CallData.displayName = 'proto.exec.CallData';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.exec.StreamEvents.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.exec.StreamEvents.prototype.toObject = function(opt_includeInstance) {
return proto.exec.StreamEvents.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.exec.StreamEvents} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.StreamEvents.toObject = function(includeInstance, msg) {
var f, obj = {
streameventsList: jspb.Message.toObjectList(msg.getStreameventsList(),
proto.exec.StreamEvent.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.exec.StreamEvents}
*/
proto.exec.StreamEvents.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.exec.StreamEvents;
return proto.exec.StreamEvents.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.exec.StreamEvents} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.exec.StreamEvents}
*/
proto.exec.StreamEvents.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.exec.StreamEvent;
reader.readMessage(value,proto.exec.StreamEvent.deserializeBinaryFromReader);
msg.addStreamevents(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.exec.StreamEvents.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.exec.StreamEvents.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.exec.StreamEvents} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.StreamEvents.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStreameventsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.exec.StreamEvent.serializeBinaryToWriter
);
}
};
/**
* repeated StreamEvent StreamEvents = 1;
* @return {!Array<!proto.exec.StreamEvent>}
*/
proto.exec.StreamEvents.prototype.getStreameventsList = function() {
return /** @type{!Array<!proto.exec.StreamEvent>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.exec.StreamEvent, 1));
};
/**
* @param {!Array<!proto.exec.StreamEvent>} value
* @return {!proto.exec.StreamEvents} returns this
*/
proto.exec.StreamEvents.prototype.setStreameventsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.exec.StreamEvent=} opt_value
* @param {number=} opt_index
* @return {!proto.exec.StreamEvent}
*/
proto.exec.StreamEvents.prototype.addStreamevents = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.exec.StreamEvent, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.exec.StreamEvents} returns this
*/
proto.exec.StreamEvents.prototype.clearStreameventsList = function() {
return this.setStreameventsList([]);
};
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.exec.StreamEvent.prototype.toObject = function(opt_includeInstance) {
return proto.exec.StreamEvent.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.exec.StreamEvent} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.StreamEvent.toObject = function(includeInstance, msg) {
var f, obj = {
beginblock: (f = msg.getBeginblock()) && proto.exec.BeginBlock.toObject(includeInstance, f),
begintx: (f = msg.getBegintx()) && proto.exec.BeginTx.toObject(includeInstance, f),
envelope: (f = msg.getEnvelope()) && txs_pb.Envelope.toObject(includeInstance, f),
event: (f = msg.getEvent()) && proto.exec.Event.toObject(includeInstance, f),
endtx: (f = msg.getEndtx()) && proto.exec.EndTx.toObject(includeInstance, f),
endblock: (f = msg.getEndblock()) && proto.exec.EndBlock.toObject(includeInstance, 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.exec.StreamEvent}
*/
proto.exec.StreamEvent.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.exec.StreamEvent;
return proto.exec.StreamEvent.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.exec.StreamEvent} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.exec.StreamEvent}
*/
proto.exec.StreamEvent.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.exec.BeginBlock;
reader.readMessage(value,proto.exec.BeginBlock.deserializeBinaryFromReader);
msg.setBeginblock(value);
break;
case 2:
var value = new proto.exec.BeginTx;
reader.readMessage(value,proto.exec.BeginTx.deserializeBinaryFromReader);
msg.setBegintx(value);
break;
case 3:
var value = new txs_pb.Envelope;
reader.readMessage(value,txs_pb.Envelope.deserializeBinaryFromReader);
msg.setEnvelope(value);
break;
case 4:
var value = new proto.exec.Event;
reader.readMessage(value,proto.exec.Event.deserializeBinaryFromReader);
msg.setEvent(value);
break;
case 5:
var value = new proto.exec.EndTx;
reader.readMessage(value,proto.exec.EndTx.deserializeBinaryFromReader);
msg.setEndtx(value);
break;
case 6:
var value = new proto.exec.EndBlock;
reader.readMessage(value,proto.exec.EndBlock.deserializeBinaryFromReader);
msg.setEndblock(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.exec.StreamEvent.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.exec.StreamEvent.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.exec.StreamEvent} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.StreamEvent.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBeginblock();
if (f != null) {
writer.writeMessage(
1,
f,
proto.exec.BeginBlock.serializeBinaryToWriter
);
}
f = message.getBegintx();
if (f != null) {
writer.writeMessage(
2,
f,
proto.exec.BeginTx.serializeBinaryToWriter
);
}
f = message.getEnvelope();
if (f != null) {
writer.writeMessage(
3,
f,
txs_pb.Envelope.serializeBinaryToWriter
);
}
f = message.getEvent();
if (f != null) {
writer.writeMessage(
4,
f,
proto.exec.Event.serializeBinaryToWriter
);
}
f = message.getEndtx();
if (f != null) {
writer.writeMessage(
5,
f,
proto.exec.EndTx.serializeBinaryToWriter
);
}
f = message.getEndblock();
if (f != null) {
writer.writeMessage(
6,
f,
proto.exec.EndBlock.serializeBinaryToWriter
);
}
};
/**
* optional BeginBlock BeginBlock = 1;
* @return {?proto.exec.BeginBlock}
*/
proto.exec.StreamEvent.prototype.getBeginblock = function() {
return /** @type{?proto.exec.BeginBlock} */ (
jspb.Message.getWrapperField(this, proto.exec.BeginBlock, 1));
};
/**
* @param {?proto.exec.BeginBlock|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setBeginblock = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearBeginblock = function() {
return this.setBeginblock(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasBeginblock = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional BeginTx BeginTx = 2;
* @return {?proto.exec.BeginTx}
*/
proto.exec.StreamEvent.prototype.getBegintx = function() {
return /** @type{?proto.exec.BeginTx} */ (
jspb.Message.getWrapperField(this, proto.exec.BeginTx, 2));
};
/**
* @param {?proto.exec.BeginTx|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setBegintx = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearBegintx = function() {
return this.setBegintx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasBegintx = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional txs.Envelope Envelope = 3;
* @return {?proto.txs.Envelope}
*/
proto.exec.StreamEvent.prototype.getEnvelope = function() {
return /** @type{?proto.txs.Envelope} */ (
jspb.Message.getWrapperField(this, txs_pb.Envelope, 3));
};
/**
* @param {?proto.txs.Envelope|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setEnvelope = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearEnvelope = function() {
return this.setEnvelope(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasEnvelope = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Event Event = 4;
* @return {?proto.exec.Event}
*/
proto.exec.StreamEvent.prototype.getEvent = function() {
return /** @type{?proto.exec.Event} */ (
jspb.Message.getWrapperField(this, proto.exec.Event, 4));
};
/**
* @param {?proto.exec.Event|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setEvent = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearEvent = function() {
return this.setEvent(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasEvent = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional EndTx EndTx = 5;
* @return {?proto.exec.EndTx}
*/
proto.exec.StreamEvent.prototype.getEndtx = function() {
return /** @type{?proto.exec.EndTx} */ (
jspb.Message.getWrapperField(this, proto.exec.EndTx, 5));
};
/**
* @param {?proto.exec.EndTx|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setEndtx = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearEndtx = function() {
return this.setEndtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasEndtx = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional EndBlock EndBlock = 6;
* @return {?proto.exec.EndBlock}
*/
proto.exec.StreamEvent.prototype.getEndblock = function() {
return /** @type{?proto.exec.EndBlock} */ (
jspb.Message.getWrapperField(this, proto.exec.EndBlock, 6));
};
/**
* @param {?proto.exec.EndBlock|undefined} value
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.setEndblock = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.StreamEvent} returns this
*/
proto.exec.StreamEvent.prototype.clearEndblock = function() {
return this.setEndblock(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.StreamEvent.prototype.hasEndblock = function() {
return jspb.Message.getField(this, 6) != null;
};
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.exec.BeginBlock.prototype.toObject = function(opt_includeInstance) {
return proto.exec.BeginBlock.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.exec.BeginBlock} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.BeginBlock.toObject = function(includeInstance, msg) {
var f, obj = {
height: jspb.Message.getFieldWithDefault(msg, 1, 0),
header: (f = msg.getHeader()) && github_com_tendermint_tendermint_abci_types_types_pb.Header.toObject(includeInstance, f),
hash: msg.getHash_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.exec.BeginBlock}
*/
proto.exec.BeginBlock.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.exec.BeginBlock;
return proto.exec.BeginBlock.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.exec.BeginBlock} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.exec.BeginBlock}
*/
proto.exec.BeginBlock.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setHeight(value);
break;
case 2:
var value = new github_com_tendermint_tendermint_abci_types_types_pb.Header;
reader.readMessage(value,github_com_tendermint_tendermint_abci_types_types_pb.Header.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setHash(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.exec.BeginBlock.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.exec.BeginBlock.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.exec.BeginBlock} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.BeginBlock.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeight();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getHeader();
if (f != null) {
writer.writeMessage(
2,
f,
github_com_tendermint_tendermint_abci_types_types_pb.Header.serializeBinaryToWriter
);
}
f = message.getHash_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
};
/**
* optional uint64 Height = 1;
* @return {number}
*/
proto.exec.BeginBlock.prototype.getHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.exec.BeginBlock} returns this
*/
proto.exec.BeginBlock.prototype.setHeight = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional types.Header Header = 2;
* @return {?proto.types.Header}
*/
proto.exec.BeginBlock.prototype.getHeader = function() {
return /** @type{?proto.types.Header} */ (
jspb.Message.getWrapperField(this, github_com_tendermint_tendermint_abci_types_types_pb.Header, 2));
};
/**
* @param {?proto.types.Header|undefined} value
* @return {!proto.exec.BeginBlock} returns this
*/
proto.exec.BeginBlock.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.BeginBlock} returns this
*/
proto.exec.BeginBlock.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.BeginBlock.prototype.hasHeader = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional bytes Hash = 3;
* @return {!(string|Uint8Array)}
*/
proto.exec.BeginBlock.prototype.getHash = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes Hash = 3;
* This is a type-conversion wrapper around `getHash()`
* @return {string}
*/
proto.exec.BeginBlock.prototype.getHash_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getHash()));
};
/**
* optional bytes Hash = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getHash()`
* @return {!Uint8Array}
*/
proto.exec.BeginBlock.prototype.getHash_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getHash()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.exec.BeginBlock} returns this
*/
proto.exec.BeginBlock.prototype.setHash = function(value) {
return jspb.Message.setProto3BytesField(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.exec.EndBlock.prototype.toObject = function(opt_includeInstance) {
return proto.exec.EndBlock.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.exec.EndBlock} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.EndBlock.toObject = function(includeInstance, msg) {
var f, obj = {
height: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.exec.EndBlock}
*/
proto.exec.EndBlock.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.exec.EndBlock;
return proto.exec.EndBlock.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.exec.EndBlock} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.exec.EndBlock}
*/
proto.exec.EndBlock.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setHeight(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.exec.EndBlock.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.exec.EndBlock.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.exec.EndBlock} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.EndBlock.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeight();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
};
/**
* optional uint64 Height = 1;
* @return {number}
*/
proto.exec.EndBlock.prototype.getHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.exec.EndBlock} returns this
*/
proto.exec.EndBlock.prototype.setHeight = function(value) {
return jspb.Message.setProto3IntField(this, 1, 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.exec.BeginTx.prototype.toObject = function(opt_includeInstance) {
return proto.exec.BeginTx.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.exec.BeginTx} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.BeginTx.toObject = function(includeInstance, msg) {
var f, obj = {
txheader: (f = msg.getTxheader()) && proto.exec.TxHeader.toObject(includeInstance, f),
result: (f = msg.getResult()) && proto.exec.Result.toObject(includeInstance, f),
exception: (f = msg.getException()) && errors_pb.Exception.toObject(includeInstance, 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.exec.BeginTx}
*/
proto.exec.BeginTx.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.exec.BeginTx;
return proto.exec.BeginTx.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.exec.BeginTx} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.exec.BeginTx}
*/
proto.exec.BeginTx.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.exec.TxHeader;
reader.readMessage(value,proto.exec.TxHeader.deserializeBinaryFromReader);
msg.setTxheader(value);
break;
case 2:
var value = new proto.exec.Result;
reader.readMessage(value,proto.exec.Result.deserializeBinaryFromReader);
msg.setResult(value);
break;
case 4:
var value = new errors_pb.Exception;
reader.readMessage(value,errors_pb.Exception.deserializeBinaryFromReader);
msg.setException(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.exec.BeginTx.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.exec.BeginTx.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.exec.BeginTx} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.BeginTx.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTxheader();
if (f != null) {
writer.writeMessage(
1,
f,
proto.exec.TxHeader.serializeBinaryToWriter
);
}
f = message.getResult();
if (f != null) {
writer.writeMessage(
2,
f,
proto.exec.Result.serializeBinaryToWriter
);
}
f = message.getException();
if (f != null) {
writer.writeMessage(
4,
f,
errors_pb.Exception.serializeBinaryToWriter
);
}
};
/**
* optional TxHeader TxHeader = 1;
* @return {?proto.exec.TxHeader}
*/
proto.exec.BeginTx.prototype.getTxheader = function() {
return /** @type{?proto.exec.TxHeader} */ (
jspb.Message.getWrapperField(this, proto.exec.TxHeader, 1));
};
/**
* @param {?proto.exec.TxHeader|undefined} value
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.setTxheader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.clearTxheader = function() {
return this.setTxheader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.BeginTx.prototype.hasTxheader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result Result = 2;
* @return {?proto.exec.Result}
*/
proto.exec.BeginTx.prototype.getResult = function() {
return /** @type{?proto.exec.Result} */ (
jspb.Message.getWrapperField(this, proto.exec.Result, 2));
};
/**
* @param {?proto.exec.Result|undefined} value
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.BeginTx.prototype.hasResult = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional errors.Exception Exception = 4;
* @return {?proto.errors.Exception}
*/
proto.exec.BeginTx.prototype.getException = function() {
return /** @type{?proto.errors.Exception} */ (
jspb.Message.getWrapperField(this, errors_pb.Exception, 4));
};
/**
* @param {?proto.errors.Exception|undefined} value
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.setException = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.exec.BeginTx} returns this
*/
proto.exec.BeginTx.prototype.clearException = function() {
return this.setException(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.exec.BeginTx.prototype.hasException = function() {
return jspb.Message.getField(this, 4) != null;
};
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.exec.EndTx.prototype.toObject = function(opt_includeInstance) {
return proto.exec.EndTx.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.exec.EndTx} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.exec.EndTx.toObject = function(includeInstance, msg) {
var f, obj = {
txhash: msg.getTxhash_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = ms