@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,629 lines (1,537 loc) • 99.1 kB
JavaScript
// source: oracle/v1/tx.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf')
var goog = jspb
var global = Function('return this')()
var gogoproto_gogo_pb = require('../../gogoproto/gogo_pb.js')
goog.object.extend(proto, gogoproto_gogo_pb)
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
goog.object.extend(proto, google_protobuf_timestamp_pb)
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
goog.object.extend(proto, google_protobuf_any_pb)
var oracle_v1_oracle_pb = require('../../oracle/v1/oracle_pb.js')
goog.object.extend(proto, oracle_v1_oracle_pb)
var cosmos_base_v1beta1_coin_pb = require('../../cosmos/base/v1beta1/coin_pb.js')
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb)
goog.exportSymbol('proto.oracle.v1.MsgActivate', null, global)
goog.exportSymbol('proto.oracle.v1.MsgActivateResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgCreateDataSource', null, global)
goog.exportSymbol('proto.oracle.v1.MsgCreateDataSourceResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScript', null, global)
goog.exportSymbol('proto.oracle.v1.MsgCreateOracleScriptResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgEditDataSource', null, global)
goog.exportSymbol('proto.oracle.v1.MsgEditDataSourceResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgEditOracleScript', null, global)
goog.exportSymbol('proto.oracle.v1.MsgEditOracleScriptResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgReportData', null, global)
goog.exportSymbol('proto.oracle.v1.MsgReportDataResponse', null, global)
goog.exportSymbol('proto.oracle.v1.MsgRequestData', null, global)
goog.exportSymbol('proto.oracle.v1.MsgRequestDataResponse', 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.oracle.v1.MsgRequestData = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.oracle.v1.MsgRequestData.repeatedFields_,
null,
)
}
goog.inherits(proto.oracle.v1.MsgRequestData, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgRequestData.displayName = 'proto.oracle.v1.MsgRequestData'
}
/**
* 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.oracle.v1.MsgRequestDataResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgRequestDataResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgRequestDataResponse.displayName =
'proto.oracle.v1.MsgRequestDataResponse'
}
/**
* 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.oracle.v1.MsgReportData = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.oracle.v1.MsgReportData.repeatedFields_,
null,
)
}
goog.inherits(proto.oracle.v1.MsgReportData, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgReportData.displayName = 'proto.oracle.v1.MsgReportData'
}
/**
* 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.oracle.v1.MsgReportDataResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgReportDataResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgReportDataResponse.displayName =
'proto.oracle.v1.MsgReportDataResponse'
}
/**
* 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.oracle.v1.MsgCreateDataSource = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.oracle.v1.MsgCreateDataSource.repeatedFields_,
null,
)
}
goog.inherits(proto.oracle.v1.MsgCreateDataSource, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgCreateDataSource.displayName =
'proto.oracle.v1.MsgCreateDataSource'
}
/**
* 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.oracle.v1.MsgCreateDataSourceResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgCreateDataSourceResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgCreateDataSourceResponse.displayName =
'proto.oracle.v1.MsgCreateDataSourceResponse'
}
/**
* 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.oracle.v1.MsgEditDataSource = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.oracle.v1.MsgEditDataSource.repeatedFields_,
null,
)
}
goog.inherits(proto.oracle.v1.MsgEditDataSource, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgEditDataSource.displayName =
'proto.oracle.v1.MsgEditDataSource'
}
/**
* 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.oracle.v1.MsgEditDataSourceResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgEditDataSourceResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgEditDataSourceResponse.displayName =
'proto.oracle.v1.MsgEditDataSourceResponse'
}
/**
* 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.oracle.v1.MsgCreateOracleScript = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgCreateOracleScript, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgCreateOracleScript.displayName =
'proto.oracle.v1.MsgCreateOracleScript'
}
/**
* 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.oracle.v1.MsgCreateOracleScriptResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgCreateOracleScriptResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgCreateOracleScriptResponse.displayName =
'proto.oracle.v1.MsgCreateOracleScriptResponse'
}
/**
* 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.oracle.v1.MsgEditOracleScript = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgEditOracleScript, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgEditOracleScript.displayName =
'proto.oracle.v1.MsgEditOracleScript'
}
/**
* 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.oracle.v1.MsgEditOracleScriptResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgEditOracleScriptResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgEditOracleScriptResponse.displayName =
'proto.oracle.v1.MsgEditOracleScriptResponse'
}
/**
* 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.oracle.v1.MsgActivate = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgActivate, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgActivate.displayName = 'proto.oracle.v1.MsgActivate'
}
/**
* 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.oracle.v1.MsgActivateResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.oracle.v1.MsgActivateResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.oracle.v1.MsgActivateResponse.displayName =
'proto.oracle.v1.MsgActivateResponse'
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.oracle.v1.MsgRequestData.repeatedFields_ = [6]
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.oracle.v1.MsgRequestData.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgRequestData.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.oracle.v1.MsgRequestData} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgRequestData.toObject = function (includeInstance, msg) {
var f,
obj = {
oracleScriptId: jspb.Message.getFieldWithDefault(msg, 1, 0),
calldata: msg.getCalldata_asB64(),
askCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
minCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
clientId: jspb.Message.getFieldWithDefault(msg, 5, ''),
feeLimitList: jspb.Message.toObjectList(
msg.getFeeLimitList(),
cosmos_base_v1beta1_coin_pb.Coin.toObject,
includeInstance,
),
prepareGas: jspb.Message.getFieldWithDefault(msg, 7, 0),
executeGas: jspb.Message.getFieldWithDefault(msg, 8, 0),
sender: jspb.Message.getFieldWithDefault(msg, 9, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgRequestData}
*/
proto.oracle.v1.MsgRequestData.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgRequestData()
return proto.oracle.v1.MsgRequestData.deserializeBinaryFromReader(msg, reader)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.oracle.v1.MsgRequestData} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.oracle.v1.MsgRequestData}
*/
proto.oracle.v1.MsgRequestData.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.setOracleScriptId(value)
break
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes())
msg.setCalldata(value)
break
case 3:
var value = /** @type {number} */ (reader.readUint64())
msg.setAskCount(value)
break
case 4:
var value = /** @type {number} */ (reader.readUint64())
msg.setMinCount(value)
break
case 5:
var value = /** @type {string} */ (reader.readString())
msg.setClientId(value)
break
case 6:
var value = new cosmos_base_v1beta1_coin_pb.Coin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader,
)
msg.addFeeLimit(value)
break
case 7:
var value = /** @type {number} */ (reader.readUint64())
msg.setPrepareGas(value)
break
case 8:
var value = /** @type {number} */ (reader.readUint64())
msg.setExecuteGas(value)
break
case 9:
var value = /** @type {string} */ (reader.readString())
msg.setSender(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgRequestData.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter()
proto.oracle.v1.MsgRequestData.serializeBinaryToWriter(this, writer)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.oracle.v1.MsgRequestData} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgRequestData.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getOracleScriptId()
if (f !== 0) {
writer.writeUint64(1, f)
}
f = message.getCalldata_asU8()
if (f.length > 0) {
writer.writeBytes(2, f)
}
f = message.getAskCount()
if (f !== 0) {
writer.writeUint64(3, f)
}
f = message.getMinCount()
if (f !== 0) {
writer.writeUint64(4, f)
}
f = message.getClientId()
if (f.length > 0) {
writer.writeString(5, f)
}
f = message.getFeeLimitList()
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter,
)
}
f = message.getPrepareGas()
if (f !== 0) {
writer.writeUint64(7, f)
}
f = message.getExecuteGas()
if (f !== 0) {
writer.writeUint64(8, f)
}
f = message.getSender()
if (f.length > 0) {
writer.writeString(9, f)
}
}
/**
* optional uint64 oracle_script_id = 1;
* @return {number}
*/
proto.oracle.v1.MsgRequestData.prototype.getOracleScriptId = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setOracleScriptId = function (value) {
return jspb.Message.setProto3IntField(this, 1, value)
}
/**
* optional bytes calldata = 2;
* @return {!(string|Uint8Array)}
*/
proto.oracle.v1.MsgRequestData.prototype.getCalldata = function () {
return /** @type {!(string|Uint8Array)} */ (
jspb.Message.getFieldWithDefault(this, 2, '')
)
}
/**
* optional bytes calldata = 2;
* This is a type-conversion wrapper around `getCalldata()`
* @return {string}
*/
proto.oracle.v1.MsgRequestData.prototype.getCalldata_asB64 = function () {
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getCalldata()))
}
/**
* optional bytes calldata = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCalldata()`
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgRequestData.prototype.getCalldata_asU8 = function () {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getCalldata()))
}
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setCalldata = function (value) {
return jspb.Message.setProto3BytesField(this, 2, value)
}
/**
* optional uint64 ask_count = 3;
* @return {number}
*/
proto.oracle.v1.MsgRequestData.prototype.getAskCount = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setAskCount = function (value) {
return jspb.Message.setProto3IntField(this, 3, value)
}
/**
* optional uint64 min_count = 4;
* @return {number}
*/
proto.oracle.v1.MsgRequestData.prototype.getMinCount = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setMinCount = function (value) {
return jspb.Message.setProto3IntField(this, 4, value)
}
/**
* optional string client_id = 5;
* @return {string}
*/
proto.oracle.v1.MsgRequestData.prototype.getClientId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setClientId = function (value) {
return jspb.Message.setProto3StringField(this, 5, value)
}
/**
* repeated cosmos.base.v1beta1.Coin fee_limit = 6;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.oracle.v1.MsgRequestData.prototype.getFeeLimitList = function () {
return /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ (
jspb.Message.getRepeatedWrapperField(
this,
cosmos_base_v1beta1_coin_pb.Coin,
6,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setFeeLimitList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 6, value)
}
/**
* @param {!proto.cosmos.base.v1beta1.Coin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.oracle.v1.MsgRequestData.prototype.addFeeLimit = function (
opt_value,
opt_index,
) {
return jspb.Message.addToRepeatedWrapperField(
this,
6,
opt_value,
proto.cosmos.base.v1beta1.Coin,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.clearFeeLimitList = function () {
return this.setFeeLimitList([])
}
/**
* optional uint64 prepare_gas = 7;
* @return {number}
*/
proto.oracle.v1.MsgRequestData.prototype.getPrepareGas = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setPrepareGas = function (value) {
return jspb.Message.setProto3IntField(this, 7, value)
}
/**
* optional uint64 execute_gas = 8;
* @return {number}
*/
proto.oracle.v1.MsgRequestData.prototype.getExecuteGas = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setExecuteGas = function (value) {
return jspb.Message.setProto3IntField(this, 8, value)
}
/**
* optional string sender = 9;
* @return {string}
*/
proto.oracle.v1.MsgRequestData.prototype.getSender = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgRequestData} returns this
*/
proto.oracle.v1.MsgRequestData.prototype.setSender = function (value) {
return jspb.Message.setProto3StringField(this, 9, 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.oracle.v1.MsgRequestDataResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgRequestDataResponse.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.oracle.v1.MsgRequestDataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgRequestDataResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgRequestDataResponse}
*/
proto.oracle.v1.MsgRequestDataResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgRequestDataResponse()
return proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.oracle.v1.MsgRequestDataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.oracle.v1.MsgRequestDataResponse}
*/
proto.oracle.v1.MsgRequestDataResponse.deserializeBinaryFromReader = function (
msg,
reader,
) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgRequestDataResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter()
proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter(this, writer)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.oracle.v1.MsgRequestDataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgRequestDataResponse.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.oracle.v1.MsgReportData.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.oracle.v1.MsgReportData.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgReportData.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.oracle.v1.MsgReportData} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgReportData.toObject = function (includeInstance, msg) {
var f,
obj = {
requestId: jspb.Message.getFieldWithDefault(msg, 1, 0),
rawReportsList: jspb.Message.toObjectList(
msg.getRawReportsList(),
oracle_v1_oracle_pb.RawReport.toObject,
includeInstance,
),
validator: jspb.Message.getFieldWithDefault(msg, 3, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgReportData}
*/
proto.oracle.v1.MsgReportData.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgReportData()
return proto.oracle.v1.MsgReportData.deserializeBinaryFromReader(msg, reader)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.oracle.v1.MsgReportData} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.oracle.v1.MsgReportData}
*/
proto.oracle.v1.MsgReportData.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.setRequestId(value)
break
case 2:
var value = new oracle_v1_oracle_pb.RawReport()
reader.readMessage(
value,
oracle_v1_oracle_pb.RawReport.deserializeBinaryFromReader,
)
msg.addRawReports(value)
break
case 3:
var value = /** @type {string} */ (reader.readString())
msg.setValidator(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgReportData.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter()
proto.oracle.v1.MsgReportData.serializeBinaryToWriter(this, writer)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.oracle.v1.MsgReportData} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgReportData.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getRequestId()
if (f !== 0) {
writer.writeUint64(1, f)
}
f = message.getRawReportsList()
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
oracle_v1_oracle_pb.RawReport.serializeBinaryToWriter,
)
}
f = message.getValidator()
if (f.length > 0) {
writer.writeString(3, f)
}
}
/**
* optional uint64 request_id = 1;
* @return {number}
*/
proto.oracle.v1.MsgReportData.prototype.getRequestId = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0))
}
/**
* @param {number} value
* @return {!proto.oracle.v1.MsgReportData} returns this
*/
proto.oracle.v1.MsgReportData.prototype.setRequestId = function (value) {
return jspb.Message.setProto3IntField(this, 1, value)
}
/**
* repeated RawReport raw_reports = 2;
* @return {!Array<!proto.oracle.v1.RawReport>}
*/
proto.oracle.v1.MsgReportData.prototype.getRawReportsList = function () {
return /** @type{!Array<!proto.oracle.v1.RawReport>} */ (
jspb.Message.getRepeatedWrapperField(this, oracle_v1_oracle_pb.RawReport, 2)
)
}
/**
* @param {!Array<!proto.oracle.v1.RawReport>} value
* @return {!proto.oracle.v1.MsgReportData} returns this
*/
proto.oracle.v1.MsgReportData.prototype.setRawReportsList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value)
}
/**
* @param {!proto.oracle.v1.RawReport=} opt_value
* @param {number=} opt_index
* @return {!proto.oracle.v1.RawReport}
*/
proto.oracle.v1.MsgReportData.prototype.addRawReports = function (
opt_value,
opt_index,
) {
return jspb.Message.addToRepeatedWrapperField(
this,
2,
opt_value,
proto.oracle.v1.RawReport,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.oracle.v1.MsgReportData} returns this
*/
proto.oracle.v1.MsgReportData.prototype.clearRawReportsList = function () {
return this.setRawReportsList([])
}
/**
* optional string validator = 3;
* @return {string}
*/
proto.oracle.v1.MsgReportData.prototype.getValidator = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgReportData} returns this
*/
proto.oracle.v1.MsgReportData.prototype.setValidator = function (value) {
return jspb.Message.setProto3StringField(this, 3, value)
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.oracle.v1.MsgReportDataResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgReportDataResponse.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.oracle.v1.MsgReportDataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgReportDataResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgReportDataResponse}
*/
proto.oracle.v1.MsgReportDataResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgReportDataResponse()
return proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.oracle.v1.MsgReportDataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.oracle.v1.MsgReportDataResponse}
*/
proto.oracle.v1.MsgReportDataResponse.deserializeBinaryFromReader = function (
msg,
reader,
) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgReportDataResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter()
proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter(this, writer)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.oracle.v1.MsgReportDataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgReportDataResponse.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.oracle.v1.MsgCreateDataSource.repeatedFields_ = [4]
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.oracle.v1.MsgCreateDataSource.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgCreateDataSource.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.oracle.v1.MsgCreateDataSource} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgCreateDataSource.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ''),
description: jspb.Message.getFieldWithDefault(msg, 2, ''),
executable: msg.getExecutable_asB64(),
feeList: jspb.Message.toObjectList(
msg.getFeeList(),
cosmos_base_v1beta1_coin_pb.Coin.toObject,
includeInstance,
),
treasury: jspb.Message.getFieldWithDefault(msg, 5, ''),
owner: jspb.Message.getFieldWithDefault(msg, 6, ''),
sender: jspb.Message.getFieldWithDefault(msg, 7, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgCreateDataSource}
*/
proto.oracle.v1.MsgCreateDataSource.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgCreateDataSource()
return proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.oracle.v1.MsgCreateDataSource} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.oracle.v1.MsgCreateDataSource}
*/
proto.oracle.v1.MsgCreateDataSource.deserializeBinaryFromReader = function (
msg,
reader,
) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString())
msg.setName(value)
break
case 2:
var value = /** @type {string} */ (reader.readString())
msg.setDescription(value)
break
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes())
msg.setExecutable(value)
break
case 4:
var value = new cosmos_base_v1beta1_coin_pb.Coin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader,
)
msg.addFee(value)
break
case 5:
var value = /** @type {string} */ (reader.readString())
msg.setTreasury(value)
break
case 6:
var value = /** @type {string} */ (reader.readString())
msg.setOwner(value)
break
case 7:
var value = /** @type {string} */ (reader.readString())
msg.setSender(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter()
proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter(this, writer)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.oracle.v1.MsgCreateDataSource} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgCreateDataSource.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getName()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getDescription()
if (f.length > 0) {
writer.writeString(2, f)
}
f = message.getExecutable_asU8()
if (f.length > 0) {
writer.writeBytes(3, f)
}
f = message.getFeeList()
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter,
)
}
f = message.getTreasury()
if (f.length > 0) {
writer.writeString(5, f)
}
f = message.getOwner()
if (f.length > 0) {
writer.writeString(6, f)
}
f = message.getSender()
if (f.length > 0) {
writer.writeString(7, f)
}
}
/**
* optional string name = 1;
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getName = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setName = function (value) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional string description = 2;
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getDescription = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setDescription = function (
value,
) {
return jspb.Message.setProto3StringField(this, 2, value)
}
/**
* optional bytes executable = 3;
* @return {!(string|Uint8Array)}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable = function () {
return /** @type {!(string|Uint8Array)} */ (
jspb.Message.getFieldWithDefault(this, 3, '')
)
}
/**
* optional bytes executable = 3;
* This is a type-conversion wrapper around `getExecutable()`
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asB64 =
function () {
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getExecutable()))
}
/**
* optional bytes executable = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getExecutable()`
* @return {!Uint8Array}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getExecutable_asU8 = function () {
return /** @type {!Uint8Array} */ (
jspb.Message.bytesAsU8(this.getExecutable())
)
}
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setExecutable = function (value) {
return jspb.Message.setProto3BytesField(this, 3, value)
}
/**
* repeated cosmos.base.v1beta1.Coin fee = 4;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getFeeList = function () {
return /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ (
jspb.Message.getRepeatedWrapperField(
this,
cosmos_base_v1beta1_coin_pb.Coin,
4,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setFeeList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value)
}
/**
* @param {!proto.cosmos.base.v1beta1.Coin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.addFee = function (
opt_value,
opt_index,
) {
return jspb.Message.addToRepeatedWrapperField(
this,
4,
opt_value,
proto.cosmos.base.v1beta1.Coin,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.clearFeeList = function () {
return this.setFeeList([])
}
/**
* optional string treasury = 5;
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getTreasury = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setTreasury = function (value) {
return jspb.Message.setProto3StringField(this, 5, value)
}
/**
* optional string owner = 6;
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getOwner = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setOwner = function (value) {
return jspb.Message.setProto3StringField(this, 6, value)
}
/**
* optional string sender = 7;
* @return {string}
*/
proto.oracle.v1.MsgCreateDataSource.prototype.getSender = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ''))
}
/**
* @param {string} value
* @return {!proto.oracle.v1.MsgCreateDataSource} returns this
*/
proto.oracle.v1.MsgCreateDataSource.prototype.setSender = function (value) {
return jspb.Message.setProto3StringField(this, 7, 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.oracle.v1.MsgCreateDataSourceResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.oracle.v1.MsgCreateDataSourceResponse.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.oracle.v1.MsgCreateDataSourceResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.oracle.v1.MsgCreateDataSourceResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.oracle.v1.MsgCreateDataSourceResponse}
*/
proto.oracle.v1.MsgCreateDataSourceResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.oracle.v1.MsgCreateDataSourceResponse()
re