@emeraldpay/api
Version:
Common code for Emerald gRPC APIs
1,549 lines (1,425 loc) • 234 kB
JavaScript
// source: blockchain.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() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var common_pb = require('./common_pb.js');
goog.object.extend(proto, common_pb);
goog.exportSymbol('proto.emerald.AddressAllowance', null, global);
goog.exportSymbol('proto.emerald.AddressAllowanceRequest', null, global);
goog.exportSymbol('proto.emerald.AddressBalance', null, global);
goog.exportSymbol('proto.emerald.AddressBalance.BalanceTypeCase', null, global);
goog.exportSymbol('proto.emerald.AndSelector', null, global);
goog.exportSymbol('proto.emerald.AvailabilityEnum', null, global);
goog.exportSymbol('proto.emerald.BalanceRequest', null, global);
goog.exportSymbol('proto.emerald.BalanceRequest.BalanceTypeCase', null, global);
goog.exportSymbol('proto.emerald.BitcoinStdFees', null, global);
goog.exportSymbol('proto.emerald.Capabilities', null, global);
goog.exportSymbol('proto.emerald.ChainHead', null, global);
goog.exportSymbol('proto.emerald.ChainStatus', null, global);
goog.exportSymbol('proto.emerald.DescribeChain', null, global);
goog.exportSymbol('proto.emerald.DescribeRequest', null, global);
goog.exportSymbol('proto.emerald.DescribeResponse', null, global);
goog.exportSymbol('proto.emerald.EstimateFeeRequest', null, global);
goog.exportSymbol('proto.emerald.EstimateFeeResponse', null, global);
goog.exportSymbol('proto.emerald.EstimateFeeResponse.FeeTypeCase', null, global);
goog.exportSymbol('proto.emerald.EthereumExtFees', null, global);
goog.exportSymbol('proto.emerald.EthereumStdFees', null, global);
goog.exportSymbol('proto.emerald.ExistsSelector', null, global);
goog.exportSymbol('proto.emerald.FeeEstimationMode', null, global);
goog.exportSymbol('proto.emerald.Label', null, global);
goog.exportSymbol('proto.emerald.LabelSelector', null, global);
goog.exportSymbol('proto.emerald.NativeCallItem', null, global);
goog.exportSymbol('proto.emerald.NativeCallReplyItem', null, global);
goog.exportSymbol('proto.emerald.NativeCallReplySignature', null, global);
goog.exportSymbol('proto.emerald.NativeCallRequest', null, global);
goog.exportSymbol('proto.emerald.NativeSubscribeReplyItem', null, global);
goog.exportSymbol('proto.emerald.NativeSubscribeRequest', null, global);
goog.exportSymbol('proto.emerald.NodeDetails', null, global);
goog.exportSymbol('proto.emerald.NotSelector', null, global);
goog.exportSymbol('proto.emerald.OrSelector', null, global);
goog.exportSymbol('proto.emerald.Selector', null, global);
goog.exportSymbol('proto.emerald.Selector.SelectorTypeCase', null, global);
goog.exportSymbol('proto.emerald.StatusRequest', null, global);
goog.exportSymbol('proto.emerald.TxStatus', null, global);
goog.exportSymbol('proto.emerald.TxStatusRequest', null, global);
goog.exportSymbol('proto.emerald.Utxo', 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.emerald.NativeCallRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.NativeCallRequest.repeatedFields_, null);
};
goog.inherits(proto.emerald.NativeCallRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeCallRequest.displayName = 'proto.emerald.NativeCallRequest';
}
/**
* 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.emerald.NativeCallItem = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NativeCallItem, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeCallItem.displayName = 'proto.emerald.NativeCallItem';
}
/**
* 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.emerald.NativeCallReplySignature = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NativeCallReplySignature, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeCallReplySignature.displayName = 'proto.emerald.NativeCallReplySignature';
}
/**
* 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.emerald.NativeCallReplyItem = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NativeCallReplyItem, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeCallReplyItem.displayName = 'proto.emerald.NativeCallReplyItem';
}
/**
* 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.emerald.NativeSubscribeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NativeSubscribeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeSubscribeRequest.displayName = 'proto.emerald.NativeSubscribeRequest';
}
/**
* 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.emerald.NativeSubscribeReplyItem = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NativeSubscribeReplyItem, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NativeSubscribeReplyItem.displayName = 'proto.emerald.NativeSubscribeReplyItem';
}
/**
* 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.emerald.ChainHead = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.ChainHead, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.ChainHead.displayName = 'proto.emerald.ChainHead';
}
/**
* 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.emerald.TxStatusRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.TxStatusRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.TxStatusRequest.displayName = 'proto.emerald.TxStatusRequest';
}
/**
* 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.emerald.TxStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.TxStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.TxStatus.displayName = 'proto.emerald.TxStatus';
}
/**
* 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.emerald.BalanceRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.emerald.BalanceRequest.oneofGroups_);
};
goog.inherits(proto.emerald.BalanceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.BalanceRequest.displayName = 'proto.emerald.BalanceRequest';
}
/**
* 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.emerald.AddressBalance = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.AddressBalance.repeatedFields_, proto.emerald.AddressBalance.oneofGroups_);
};
goog.inherits(proto.emerald.AddressBalance, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.AddressBalance.displayName = 'proto.emerald.AddressBalance';
}
/**
* 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.emerald.AddressAllowanceRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.AddressAllowanceRequest.repeatedFields_, null);
};
goog.inherits(proto.emerald.AddressAllowanceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.AddressAllowanceRequest.displayName = 'proto.emerald.AddressAllowanceRequest';
}
/**
* 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.emerald.AddressAllowance = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.AddressAllowance, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.AddressAllowance.displayName = 'proto.emerald.AddressAllowance';
}
/**
* 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.emerald.Utxo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.Utxo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.Utxo.displayName = 'proto.emerald.Utxo';
}
/**
* 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.emerald.DescribeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.DescribeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.DescribeRequest.displayName = 'proto.emerald.DescribeRequest';
}
/**
* 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.emerald.DescribeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.DescribeResponse.repeatedFields_, null);
};
goog.inherits(proto.emerald.DescribeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.DescribeResponse.displayName = 'proto.emerald.DescribeResponse';
}
/**
* 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.emerald.DescribeChain = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.DescribeChain.repeatedFields_, null);
};
goog.inherits(proto.emerald.DescribeChain, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.DescribeChain.displayName = 'proto.emerald.DescribeChain';
}
/**
* 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.emerald.StatusRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.StatusRequest.repeatedFields_, null);
};
goog.inherits(proto.emerald.StatusRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.StatusRequest.displayName = 'proto.emerald.StatusRequest';
}
/**
* 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.emerald.ChainStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.ChainStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.ChainStatus.displayName = 'proto.emerald.ChainStatus';
}
/**
* 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.emerald.NodeDetails = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.NodeDetails.repeatedFields_, null);
};
goog.inherits(proto.emerald.NodeDetails, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NodeDetails.displayName = 'proto.emerald.NodeDetails';
}
/**
* 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.emerald.Label = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.Label, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.Label.displayName = 'proto.emerald.Label';
}
/**
* 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.emerald.Selector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.emerald.Selector.oneofGroups_);
};
goog.inherits(proto.emerald.Selector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.Selector.displayName = 'proto.emerald.Selector';
}
/**
* 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.emerald.LabelSelector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.LabelSelector.repeatedFields_, null);
};
goog.inherits(proto.emerald.LabelSelector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.LabelSelector.displayName = 'proto.emerald.LabelSelector';
}
/**
* 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.emerald.OrSelector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.OrSelector.repeatedFields_, null);
};
goog.inherits(proto.emerald.OrSelector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.OrSelector.displayName = 'proto.emerald.OrSelector';
}
/**
* 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.emerald.AndSelector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.emerald.AndSelector.repeatedFields_, null);
};
goog.inherits(proto.emerald.AndSelector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.AndSelector.displayName = 'proto.emerald.AndSelector';
}
/**
* 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.emerald.NotSelector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.NotSelector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.NotSelector.displayName = 'proto.emerald.NotSelector';
}
/**
* 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.emerald.ExistsSelector = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.ExistsSelector, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.ExistsSelector.displayName = 'proto.emerald.ExistsSelector';
}
/**
* 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.emerald.EstimateFeeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.EstimateFeeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.EstimateFeeRequest.displayName = 'proto.emerald.EstimateFeeRequest';
}
/**
* 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.emerald.EstimateFeeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.emerald.EstimateFeeResponse.oneofGroups_);
};
goog.inherits(proto.emerald.EstimateFeeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.EstimateFeeResponse.displayName = 'proto.emerald.EstimateFeeResponse';
}
/**
* 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.emerald.EthereumStdFees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.EthereumStdFees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.EthereumStdFees.displayName = 'proto.emerald.EthereumStdFees';
}
/**
* 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.emerald.EthereumExtFees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.EthereumExtFees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.EthereumExtFees.displayName = 'proto.emerald.EthereumExtFees';
}
/**
* 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.emerald.BitcoinStdFees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.emerald.BitcoinStdFees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.emerald.BitcoinStdFees.displayName = 'proto.emerald.BitcoinStdFees';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.emerald.NativeCallRequest.repeatedFields_ = [2];
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.emerald.NativeCallRequest.prototype.toObject = function(opt_includeInstance) {
return proto.emerald.NativeCallRequest.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.emerald.NativeCallRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallRequest.toObject = function(includeInstance, msg) {
var f, obj = {
chain: jspb.Message.getFieldWithDefault(msg, 1, 0),
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
proto.emerald.NativeCallItem.toObject, includeInstance),
selector: (f = msg.getSelector()) && proto.emerald.Selector.toObject(includeInstance, f),
quorum: jspb.Message.getFieldWithDefault(msg, 4, 0),
minAvailability: jspb.Message.getFieldWithDefault(msg, 5, 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.emerald.NativeCallRequest}
*/
proto.emerald.NativeCallRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.emerald.NativeCallRequest;
return proto.emerald.NativeCallRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.emerald.NativeCallRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.emerald.NativeCallRequest}
*/
proto.emerald.NativeCallRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.emerald.ChainRef} */ (reader.readEnum());
msg.setChain(value);
break;
case 2:
var value = new proto.emerald.NativeCallItem;
reader.readMessage(value,proto.emerald.NativeCallItem.deserializeBinaryFromReader);
msg.addItems(value);
break;
case 3:
var value = new proto.emerald.Selector;
reader.readMessage(value,proto.emerald.Selector.deserializeBinaryFromReader);
msg.setSelector(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setQuorum(value);
break;
case 5:
var value = /** @type {!proto.emerald.AvailabilityEnum} */ (reader.readEnum());
msg.setMinAvailability(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.emerald.NativeCallRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.emerald.NativeCallRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.emerald.NativeCallRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChain();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getItemsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.emerald.NativeCallItem.serializeBinaryToWriter
);
}
f = message.getSelector();
if (f != null) {
writer.writeMessage(
3,
f,
proto.emerald.Selector.serializeBinaryToWriter
);
}
f = message.getQuorum();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getMinAvailability();
if (f !== 0.0) {
writer.writeEnum(
5,
f
);
}
};
/**
* optional ChainRef chain = 1;
* @return {!proto.emerald.ChainRef}
*/
proto.emerald.NativeCallRequest.prototype.getChain = function() {
return /** @type {!proto.emerald.ChainRef} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.emerald.ChainRef} value
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.setChain = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* repeated NativeCallItem items = 2;
* @return {!Array<!proto.emerald.NativeCallItem>}
*/
proto.emerald.NativeCallRequest.prototype.getItemsList = function() {
return /** @type{!Array<!proto.emerald.NativeCallItem>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.emerald.NativeCallItem, 2));
};
/**
* @param {!Array<!proto.emerald.NativeCallItem>} value
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.setItemsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.emerald.NativeCallItem=} opt_value
* @param {number=} opt_index
* @return {!proto.emerald.NativeCallItem}
*/
proto.emerald.NativeCallRequest.prototype.addItems = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.emerald.NativeCallItem, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.clearItemsList = function() {
return this.setItemsList([]);
};
/**
* optional Selector selector = 3;
* @return {?proto.emerald.Selector}
*/
proto.emerald.NativeCallRequest.prototype.getSelector = function() {
return /** @type{?proto.emerald.Selector} */ (
jspb.Message.getWrapperField(this, proto.emerald.Selector, 3));
};
/**
* @param {?proto.emerald.Selector|undefined} value
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.setSelector = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.clearSelector = function() {
return this.setSelector(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.emerald.NativeCallRequest.prototype.hasSelector = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional int32 quorum = 4;
* @return {number}
*/
proto.emerald.NativeCallRequest.prototype.getQuorum = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.setQuorum = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional AvailabilityEnum min_availability = 5;
* @return {!proto.emerald.AvailabilityEnum}
*/
proto.emerald.NativeCallRequest.prototype.getMinAvailability = function() {
return /** @type {!proto.emerald.AvailabilityEnum} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {!proto.emerald.AvailabilityEnum} value
* @return {!proto.emerald.NativeCallRequest} returns this
*/
proto.emerald.NativeCallRequest.prototype.setMinAvailability = function(value) {
return jspb.Message.setProto3EnumField(this, 5, 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.emerald.NativeCallItem.prototype.toObject = function(opt_includeInstance) {
return proto.emerald.NativeCallItem.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.emerald.NativeCallItem} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallItem.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
method: jspb.Message.getFieldWithDefault(msg, 3, ""),
payload: msg.getPayload_asB64(),
nonce: jspb.Message.getFieldWithDefault(msg, 5, 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.emerald.NativeCallItem}
*/
proto.emerald.NativeCallItem.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.emerald.NativeCallItem;
return proto.emerald.NativeCallItem.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.emerald.NativeCallItem} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.emerald.NativeCallItem}
*/
proto.emerald.NativeCallItem.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint32());
msg.setId(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMethod(value);
break;
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPayload(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint64());
msg.setNonce(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.emerald.NativeCallItem.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.emerald.NativeCallItem.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.emerald.NativeCallItem} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallItem.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeUint32(
1,
f
);
}
f = message.getMethod();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getPayload_asU8();
if (f.length > 0) {
writer.writeBytes(
4,
f
);
}
f = message.getNonce();
if (f !== 0) {
writer.writeUint64(
5,
f
);
}
};
/**
* optional uint32 id = 1;
* @return {number}
*/
proto.emerald.NativeCallItem.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.emerald.NativeCallItem} returns this
*/
proto.emerald.NativeCallItem.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string method = 3;
* @return {string}
*/
proto.emerald.NativeCallItem.prototype.getMethod = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.emerald.NativeCallItem} returns this
*/
proto.emerald.NativeCallItem.prototype.setMethod = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional bytes payload = 4;
* @return {string}
*/
proto.emerald.NativeCallItem.prototype.getPayload = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* optional bytes payload = 4;
* This is a type-conversion wrapper around `getPayload()`
* @return {string}
*/
proto.emerald.NativeCallItem.prototype.getPayload_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPayload()));
};
/**
* optional bytes payload = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPayload()`
* @return {!Uint8Array}
*/
proto.emerald.NativeCallItem.prototype.getPayload_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPayload()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.emerald.NativeCallItem} returns this
*/
proto.emerald.NativeCallItem.prototype.setPayload = function(value) {
return jspb.Message.setProto3BytesField(this, 4, value);
};
/**
* optional uint64 nonce = 5;
* @return {number}
*/
proto.emerald.NativeCallItem.prototype.getNonce = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.emerald.NativeCallItem} returns this
*/
proto.emerald.NativeCallItem.prototype.setNonce = function(value) {
return jspb.Message.setProto3IntField(this, 5, 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.emerald.NativeCallReplySignature.prototype.toObject = function(opt_includeInstance) {
return proto.emerald.NativeCallReplySignature.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.emerald.NativeCallReplySignature} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallReplySignature.toObject = function(includeInstance, msg) {
var f, obj = {
nonce: jspb.Message.getFieldWithDefault(msg, 1, 0),
signature: msg.getSignature_asB64(),
keyId: jspb.Message.getFieldWithDefault(msg, 3, 0),
upstreamId: jspb.Message.getFieldWithDefault(msg, 4, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.emerald.NativeCallReplySignature}
*/
proto.emerald.NativeCallReplySignature.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.emerald.NativeCallReplySignature;
return proto.emerald.NativeCallReplySignature.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.emerald.NativeCallReplySignature} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.emerald.NativeCallReplySignature}
*/
proto.emerald.NativeCallReplySignature.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.setNonce(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setSignature(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setKeyId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setUpstreamId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.emerald.NativeCallReplySignature.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.emerald.NativeCallReplySignature.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.emerald.NativeCallReplySignature} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.emerald.NativeCallReplySignature.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getNonce();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSignature_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getKeyId();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getUpstreamId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional uint64 nonce = 1;
* @return {number}
*/
proto.emerald.NativeCallReplySignature.prototype.getNonce = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.emerald.NativeCallReplySignature} returns this
*/
proto.emerald.NativeCallReplySignature.prototype.setNonce = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes signature = 2;
* @return {string}
*/
proto.emerald.NativeCallReplySignature.prototype.getSignature = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes signature = 2;
* This is a type-conversion wrapper around `getSignature()`
* @return {string}
*/
proto.emerald.NativeCallReplySignature.prototype.getSignature_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getSignature()));
};
/**
* optional bytes signature = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getSignature()`
* @return {!Uint8Array}
*/
proto.emerald.NativeCallReplySignature.prototype.getSignature_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSignature()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.emerald.NativeCallReplySignature} returns this
*/
proto.emerald.NativeCallReplySignature.prototype.setSignature = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional uint64 key_id = 3;
* @return {number}
*/
proto.emerald.NativeCallReplySignature.prototype.getKeyId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.emerald.NativeCallReplySignature} returns this
*/
proto.emerald.NativeCallReplySignature.prototype.setKeyId = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string upstream_id = 4;
* @return {string}
*/
proto.emerald.NativeCallReplySignature.prototype.getUpstreamId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.emerald.NativeCallReplySignature} returns this
*/
proto.emerald.NativeCallReplySignature.prototype.setUpstreamId = function(value) {
return jspb.Message.setProto3StringField(this, 4, 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.emerald.NativeCallReplyItem.prototype.toObject = function(opt_includeInstance) {
return proto.emerald.NativeCallReplyItem.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} in