From 3c99a8fa1d60fb91d89c94115212f641cb607b19 Mon Sep 17 00:00:00 2001 From: babybunn Date: Tue, 21 Jan 2025 17:30:42 +0700 Subject: [PATCH] update proto codegen --- codegen/band/tunnel/v1beta1/tunnel_pb.d.ts | 12 - codegen/band/tunnel/v1beta1/tunnel_pb.js | 118 +- codegen/band/tunnel/v1beta1/tx_pb.d.ts | 176 ++- codegen/band/tunnel/v1beta1/tx_pb.js | 1109 ++++++++++++++--- .../band/tunnel/v1beta1/tx_pb_service.d.ts | 98 +- codegen/band/tunnel/v1beta1/tx_pb_service.js | 116 +- 6 files changed, 1221 insertions(+), 408 deletions(-) diff --git a/codegen/band/tunnel/v1beta1/tunnel_pb.d.ts b/codegen/band/tunnel/v1beta1/tunnel_pb.d.ts index 8a12aaa..8450079 100644 --- a/codegen/band/tunnel/v1beta1/tunnel_pb.d.ts +++ b/codegen/band/tunnel/v1beta1/tunnel_pb.d.ts @@ -141,16 +141,6 @@ export class Packet extends jspb.Message { getReceipt(): google_protobuf_any_pb.Any | undefined; setReceipt(value?: google_protobuf_any_pb.Any): void; - clearBaseFeeList(): void; - getBaseFeeList(): Array; - setBaseFeeList(value: Array): void; - addBaseFee(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - - clearRouteFeeList(): void; - getRouteFeeList(): Array; - setRouteFeeList(value: Array): void; - addRouteFee(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; - getCreatedAt(): number; setCreatedAt(value: number): void; @@ -170,8 +160,6 @@ export namespace Packet { sequence: number, pricesList: Array, receipt?: google_protobuf_any_pb.Any.AsObject, - baseFeeList: Array, - routeFeeList: Array, createdAt: number, } } diff --git a/codegen/band/tunnel/v1beta1/tunnel_pb.js b/codegen/band/tunnel/v1beta1/tunnel_pb.js index 02b0bf8..2a0613c 100644 --- a/codegen/band/tunnel/v1beta1/tunnel_pb.js +++ b/codegen/band/tunnel/v1beta1/tunnel_pb.js @@ -1043,7 +1043,7 @@ proto.band.tunnel.v1beta1.TotalFees.prototype.clearTotalBasePacketFeeList = func * @private {!Array} * @const */ -proto.band.tunnel.v1beta1.Packet.repeatedFields_ = [3,5,6]; +proto.band.tunnel.v1beta1.Packet.repeatedFields_ = [3]; @@ -1081,11 +1081,7 @@ proto.band.tunnel.v1beta1.Packet.toObject = function(includeInstance, msg) { pricesList: jspb.Message.toObjectList(msg.getPricesList(), band_feeds_v1beta1_feeds_pb.Price.toObject, includeInstance), receipt: (f = msg.getReceipt()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), - baseFeeList: jspb.Message.toObjectList(msg.getBaseFeeList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - routeFeeList: jspb.Message.toObjectList(msg.getRouteFeeList(), - cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), - createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0) + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { @@ -1141,16 +1137,6 @@ proto.band.tunnel.v1beta1.Packet.deserializeBinaryFromReader = function(msg, rea msg.setReceipt(value); break; case 5: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addBaseFee(value); - break; - case 6: - var value = new cosmos_base_v1beta1_coin_pb.Coin; - reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); - msg.addRouteFee(value); - break; - case 7: var value = /** @type {number} */ (reader.readInt64()); msg.setCreatedAt(value); break; @@ -1213,26 +1199,10 @@ proto.band.tunnel.v1beta1.Packet.serializeBinaryToWriter = function(message, wri google_protobuf_any_pb.Any.serializeBinaryToWriter ); } - f = message.getBaseFeeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } - f = message.getRouteFeeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter - ); - } f = message.getCreatedAt(); if (f !== 0) { writer.writeInt64( - 7, + 5, f ); } @@ -1351,87 +1321,11 @@ proto.band.tunnel.v1beta1.Packet.prototype.hasReceipt = function() { /** - * repeated cosmos.base.v1beta1.Coin base_fee = 5; - * @return {!Array} - */ -proto.band.tunnel.v1beta1.Packet.prototype.getBaseFeeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.band.tunnel.v1beta1.Packet} returns this -*/ -proto.band.tunnel.v1beta1.Packet.prototype.setBaseFeeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value - * @param {number=} opt_index - * @return {!proto.cosmos.base.v1beta1.Coin} - */ -proto.band.tunnel.v1beta1.Packet.prototype.addBaseFee = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.band.tunnel.v1beta1.Packet} returns this - */ -proto.band.tunnel.v1beta1.Packet.prototype.clearBaseFeeList = function() { - return this.setBaseFeeList([]); -}; - - -/** - * repeated cosmos.base.v1beta1.Coin route_fee = 6; - * @return {!Array} - */ -proto.band.tunnel.v1beta1.Packet.prototype.getRouteFeeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.band.tunnel.v1beta1.Packet} returns this -*/ -proto.band.tunnel.v1beta1.Packet.prototype.setRouteFeeList = 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.band.tunnel.v1beta1.Packet.prototype.addRouteFee = 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.band.tunnel.v1beta1.Packet} returns this - */ -proto.band.tunnel.v1beta1.Packet.prototype.clearRouteFeeList = function() { - return this.setRouteFeeList([]); -}; - - -/** - * optional int64 created_at = 7; + * optional int64 created_at = 5; * @return {number} */ proto.band.tunnel.v1beta1.Packet.prototype.getCreatedAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; @@ -1440,7 +1334,7 @@ proto.band.tunnel.v1beta1.Packet.prototype.getCreatedAt = function() { * @return {!proto.band.tunnel.v1beta1.Packet} returns this */ proto.band.tunnel.v1beta1.Packet.prototype.setCreatedAt = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 5, value); }; diff --git a/codegen/band/tunnel/v1beta1/tx_pb.d.ts b/codegen/band/tunnel/v1beta1/tx_pb.d.ts index 0be3687..20bae26 100644 --- a/codegen/band/tunnel/v1beta1/tx_pb.d.ts +++ b/codegen/band/tunnel/v1beta1/tx_pb.d.ts @@ -73,7 +73,53 @@ export namespace MsgCreateTunnelResponse { } } -export class MsgUpdateAndResetTunnel extends jspb.Message { +export class MsgUpdateRoute extends jspb.Message { + getTunnelId(): number; + setTunnelId(value: number): void; + + hasRoute(): boolean; + clearRoute(): void; + getRoute(): google_protobuf_any_pb.Any | undefined; + setRoute(value?: google_protobuf_any_pb.Any): void; + + getCreator(): string; + setCreator(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgUpdateRoute.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateRoute): MsgUpdateRoute.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgUpdateRoute, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateRoute; + static deserializeBinaryFromReader(message: MsgUpdateRoute, reader: jspb.BinaryReader): MsgUpdateRoute; +} + +export namespace MsgUpdateRoute { + export type AsObject = { + tunnelId: number, + route?: google_protobuf_any_pb.Any.AsObject, + creator: string, + } +} + +export class MsgUpdateRouteResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgUpdateRouteResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateRouteResponse): MsgUpdateRouteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgUpdateRouteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateRouteResponse; + static deserializeBinaryFromReader(message: MsgUpdateRouteResponse, reader: jspb.BinaryReader): MsgUpdateRouteResponse; +} + +export namespace MsgUpdateRouteResponse { + export type AsObject = { + } +} + +export class MsgUpdateSignalsAndInterval extends jspb.Message { getTunnelId(): number; setTunnelId(value: number): void; @@ -89,16 +135,16 @@ export class MsgUpdateAndResetTunnel extends jspb.Message { setCreator(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateAndResetTunnel.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateAndResetTunnel): MsgUpdateAndResetTunnel.AsObject; + toObject(includeInstance?: boolean): MsgUpdateSignalsAndInterval.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateSignalsAndInterval): MsgUpdateSignalsAndInterval.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateAndResetTunnel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateAndResetTunnel; - static deserializeBinaryFromReader(message: MsgUpdateAndResetTunnel, reader: jspb.BinaryReader): MsgUpdateAndResetTunnel; + static serializeBinaryToWriter(message: MsgUpdateSignalsAndInterval, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateSignalsAndInterval; + static deserializeBinaryFromReader(message: MsgUpdateSignalsAndInterval, reader: jspb.BinaryReader): MsgUpdateSignalsAndInterval; } -export namespace MsgUpdateAndResetTunnel { +export namespace MsgUpdateSignalsAndInterval { export type AsObject = { tunnelId: number, signalDeviationsList: Array, @@ -107,23 +153,69 @@ export namespace MsgUpdateAndResetTunnel { } } -export class MsgUpdateAndResetTunnelResponse extends jspb.Message { +export class MsgUpdateSignalsAndIntervalResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgUpdateSignalsAndIntervalResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgUpdateSignalsAndIntervalResponse): MsgUpdateSignalsAndIntervalResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgUpdateSignalsAndIntervalResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgUpdateSignalsAndIntervalResponse; + static deserializeBinaryFromReader(message: MsgUpdateSignalsAndIntervalResponse, reader: jspb.BinaryReader): MsgUpdateSignalsAndIntervalResponse; +} + +export namespace MsgUpdateSignalsAndIntervalResponse { + export type AsObject = { + } +} + +export class MsgWithdrawFeePayerFunds extends jspb.Message { + getTunnelId(): number; + setTunnelId(value: number): void; + + clearAmountList(): void; + getAmountList(): Array; + setAmountList(value: Array): void; + addAmount(value?: cosmos_base_v1beta1_coin_pb.Coin, index?: number): cosmos_base_v1beta1_coin_pb.Coin; + + getCreator(): string; + setCreator(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MsgWithdrawFeePayerFunds.AsObject; + static toObject(includeInstance: boolean, msg: MsgWithdrawFeePayerFunds): MsgWithdrawFeePayerFunds.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MsgWithdrawFeePayerFunds, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgWithdrawFeePayerFunds; + static deserializeBinaryFromReader(message: MsgWithdrawFeePayerFunds, reader: jspb.BinaryReader): MsgWithdrawFeePayerFunds; +} + +export namespace MsgWithdrawFeePayerFunds { + export type AsObject = { + tunnelId: number, + amountList: Array, + creator: string, + } +} + +export class MsgWithdrawFeePayerFundsResponse extends jspb.Message { serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgUpdateAndResetTunnelResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgUpdateAndResetTunnelResponse): MsgUpdateAndResetTunnelResponse.AsObject; + toObject(includeInstance?: boolean): MsgWithdrawFeePayerFundsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgWithdrawFeePayerFundsResponse): MsgWithdrawFeePayerFundsResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgUpdateAndResetTunnelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgUpdateAndResetTunnelResponse; - static deserializeBinaryFromReader(message: MsgUpdateAndResetTunnelResponse, reader: jspb.BinaryReader): MsgUpdateAndResetTunnelResponse; + static serializeBinaryToWriter(message: MsgWithdrawFeePayerFundsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgWithdrawFeePayerFundsResponse; + static deserializeBinaryFromReader(message: MsgWithdrawFeePayerFundsResponse, reader: jspb.BinaryReader): MsgWithdrawFeePayerFundsResponse; } -export namespace MsgUpdateAndResetTunnelResponse { +export namespace MsgWithdrawFeePayerFundsResponse { export type AsObject = { } } -export class MsgActivate extends jspb.Message { +export class MsgActivateTunnel extends jspb.Message { getTunnelId(): number; setTunnelId(value: number): void; @@ -131,39 +223,39 @@ export class MsgActivate extends jspb.Message { setCreator(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgActivate.AsObject; - static toObject(includeInstance: boolean, msg: MsgActivate): MsgActivate.AsObject; + toObject(includeInstance?: boolean): MsgActivateTunnel.AsObject; + static toObject(includeInstance: boolean, msg: MsgActivateTunnel): MsgActivateTunnel.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgActivate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgActivate; - static deserializeBinaryFromReader(message: MsgActivate, reader: jspb.BinaryReader): MsgActivate; + static serializeBinaryToWriter(message: MsgActivateTunnel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgActivateTunnel; + static deserializeBinaryFromReader(message: MsgActivateTunnel, reader: jspb.BinaryReader): MsgActivateTunnel; } -export namespace MsgActivate { +export namespace MsgActivateTunnel { export type AsObject = { tunnelId: number, creator: string, } } -export class MsgActivateResponse extends jspb.Message { +export class MsgActivateTunnelResponse extends jspb.Message { serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgActivateResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgActivateResponse): MsgActivateResponse.AsObject; + toObject(includeInstance?: boolean): MsgActivateTunnelResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgActivateTunnelResponse): MsgActivateTunnelResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgActivateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgActivateResponse; - static deserializeBinaryFromReader(message: MsgActivateResponse, reader: jspb.BinaryReader): MsgActivateResponse; + static serializeBinaryToWriter(message: MsgActivateTunnelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgActivateTunnelResponse; + static deserializeBinaryFromReader(message: MsgActivateTunnelResponse, reader: jspb.BinaryReader): MsgActivateTunnelResponse; } -export namespace MsgActivateResponse { +export namespace MsgActivateTunnelResponse { export type AsObject = { } } -export class MsgDeactivate extends jspb.Message { +export class MsgDeactivateTunnel extends jspb.Message { getTunnelId(): number; setTunnelId(value: number): void; @@ -171,34 +263,34 @@ export class MsgDeactivate extends jspb.Message { setCreator(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgDeactivate.AsObject; - static toObject(includeInstance: boolean, msg: MsgDeactivate): MsgDeactivate.AsObject; + toObject(includeInstance?: boolean): MsgDeactivateTunnel.AsObject; + static toObject(includeInstance: boolean, msg: MsgDeactivateTunnel): MsgDeactivateTunnel.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgDeactivate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgDeactivate; - static deserializeBinaryFromReader(message: MsgDeactivate, reader: jspb.BinaryReader): MsgDeactivate; + static serializeBinaryToWriter(message: MsgDeactivateTunnel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgDeactivateTunnel; + static deserializeBinaryFromReader(message: MsgDeactivateTunnel, reader: jspb.BinaryReader): MsgDeactivateTunnel; } -export namespace MsgDeactivate { +export namespace MsgDeactivateTunnel { export type AsObject = { tunnelId: number, creator: string, } } -export class MsgDeactivateResponse extends jspb.Message { +export class MsgDeactivateTunnelResponse extends jspb.Message { serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MsgDeactivateResponse.AsObject; - static toObject(includeInstance: boolean, msg: MsgDeactivateResponse): MsgDeactivateResponse.AsObject; + toObject(includeInstance?: boolean): MsgDeactivateTunnelResponse.AsObject; + static toObject(includeInstance: boolean, msg: MsgDeactivateTunnelResponse): MsgDeactivateTunnelResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MsgDeactivateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MsgDeactivateResponse; - static deserializeBinaryFromReader(message: MsgDeactivateResponse, reader: jspb.BinaryReader): MsgDeactivateResponse; + static serializeBinaryToWriter(message: MsgDeactivateTunnelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MsgDeactivateTunnelResponse; + static deserializeBinaryFromReader(message: MsgDeactivateTunnelResponse, reader: jspb.BinaryReader): MsgDeactivateTunnelResponse; } -export namespace MsgDeactivateResponse { +export namespace MsgDeactivateTunnelResponse { export type AsObject = { } } diff --git a/codegen/band/tunnel/v1beta1/tx_pb.js b/codegen/band/tunnel/v1beta1/tx_pb.js index e4af709..88d8f8c 100644 --- a/codegen/band/tunnel/v1beta1/tx_pb.js +++ b/codegen/band/tunnel/v1beta1/tx_pb.js @@ -31,20 +31,24 @@ var band_tunnel_v1beta1_params_pb = require('../../../band/tunnel/v1beta1/params goog.object.extend(proto, band_tunnel_v1beta1_params_pb); var band_tunnel_v1beta1_tunnel_pb = require('../../../band/tunnel/v1beta1/tunnel_pb.js'); goog.object.extend(proto, band_tunnel_v1beta1_tunnel_pb); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgActivate', null, global); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgActivateResponse', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgActivateTunnel', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgActivateTunnelResponse', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgCreateTunnel', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgCreateTunnelResponse', null, global); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDeactivate', null, global); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDeactivateResponse', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDeactivateTunnel', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDepositToTunnel', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgDepositToTunnelResponse', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgTriggerTunnel', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgTriggerTunnelResponse', null, global); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel', null, global); -goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateParams', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateParamsResponse', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateRoute', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateRouteResponse', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds', null, global); +goog.exportSymbol('proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgWithdrawFromTunnel', null, global); goog.exportSymbol('proto.band.tunnel.v1beta1.MsgWithdrawFromTunnelResponse', null, global); /** @@ -99,16 +103,100 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.repeatedFields_, null); +proto.band.tunnel.v1beta1.MsgUpdateRoute = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateRoute, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.band.tunnel.v1beta1.MsgUpdateRoute.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateRoute'; +} +/** + * 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.band.tunnel.v1beta1.MsgUpdateRouteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateRouteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateRouteResponse'; +} +/** + * 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.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.repeatedFields_, null); +}; +goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval'; +} +/** + * 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.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse'; +} +/** + * 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.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.repeatedFields_, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel'; + proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.displayName = 'proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds'; } /** * Generated by JsPbCodeGenerator. @@ -120,16 +208,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse = function(opt_data) { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.displayName = 'proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse'; + proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.displayName = 'proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -141,16 +229,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgActivate = function(opt_data) { +proto.band.tunnel.v1beta1.MsgActivateTunnel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgActivate, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgActivateTunnel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgActivate.displayName = 'proto.band.tunnel.v1beta1.MsgActivate'; + proto.band.tunnel.v1beta1.MsgActivateTunnel.displayName = 'proto.band.tunnel.v1beta1.MsgActivateTunnel'; } /** * Generated by JsPbCodeGenerator. @@ -162,16 +250,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgActivateResponse = function(opt_data) { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgActivateResponse, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgActivateTunnelResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgActivateResponse.displayName = 'proto.band.tunnel.v1beta1.MsgActivateResponse'; + proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.displayName = 'proto.band.tunnel.v1beta1.MsgActivateTunnelResponse'; } /** * Generated by JsPbCodeGenerator. @@ -183,16 +271,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgDeactivate = function(opt_data) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgDeactivate, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgDeactivateTunnel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgDeactivate.displayName = 'proto.band.tunnel.v1beta1.MsgDeactivate'; + proto.band.tunnel.v1beta1.MsgDeactivateTunnel.displayName = 'proto.band.tunnel.v1beta1.MsgDeactivateTunnel'; } /** * Generated by JsPbCodeGenerator. @@ -204,16 +292,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse = function(opt_data) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.band.tunnel.v1beta1.MsgDeactivateResponse, jspb.Message); +goog.inherits(proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.band.tunnel.v1beta1.MsgDeactivateResponse.displayName = 'proto.band.tunnel.v1beta1.MsgDeactivateResponse'; + proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.displayName = 'proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse'; } /** * Generated by JsPbCodeGenerator. @@ -838,13 +926,6 @@ proto.band.tunnel.v1beta1.MsgCreateTunnelResponse.prototype.setTunnelId = functi -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -860,8 +941,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgUpdateRoute.toObject(opt_includeInstance, this); }; @@ -870,17 +951,15 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateRoute} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgUpdateRoute.toObject = function(includeInstance, msg) { var f, obj = { tunnelId: jspb.Message.getFieldWithDefault(msg, 1, 0), - signalDeviationsList: jspb.Message.toObjectList(msg.getSignalDeviationsList(), - band_tunnel_v1beta1_tunnel_pb.SignalDeviation.toObject, includeInstance), - interval: jspb.Message.getFieldWithDefault(msg, 3, 0), - creator: jspb.Message.getFieldWithDefault(msg, 4, "") + route: (f = msg.getRoute()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), + creator: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -894,23 +973,23 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgUpdateRoute.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel; - return proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgUpdateRoute; + return proto.band.tunnel.v1beta1.MsgUpdateRoute.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateRoute} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgUpdateRoute.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -922,15 +1001,11 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.deserializeBinaryFromReader = msg.setTunnelId(value); break; case 2: - var value = new band_tunnel_v1beta1_tunnel_pb.SignalDeviation; - reader.readMessage(value,band_tunnel_v1beta1_tunnel_pb.SignalDeviation.deserializeBinaryFromReader); - msg.addSignalDeviations(value); + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.setRoute(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setInterval(value); - break; - case 4: var value = /** @type {string} */ (reader.readString()); msg.setCreator(value); break; @@ -947,9 +1022,9 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgUpdateRoute.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -957,11 +1032,11 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} message + * @param {!proto.band.tunnel.v1beta1.MsgUpdateRoute} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgUpdateRoute.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTunnelId(); if (f !== 0) { @@ -970,25 +1045,18 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.serializeBinaryToWriter = func f ); } - f = message.getSignalDeviationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getRoute(); + if (f != null) { + writer.writeMessage( 2, f, - band_tunnel_v1beta1_tunnel_pb.SignalDeviation.serializeBinaryToWriter - ); - } - f = message.getInterval(); - if (f !== 0) { - writer.writeUint64( - 3, - f + google_protobuf_any_pb.Any.serializeBinaryToWriter ); } f = message.getCreator(); if (f.length > 0) { writer.writeString( - 4, + 3, f ); } @@ -999,91 +1067,744 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.serializeBinaryToWriter = func * optional uint64 tunnel_id = 1; * @return {number} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.getTunnelId = function() { +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.getTunnelId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} returns this + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} returns this */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.setTunnelId = function(value) { +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.setTunnelId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * repeated SignalDeviation signal_deviations = 2; - * @return {!Array} + * optional google.protobuf.Any route = 2; + * @return {?proto.google.protobuf.Any} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.getSignalDeviationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, band_tunnel_v1beta1_tunnel_pb.SignalDeviation, 2)); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.getRoute = function() { + return /** @type{?proto.google.protobuf.Any} */ ( + jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); }; /** - * @param {!Array} value - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} returns this + * @param {?proto.google.protobuf.Any|undefined} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} returns this */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.setSignalDeviationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.setRoute = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.band.tunnel.v1beta1.SignalDeviation=} opt_value - * @param {number=} opt_index - * @return {!proto.band.tunnel.v1beta1.SignalDeviation} + * Clears the message field making it undefined. + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} returns this */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.addSignalDeviations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.band.tunnel.v1beta1.SignalDeviation, opt_index); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.clearRoute = function() { + return this.setRoute(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.clearSignalDeviationsList = function() { - return this.setSignalDeviationsList([]); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.hasRoute = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional uint64 interval = 3; - * @return {number} + * optional string creator = 3; + * @return {string} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.getInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.getCreator = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {number} value - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} returns this + * @param {string} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRoute} returns this */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.setInterval = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.band.tunnel.v1beta1.MsgUpdateRoute.prototype.setCreator = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string creator = 4; - * @return {string} + * 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_, 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.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.getCreator = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel} returns 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.band.tunnel.v1beta1.MsgUpdateRouteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnel.prototype.setCreator = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.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.band.tunnel.v1beta1.MsgUpdateRouteResponse} + */ +proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.band.tunnel.v1beta1.MsgUpdateRouteResponse; + return proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateRouteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.band.tunnel.v1beta1.MsgUpdateRouteResponse} + */ +proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.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.band.tunnel.v1beta1.MsgUpdateRouteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateRouteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgUpdateRouteResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.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_, 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.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.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.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.toObject = function(includeInstance, msg) { + var f, obj = { + tunnelId: jspb.Message.getFieldWithDefault(msg, 1, 0), + signalDeviationsList: jspb.Message.toObjectList(msg.getSignalDeviationsList(), + band_tunnel_v1beta1_tunnel_pb.SignalDeviation.toObject, includeInstance), + interval: jspb.Message.getFieldWithDefault(msg, 3, 0), + creator: 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.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval; + return proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.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.setTunnelId(value); + break; + case 2: + var value = new band_tunnel_v1beta1_tunnel_pb.SignalDeviation; + reader.readMessage(value,band_tunnel_v1beta1_tunnel_pb.SignalDeviation.deserializeBinaryFromReader); + msg.addSignalDeviations(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setInterval(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCreator(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTunnelId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getSignalDeviationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + band_tunnel_v1beta1_tunnel_pb.SignalDeviation.serializeBinaryToWriter + ); + } + f = message.getInterval(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getCreator(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint64 tunnel_id = 1; + * @return {number} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.getTunnelId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} returns this + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.setTunnelId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated SignalDeviation signal_deviations = 2; + * @return {!Array} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.getSignalDeviationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, band_tunnel_v1beta1_tunnel_pb.SignalDeviation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} returns this +*/ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.setSignalDeviationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.band.tunnel.v1beta1.SignalDeviation=} opt_value + * @param {number=} opt_index + * @return {!proto.band.tunnel.v1beta1.SignalDeviation} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.addSignalDeviations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.band.tunnel.v1beta1.SignalDeviation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} returns this + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.clearSignalDeviationsList = function() { + return this.setSignalDeviationsList([]); +}; + + +/** + * optional uint64 interval = 3; + * @return {number} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.getInterval = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} returns this + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.setInterval = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string creator = 4; + * @return {string} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.getCreator = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval} returns this + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndInterval.prototype.setCreator = 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_, 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.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.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.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.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.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse; + return proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse} + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.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.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgUpdateSignalsAndIntervalResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.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_, 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.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.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.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.toObject = function(includeInstance, msg) { + var f, obj = { + tunnelId: jspb.Message.getFieldWithDefault(msg, 1, 0), + amountList: jspb.Message.toObjectList(msg.getAmountList(), + cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance), + creator: 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.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds; + return proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.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.setTunnelId(value); + break; + case 2: + var value = new cosmos_base_v1beta1_coin_pb.Coin; + reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); + msg.addAmount(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setCreator(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTunnelId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getAmountList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter + ); + } + f = message.getCreator(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint64 tunnel_id = 1; + * @return {number} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.getTunnelId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} returns this + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.setTunnelId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated cosmos.base.v1beta1.Coin amount = 2; + * @return {!Array} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.getAmountList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} returns this +*/ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.setAmountList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value + * @param {number=} opt_index + * @return {!proto.cosmos.base.v1beta1.Coin} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.addAmount = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} returns this + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.clearAmountList = function() { + return this.setAmountList([]); +}; + + +/** + * optional string creator = 3; + * @return {string} + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.getCreator = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds} returns this + */ +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFunds.prototype.setCreator = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1103,8 +1824,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.toObject(opt_includeInstance, this); }; @@ -1113,11 +1834,11 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1133,23 +1854,23 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse} + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse; - return proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse; + return proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse} + * @return {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1169,9 +1890,9 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1179,11 +1900,11 @@ proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse} message + * @param {!proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgUpdateAndResetTunnelResponse.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgWithdrawFeePayerFundsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -1204,8 +1925,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgActivate.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgActivateTunnel.toObject(opt_includeInstance, this); }; @@ -1214,11 +1935,11 @@ proto.band.tunnel.v1beta1.MsgActivate.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgActivate} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnel} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgActivate.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.toObject = function(includeInstance, msg) { var f, obj = { tunnelId: jspb.Message.getFieldWithDefault(msg, 1, 0), creator: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -1235,23 +1956,23 @@ proto.band.tunnel.v1beta1.MsgActivate.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgActivate} + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnel} */ -proto.band.tunnel.v1beta1.MsgActivate.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgActivate; - return proto.band.tunnel.v1beta1.MsgActivate.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgActivateTunnel; + return proto.band.tunnel.v1beta1.MsgActivateTunnel.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgActivate} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnel} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgActivate} + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnel} */ -proto.band.tunnel.v1beta1.MsgActivate.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1279,9 +2000,9 @@ proto.band.tunnel.v1beta1.MsgActivate.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgActivate.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgActivateTunnel.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1289,11 +2010,11 @@ proto.band.tunnel.v1beta1.MsgActivate.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgActivate} message + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnel} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgActivate.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTunnelId(); if (f !== 0) { @@ -1316,16 +2037,16 @@ proto.band.tunnel.v1beta1.MsgActivate.serializeBinaryToWriter = function(message * optional uint64 tunnel_id = 1; * @return {number} */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.getTunnelId = function() { +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.getTunnelId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.band.tunnel.v1beta1.MsgActivate} returns this + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnel} returns this */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.setTunnelId = function(value) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.setTunnelId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -1334,16 +2055,16 @@ proto.band.tunnel.v1beta1.MsgActivate.prototype.setTunnelId = function(value) { * optional string creator = 2; * @return {string} */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.getCreator = function() { +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.getCreator = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.band.tunnel.v1beta1.MsgActivate} returns this + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnel} returns this */ -proto.band.tunnel.v1beta1.MsgActivate.prototype.setCreator = function(value) { +proto.band.tunnel.v1beta1.MsgActivateTunnel.prototype.setCreator = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1364,8 +2085,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgActivateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgActivateResponse.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.toObject(opt_includeInstance, this); }; @@ -1374,11 +2095,11 @@ proto.band.tunnel.v1beta1.MsgActivateResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgActivateResponse} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgActivateResponse.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1394,23 +2115,23 @@ proto.band.tunnel.v1beta1.MsgActivateResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgActivateResponse} + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnelResponse} */ -proto.band.tunnel.v1beta1.MsgActivateResponse.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgActivateResponse; - return proto.band.tunnel.v1beta1.MsgActivateResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgActivateTunnelResponse; + return proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgActivateResponse} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgActivateResponse} + * @return {!proto.band.tunnel.v1beta1.MsgActivateTunnelResponse} */ -proto.band.tunnel.v1beta1.MsgActivateResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1430,9 +2151,9 @@ proto.band.tunnel.v1beta1.MsgActivateResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgActivateResponse.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgActivateResponse.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1440,11 +2161,11 @@ proto.band.tunnel.v1beta1.MsgActivateResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgActivateResponse} message + * @param {!proto.band.tunnel.v1beta1.MsgActivateTunnelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgActivateResponse.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgActivateTunnelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -1465,8 +2186,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgDeactivate.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgDeactivateTunnel.toObject(opt_includeInstance, this); }; @@ -1475,11 +2196,11 @@ proto.band.tunnel.v1beta1.MsgDeactivate.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgDeactivate} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgDeactivate.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.toObject = function(includeInstance, msg) { var f, obj = { tunnelId: jspb.Message.getFieldWithDefault(msg, 1, 0), creator: jspb.Message.getFieldWithDefault(msg, 2, "") @@ -1496,23 +2217,23 @@ proto.band.tunnel.v1beta1.MsgDeactivate.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgDeactivate} + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} */ -proto.band.tunnel.v1beta1.MsgDeactivate.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgDeactivate; - return proto.band.tunnel.v1beta1.MsgDeactivate.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgDeactivateTunnel; + return proto.band.tunnel.v1beta1.MsgDeactivateTunnel.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgDeactivate} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgDeactivate} + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} */ -proto.band.tunnel.v1beta1.MsgDeactivate.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1540,9 +2261,9 @@ proto.band.tunnel.v1beta1.MsgDeactivate.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgDeactivate.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgDeactivateTunnel.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1550,11 +2271,11 @@ proto.band.tunnel.v1beta1.MsgDeactivate.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgDeactivate} message + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgDeactivate.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTunnelId(); if (f !== 0) { @@ -1577,16 +2298,16 @@ proto.band.tunnel.v1beta1.MsgDeactivate.serializeBinaryToWriter = function(messa * optional uint64 tunnel_id = 1; * @return {number} */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.getTunnelId = function() { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.getTunnelId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.band.tunnel.v1beta1.MsgDeactivate} returns this + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} returns this */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.setTunnelId = function(value) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.setTunnelId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; @@ -1595,16 +2316,16 @@ proto.band.tunnel.v1beta1.MsgDeactivate.prototype.setTunnelId = function(value) * optional string creator = 2; * @return {string} */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.getCreator = function() { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.getCreator = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.band.tunnel.v1beta1.MsgDeactivate} returns this + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnel} returns this */ -proto.band.tunnel.v1beta1.MsgDeactivate.prototype.setCreator = function(value) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnel.prototype.setCreator = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1625,8 +2346,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.band.tunnel.v1beta1.MsgDeactivateResponse.toObject(opt_includeInstance, this); +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.toObject(opt_includeInstance, this); }; @@ -1635,11 +2356,11 @@ proto.band.tunnel.v1beta1.MsgDeactivateResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.band.tunnel.v1beta1.MsgDeactivateResponse} msg The msg instance to transform. + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.toObject = function(includeInstance, msg) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -1655,23 +2376,23 @@ proto.band.tunnel.v1beta1.MsgDeactivateResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.band.tunnel.v1beta1.MsgDeactivateResponse} + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse} */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.deserializeBinary = function(bytes) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.band.tunnel.v1beta1.MsgDeactivateResponse; - return proto.band.tunnel.v1beta1.MsgDeactivateResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse; + return proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.band.tunnel.v1beta1.MsgDeactivateResponse} msg The message object to deserialize into. + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.band.tunnel.v1beta1.MsgDeactivateResponse} + * @return {!proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse} */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1691,9 +2412,9 @@ proto.band.tunnel.v1beta1.MsgDeactivateResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.prototype.serializeBinary = function() { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.band.tunnel.v1beta1.MsgDeactivateResponse.serializeBinaryToWriter(this, writer); + proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1701,11 +2422,11 @@ proto.band.tunnel.v1beta1.MsgDeactivateResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.band.tunnel.v1beta1.MsgDeactivateResponse} message + * @param {!proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.band.tunnel.v1beta1.MsgDeactivateResponse.serializeBinaryToWriter = function(message, writer) { +proto.band.tunnel.v1beta1.MsgDeactivateTunnelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; diff --git a/codegen/band/tunnel/v1beta1/tx_pb_service.d.ts b/codegen/band/tunnel/v1beta1/tx_pb_service.d.ts index 54281f5..87a28f3 100644 --- a/codegen/band/tunnel/v1beta1/tx_pb_service.d.ts +++ b/codegen/band/tunnel/v1beta1/tx_pb_service.d.ts @@ -13,31 +13,49 @@ type MsgCreateTunnel = { readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgCreateTunnelResponse; }; -type MsgUpdateAndResetTunnel = { +type MsgUpdateRoute = { readonly methodName: string; readonly service: typeof Msg; readonly requestStream: false; readonly responseStream: false; - readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnel; - readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnelResponse; + readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateRoute; + readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateRouteResponse; }; -type MsgActivate = { +type MsgUpdateSignalsAndInterval = { readonly methodName: string; readonly service: typeof Msg; readonly requestStream: false; readonly responseStream: false; - readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgActivate; - readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgActivateResponse; + readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndInterval; + readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndIntervalResponse; }; -type MsgDeactivate = { +type MsgWithdrawFeePayerFunds = { readonly methodName: string; readonly service: typeof Msg; readonly requestStream: false; readonly responseStream: false; - readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgDeactivate; - readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgDeactivateResponse; + readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFunds; + readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFundsResponse; +}; + +type MsgActivateTunnel = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgActivateTunnel; + readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgActivateTunnelResponse; +}; + +type MsgDeactivateTunnel = { + readonly methodName: string; + readonly service: typeof Msg; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnel; + readonly responseType: typeof band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnelResponse; }; type MsgTriggerTunnel = { @@ -79,9 +97,11 @@ type MsgUpdateParams = { export class Msg { static readonly serviceName: string; static readonly CreateTunnel: MsgCreateTunnel; - static readonly UpdateAndResetTunnel: MsgUpdateAndResetTunnel; - static readonly Activate: MsgActivate; - static readonly Deactivate: MsgDeactivate; + static readonly UpdateRoute: MsgUpdateRoute; + static readonly UpdateSignalsAndInterval: MsgUpdateSignalsAndInterval; + static readonly WithdrawFeePayerFunds: MsgWithdrawFeePayerFunds; + static readonly ActivateTunnel: MsgActivateTunnel; + static readonly DeactivateTunnel: MsgDeactivateTunnel; static readonly TriggerTunnel: MsgTriggerTunnel; static readonly DepositToTunnel: MsgDepositToTunnel; static readonly WithdrawFromTunnel: MsgWithdrawFromTunnel; @@ -129,32 +149,50 @@ export class MsgClient { requestMessage: band_tunnel_v1beta1_tx_pb.MsgCreateTunnel, callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgCreateTunnelResponse|null) => void ): UnaryResponse; - updateAndResetTunnel( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnel, + updateRoute( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateRoute, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateRouteResponse|null) => void + ): UnaryResponse; + updateRoute( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateRoute, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateRouteResponse|null) => void + ): UnaryResponse; + updateSignalsAndInterval( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndInterval, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndIntervalResponse|null) => void + ): UnaryResponse; + updateSignalsAndInterval( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndInterval, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndIntervalResponse|null) => void + ): UnaryResponse; + withdrawFeePayerFunds( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFunds, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnelResponse|null) => void + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFundsResponse|null) => void ): UnaryResponse; - updateAndResetTunnel( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnel, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnelResponse|null) => void + withdrawFeePayerFunds( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFunds, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFundsResponse|null) => void ): UnaryResponse; - activate( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgActivate, + activateTunnel( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgActivateTunnel, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgActivateResponse|null) => void + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgActivateTunnelResponse|null) => void ): UnaryResponse; - activate( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgActivate, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgActivateResponse|null) => void + activateTunnel( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgActivateTunnel, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgActivateTunnelResponse|null) => void ): UnaryResponse; - deactivate( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivate, + deactivateTunnel( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnel, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateResponse|null) => void + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnelResponse|null) => void ): UnaryResponse; - deactivate( - requestMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivate, - callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateResponse|null) => void + deactivateTunnel( + requestMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnel, + callback: (error: ServiceError|null, responseMessage: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnelResponse|null) => void ): UnaryResponse; triggerTunnel( requestMessage: band_tunnel_v1beta1_tx_pb.MsgTriggerTunnel, diff --git a/codegen/band/tunnel/v1beta1/tx_pb_service.js b/codegen/band/tunnel/v1beta1/tx_pb_service.js index 4901847..a785463 100644 --- a/codegen/band/tunnel/v1beta1/tx_pb_service.js +++ b/codegen/band/tunnel/v1beta1/tx_pb_service.js @@ -19,31 +19,49 @@ Msg.CreateTunnel = { responseType: band_tunnel_v1beta1_tx_pb.MsgCreateTunnelResponse }; -Msg.UpdateAndResetTunnel = { - methodName: "UpdateAndResetTunnel", +Msg.UpdateRoute = { + methodName: "UpdateRoute", service: Msg, requestStream: false, responseStream: false, - requestType: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnel, - responseType: band_tunnel_v1beta1_tx_pb.MsgUpdateAndResetTunnelResponse + requestType: band_tunnel_v1beta1_tx_pb.MsgUpdateRoute, + responseType: band_tunnel_v1beta1_tx_pb.MsgUpdateRouteResponse }; -Msg.Activate = { - methodName: "Activate", +Msg.UpdateSignalsAndInterval = { + methodName: "UpdateSignalsAndInterval", service: Msg, requestStream: false, responseStream: false, - requestType: band_tunnel_v1beta1_tx_pb.MsgActivate, - responseType: band_tunnel_v1beta1_tx_pb.MsgActivateResponse + requestType: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndInterval, + responseType: band_tunnel_v1beta1_tx_pb.MsgUpdateSignalsAndIntervalResponse }; -Msg.Deactivate = { - methodName: "Deactivate", +Msg.WithdrawFeePayerFunds = { + methodName: "WithdrawFeePayerFunds", service: Msg, requestStream: false, responseStream: false, - requestType: band_tunnel_v1beta1_tx_pb.MsgDeactivate, - responseType: band_tunnel_v1beta1_tx_pb.MsgDeactivateResponse + requestType: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFunds, + responseType: band_tunnel_v1beta1_tx_pb.MsgWithdrawFeePayerFundsResponse +}; + +Msg.ActivateTunnel = { + methodName: "ActivateTunnel", + service: Msg, + requestStream: false, + responseStream: false, + requestType: band_tunnel_v1beta1_tx_pb.MsgActivateTunnel, + responseType: band_tunnel_v1beta1_tx_pb.MsgActivateTunnelResponse +}; + +Msg.DeactivateTunnel = { + methodName: "DeactivateTunnel", + service: Msg, + requestStream: false, + responseStream: false, + requestType: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnel, + responseType: band_tunnel_v1beta1_tx_pb.MsgDeactivateTunnelResponse }; Msg.TriggerTunnel = { @@ -120,11 +138,73 @@ MsgClient.prototype.createTunnel = function createTunnel(requestMessage, metadat }; }; -MsgClient.prototype.updateAndResetTunnel = function updateAndResetTunnel(requestMessage, metadata, callback) { +MsgClient.prototype.updateRoute = function updateRoute(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateRoute, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.updateSignalsAndInterval = function updateSignalsAndInterval(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(Msg.UpdateSignalsAndInterval, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +MsgClient.prototype.withdrawFeePayerFunds = function withdrawFeePayerFunds(requestMessage, metadata, callback) { if (arguments.length === 2) { callback = arguments[1]; } - var client = grpc.unary(Msg.UpdateAndResetTunnel, { + var client = grpc.unary(Msg.WithdrawFeePayerFunds, { request: requestMessage, host: this.serviceHost, metadata: metadata, @@ -151,11 +231,11 @@ MsgClient.prototype.updateAndResetTunnel = function updateAndResetTunnel(request }; }; -MsgClient.prototype.activate = function activate(requestMessage, metadata, callback) { +MsgClient.prototype.activateTunnel = function activateTunnel(requestMessage, metadata, callback) { if (arguments.length === 2) { callback = arguments[1]; } - var client = grpc.unary(Msg.Activate, { + var client = grpc.unary(Msg.ActivateTunnel, { request: requestMessage, host: this.serviceHost, metadata: metadata, @@ -182,11 +262,11 @@ MsgClient.prototype.activate = function activate(requestMessage, metadata, callb }; }; -MsgClient.prototype.deactivate = function deactivate(requestMessage, metadata, callback) { +MsgClient.prototype.deactivateTunnel = function deactivateTunnel(requestMessage, metadata, callback) { if (arguments.length === 2) { callback = arguments[1]; } - var client = grpc.unary(Msg.Deactivate, { + var client = grpc.unary(Msg.DeactivateTunnel, { request: requestMessage, host: this.serviceHost, metadata: metadata,