diff --git a/.gitignore b/.gitignore index 17833a841..6a43ab547 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,10 @@ itest/litd-itest itest/lnd-itest itest/itest.test itest/.logs -itest/*.log \ No newline at end of file +itest/*.log + +# Files from mobile build. +mobile/build +mobile/*_generated.go + +vendor \ No newline at end of file diff --git a/Makefile b/Makefile index 2e711b3e6..c85b5f463 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PKG := github.com/lightninglabs/lightning-terminal +MOBILE_PKG := $(PKG)/mobile ESCPKG := github.com\/lightninglabs\/lightning-terminal LND_PKG := github.com/lightningnetwork/lnd LOOP_PKG := github.com/lightninglabs/loop @@ -12,6 +13,13 @@ TOOLS_DIR := tools GO_BIN := ${GOPATH}/bin GOACC_BIN := $(GO_BIN)/go-acc GOIMPORTS_BIN := $(GO_BIN)/gosimports +GOMOBILE_BIN := GO111MODULE=off $(GO_BIN)/gomobile + +MOBILE_BUILD_DIR :=${GOPATH}/src/$(MOBILE_PKG)/build +IOS_BUILD_DIR := $(MOBILE_BUILD_DIR)/ios +IOS_BUILD := $(IOS_BUILD_DIR)/Litdmobile.xcframework +ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR)/android +ANDROID_BUILD := $(ANDROID_BUILD_DIR)/Litdmobile.aar COMMIT := $(shell git describe --abbrev=40 --dirty --tags) COMMIT_HASH := $(shell git rev-parse HEAD) @@ -237,3 +245,37 @@ clean: $(RM) ./litcli-debug $(RM) ./litd-debug $(RM) coverage.txt + +# ============= +# MOBILE +# ============= +mobile-rpc: + @$(call print, "Creating mobile RPC from protos.") + cd ./litrpc; COMPILE_MOBILE=1 SUBSERVER_PREFIX=1 ./gen_protos_docker.sh + +vendor: + @$(call print, "Re-creating vendor directory.") + rm -r vendor/; go mod vendor + + +apple: vendor mobile-rpc + @$(call print, "Building iOS and macOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=ios,iossimulator,macos -tags="mobile $(RELEASE_LDFLAGS)" -v -o $(IOS_BUILD) $(MOBILE_PKG) + +ios: vendor mobile-rpc + @$(call print, "Building iOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=ios,iossimulator -tags="mobile $(RELEASE_LDFLAGS)" -v -o $(IOS_BUILD) $(MOBILE_PKG) + +macos: vendor mobile-rpc + @$(call print, "Building macOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=macos -tags="mobile $(RELEASE_LDFLAGS)" -v -o $(IOS_BUILD) $(MOBILE_PKG) + +android: vendor mobile-rpc + @$(call print, "Building Android library ($(ANDROID_BUILD)).") + mkdir -p $(ANDROID_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=android -tags="mobile $(RELEASE_LDFLAGS)" -v -o $(ANDROID_BUILD) $(MOBILE_PKG) + +mobile: ios android \ No newline at end of file diff --git a/app/scripts/build-protos.js b/app/scripts/build-protos.js index 40152c758..e7e520878 100644 --- a/app/scripts/build-protos.js +++ b/app/scripts/build-protos.js @@ -41,6 +41,18 @@ const protoSources = async () => { ); return { lnd: `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/lightning.proto`, + lightning: `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/lightning.proto`, + 'autopilotrpc/autopilot': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/autopilotrpc/autopilot.proto`, + 'chainrpc/chainnotifier': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/chainrpc/chainnotifier.proto`, + 'invoicesrpc/invoices': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/invoicesrpc/invoices.proto`, + 'neutrinorpc/neutrino': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/neutrinorpc/neutrino.proto`, + 'routerrpc/router': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/routerrpc/router.proto`, + 'signrpc/signer': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/signrpc/signer.proto`, + 'state': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/stateservice.proto`, + 'walletrpc/walletkit': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/walletrpc/walletkit.proto`, + 'walletunlocker': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/walletunlocker.proto`, + 'watchtowerrpc/watchtower': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/watchtowerrpc/watchtower.proto`, + 'wtclientrpc/wtclient': `lightningnetwork/lnd/${lndVersion[1]}/lnrpc/wtclientrpc/wtclient.proto`, loop: `lightninglabs/loop/${loopVersion[1]}/looprpc/client.proto`, 'swapserverrpc/server': `lightninglabs/loop/${loopVersion[1]}/swapserverrpc/server.proto`, 'swapserverrpc/common': `lightninglabs/loop/${loopVersion[1]}/swapserverrpc/common.proto`, diff --git a/app/src/types/generated/auctioneerrpc/auctioneer_pb.js b/app/src/types/generated/auctioneerrpc/auctioneer_pb.js index 50b57e409..6f0df3e2f 100644 --- a/app/src/types/generated/auctioneerrpc/auctioneer_pb.js +++ b/app/src/types/generated/auctioneerrpc/auctioneer_pb.js @@ -1,18 +1,28 @@ /* eslint-disable */ var proto = { poolrpc: {} }; +// source: auctioneerrpc/auctioneer.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.poolrpc.AccountCommitment', null, global); goog.exportSymbol('proto.poolrpc.AccountDiff', null, global); @@ -34,6 +44,7 @@ goog.exportSymbol('proto.poolrpc.ChannelConfirmationConstraints', null, global); goog.exportSymbol('proto.poolrpc.ChannelInfo', null, global); goog.exportSymbol('proto.poolrpc.ChannelType', null, global); goog.exportSymbol('proto.poolrpc.ClientAuctionMessage', null, global); +goog.exportSymbol('proto.poolrpc.ClientAuctionMessage.MsgCase', null, global); goog.exportSymbol('proto.poolrpc.DurationBucketState', null, global); goog.exportSymbol('proto.poolrpc.ExecutionFee', null, global); goog.exportSymbol('proto.poolrpc.InvalidOrder', null, global); @@ -69,6 +80,7 @@ goog.exportSymbol('proto.poolrpc.ReserveAccountRequest', null, global); goog.exportSymbol('proto.poolrpc.ReserveAccountResponse', null, global); goog.exportSymbol('proto.poolrpc.ServerAsk', null, global); goog.exportSymbol('proto.poolrpc.ServerAuctionMessage', null, global); +goog.exportSymbol('proto.poolrpc.ServerAuctionMessage.MsgCase', null, global); goog.exportSymbol('proto.poolrpc.ServerBid', null, global); goog.exportSymbol('proto.poolrpc.ServerCancelOrderRequest', null, global); goog.exportSymbol('proto.poolrpc.ServerCancelOrderResponse', null, global); @@ -86,14 +98,15 @@ goog.exportSymbol('proto.poolrpc.ServerOrderStateRequest', null, global); goog.exportSymbol('proto.poolrpc.ServerOrderStateResponse', null, global); goog.exportSymbol('proto.poolrpc.ServerOutput', null, global); goog.exportSymbol('proto.poolrpc.ServerSubmitOrderRequest', null, global); +goog.exportSymbol('proto.poolrpc.ServerSubmitOrderRequest.DetailsCase', null, global); goog.exportSymbol('proto.poolrpc.ServerSubmitOrderResponse', null, global); +goog.exportSymbol('proto.poolrpc.ServerSubmitOrderResponse.DetailsCase', null, global); goog.exportSymbol('proto.poolrpc.SubscribeError', null, global); goog.exportSymbol('proto.poolrpc.SubscribeError.Error', null, global); goog.exportSymbol('proto.poolrpc.SubscribeSuccess', null, global); goog.exportSymbol('proto.poolrpc.TermsRequest', null, global); goog.exportSymbol('proto.poolrpc.TermsResponse', null, global); goog.exportSymbol('proto.poolrpc.TxOut', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -104,24 +117,1375 @@ goog.exportSymbol('proto.poolrpc.TxOut', null, global); * @extends {jspb.Message} * @constructor */ -proto.poolrpc.ReserveAccountRequest = function(opt_data) { +proto.poolrpc.ReserveAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ReserveAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ReserveAccountRequest.displayName = 'proto.poolrpc.ReserveAccountRequest'; +} +/** + * 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.poolrpc.ReserveAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ReserveAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ReserveAccountResponse.displayName = 'proto.poolrpc.ReserveAccountResponse'; +} +/** + * 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.poolrpc.ServerInitAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerInitAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerInitAccountRequest.displayName = 'proto.poolrpc.ServerInitAccountRequest'; +} +/** + * 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.poolrpc.ServerInitAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerInitAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerInitAccountResponse.displayName = 'proto.poolrpc.ServerInitAccountResponse'; +} +/** + * 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.poolrpc.ServerSubmitOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.ServerSubmitOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerSubmitOrderRequest.displayName = 'proto.poolrpc.ServerSubmitOrderRequest'; +} +/** + * 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.poolrpc.ServerSubmitOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_); +}; +goog.inherits(proto.poolrpc.ServerSubmitOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerSubmitOrderResponse.displayName = 'proto.poolrpc.ServerSubmitOrderResponse'; +} +/** + * 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.poolrpc.ServerCancelOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerCancelOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerCancelOrderRequest.displayName = 'proto.poolrpc.ServerCancelOrderRequest'; +} +/** + * 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.poolrpc.ServerCancelOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerCancelOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerCancelOrderResponse.displayName = 'proto.poolrpc.ServerCancelOrderResponse'; +} +/** + * 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.poolrpc.ClientAuctionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ClientAuctionMessage.oneofGroups_); +}; +goog.inherits(proto.poolrpc.ClientAuctionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ClientAuctionMessage.displayName = 'proto.poolrpc.ClientAuctionMessage'; +} +/** + * 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.poolrpc.AccountCommitment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountCommitment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountCommitment.displayName = 'proto.poolrpc.AccountCommitment'; +} +/** + * 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.poolrpc.AccountSubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountSubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountSubscription.displayName = 'proto.poolrpc.AccountSubscription'; +} +/** + * 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.poolrpc.OrderMatchAccept = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OrderMatchAccept, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchAccept.displayName = 'proto.poolrpc.OrderMatchAccept'; +} +/** + * 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.poolrpc.OrderMatchReject = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OrderMatchReject, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchReject.displayName = 'proto.poolrpc.OrderMatchReject'; +} +/** + * 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.poolrpc.OrderReject = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OrderReject, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderReject.displayName = 'proto.poolrpc.OrderReject'; +} +/** + * 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.poolrpc.ChannelInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ChannelInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ChannelInfo.displayName = 'proto.poolrpc.ChannelInfo'; +} +/** + * 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.poolrpc.OrderMatchSign = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OrderMatchSign, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchSign.displayName = 'proto.poolrpc.OrderMatchSign'; +} +/** + * 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.poolrpc.AccountRecovery = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountRecovery, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountRecovery.displayName = 'proto.poolrpc.AccountRecovery'; +} +/** + * 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.poolrpc.ServerAuctionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerAuctionMessage.oneofGroups_); +}; +goog.inherits(proto.poolrpc.ServerAuctionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerAuctionMessage.displayName = 'proto.poolrpc.ServerAuctionMessage'; +} +/** + * 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.poolrpc.ServerChallenge = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerChallenge, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerChallenge.displayName = 'proto.poolrpc.ServerChallenge'; +} +/** + * 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.poolrpc.SubscribeSuccess = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.SubscribeSuccess, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.SubscribeSuccess.displayName = 'proto.poolrpc.SubscribeSuccess'; +} +/** + * 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.poolrpc.MatchedMarket = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MatchedMarket, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedMarket.displayName = 'proto.poolrpc.MatchedMarket'; +} +/** + * 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.poolrpc.OrderMatchPrepare = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OrderMatchPrepare.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.OrderMatchPrepare, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchPrepare.displayName = 'proto.poolrpc.OrderMatchPrepare'; +} +/** + * 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.poolrpc.TxOut = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.TxOut, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.TxOut.displayName = 'proto.poolrpc.TxOut'; +} +/** + * 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.poolrpc.OrderMatchSignBegin = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OrderMatchSignBegin.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.OrderMatchSignBegin, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchSignBegin.displayName = 'proto.poolrpc.OrderMatchSignBegin'; +} +/** + * 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.poolrpc.OrderMatchFinalize = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OrderMatchFinalize, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderMatchFinalize.displayName = 'proto.poolrpc.OrderMatchFinalize'; +} +/** + * 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.poolrpc.SubscribeError = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.SubscribeError, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.SubscribeError.displayName = 'proto.poolrpc.SubscribeError'; +} +/** + * 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.poolrpc.AuctionAccount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AuctionAccount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AuctionAccount.displayName = 'proto.poolrpc.AuctionAccount'; +} +/** + * 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.poolrpc.MatchedOrder = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MatchedOrder.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.MatchedOrder, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedOrder.displayName = 'proto.poolrpc.MatchedOrder'; +} +/** + * 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.poolrpc.MatchedAsk = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MatchedAsk, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedAsk.displayName = 'proto.poolrpc.MatchedAsk'; +} +/** + * 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.poolrpc.MatchedBid = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MatchedBid, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedBid.displayName = 'proto.poolrpc.MatchedBid'; +} +/** + * 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.poolrpc.AccountDiff = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountDiff, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountDiff.displayName = 'proto.poolrpc.AccountDiff'; +} +/** + * 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.poolrpc.ServerOrder = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerOrder.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ServerOrder, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerOrder.displayName = 'proto.poolrpc.ServerOrder'; +} +/** + * 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.poolrpc.ServerBid = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerBid, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerBid.displayName = 'proto.poolrpc.ServerBid'; +} +/** + * 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.poolrpc.ServerAsk = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerAsk, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerAsk.displayName = 'proto.poolrpc.ServerAsk'; +} +/** + * 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.poolrpc.CancelOrder = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CancelOrder, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CancelOrder.displayName = 'proto.poolrpc.CancelOrder'; +} +/** + * 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.poolrpc.InvalidOrder = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.InvalidOrder, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.InvalidOrder.displayName = 'proto.poolrpc.InvalidOrder'; +} +/** + * 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.poolrpc.ServerInput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerInput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerInput.displayName = 'proto.poolrpc.ServerInput'; +} +/** + * 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.poolrpc.ServerOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerOutput.displayName = 'proto.poolrpc.ServerOutput'; +} +/** + * 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.poolrpc.ServerModifyAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerModifyAccountRequest.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ServerModifyAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerModifyAccountRequest.displayName = 'proto.poolrpc.ServerModifyAccountRequest'; +} +/** + * 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.poolrpc.ServerModifyAccountRequest.NewAccountParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.displayName = 'proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters'; +} +/** + * 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.poolrpc.ServerModifyAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerModifyAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerModifyAccountResponse.displayName = 'proto.poolrpc.ServerModifyAccountResponse'; +} +/** + * 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.poolrpc.ServerOrderStateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerOrderStateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerOrderStateRequest.displayName = 'proto.poolrpc.ServerOrderStateRequest'; +} +/** + * 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.poolrpc.ServerOrderStateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ServerOrderStateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerOrderStateResponse.displayName = 'proto.poolrpc.ServerOrderStateResponse'; +} +/** + * 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.poolrpc.TermsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.TermsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.TermsRequest.displayName = 'proto.poolrpc.TermsRequest'; +} +/** + * 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.poolrpc.TermsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.TermsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.TermsResponse.displayName = 'proto.poolrpc.TermsResponse'; +} +/** + * 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.poolrpc.RelevantBatchRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.RelevantBatchRequest.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.RelevantBatchRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RelevantBatchRequest.displayName = 'proto.poolrpc.RelevantBatchRequest'; +} +/** + * 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.poolrpc.RelevantBatch = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.RelevantBatch.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.RelevantBatch, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RelevantBatch.displayName = 'proto.poolrpc.RelevantBatch'; +} +/** + * 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.poolrpc.ExecutionFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ExecutionFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ExecutionFee.displayName = 'proto.poolrpc.ExecutionFee'; +} +/** + * 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.poolrpc.NodeAddress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.NodeAddress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.NodeAddress.displayName = 'proto.poolrpc.NodeAddress'; +} +/** + * 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.poolrpc.OutPoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OutPoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OutPoint.displayName = 'proto.poolrpc.OutPoint'; +} +/** + * 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.poolrpc.AskSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AskSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AskSnapshot.displayName = 'proto.poolrpc.AskSnapshot'; +} +/** + * 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.poolrpc.BidSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.BidSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BidSnapshot.displayName = 'proto.poolrpc.BidSnapshot'; +} +/** + * 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.poolrpc.MatchedOrderSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MatchedOrderSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedOrderSnapshot.displayName = 'proto.poolrpc.MatchedOrderSnapshot'; +} +/** + * 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.poolrpc.BatchSnapshotRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.BatchSnapshotRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BatchSnapshotRequest.displayName = 'proto.poolrpc.BatchSnapshotRequest'; +} +/** + * 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.poolrpc.MatchedMarketSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MatchedMarketSnapshot.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.MatchedMarketSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchedMarketSnapshot.displayName = 'proto.poolrpc.MatchedMarketSnapshot'; +} +/** + * 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.poolrpc.BatchSnapshotResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.BatchSnapshotResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.BatchSnapshotResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BatchSnapshotResponse.displayName = 'proto.poolrpc.BatchSnapshotResponse'; +} +/** + * 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.poolrpc.ServerNodeRatingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerNodeRatingRequest.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ServerNodeRatingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerNodeRatingRequest.displayName = 'proto.poolrpc.ServerNodeRatingRequest'; +} +/** + * 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.poolrpc.NodeRating = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.NodeRating, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.NodeRating.displayName = 'proto.poolrpc.NodeRating'; +} +/** + * 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.poolrpc.ServerNodeRatingResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerNodeRatingResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ServerNodeRatingResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ServerNodeRatingResponse.displayName = 'proto.poolrpc.ServerNodeRatingResponse'; +} +/** + * 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.poolrpc.BatchSnapshotsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.BatchSnapshotsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BatchSnapshotsRequest.displayName = 'proto.poolrpc.BatchSnapshotsRequest'; +} +/** + * 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.poolrpc.BatchSnapshotsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.BatchSnapshotsResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.BatchSnapshotsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BatchSnapshotsResponse.displayName = 'proto.poolrpc.BatchSnapshotsResponse'; +} +/** + * 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.poolrpc.MarketInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MarketInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MarketInfoRequest.displayName = 'proto.poolrpc.MarketInfoRequest'; +} +/** + * 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.poolrpc.MarketInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MarketInfo.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.MarketInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MarketInfo.displayName = 'proto.poolrpc.MarketInfo'; +} +/** + * 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.poolrpc.MarketInfo.TierValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MarketInfo.TierValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MarketInfo.TierValue.displayName = 'proto.poolrpc.MarketInfo.TierValue'; +} +/** + * 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.poolrpc.MarketInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.poolrpc.ReserveAccountRequest, jspb.Message); +goog.inherits(proto.poolrpc.MarketInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ReserveAccountRequest.displayName = 'proto.poolrpc.ReserveAccountRequest'; + /** + * @public + * @override + */ + proto.poolrpc.MarketInfoResponse.displayName = 'proto.poolrpc.MarketInfoResponse'; } + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ReserveAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -131,8 +1495,8 @@ proto.poolrpc.ReserveAccountRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ReserveAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -265,9 +1629,12 @@ proto.poolrpc.ReserveAccountRequest.prototype.getAccountValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ReserveAccountRequest} returns this + */ proto.poolrpc.ReserveAccountRequest.prototype.setAccountValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -280,9 +1647,12 @@ proto.poolrpc.ReserveAccountRequest.prototype.getAccountExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ReserveAccountRequest} returns this + */ proto.poolrpc.ReserveAccountRequest.prototype.setAccountExpiry = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -319,9 +1689,12 @@ proto.poolrpc.ReserveAccountRequest.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ReserveAccountRequest} returns this + */ proto.poolrpc.ReserveAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -334,41 +1707,29 @@ proto.poolrpc.ReserveAccountRequest.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ReserveAccountRequest} returns this + */ proto.poolrpc.ReserveAccountRequest.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * 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.poolrpc.ReserveAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ReserveAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ReserveAccountResponse.displayName = 'proto.poolrpc.ReserveAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ReserveAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -378,8 +1739,8 @@ proto.poolrpc.ReserveAccountResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ReserveAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -512,9 +1873,12 @@ proto.poolrpc.ReserveAccountResponse.prototype.getAuctioneerKey_asU8 = function( }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ReserveAccountResponse} returns this + */ proto.poolrpc.ReserveAccountResponse.prototype.setAuctioneerKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -551,41 +1915,29 @@ proto.poolrpc.ReserveAccountResponse.prototype.getInitialBatchKey_asU8 = functio }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ReserveAccountResponse} returns this + */ proto.poolrpc.ReserveAccountResponse.prototype.setInitialBatchKey = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.ServerInitAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerInitAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerInitAccountRequest.displayName = 'proto.poolrpc.ServerInitAccountRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerInitAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -595,8 +1947,8 @@ proto.poolrpc.ServerInitAccountRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerInitAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -768,20 +2120,27 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getAccountPoint = function() { }; -/** @param {?proto.poolrpc.OutPoint|undefined} value */ +/** + * @param {?proto.poolrpc.OutPoint|undefined} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this +*/ proto.poolrpc.ServerInitAccountRequest.prototype.setAccountPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.clearAccountPoint = function() { - this.setAccountPoint(undefined); + return this.setAccountPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerInitAccountRequest.prototype.hasAccountPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -821,9 +2180,12 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getAccountScript_asU8 = functio }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setAccountScript = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -836,9 +2198,12 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getAccountValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setAccountValue = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -851,9 +2216,12 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getAccountExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setAccountExpiry = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -890,9 +2258,12 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getTraderKey_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -905,9 +2276,12 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setUserAgent = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -920,41 +2294,29 @@ proto.poolrpc.ServerInitAccountRequest.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerInitAccountRequest} returns this + */ proto.poolrpc.ServerInitAccountRequest.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; -/** - * 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.poolrpc.ServerInitAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerInitAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerInitAccountResponse.displayName = 'proto.poolrpc.ServerInitAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerInitAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -964,8 +2326,8 @@ proto.poolrpc.ServerInitAccountResponse.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerInitAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -1043,23 +2405,6 @@ proto.poolrpc.ServerInitAccountResponse.serializeBinaryToWriter = function(messa -/** - * 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.poolrpc.ServerSubmitOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.ServerSubmitOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerSubmitOrderRequest.displayName = 'proto.poolrpc.ServerSubmitOrderRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -1090,13 +2435,15 @@ proto.poolrpc.ServerSubmitOrderRequest.prototype.getDetailsCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerSubmitOrderRequest.prototype.toObject = function(opt_includeInstance) { @@ -1106,8 +2453,8 @@ proto.poolrpc.ServerSubmitOrderRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerSubmitOrderRequest} msg The msg instance to transform. * @return {!Object} @@ -1233,20 +2580,27 @@ proto.poolrpc.ServerSubmitOrderRequest.prototype.getAsk = function() { }; -/** @param {?proto.poolrpc.ServerAsk|undefined} value */ +/** + * @param {?proto.poolrpc.ServerAsk|undefined} value + * @return {!proto.poolrpc.ServerSubmitOrderRequest} returns this +*/ proto.poolrpc.ServerSubmitOrderRequest.prototype.setAsk = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerSubmitOrderRequest} returns this + */ proto.poolrpc.ServerSubmitOrderRequest.prototype.clearAsk = function() { - this.setAsk(undefined); + return this.setAsk(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerSubmitOrderRequest.prototype.hasAsk = function() { return jspb.Message.getField(this, 1) != null; @@ -1263,20 +2617,27 @@ proto.poolrpc.ServerSubmitOrderRequest.prototype.getBid = function() { }; -/** @param {?proto.poolrpc.ServerBid|undefined} value */ +/** + * @param {?proto.poolrpc.ServerBid|undefined} value + * @return {!proto.poolrpc.ServerSubmitOrderRequest} returns this +*/ proto.poolrpc.ServerSubmitOrderRequest.prototype.setBid = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ServerSubmitOrderRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerSubmitOrderRequest} returns this + */ proto.poolrpc.ServerSubmitOrderRequest.prototype.clearBid = function() { - this.setBid(undefined); + return this.setBid(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerSubmitOrderRequest.prototype.hasBid = function() { return jspb.Message.getField(this, 2) != null; @@ -1292,30 +2653,16 @@ proto.poolrpc.ServerSubmitOrderRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerSubmitOrderRequest} returns this + */ proto.poolrpc.ServerSubmitOrderRequest.prototype.setUserAgent = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.poolrpc.ServerSubmitOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_); -}; -goog.inherits(proto.poolrpc.ServerSubmitOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerSubmitOrderResponse.displayName = 'proto.poolrpc.ServerSubmitOrderResponse'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -1346,13 +2693,15 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.getDetailsCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerSubmitOrderResponse.prototype.toObject = function(opt_includeInstance) { @@ -1362,8 +2711,8 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerSubmitOrderResponse} msg The msg instance to transform. * @return {!Object} @@ -1372,7 +2721,7 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.toObject = function(opt_includ proto.poolrpc.ServerSubmitOrderResponse.toObject = function(includeInstance, msg) { var f, obj = { invalidOrder: (f = msg.getInvalidOrder()) && proto.poolrpc.InvalidOrder.toObject(includeInstance, f), - accepted: jspb.Message.getFieldWithDefault(msg, 2, false) + accepted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -1475,20 +2824,27 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.getInvalidOrder = function() { }; -/** @param {?proto.poolrpc.InvalidOrder|undefined} value */ +/** + * @param {?proto.poolrpc.InvalidOrder|undefined} value + * @return {!proto.poolrpc.ServerSubmitOrderResponse} returns this +*/ proto.poolrpc.ServerSubmitOrderResponse.prototype.setInvalidOrder = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerSubmitOrderResponse} returns this + */ proto.poolrpc.ServerSubmitOrderResponse.prototype.clearInvalidOrder = function() { - this.setInvalidOrder(undefined); + return this.setInvalidOrder(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerSubmitOrderResponse.prototype.hasInvalidOrder = function() { return jspb.Message.getField(this, 1) != null; @@ -1497,29 +2853,34 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.hasInvalidOrder = function() { /** * optional bool accepted = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ServerSubmitOrderResponse.prototype.getAccepted = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ServerSubmitOrderResponse} returns this + */ proto.poolrpc.ServerSubmitOrderResponse.prototype.setAccepted = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.ServerSubmitOrderResponse} returns this + */ proto.poolrpc.ServerSubmitOrderResponse.prototype.clearAccepted = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.ServerSubmitOrderResponse.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerSubmitOrderResponse.prototype.hasAccepted = function() { return jspb.Message.getField(this, 2) != null; @@ -1527,34 +2888,19 @@ proto.poolrpc.ServerSubmitOrderResponse.prototype.hasAccepted = function() { -/** - * 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.poolrpc.ServerCancelOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerCancelOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerCancelOrderRequest.displayName = 'proto.poolrpc.ServerCancelOrderRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerCancelOrderRequest.prototype.toObject = function(opt_includeInstance) { @@ -1564,8 +2910,8 @@ proto.poolrpc.ServerCancelOrderRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerCancelOrderRequest} msg The msg instance to transform. * @return {!Object} @@ -1686,41 +3032,29 @@ proto.poolrpc.ServerCancelOrderRequest.prototype.getOrderNoncePreimage_asU8 = fu }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerCancelOrderRequest} returns this + */ proto.poolrpc.ServerCancelOrderRequest.prototype.setOrderNoncePreimage = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.ServerCancelOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerCancelOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerCancelOrderResponse.displayName = 'proto.poolrpc.ServerCancelOrderResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerCancelOrderResponse.prototype.toObject = function(opt_includeInstance) { @@ -1730,8 +3064,8 @@ proto.poolrpc.ServerCancelOrderResponse.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerCancelOrderResponse} msg The msg instance to transform. * @return {!Object} @@ -1809,23 +3143,6 @@ proto.poolrpc.ServerCancelOrderResponse.serializeBinaryToWriter = function(messa -/** - * 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.poolrpc.ClientAuctionMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ClientAuctionMessage.oneofGroups_); -}; -goog.inherits(proto.poolrpc.ClientAuctionMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ClientAuctionMessage.displayName = 'proto.poolrpc.ClientAuctionMessage'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -1860,13 +3177,15 @@ proto.poolrpc.ClientAuctionMessage.prototype.getMsgCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ClientAuctionMessage.prototype.toObject = function(opt_includeInstance) { @@ -1876,8 +3195,8 @@ proto.poolrpc.ClientAuctionMessage.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ClientAuctionMessage} msg The msg instance to transform. * @return {!Object} @@ -2047,20 +3366,27 @@ proto.poolrpc.ClientAuctionMessage.prototype.getCommit = function() { }; -/** @param {?proto.poolrpc.AccountCommitment|undefined} value */ +/** + * @param {?proto.poolrpc.AccountCommitment|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setCommit = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearCommit = function() { - this.setCommit(undefined); + return this.setCommit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasCommit = function() { return jspb.Message.getField(this, 1) != null; @@ -2077,20 +3403,27 @@ proto.poolrpc.ClientAuctionMessage.prototype.getSubscribe = function() { }; -/** @param {?proto.poolrpc.AccountSubscription|undefined} value */ +/** + * @param {?proto.poolrpc.AccountSubscription|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setSubscribe = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearSubscribe = function() { - this.setSubscribe(undefined); + return this.setSubscribe(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasSubscribe = function() { return jspb.Message.getField(this, 2) != null; @@ -2107,20 +3440,27 @@ proto.poolrpc.ClientAuctionMessage.prototype.getAccept = function() { }; -/** @param {?proto.poolrpc.OrderMatchAccept|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchAccept|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setAccept = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearAccept = function() { - this.setAccept(undefined); + return this.setAccept(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasAccept = function() { return jspb.Message.getField(this, 3) != null; @@ -2137,20 +3477,27 @@ proto.poolrpc.ClientAuctionMessage.prototype.getReject = function() { }; -/** @param {?proto.poolrpc.OrderMatchReject|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchReject|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setReject = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearReject = function() { - this.setReject(undefined); + return this.setReject(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasReject = function() { return jspb.Message.getField(this, 4) != null; @@ -2167,20 +3514,27 @@ proto.poolrpc.ClientAuctionMessage.prototype.getSign = function() { }; -/** @param {?proto.poolrpc.OrderMatchSign|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchSign|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setSign = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearSign = function() { - this.setSign(undefined); + return this.setSign(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasSign = function() { return jspb.Message.getField(this, 5) != null; @@ -2197,55 +3551,47 @@ proto.poolrpc.ClientAuctionMessage.prototype.getRecover = function() { }; -/** @param {?proto.poolrpc.AccountRecovery|undefined} value */ +/** + * @param {?proto.poolrpc.AccountRecovery|undefined} value + * @return {!proto.poolrpc.ClientAuctionMessage} returns this +*/ proto.poolrpc.ClientAuctionMessage.prototype.setRecover = function(value) { - jspb.Message.setOneofWrapperField(this, 6, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.poolrpc.ClientAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ClientAuctionMessage} returns this + */ proto.poolrpc.ClientAuctionMessage.prototype.clearRecover = function() { - this.setRecover(undefined); + return this.setRecover(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ClientAuctionMessage.prototype.hasRecover = function() { return jspb.Message.getField(this, 6) != null; }; - -/** - * 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.poolrpc.AccountCommitment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountCommitment, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountCommitment.displayName = 'proto.poolrpc.AccountCommitment'; -} - - + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountCommitment.prototype.toObject = function(opt_includeInstance) { @@ -2255,8 +3601,8 @@ proto.poolrpc.AccountCommitment.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountCommitment} msg The msg instance to transform. * @return {!Object} @@ -2389,9 +3735,12 @@ proto.poolrpc.AccountCommitment.prototype.getCommitHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountCommitment} returns this + */ proto.poolrpc.AccountCommitment.prototype.setCommitHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -2404,41 +3753,29 @@ proto.poolrpc.AccountCommitment.prototype.getBatchVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AccountCommitment} returns this + */ proto.poolrpc.AccountCommitment.prototype.setBatchVersion = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.AccountSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountSubscription.displayName = 'proto.poolrpc.AccountSubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountSubscription.prototype.toObject = function(opt_includeInstance) { @@ -2448,8 +3785,8 @@ proto.poolrpc.AccountSubscription.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountSubscription} msg The msg instance to transform. * @return {!Object} @@ -2594,9 +3931,12 @@ proto.poolrpc.AccountSubscription.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountSubscription} returns this + */ proto.poolrpc.AccountSubscription.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -2633,9 +3973,12 @@ proto.poolrpc.AccountSubscription.prototype.getCommitNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountSubscription} returns this + */ proto.poolrpc.AccountSubscription.prototype.setCommitNonce = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -2672,41 +4015,29 @@ proto.poolrpc.AccountSubscription.prototype.getAuthSig_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountSubscription} returns this + */ proto.poolrpc.AccountSubscription.prototype.setAuthSig = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.poolrpc.OrderMatchAccept = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OrderMatchAccept, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchAccept.displayName = 'proto.poolrpc.OrderMatchAccept'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchAccept.prototype.toObject = function(opt_includeInstance) { @@ -2716,8 +4047,8 @@ proto.poolrpc.OrderMatchAccept.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchAccept} msg The msg instance to transform. * @return {!Object} @@ -2838,41 +4169,29 @@ proto.poolrpc.OrderMatchAccept.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchAccept} returns this + */ proto.poolrpc.OrderMatchAccept.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.OrderMatchReject = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OrderMatchReject, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchReject.displayName = 'proto.poolrpc.OrderMatchReject'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchReject.prototype.toObject = function(opt_includeInstance) { @@ -2882,8 +4201,8 @@ proto.poolrpc.OrderMatchReject.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchReject} msg The msg instance to transform. * @return {!Object} @@ -2946,7 +4265,7 @@ proto.poolrpc.OrderMatchReject.deserializeBinaryFromReader = function(msg, reade case 4: var value = msg.getRejectedOrdersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.OrderReject.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.OrderReject.deserializeBinaryFromReader, "", new proto.poolrpc.OrderReject()); }); break; default: @@ -3049,9 +4368,12 @@ proto.poolrpc.OrderMatchReject.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchReject} returns this + */ proto.poolrpc.OrderMatchReject.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -3064,9 +4386,12 @@ proto.poolrpc.OrderMatchReject.prototype.getReason = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderMatchReject} returns this + */ proto.poolrpc.OrderMatchReject.prototype.setReason = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3079,9 +4404,12 @@ proto.poolrpc.OrderMatchReject.prototype.getReasonCode = function() { }; -/** @param {!proto.poolrpc.OrderMatchReject.RejectReason} value */ +/** + * @param {!proto.poolrpc.OrderMatchReject.RejectReason} value + * @return {!proto.poolrpc.OrderMatchReject} returns this + */ proto.poolrpc.OrderMatchReject.prototype.setReasonCode = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); + return jspb.Message.setProto3EnumField(this, 3, value); }; @@ -3098,40 +4426,29 @@ proto.poolrpc.OrderMatchReject.prototype.getRejectedOrdersMap = function(opt_noL }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchReject} returns this + */ proto.poolrpc.OrderMatchReject.prototype.clearRejectedOrdersMap = function() { this.getRejectedOrdersMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.OrderReject = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OrderReject, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderReject.displayName = 'proto.poolrpc.OrderReject'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderReject.prototype.toObject = function(opt_includeInstance) { @@ -3141,8 +4458,8 @@ proto.poolrpc.OrderReject.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderReject} msg The msg instance to transform. * @return {!Object} @@ -3259,9 +4576,12 @@ proto.poolrpc.OrderReject.prototype.getReason = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderReject} returns this + */ proto.poolrpc.OrderReject.prototype.setReason = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3274,41 +4594,29 @@ proto.poolrpc.OrderReject.prototype.getReasonCode = function() { }; -/** @param {!proto.poolrpc.OrderReject.OrderRejectReason} value */ +/** + * @param {!proto.poolrpc.OrderReject.OrderRejectReason} value + * @return {!proto.poolrpc.OrderReject} returns this + */ proto.poolrpc.OrderReject.prototype.setReasonCode = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.poolrpc.ChannelInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ChannelInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ChannelInfo.displayName = 'proto.poolrpc.ChannelInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ChannelInfo.prototype.toObject = function(opt_includeInstance) { @@ -3318,8 +4626,8 @@ proto.poolrpc.ChannelInfo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ChannelInfo} msg The msg instance to transform. * @return {!Object} @@ -3464,9 +4772,12 @@ proto.poolrpc.ChannelInfo.prototype.getType = function() { }; -/** @param {!proto.poolrpc.ChannelType} value */ +/** + * @param {!proto.poolrpc.ChannelType} value + * @return {!proto.poolrpc.ChannelInfo} returns this + */ proto.poolrpc.ChannelInfo.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -3503,9 +4814,12 @@ proto.poolrpc.ChannelInfo.prototype.getLocalNodeKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ChannelInfo} returns this + */ proto.poolrpc.ChannelInfo.prototype.setLocalNodeKey = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -3542,9 +4856,12 @@ proto.poolrpc.ChannelInfo.prototype.getRemoteNodeKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ChannelInfo} returns this + */ proto.poolrpc.ChannelInfo.prototype.setRemoteNodeKey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -3581,9 +4898,12 @@ proto.poolrpc.ChannelInfo.prototype.getLocalPaymentBasePoint_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ChannelInfo} returns this + */ proto.poolrpc.ChannelInfo.prototype.setLocalPaymentBasePoint = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -3620,41 +4940,29 @@ proto.poolrpc.ChannelInfo.prototype.getRemotePaymentBasePoint_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ChannelInfo} returns this + */ proto.poolrpc.ChannelInfo.prototype.setRemotePaymentBasePoint = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; -/** - * 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.poolrpc.OrderMatchSign = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OrderMatchSign, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchSign.displayName = 'proto.poolrpc.OrderMatchSign'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchSign.prototype.toObject = function(opt_includeInstance) { @@ -3664,8 +4972,8 @@ proto.poolrpc.OrderMatchSign.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchSign} msg The msg instance to transform. * @return {!Object} @@ -3720,19 +5028,19 @@ proto.poolrpc.OrderMatchSign.deserializeBinaryFromReader = function(msg, reader) case 2: var value = msg.getAccountSigsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", ""); }); break; case 3: var value = msg.getChannelInfosMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.ChannelInfo.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.ChannelInfo.deserializeBinaryFromReader, "", new proto.poolrpc.ChannelInfo()); }); break; case 4: var value = msg.getTraderNoncesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", ""); }); break; default: @@ -3819,9 +5127,12 @@ proto.poolrpc.OrderMatchSign.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchSign} returns this + */ proto.poolrpc.OrderMatchSign.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -3838,9 +5149,13 @@ proto.poolrpc.OrderMatchSign.prototype.getAccountSigsMap = function(opt_noLazyCr }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchSign} returns this + */ proto.poolrpc.OrderMatchSign.prototype.clearAccountSigsMap = function() { this.getAccountSigsMap().clear(); -}; + return this;}; /** @@ -3856,9 +5171,13 @@ proto.poolrpc.OrderMatchSign.prototype.getChannelInfosMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchSign} returns this + */ proto.poolrpc.OrderMatchSign.prototype.clearChannelInfosMap = function() { this.getChannelInfosMap().clear(); -}; + return this;}; /** @@ -3874,40 +5193,29 @@ proto.poolrpc.OrderMatchSign.prototype.getTraderNoncesMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchSign} returns this + */ proto.poolrpc.OrderMatchSign.prototype.clearTraderNoncesMap = function() { this.getTraderNoncesMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.AccountRecovery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountRecovery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountRecovery.displayName = 'proto.poolrpc.AccountRecovery'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountRecovery.prototype.toObject = function(opt_includeInstance) { @@ -3917,8 +5225,8 @@ proto.poolrpc.AccountRecovery.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountRecovery} msg The msg instance to transform. * @return {!Object} @@ -4039,30 +5347,16 @@ proto.poolrpc.AccountRecovery.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountRecovery} returns this + */ proto.poolrpc.AccountRecovery.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.ServerAuctionMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.ServerAuctionMessage.oneofGroups_); -}; -goog.inherits(proto.poolrpc.ServerAuctionMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerAuctionMessage.displayName = 'proto.poolrpc.ServerAuctionMessage'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -4098,13 +5392,15 @@ proto.poolrpc.ServerAuctionMessage.prototype.getMsgCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerAuctionMessage.prototype.toObject = function(opt_includeInstance) { @@ -4114,8 +5410,8 @@ proto.poolrpc.ServerAuctionMessage.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerAuctionMessage} msg The msg instance to transform. * @return {!Object} @@ -4299,20 +5595,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getChallenge = function() { }; -/** @param {?proto.poolrpc.ServerChallenge|undefined} value */ +/** + * @param {?proto.poolrpc.ServerChallenge|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setChallenge = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearChallenge = function() { - this.setChallenge(undefined); + return this.setChallenge(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasChallenge = function() { return jspb.Message.getField(this, 1) != null; @@ -4329,20 +5632,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getSuccess = function() { }; -/** @param {?proto.poolrpc.SubscribeSuccess|undefined} value */ +/** + * @param {?proto.poolrpc.SubscribeSuccess|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setSuccess = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearSuccess = function() { - this.setSuccess(undefined); + return this.setSuccess(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasSuccess = function() { return jspb.Message.getField(this, 2) != null; @@ -4359,20 +5669,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getError = function() { }; -/** @param {?proto.poolrpc.SubscribeError|undefined} value */ +/** + * @param {?proto.poolrpc.SubscribeError|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setError = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearError = function() { - this.setError(undefined); + return this.setError(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasError = function() { return jspb.Message.getField(this, 3) != null; @@ -4389,20 +5706,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getPrepare = function() { }; -/** @param {?proto.poolrpc.OrderMatchPrepare|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchPrepare|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setPrepare = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearPrepare = function() { - this.setPrepare(undefined); + return this.setPrepare(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasPrepare = function() { return jspb.Message.getField(this, 4) != null; @@ -4419,20 +5743,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getSign = function() { }; -/** @param {?proto.poolrpc.OrderMatchSignBegin|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchSignBegin|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setSign = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearSign = function() { - this.setSign(undefined); + return this.setSign(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasSign = function() { return jspb.Message.getField(this, 5) != null; @@ -4449,20 +5780,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getFinalize = function() { }; -/** @param {?proto.poolrpc.OrderMatchFinalize|undefined} value */ +/** + * @param {?proto.poolrpc.OrderMatchFinalize|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setFinalize = function(value) { - jspb.Message.setOneofWrapperField(this, 6, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearFinalize = function() { - this.setFinalize(undefined); + return this.setFinalize(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasFinalize = function() { return jspb.Message.getField(this, 6) != null; @@ -4479,20 +5817,27 @@ proto.poolrpc.ServerAuctionMessage.prototype.getAccount = function() { }; -/** @param {?proto.poolrpc.AuctionAccount|undefined} value */ +/** + * @param {?proto.poolrpc.AuctionAccount|undefined} value + * @return {!proto.poolrpc.ServerAuctionMessage} returns this +*/ proto.poolrpc.ServerAuctionMessage.prototype.setAccount = function(value) { - jspb.Message.setOneofWrapperField(this, 7, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 7, proto.poolrpc.ServerAuctionMessage.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAuctionMessage} returns this + */ proto.poolrpc.ServerAuctionMessage.prototype.clearAccount = function() { - this.setAccount(undefined); + return this.setAccount(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAuctionMessage.prototype.hasAccount = function() { return jspb.Message.getField(this, 7) != null; @@ -4500,34 +5845,19 @@ proto.poolrpc.ServerAuctionMessage.prototype.hasAccount = function() { -/** - * 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.poolrpc.ServerChallenge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerChallenge, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerChallenge.displayName = 'proto.poolrpc.ServerChallenge'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerChallenge.prototype.toObject = function(opt_includeInstance) { @@ -4537,8 +5867,8 @@ proto.poolrpc.ServerChallenge.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerChallenge} msg The msg instance to transform. * @return {!Object} @@ -4671,9 +6001,12 @@ proto.poolrpc.ServerChallenge.prototype.getChallenge_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerChallenge} returns this + */ proto.poolrpc.ServerChallenge.prototype.setChallenge = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4710,41 +6043,29 @@ proto.poolrpc.ServerChallenge.prototype.getCommitHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerChallenge} returns this + */ proto.poolrpc.ServerChallenge.prototype.setCommitHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.SubscribeSuccess = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.SubscribeSuccess, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.SubscribeSuccess.displayName = 'proto.poolrpc.SubscribeSuccess'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.SubscribeSuccess.prototype.toObject = function(opt_includeInstance) { @@ -4754,8 +6075,8 @@ proto.poolrpc.SubscribeSuccess.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.SubscribeSuccess} msg The msg instance to transform. * @return {!Object} @@ -4876,41 +6197,29 @@ proto.poolrpc.SubscribeSuccess.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.SubscribeSuccess} returns this + */ proto.poolrpc.SubscribeSuccess.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.MatchedMarket = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MatchedMarket, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedMarket.displayName = 'proto.poolrpc.MatchedMarket'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedMarket.prototype.toObject = function(opt_includeInstance) { @@ -4920,8 +6229,8 @@ proto.poolrpc.MatchedMarket.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedMarket} msg The msg instance to transform. * @return {!Object} @@ -4970,7 +6279,7 @@ proto.poolrpc.MatchedMarket.deserializeBinaryFromReader = function(msg, reader) case 1: var value = msg.getMatchedOrdersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, "", new proto.poolrpc.MatchedOrder()); }); break; case 2: @@ -5033,9 +6342,13 @@ proto.poolrpc.MatchedMarket.prototype.getMatchedOrdersMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.MatchedMarket} returns this + */ proto.poolrpc.MatchedMarket.prototype.clearMatchedOrdersMap = function() { this.getMatchedOrdersMap().clear(); -}; + return this;}; /** @@ -5047,30 +6360,16 @@ proto.poolrpc.MatchedMarket.prototype.getClearingPriceRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedMarket} returns this + */ proto.poolrpc.MatchedMarket.prototype.setClearingPriceRate = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.OrderMatchPrepare = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OrderMatchPrepare.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.OrderMatchPrepare, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchPrepare.displayName = 'proto.poolrpc.OrderMatchPrepare'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -5082,13 +6381,15 @@ proto.poolrpc.OrderMatchPrepare.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchPrepare.prototype.toObject = function(opt_includeInstance) { @@ -5098,8 +6399,8 @@ proto.poolrpc.OrderMatchPrepare.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchPrepare} msg The msg instance to transform. * @return {!Object} @@ -5158,7 +6459,7 @@ proto.poolrpc.OrderMatchPrepare.deserializeBinaryFromReader = function(msg, read case 1: var value = msg.getMatchedOrdersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, "", new proto.poolrpc.MatchedOrder()); }); break; case 2: @@ -5198,7 +6499,7 @@ proto.poolrpc.OrderMatchPrepare.deserializeBinaryFromReader = function(msg, read case 10: var value = msg.getMatchedMarketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarket.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarket.deserializeBinaryFromReader, 0, new proto.poolrpc.MatchedMarket()); }); break; case 11: @@ -5323,9 +6624,13 @@ proto.poolrpc.OrderMatchPrepare.prototype.getMatchedOrdersMap = function(opt_noL }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.clearMatchedOrdersMap = function() { this.getMatchedOrdersMap().clear(); -}; + return this;}; /** @@ -5337,9 +6642,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getClearingPriceRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setClearingPriceRate = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -5353,9 +6661,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getChargedAccountsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this +*/ proto.poolrpc.OrderMatchPrepare.prototype.setChargedAccountsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -5369,8 +6680,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.addChargedAccounts = function(opt_valu }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.clearChargedAccountsList = function() { - this.setChargedAccountsList([]); + return this.setChargedAccountsList([]); }; @@ -5384,20 +6699,27 @@ proto.poolrpc.OrderMatchPrepare.prototype.getExecutionFee = function() { }; -/** @param {?proto.poolrpc.ExecutionFee|undefined} value */ +/** + * @param {?proto.poolrpc.ExecutionFee|undefined} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this +*/ proto.poolrpc.OrderMatchPrepare.prototype.setExecutionFee = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.clearExecutionFee = function() { - this.setExecutionFee(undefined); + return this.setExecutionFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OrderMatchPrepare.prototype.hasExecutionFee = function() { return jspb.Message.getField(this, 4) != null; @@ -5437,9 +6759,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getBatchTransaction_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setBatchTransaction = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -5452,9 +6777,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -5467,9 +6795,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getFeeRebateSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setFeeRebateSat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -5506,9 +6837,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; @@ -5521,9 +6855,12 @@ proto.poolrpc.OrderMatchPrepare.prototype.getBatchVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setBatchVersion = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -5540,9 +6877,13 @@ proto.poolrpc.OrderMatchPrepare.prototype.getMatchedMarketsMap = function(opt_no }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.clearMatchedMarketsMap = function() { this.getMatchedMarketsMap().clear(); -}; + return this;}; /** @@ -5554,41 +6895,29 @@ proto.poolrpc.OrderMatchPrepare.prototype.getBatchHeightHint = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.OrderMatchPrepare} returns this + */ proto.poolrpc.OrderMatchPrepare.prototype.setBatchHeightHint = function(value) { - jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 11, value); }; -/** - * 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.poolrpc.TxOut = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.TxOut, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.TxOut.displayName = 'proto.poolrpc.TxOut'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.TxOut.prototype.toObject = function(opt_includeInstance) { @@ -5598,8 +6927,8 @@ proto.poolrpc.TxOut.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.TxOut} msg The msg instance to transform. * @return {!Object} @@ -5708,9 +7037,12 @@ proto.poolrpc.TxOut.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.TxOut} returns this + */ proto.poolrpc.TxOut.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -5747,30 +7079,16 @@ proto.poolrpc.TxOut.prototype.getPkScript_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.TxOut} returns this + */ proto.poolrpc.TxOut.prototype.setPkScript = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.OrderMatchSignBegin = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OrderMatchSignBegin.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.OrderMatchSignBegin, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchSignBegin.displayName = 'proto.poolrpc.OrderMatchSignBegin'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -5782,13 +7100,15 @@ proto.poolrpc.OrderMatchSignBegin.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchSignBegin.prototype.toObject = function(opt_includeInstance) { @@ -5798,8 +7118,8 @@ proto.poolrpc.OrderMatchSignBegin.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchSignBegin} msg The msg instance to transform. * @return {!Object} @@ -5854,7 +7174,7 @@ proto.poolrpc.OrderMatchSignBegin.deserializeBinaryFromReader = function(msg, re case 2: var value = msg.getServerNoncesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", ""); }); break; case 3: @@ -5946,9 +7266,12 @@ proto.poolrpc.OrderMatchSignBegin.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchSignBegin} returns this + */ proto.poolrpc.OrderMatchSignBegin.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -5965,9 +7288,13 @@ proto.poolrpc.OrderMatchSignBegin.prototype.getServerNoncesMap = function(opt_no }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.OrderMatchSignBegin} returns this + */ proto.poolrpc.OrderMatchSignBegin.prototype.clearServerNoncesMap = function() { this.getServerNoncesMap().clear(); -}; + return this;}; /** @@ -5980,9 +7307,12 @@ proto.poolrpc.OrderMatchSignBegin.prototype.getPrevOutputsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.OrderMatchSignBegin} returns this +*/ proto.poolrpc.OrderMatchSignBegin.prototype.setPrevOutputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -5996,40 +7326,29 @@ proto.poolrpc.OrderMatchSignBegin.prototype.addPrevOutputs = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.OrderMatchSignBegin} returns this + */ proto.poolrpc.OrderMatchSignBegin.prototype.clearPrevOutputsList = function() { - this.setPrevOutputsList([]); + return this.setPrevOutputsList([]); }; -/** - * 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.poolrpc.OrderMatchFinalize = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OrderMatchFinalize, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderMatchFinalize.displayName = 'proto.poolrpc.OrderMatchFinalize'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderMatchFinalize.prototype.toObject = function(opt_includeInstance) { @@ -6039,8 +7358,8 @@ proto.poolrpc.OrderMatchFinalize.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderMatchFinalize} msg The msg instance to transform. * @return {!Object} @@ -6173,9 +7492,12 @@ proto.poolrpc.OrderMatchFinalize.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchFinalize} returns this + */ proto.poolrpc.OrderMatchFinalize.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6212,41 +7534,29 @@ proto.poolrpc.OrderMatchFinalize.prototype.getBatchTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OrderMatchFinalize} returns this + */ proto.poolrpc.OrderMatchFinalize.prototype.setBatchTxid = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.SubscribeError = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.SubscribeError, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.SubscribeError.displayName = 'proto.poolrpc.SubscribeError'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.SubscribeError.prototype.toObject = function(opt_includeInstance) { @@ -6256,8 +7566,8 @@ proto.poolrpc.SubscribeError.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.SubscribeError} msg The msg instance to transform. * @return {!Object} @@ -6402,9 +7712,12 @@ proto.poolrpc.SubscribeError.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.SubscribeError} returns this + */ proto.poolrpc.SubscribeError.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6417,9 +7730,12 @@ proto.poolrpc.SubscribeError.prototype.getErrorCode = function() { }; -/** @param {!proto.poolrpc.SubscribeError.Error} value */ +/** + * @param {!proto.poolrpc.SubscribeError.Error} value + * @return {!proto.poolrpc.SubscribeError} returns this + */ proto.poolrpc.SubscribeError.prototype.setErrorCode = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -6456,9 +7772,12 @@ proto.poolrpc.SubscribeError.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.SubscribeError} returns this + */ proto.poolrpc.SubscribeError.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -6472,20 +7791,27 @@ proto.poolrpc.SubscribeError.prototype.getAccountReservation = function() { }; -/** @param {?proto.poolrpc.AuctionAccount|undefined} value */ +/** + * @param {?proto.poolrpc.AuctionAccount|undefined} value + * @return {!proto.poolrpc.SubscribeError} returns this +*/ proto.poolrpc.SubscribeError.prototype.setAccountReservation = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.SubscribeError} returns this + */ proto.poolrpc.SubscribeError.prototype.clearAccountReservation = function() { - this.setAccountReservation(undefined); + return this.setAccountReservation(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.SubscribeError.prototype.hasAccountReservation = function() { return jspb.Message.getField(this, 4) != null; @@ -6493,34 +7819,19 @@ proto.poolrpc.SubscribeError.prototype.hasAccountReservation = function() { -/** - * 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.poolrpc.AuctionAccount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AuctionAccount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AuctionAccount.displayName = 'proto.poolrpc.AuctionAccount'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AuctionAccount.prototype.toObject = function(opt_includeInstance) { @@ -6530,8 +7841,8 @@ proto.poolrpc.AuctionAccount.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AuctionAccount} msg The msg instance to transform. * @return {!Object} @@ -6738,9 +8049,12 @@ proto.poolrpc.AuctionAccount.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -6753,9 +8067,12 @@ proto.poolrpc.AuctionAccount.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -6792,9 +8109,12 @@ proto.poolrpc.AuctionAccount.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -6831,9 +8151,12 @@ proto.poolrpc.AuctionAccount.prototype.getAuctioneerKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setAuctioneerKey = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -6870,9 +8193,12 @@ proto.poolrpc.AuctionAccount.prototype.getBatchKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setBatchKey = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -6885,9 +8211,12 @@ proto.poolrpc.AuctionAccount.prototype.getState = function() { }; -/** @param {!proto.poolrpc.AuctionAccountState} value */ +/** + * @param {!proto.poolrpc.AuctionAccountState} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -6900,9 +8229,12 @@ proto.poolrpc.AuctionAccount.prototype.getHeightHint = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setHeightHint = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -6916,20 +8248,27 @@ proto.poolrpc.AuctionAccount.prototype.getOutpoint = function() { }; -/** @param {?proto.poolrpc.OutPoint|undefined} value */ +/** + * @param {?proto.poolrpc.OutPoint|undefined} value + * @return {!proto.poolrpc.AuctionAccount} returns this +*/ proto.poolrpc.AuctionAccount.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 8, value); + return jspb.Message.setWrapperField(this, 8, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.AuctionAccount.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 8) != null; @@ -6969,9 +8308,12 @@ proto.poolrpc.AuctionAccount.prototype.getLatestTx_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setLatestTx = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -6984,30 +8326,16 @@ proto.poolrpc.AuctionAccount.prototype.getVersion = function() { }; -/** @param {number} value */ -proto.poolrpc.AuctionAccount.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 10, value); -}; - - - /** - * 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 + * @param {number} value + * @return {!proto.poolrpc.AuctionAccount} returns this */ -proto.poolrpc.MatchedOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MatchedOrder.repeatedFields_, null); +proto.poolrpc.AuctionAccount.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); }; -goog.inherits(proto.poolrpc.MatchedOrder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedOrder.displayName = 'proto.poolrpc.MatchedOrder'; -} + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -7019,13 +8347,15 @@ proto.poolrpc.MatchedOrder.repeatedFields_ = [1,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedOrder.prototype.toObject = function(opt_includeInstance) { @@ -7035,8 +8365,8 @@ proto.poolrpc.MatchedOrder.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedOrder} msg The msg instance to transform. * @return {!Object} @@ -7152,9 +8482,12 @@ proto.poolrpc.MatchedOrder.prototype.getMatchedBidsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MatchedOrder} returns this +*/ proto.poolrpc.MatchedOrder.prototype.setMatchedBidsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -7168,8 +8501,12 @@ proto.poolrpc.MatchedOrder.prototype.addMatchedBids = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MatchedOrder} returns this + */ proto.poolrpc.MatchedOrder.prototype.clearMatchedBidsList = function() { - this.setMatchedBidsList([]); + return this.setMatchedBidsList([]); }; @@ -7183,9 +8520,12 @@ proto.poolrpc.MatchedOrder.prototype.getMatchedAsksList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MatchedOrder} returns this +*/ proto.poolrpc.MatchedOrder.prototype.setMatchedAsksList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -7199,40 +8539,29 @@ proto.poolrpc.MatchedOrder.prototype.addMatchedAsks = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MatchedOrder} returns this + */ proto.poolrpc.MatchedOrder.prototype.clearMatchedAsksList = function() { - this.setMatchedAsksList([]); + return this.setMatchedAsksList([]); }; -/** - * 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.poolrpc.MatchedAsk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MatchedAsk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedAsk.displayName = 'proto.poolrpc.MatchedAsk'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedAsk.prototype.toObject = function(opt_includeInstance) { @@ -7242,8 +8571,8 @@ proto.poolrpc.MatchedAsk.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedAsk} msg The msg instance to transform. * @return {!Object} @@ -7355,20 +8684,27 @@ proto.poolrpc.MatchedAsk.prototype.getAsk = function() { }; -/** @param {?proto.poolrpc.ServerAsk|undefined} value */ +/** + * @param {?proto.poolrpc.ServerAsk|undefined} value + * @return {!proto.poolrpc.MatchedAsk} returns this +*/ proto.poolrpc.MatchedAsk.prototype.setAsk = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.MatchedAsk} returns this + */ proto.poolrpc.MatchedAsk.prototype.clearAsk = function() { - this.setAsk(undefined); + return this.setAsk(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.MatchedAsk.prototype.hasAsk = function() { return jspb.Message.getField(this, 1) != null; @@ -7384,41 +8720,29 @@ proto.poolrpc.MatchedAsk.prototype.getUnitsFilled = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedAsk} returns this + */ proto.poolrpc.MatchedAsk.prototype.setUnitsFilled = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.MatchedBid = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MatchedBid, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedBid.displayName = 'proto.poolrpc.MatchedBid'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedBid.prototype.toObject = function(opt_includeInstance) { @@ -7428,8 +8752,8 @@ proto.poolrpc.MatchedBid.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedBid} msg The msg instance to transform. * @return {!Object} @@ -7541,20 +8865,27 @@ proto.poolrpc.MatchedBid.prototype.getBid = function() { }; -/** @param {?proto.poolrpc.ServerBid|undefined} value */ +/** + * @param {?proto.poolrpc.ServerBid|undefined} value + * @return {!proto.poolrpc.MatchedBid} returns this +*/ proto.poolrpc.MatchedBid.prototype.setBid = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.MatchedBid} returns this + */ proto.poolrpc.MatchedBid.prototype.clearBid = function() { - this.setBid(undefined); + return this.setBid(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.MatchedBid.prototype.hasBid = function() { return jspb.Message.getField(this, 1) != null; @@ -7570,41 +8901,29 @@ proto.poolrpc.MatchedBid.prototype.getUnitsFilled = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedBid} returns this + */ proto.poolrpc.MatchedBid.prototype.setUnitsFilled = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.AccountDiff = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountDiff, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountDiff.displayName = 'proto.poolrpc.AccountDiff'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountDiff.prototype.toObject = function(opt_includeInstance) { @@ -7614,8 +8933,8 @@ proto.poolrpc.AccountDiff.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountDiff} msg The msg instance to transform. * @return {!Object} @@ -7782,9 +9101,12 @@ proto.poolrpc.AccountDiff.prototype.getEndingBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setEndingBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -7797,9 +9119,12 @@ proto.poolrpc.AccountDiff.prototype.getEndingState = function() { }; -/** @param {!proto.poolrpc.AccountDiff.AccountState} value */ +/** + * @param {!proto.poolrpc.AccountDiff.AccountState} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setEndingState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -7812,9 +9137,12 @@ proto.poolrpc.AccountDiff.prototype.getOutpointIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setOutpointIndex = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -7851,9 +9179,12 @@ proto.poolrpc.AccountDiff.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -7866,9 +9197,12 @@ proto.poolrpc.AccountDiff.prototype.getNewExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setNewExpiry = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -7881,30 +9215,16 @@ proto.poolrpc.AccountDiff.prototype.getNewVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AccountDiff} returns this + */ proto.poolrpc.AccountDiff.prototype.setNewVersion = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.poolrpc.ServerOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerOrder.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ServerOrder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerOrder.displayName = 'proto.poolrpc.ServerOrder'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7916,13 +9236,15 @@ proto.poolrpc.ServerOrder.repeatedFields_ = [10,14,15]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerOrder.prototype.toObject = function(opt_includeInstance) { @@ -7932,8 +9254,8 @@ proto.poolrpc.ServerOrder.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerOrder} msg The msg instance to transform. * @return {!Object} @@ -7956,7 +9278,7 @@ proto.poolrpc.ServerOrder.toObject = function(includeInstance, msg) { allowedNodeIdsList: msg.getAllowedNodeIdsList_asB64(), notAllowedNodeIdsList: msg.getNotAllowedNodeIdsList_asB64(), auctionType: jspb.Message.getFieldWithDefault(msg, 16, 0), - isPublic: jspb.Message.getFieldWithDefault(msg, 17, false) + isPublic: jspb.Message.getBooleanFieldWithDefault(msg, 17, false) }; if (includeInstance) { @@ -8225,9 +9547,12 @@ proto.poolrpc.ServerOrder.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -8240,9 +9565,12 @@ proto.poolrpc.ServerOrder.prototype.getRateFixed = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setRateFixed = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -8255,9 +9583,12 @@ proto.poolrpc.ServerOrder.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -8270,9 +9601,12 @@ proto.poolrpc.ServerOrder.prototype.getMinChanAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setMinChanAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -8309,9 +9643,12 @@ proto.poolrpc.ServerOrder.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 6, value); + return jspb.Message.setProto3BytesField(this, 6, value); }; @@ -8348,9 +9685,12 @@ proto.poolrpc.ServerOrder.prototype.getOrderSig_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setOrderSig = function(value) { - jspb.Message.setProto3BytesField(this, 7, value); + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -8387,9 +9727,12 @@ proto.poolrpc.ServerOrder.prototype.getMultiSigKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setMultiSigKey = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; @@ -8426,9 +9769,12 @@ proto.poolrpc.ServerOrder.prototype.getNodePub_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setNodePub = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -8442,9 +9788,12 @@ proto.poolrpc.ServerOrder.prototype.getNodeAddrList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ServerOrder} returns this +*/ proto.poolrpc.ServerOrder.prototype.setNodeAddrList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 10, value); + return jspb.Message.setRepeatedWrapperField(this, 10, value); }; @@ -8458,8 +9807,12 @@ proto.poolrpc.ServerOrder.prototype.addNodeAddr = function(opt_value, opt_index) }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.clearNodeAddrList = function() { - this.setNodeAddrList([]); + return this.setNodeAddrList([]); }; @@ -8472,9 +9825,12 @@ proto.poolrpc.ServerOrder.prototype.getChannelType = function() { }; -/** @param {!proto.poolrpc.OrderChannelType} value */ +/** + * @param {!proto.poolrpc.OrderChannelType} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setChannelType = function(value) { - jspb.Message.setProto3EnumField(this, 12, value); + return jspb.Message.setProto3EnumField(this, 12, value); }; @@ -8487,9 +9843,12 @@ proto.poolrpc.ServerOrder.prototype.getMaxBatchFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setMaxBatchFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; @@ -8526,23 +9885,31 @@ proto.poolrpc.ServerOrder.prototype.getAllowedNodeIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setAllowedNodeIdsList = function(value) { - jspb.Message.setField(this, 14, value || []); + return jspb.Message.setField(this, 14, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.ServerOrder} returns this */ proto.poolrpc.ServerOrder.prototype.addAllowedNodeIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 14, value, opt_index); + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.clearAllowedNodeIdsList = function() { - this.setAllowedNodeIdsList([]); + return this.setAllowedNodeIdsList([]); }; @@ -8579,23 +9946,31 @@ proto.poolrpc.ServerOrder.prototype.getNotAllowedNodeIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setNotAllowedNodeIdsList = function(value) { - jspb.Message.setField(this, 15, value || []); + return jspb.Message.setField(this, 15, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.ServerOrder} returns this */ proto.poolrpc.ServerOrder.prototype.addNotAllowedNodeIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 15, value, opt_index); + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.clearNotAllowedNodeIdsList = function() { - this.setNotAllowedNodeIdsList([]); + return this.setNotAllowedNodeIdsList([]); }; @@ -8608,58 +9983,47 @@ proto.poolrpc.ServerOrder.prototype.getAuctionType = function() { }; -/** @param {!proto.poolrpc.AuctionType} value */ +/** + * @param {!proto.poolrpc.AuctionType} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setAuctionType = function(value) { - jspb.Message.setProto3EnumField(this, 16, value); + return jspb.Message.setProto3EnumField(this, 16, value); }; /** * optional bool is_public = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ServerOrder.prototype.getIsPublic = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ServerOrder} returns this + */ proto.poolrpc.ServerOrder.prototype.setIsPublic = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; -/** - * 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.poolrpc.ServerBid = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerBid, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerBid.displayName = 'proto.poolrpc.ServerBid'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerBid.prototype.toObject = function(opt_includeInstance) { @@ -8669,8 +10033,8 @@ proto.poolrpc.ServerBid.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerBid} msg The msg instance to transform. * @return {!Object} @@ -8683,9 +10047,9 @@ proto.poolrpc.ServerBid.toObject = function(includeInstance, msg) { version: jspb.Message.getFieldWithDefault(msg, 4, 0), minNodeTier: jspb.Message.getFieldWithDefault(msg, 5, 0), selfChanBalance: jspb.Message.getFieldWithDefault(msg, 6, "0"), - isSidecarChannel: jspb.Message.getFieldWithDefault(msg, 7, false), - unannouncedChannel: jspb.Message.getFieldWithDefault(msg, 8, false), - zeroConfChannel: jspb.Message.getFieldWithDefault(msg, 9, false) + isSidecarChannel: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + unannouncedChannel: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + zeroConfChannel: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; if (includeInstance) { @@ -8854,20 +10218,27 @@ proto.poolrpc.ServerBid.prototype.getDetails = function() { }; -/** @param {?proto.poolrpc.ServerOrder|undefined} value */ +/** + * @param {?proto.poolrpc.ServerOrder|undefined} value + * @return {!proto.poolrpc.ServerBid} returns this +*/ proto.poolrpc.ServerBid.prototype.setDetails = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.clearDetails = function() { - this.setDetails(undefined); + return this.setDetails(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerBid.prototype.hasDetails = function() { return jspb.Message.getField(this, 1) != null; @@ -8883,9 +10254,12 @@ proto.poolrpc.ServerBid.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -8898,9 +10272,12 @@ proto.poolrpc.ServerBid.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -8913,9 +10290,12 @@ proto.poolrpc.ServerBid.prototype.getMinNodeTier = function() { }; -/** @param {!proto.poolrpc.NodeTier} value */ +/** + * @param {!proto.poolrpc.NodeTier} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setMinNodeTier = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); + return jspb.Message.setProto3EnumField(this, 5, value); }; @@ -8928,92 +10308,83 @@ proto.poolrpc.ServerBid.prototype.getSelfChanBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setSelfChanBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** * optional bool is_sidecar_channel = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ServerBid.prototype.getIsSidecarChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setIsSidecarChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional bool unannounced_channel = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ServerBid.prototype.getUnannouncedChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setUnannouncedChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional bool zero_conf_channel = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ServerBid.prototype.getZeroConfChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ServerBid} returns this + */ proto.poolrpc.ServerBid.prototype.setZeroConfChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; -/** - * 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.poolrpc.ServerAsk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerAsk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerAsk.displayName = 'proto.poolrpc.ServerAsk'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerAsk.prototype.toObject = function(opt_includeInstance) { @@ -9023,8 +10394,8 @@ proto.poolrpc.ServerAsk.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerAsk} msg The msg instance to transform. * @return {!Object} @@ -9172,20 +10543,27 @@ proto.poolrpc.ServerAsk.prototype.getDetails = function() { }; -/** @param {?proto.poolrpc.ServerOrder|undefined} value */ +/** + * @param {?proto.poolrpc.ServerOrder|undefined} value + * @return {!proto.poolrpc.ServerAsk} returns this +*/ proto.poolrpc.ServerAsk.prototype.setDetails = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerAsk} returns this + */ proto.poolrpc.ServerAsk.prototype.clearDetails = function() { - this.setDetails(undefined); + return this.setDetails(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerAsk.prototype.hasDetails = function() { return jspb.Message.getField(this, 1) != null; @@ -9201,9 +10579,12 @@ proto.poolrpc.ServerAsk.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerAsk} returns this + */ proto.poolrpc.ServerAsk.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -9216,9 +10597,12 @@ proto.poolrpc.ServerAsk.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerAsk} returns this + */ proto.poolrpc.ServerAsk.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -9231,9 +10615,12 @@ proto.poolrpc.ServerAsk.prototype.getAnnouncementConstraints = function() { }; -/** @param {!proto.poolrpc.ChannelAnnouncementConstraints} value */ +/** + * @param {!proto.poolrpc.ChannelAnnouncementConstraints} value + * @return {!proto.poolrpc.ServerAsk} returns this + */ proto.poolrpc.ServerAsk.prototype.setAnnouncementConstraints = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -9246,41 +10633,29 @@ proto.poolrpc.ServerAsk.prototype.getConfirmationConstraints = function() { }; -/** @param {!proto.poolrpc.ChannelConfirmationConstraints} value */ +/** + * @param {!proto.poolrpc.ChannelConfirmationConstraints} value + * @return {!proto.poolrpc.ServerAsk} returns this + */ proto.poolrpc.ServerAsk.prototype.setConfirmationConstraints = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); + return jspb.Message.setProto3EnumField(this, 7, value); }; -/** - * 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.poolrpc.CancelOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CancelOrder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CancelOrder.displayName = 'proto.poolrpc.CancelOrder'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CancelOrder.prototype.toObject = function(opt_includeInstance) { @@ -9290,8 +10665,8 @@ proto.poolrpc.CancelOrder.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CancelOrder} msg The msg instance to transform. * @return {!Object} @@ -9412,41 +10787,29 @@ proto.poolrpc.CancelOrder.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CancelOrder} returns this + */ proto.poolrpc.CancelOrder.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.InvalidOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.InvalidOrder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.InvalidOrder.displayName = 'proto.poolrpc.InvalidOrder'; -} - + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.InvalidOrder.prototype.toObject = function(opt_includeInstance) { @@ -9456,8 +10819,8 @@ proto.poolrpc.InvalidOrder.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.InvalidOrder} msg The msg instance to transform. * @return {!Object} @@ -9609,9 +10972,12 @@ proto.poolrpc.InvalidOrder.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.InvalidOrder} returns this + */ proto.poolrpc.InvalidOrder.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -9624,9 +10990,12 @@ proto.poolrpc.InvalidOrder.prototype.getFailReason = function() { }; -/** @param {!proto.poolrpc.InvalidOrder.FailReason} value */ +/** + * @param {!proto.poolrpc.InvalidOrder.FailReason} value + * @return {!proto.poolrpc.InvalidOrder} returns this + */ proto.poolrpc.InvalidOrder.prototype.setFailReason = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -9639,41 +11008,29 @@ proto.poolrpc.InvalidOrder.prototype.getFailString = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.InvalidOrder} returns this + */ proto.poolrpc.InvalidOrder.prototype.setFailString = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.poolrpc.ServerInput = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerInput, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerInput.displayName = 'proto.poolrpc.ServerInput'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerInput.prototype.toObject = function(opt_includeInstance) { @@ -9683,8 +11040,8 @@ proto.poolrpc.ServerInput.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerInput} msg The msg instance to transform. * @return {!Object} @@ -9796,20 +11153,27 @@ proto.poolrpc.ServerInput.prototype.getOutpoint = function() { }; -/** @param {?proto.poolrpc.OutPoint|undefined} value */ +/** + * @param {?proto.poolrpc.OutPoint|undefined} value + * @return {!proto.poolrpc.ServerInput} returns this +*/ proto.poolrpc.ServerInput.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerInput} returns this + */ proto.poolrpc.ServerInput.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerInput.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 1) != null; @@ -9849,41 +11213,29 @@ proto.poolrpc.ServerInput.prototype.getSigScript_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerInput} returns this + */ proto.poolrpc.ServerInput.prototype.setSigScript = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.ServerOutput = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerOutput, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerOutput.displayName = 'proto.poolrpc.ServerOutput'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerOutput.prototype.toObject = function(opt_includeInstance) { @@ -9893,8 +11245,8 @@ proto.poolrpc.ServerOutput.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerOutput} msg The msg instance to transform. * @return {!Object} @@ -10003,9 +11355,12 @@ proto.poolrpc.ServerOutput.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerOutput} returns this + */ proto.poolrpc.ServerOutput.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -10042,30 +11397,16 @@ proto.poolrpc.ServerOutput.prototype.getScript_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOutput} returns this + */ proto.poolrpc.ServerOutput.prototype.setScript = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.ServerModifyAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerModifyAccountRequest.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ServerModifyAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerModifyAccountRequest.displayName = 'proto.poolrpc.ServerModifyAccountRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10077,13 +11418,15 @@ proto.poolrpc.ServerModifyAccountRequest.repeatedFields_ = [2,3,6]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerModifyAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -10093,8 +11436,8 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerModifyAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -10254,34 +11597,19 @@ proto.poolrpc.ServerModifyAccountRequest.serializeBinaryToWriter = function(mess -/** - * 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.poolrpc.ServerModifyAccountRequest.NewAccountParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.displayName = 'proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.toObject = function(opt_includeInstance) { @@ -10291,8 +11619,8 @@ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters} msg The msg instance to transform. * @return {!Object} @@ -10413,9 +11741,12 @@ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.getValue }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters} returns this + */ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -10428,9 +11759,12 @@ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.getExpir }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters} returns this + */ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -10443,9 +11777,12 @@ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.getVersi }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters} returns this + */ proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -10482,9 +11819,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getTraderKey_asU8 = function( }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -10498,9 +11838,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getNewInputsList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this +*/ proto.poolrpc.ServerModifyAccountRequest.prototype.setNewInputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -10514,8 +11857,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.addNewInputs = function(opt_v }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.clearNewInputsList = function() { - this.setNewInputsList([]); + return this.setNewInputsList([]); }; @@ -10529,9 +11876,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getNewOutputsList = function( }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this +*/ proto.poolrpc.ServerModifyAccountRequest.prototype.setNewOutputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -10545,8 +11895,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.addNewOutputs = function(opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.clearNewOutputsList = function() { - this.setNewOutputsList([]); + return this.setNewOutputsList([]); }; @@ -10560,20 +11914,27 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getNewParams = function() { }; -/** @param {?proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters|undefined} value */ +/** + * @param {?proto.poolrpc.ServerModifyAccountRequest.NewAccountParameters|undefined} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this +*/ proto.poolrpc.ServerModifyAccountRequest.prototype.setNewParams = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.clearNewParams = function() { - this.setNewParams(undefined); + return this.setNewParams(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.ServerModifyAccountRequest.prototype.hasNewParams = function() { return jspb.Message.getField(this, 4) != null; @@ -10613,9 +11974,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getTraderNonces_asU8 = functi }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.setTraderNonces = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -10629,9 +11993,12 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.getPrevOutputsList = function }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this +*/ proto.poolrpc.ServerModifyAccountRequest.prototype.setPrevOutputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 6, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -10645,40 +12012,29 @@ proto.poolrpc.ServerModifyAccountRequest.prototype.addPrevOutputs = function(opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerModifyAccountRequest} returns this + */ proto.poolrpc.ServerModifyAccountRequest.prototype.clearPrevOutputsList = function() { - this.setPrevOutputsList([]); + return this.setPrevOutputsList([]); }; -/** - * 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.poolrpc.ServerModifyAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerModifyAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerModifyAccountResponse.displayName = 'proto.poolrpc.ServerModifyAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerModifyAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -10688,8 +12044,8 @@ proto.poolrpc.ServerModifyAccountResponse.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerModifyAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -10822,9 +12178,12 @@ proto.poolrpc.ServerModifyAccountResponse.prototype.getAccountSig_asU8 = functio }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerModifyAccountResponse} returns this + */ proto.poolrpc.ServerModifyAccountResponse.prototype.setAccountSig = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -10861,41 +12220,29 @@ proto.poolrpc.ServerModifyAccountResponse.prototype.getServerNonces_asU8 = funct }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerModifyAccountResponse} returns this + */ proto.poolrpc.ServerModifyAccountResponse.prototype.setServerNonces = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.ServerOrderStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerOrderStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerOrderStateRequest.displayName = 'proto.poolrpc.ServerOrderStateRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerOrderStateRequest.prototype.toObject = function(opt_includeInstance) { @@ -10905,8 +12252,8 @@ proto.poolrpc.ServerOrderStateRequest.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerOrderStateRequest} msg The msg instance to transform. * @return {!Object} @@ -11027,41 +12374,29 @@ proto.poolrpc.ServerOrderStateRequest.prototype.getOrderNonce_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ServerOrderStateRequest} returns this + */ proto.poolrpc.ServerOrderStateRequest.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.ServerOrderStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ServerOrderStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerOrderStateResponse.displayName = 'proto.poolrpc.ServerOrderStateResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerOrderStateResponse.prototype.toObject = function(opt_includeInstance) { @@ -11071,8 +12406,8 @@ proto.poolrpc.ServerOrderStateResponse.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerOrderStateResponse} msg The msg instance to transform. * @return {!Object} @@ -11181,9 +12516,12 @@ proto.poolrpc.ServerOrderStateResponse.prototype.getState = function() { }; -/** @param {!proto.poolrpc.OrderState} value */ +/** + * @param {!proto.poolrpc.OrderState} value + * @return {!proto.poolrpc.ServerOrderStateResponse} returns this + */ proto.poolrpc.ServerOrderStateResponse.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -11196,41 +12534,29 @@ proto.poolrpc.ServerOrderStateResponse.prototype.getUnitsUnfulfilled = function( }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.ServerOrderStateResponse} returns this + */ proto.poolrpc.ServerOrderStateResponse.prototype.setUnitsUnfulfilled = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.TermsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.TermsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.TermsRequest.displayName = 'proto.poolrpc.TermsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.TermsRequest.prototype.toObject = function(opt_includeInstance) { @@ -11240,8 +12566,8 @@ proto.poolrpc.TermsRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.TermsRequest} msg The msg instance to transform. * @return {!Object} @@ -11319,34 +12645,19 @@ proto.poolrpc.TermsRequest.serializeBinaryToWriter = function(message, writer) { -/** - * 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.poolrpc.TermsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.TermsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.TermsResponse.displayName = 'proto.poolrpc.TermsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.TermsResponse.prototype.toObject = function(opt_includeInstance) { @@ -11356,8 +12667,8 @@ proto.poolrpc.TermsResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.TermsResponse} msg The msg instance to transform. * @return {!Object} @@ -11426,7 +12737,7 @@ proto.poolrpc.TermsResponse.deserializeBinaryFromReader = function(msg, reader) case 4: var value = msg.getLeaseDurationsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readBool, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readBool, null, 0, false); }); break; case 5: @@ -11444,7 +12755,7 @@ proto.poolrpc.TermsResponse.deserializeBinaryFromReader = function(msg, reader) case 8: var value = msg.getLeaseDurationBucketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readEnum, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readEnum, null, 0, 0); }); break; case 9: @@ -11550,9 +12861,12 @@ proto.poolrpc.TermsResponse.prototype.getMaxAccountValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setMaxAccountValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -11565,9 +12879,12 @@ proto.poolrpc.TermsResponse.prototype.getMaxOrderDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setMaxOrderDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -11581,20 +12898,27 @@ proto.poolrpc.TermsResponse.prototype.getExecutionFee = function() { }; -/** @param {?proto.poolrpc.ExecutionFee|undefined} value */ +/** + * @param {?proto.poolrpc.ExecutionFee|undefined} value + * @return {!proto.poolrpc.TermsResponse} returns this +*/ proto.poolrpc.TermsResponse.prototype.setExecutionFee = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.clearExecutionFee = function() { - this.setExecutionFee(undefined); + return this.setExecutionFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.TermsResponse.prototype.hasExecutionFee = function() { return jspb.Message.getField(this, 3) != null; @@ -11614,9 +12938,13 @@ proto.poolrpc.TermsResponse.prototype.getLeaseDurationsMap = function(opt_noLazy }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.clearLeaseDurationsMap = function() { this.getLeaseDurationsMap().clear(); -}; + return this;}; /** @@ -11628,9 +12956,12 @@ proto.poolrpc.TermsResponse.prototype.getNextBatchConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setNextBatchConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -11643,9 +12974,12 @@ proto.poolrpc.TermsResponse.prototype.getNextBatchFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setNextBatchFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -11658,9 +12992,12 @@ proto.poolrpc.TermsResponse.prototype.getNextBatchClearTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setNextBatchClearTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -11677,9 +13014,13 @@ proto.poolrpc.TermsResponse.prototype.getLeaseDurationBucketsMap = function(opt_ }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.clearLeaseDurationBucketsMap = function() { this.getLeaseDurationBucketsMap().clear(); -}; + return this;}; /** @@ -11690,31 +13031,17 @@ proto.poolrpc.TermsResponse.prototype.getAutoRenewExtensionBlocks = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; - -/** @param {number} value */ -proto.poolrpc.TermsResponse.prototype.setAutoRenewExtensionBlocks = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - -/** - * 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 + +/** + * @param {number} value + * @return {!proto.poolrpc.TermsResponse} returns this */ -proto.poolrpc.RelevantBatchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.RelevantBatchRequest.repeatedFields_, null); +proto.poolrpc.TermsResponse.prototype.setAutoRenewExtensionBlocks = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); }; -goog.inherits(proto.poolrpc.RelevantBatchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RelevantBatchRequest.displayName = 'proto.poolrpc.RelevantBatchRequest'; -} + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -11726,13 +13053,15 @@ proto.poolrpc.RelevantBatchRequest.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RelevantBatchRequest.prototype.toObject = function(opt_includeInstance) { @@ -11742,8 +13071,8 @@ proto.poolrpc.RelevantBatchRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RelevantBatchRequest} msg The msg instance to transform. * @return {!Object} @@ -11876,9 +13205,12 @@ proto.poolrpc.RelevantBatchRequest.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.RelevantBatchRequest} returns this + */ proto.poolrpc.RelevantBatchRequest.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -11915,44 +13247,35 @@ proto.poolrpc.RelevantBatchRequest.prototype.getAccountsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.RelevantBatchRequest} returns this + */ proto.poolrpc.RelevantBatchRequest.prototype.setAccountsList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.RelevantBatchRequest} returns this */ proto.poolrpc.RelevantBatchRequest.prototype.addAccounts = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.RelevantBatchRequest} returns this + */ proto.poolrpc.RelevantBatchRequest.prototype.clearAccountsList = function() { - this.setAccountsList([]); + return this.setAccountsList([]); }; -/** - * 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.poolrpc.RelevantBatch = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.RelevantBatch.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.RelevantBatch, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RelevantBatch.displayName = 'proto.poolrpc.RelevantBatch'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11964,13 +13287,15 @@ proto.poolrpc.RelevantBatch.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RelevantBatch.prototype.toObject = function(opt_includeInstance) { @@ -11980,8 +13305,8 @@ proto.poolrpc.RelevantBatch.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RelevantBatch} msg The msg instance to transform. * @return {!Object} @@ -12052,7 +13377,7 @@ proto.poolrpc.RelevantBatch.deserializeBinaryFromReader = function(msg, reader) case 4: var value = msg.getMatchedOrdersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedOrder.deserializeBinaryFromReader, "", new proto.poolrpc.MatchedOrder()); }); break; case 5: @@ -12079,7 +13404,7 @@ proto.poolrpc.RelevantBatch.deserializeBinaryFromReader = function(msg, reader) case 10: var value = msg.getMatchedMarketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarket.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarket.deserializeBinaryFromReader, 0, new proto.poolrpc.MatchedMarket()); }); break; default: @@ -12189,9 +13514,12 @@ proto.poolrpc.RelevantBatch.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -12228,9 +13556,12 @@ proto.poolrpc.RelevantBatch.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -12244,9 +13575,12 @@ proto.poolrpc.RelevantBatch.prototype.getChargedAccountsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.RelevantBatch} returns this +*/ proto.poolrpc.RelevantBatch.prototype.setChargedAccountsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -12260,8 +13594,12 @@ proto.poolrpc.RelevantBatch.prototype.addChargedAccounts = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.clearChargedAccountsList = function() { - this.setChargedAccountsList([]); + return this.setChargedAccountsList([]); }; @@ -12278,9 +13616,13 @@ proto.poolrpc.RelevantBatch.prototype.getMatchedOrdersMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.clearMatchedOrdersMap = function() { this.getMatchedOrdersMap().clear(); -}; + return this;}; /** @@ -12292,9 +13634,12 @@ proto.poolrpc.RelevantBatch.prototype.getClearingPriceRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setClearingPriceRate = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -12308,20 +13653,27 @@ proto.poolrpc.RelevantBatch.prototype.getExecutionFee = function() { }; -/** @param {?proto.poolrpc.ExecutionFee|undefined} value */ +/** + * @param {?proto.poolrpc.ExecutionFee|undefined} value + * @return {!proto.poolrpc.RelevantBatch} returns this +*/ proto.poolrpc.RelevantBatch.prototype.setExecutionFee = function(value) { - jspb.Message.setWrapperField(this, 6, value); + return jspb.Message.setWrapperField(this, 6, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.clearExecutionFee = function() { - this.setExecutionFee(undefined); + return this.setExecutionFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.RelevantBatch.prototype.hasExecutionFee = function() { return jspb.Message.getField(this, 6) != null; @@ -12361,9 +13713,12 @@ proto.poolrpc.RelevantBatch.prototype.getTransaction_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setTransaction = function(value) { - jspb.Message.setProto3BytesField(this, 7, value); + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -12376,9 +13731,12 @@ proto.poolrpc.RelevantBatch.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -12391,9 +13749,12 @@ proto.poolrpc.RelevantBatch.prototype.getCreationTimestampNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.setCreationTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -12410,40 +13771,29 @@ proto.poolrpc.RelevantBatch.prototype.getMatchedMarketsMap = function(opt_noLazy }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.RelevantBatch} returns this + */ proto.poolrpc.RelevantBatch.prototype.clearMatchedMarketsMap = function() { this.getMatchedMarketsMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.ExecutionFee = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ExecutionFee, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ExecutionFee.displayName = 'proto.poolrpc.ExecutionFee'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ExecutionFee.prototype.toObject = function(opt_includeInstance) { @@ -12453,8 +13803,8 @@ proto.poolrpc.ExecutionFee.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ExecutionFee} msg The msg instance to transform. * @return {!Object} @@ -12563,9 +13913,12 @@ proto.poolrpc.ExecutionFee.prototype.getBaseFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ExecutionFee} returns this + */ proto.poolrpc.ExecutionFee.prototype.setBaseFee = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -12578,41 +13931,29 @@ proto.poolrpc.ExecutionFee.prototype.getFeeRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ExecutionFee} returns this + */ proto.poolrpc.ExecutionFee.prototype.setFeeRate = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.poolrpc.NodeAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.NodeAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NodeAddress.displayName = 'proto.poolrpc.NodeAddress'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NodeAddress.prototype.toObject = function(opt_includeInstance) { @@ -12622,8 +13963,8 @@ proto.poolrpc.NodeAddress.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NodeAddress} msg The msg instance to transform. * @return {!Object} @@ -12732,9 +14073,12 @@ proto.poolrpc.NodeAddress.prototype.getNetwork = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.NodeAddress} returns this + */ proto.poolrpc.NodeAddress.prototype.setNetwork = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -12747,41 +14091,29 @@ proto.poolrpc.NodeAddress.prototype.getAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.NodeAddress} returns this + */ proto.poolrpc.NodeAddress.prototype.setAddr = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.poolrpc.OutPoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OutPoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OutPoint.displayName = 'proto.poolrpc.OutPoint'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OutPoint.prototype.toObject = function(opt_includeInstance) { @@ -12791,8 +14123,8 @@ proto.poolrpc.OutPoint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OutPoint} msg The msg instance to transform. * @return {!Object} @@ -12925,9 +14257,12 @@ proto.poolrpc.OutPoint.prototype.getTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.OutPoint} returns this + */ proto.poolrpc.OutPoint.prototype.setTxid = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -12940,41 +14275,29 @@ proto.poolrpc.OutPoint.prototype.getOutputIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.OutPoint} returns this + */ proto.poolrpc.OutPoint.prototype.setOutputIndex = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.AskSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AskSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AskSnapshot.displayName = 'proto.poolrpc.AskSnapshot'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AskSnapshot.prototype.toObject = function(opt_includeInstance) { @@ -12984,8 +14307,8 @@ proto.poolrpc.AskSnapshot.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AskSnapshot} msg The msg instance to transform. * @return {!Object} @@ -13118,9 +14441,12 @@ proto.poolrpc.AskSnapshot.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AskSnapshot} returns this + */ proto.poolrpc.AskSnapshot.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -13133,9 +14459,12 @@ proto.poolrpc.AskSnapshot.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AskSnapshot} returns this + */ proto.poolrpc.AskSnapshot.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -13148,9 +14477,12 @@ proto.poolrpc.AskSnapshot.prototype.getRateFixed = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AskSnapshot} returns this + */ proto.poolrpc.AskSnapshot.prototype.setRateFixed = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -13163,41 +14495,29 @@ proto.poolrpc.AskSnapshot.prototype.getChanType = function() { }; -/** @param {!proto.poolrpc.OrderChannelType} value */ +/** + * @param {!proto.poolrpc.OrderChannelType} value + * @return {!proto.poolrpc.AskSnapshot} returns this + */ proto.poolrpc.AskSnapshot.prototype.setChanType = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; -/** - * 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.poolrpc.BidSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.BidSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BidSnapshot.displayName = 'proto.poolrpc.BidSnapshot'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BidSnapshot.prototype.toObject = function(opt_includeInstance) { @@ -13207,8 +14527,8 @@ proto.poolrpc.BidSnapshot.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BidSnapshot} msg The msg instance to transform. * @return {!Object} @@ -13341,9 +14661,12 @@ proto.poolrpc.BidSnapshot.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BidSnapshot} returns this + */ proto.poolrpc.BidSnapshot.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -13356,9 +14679,12 @@ proto.poolrpc.BidSnapshot.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BidSnapshot} returns this + */ proto.poolrpc.BidSnapshot.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -13371,9 +14697,12 @@ proto.poolrpc.BidSnapshot.prototype.getRateFixed = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BidSnapshot} returns this + */ proto.poolrpc.BidSnapshot.prototype.setRateFixed = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -13386,41 +14715,29 @@ proto.poolrpc.BidSnapshot.prototype.getChanType = function() { }; -/** @param {!proto.poolrpc.OrderChannelType} value */ +/** + * @param {!proto.poolrpc.OrderChannelType} value + * @return {!proto.poolrpc.BidSnapshot} returns this + */ proto.poolrpc.BidSnapshot.prototype.setChanType = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; -/** - * 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.poolrpc.MatchedOrderSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MatchedOrderSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedOrderSnapshot.displayName = 'proto.poolrpc.MatchedOrderSnapshot'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedOrderSnapshot.prototype.toObject = function(opt_includeInstance) { @@ -13430,8 +14747,8 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedOrderSnapshot} msg The msg instance to transform. * @return {!Object} @@ -13581,20 +14898,27 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.getAsk = function() { }; -/** @param {?proto.poolrpc.AskSnapshot|undefined} value */ +/** + * @param {?proto.poolrpc.AskSnapshot|undefined} value + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this +*/ proto.poolrpc.MatchedOrderSnapshot.prototype.setAsk = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this + */ proto.poolrpc.MatchedOrderSnapshot.prototype.clearAsk = function() { - this.setAsk(undefined); + return this.setAsk(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.MatchedOrderSnapshot.prototype.hasAsk = function() { return jspb.Message.getField(this, 1) != null; @@ -13611,20 +14935,27 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.getBid = function() { }; -/** @param {?proto.poolrpc.BidSnapshot|undefined} value */ +/** + * @param {?proto.poolrpc.BidSnapshot|undefined} value + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this +*/ proto.poolrpc.MatchedOrderSnapshot.prototype.setBid = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this + */ proto.poolrpc.MatchedOrderSnapshot.prototype.clearBid = function() { - this.setBid(undefined); + return this.setBid(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.MatchedOrderSnapshot.prototype.hasBid = function() { return jspb.Message.getField(this, 2) != null; @@ -13640,9 +14971,12 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.getMatchingRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this + */ proto.poolrpc.MatchedOrderSnapshot.prototype.setMatchingRate = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -13655,9 +14989,12 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.getTotalSatsCleared = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this + */ proto.poolrpc.MatchedOrderSnapshot.prototype.setTotalSatsCleared = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -13670,41 +15007,29 @@ proto.poolrpc.MatchedOrderSnapshot.prototype.getUnitsMatched = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedOrderSnapshot} returns this + */ proto.poolrpc.MatchedOrderSnapshot.prototype.setUnitsMatched = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * 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.poolrpc.BatchSnapshotRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.BatchSnapshotRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BatchSnapshotRequest.displayName = 'proto.poolrpc.BatchSnapshotRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BatchSnapshotRequest.prototype.toObject = function(opt_includeInstance) { @@ -13714,8 +15039,8 @@ proto.poolrpc.BatchSnapshotRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BatchSnapshotRequest} msg The msg instance to transform. * @return {!Object} @@ -13836,30 +15161,16 @@ proto.poolrpc.BatchSnapshotRequest.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ -proto.poolrpc.BatchSnapshotRequest.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); -}; - - - /** - * 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.poolrpc.MatchedMarketSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MatchedMarketSnapshot.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.MatchedMarketSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedMarketSnapshot.displayName = 'proto.poolrpc.MatchedMarketSnapshot'; -} + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotRequest} returns this + */ +proto.poolrpc.BatchSnapshotRequest.prototype.setBatchId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -13871,13 +15182,15 @@ proto.poolrpc.MatchedMarketSnapshot.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchedMarketSnapshot.prototype.toObject = function(opt_includeInstance) { @@ -13887,8 +15200,8 @@ proto.poolrpc.MatchedMarketSnapshot.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchedMarketSnapshot} msg The msg instance to transform. * @return {!Object} @@ -14001,9 +15314,12 @@ proto.poolrpc.MatchedMarketSnapshot.prototype.getMatchedOrdersList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MatchedMarketSnapshot} returns this +*/ proto.poolrpc.MatchedMarketSnapshot.prototype.setMatchedOrdersList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -14017,8 +15333,12 @@ proto.poolrpc.MatchedMarketSnapshot.prototype.addMatchedOrders = function(opt_va }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MatchedMarketSnapshot} returns this + */ proto.poolrpc.MatchedMarketSnapshot.prototype.clearMatchedOrdersList = function() { - this.setMatchedOrdersList([]); + return this.setMatchedOrdersList([]); }; @@ -14031,30 +15351,16 @@ proto.poolrpc.MatchedMarketSnapshot.prototype.getClearingPriceRate = function() }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchedMarketSnapshot} returns this + */ proto.poolrpc.MatchedMarketSnapshot.prototype.setClearingPriceRate = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.BatchSnapshotResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.BatchSnapshotResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.BatchSnapshotResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BatchSnapshotResponse.displayName = 'proto.poolrpc.BatchSnapshotResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -14066,13 +15372,15 @@ proto.poolrpc.BatchSnapshotResponse.repeatedFields_ = [5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BatchSnapshotResponse.prototype.toObject = function(opt_includeInstance) { @@ -14082,8 +15390,8 @@ proto.poolrpc.BatchSnapshotResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BatchSnapshotResponse} msg The msg instance to transform. * @return {!Object} @@ -14178,7 +15486,7 @@ proto.poolrpc.BatchSnapshotResponse.deserializeBinaryFromReader = function(msg, case 10: var value = msg.getMatchedMarketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarketSnapshot.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MatchedMarketSnapshot.deserializeBinaryFromReader, 0, new proto.poolrpc.MatchedMarketSnapshot()); }); break; default: @@ -14290,9 +15598,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -14329,9 +15640,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -14368,9 +15682,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getPrevBatchId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setPrevBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -14383,9 +15700,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getClearingPriceRate = function() }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setClearingPriceRate = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -14399,9 +15719,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getMatchedOrdersList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this +*/ proto.poolrpc.BatchSnapshotResponse.prototype.setMatchedOrdersList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -14415,8 +15738,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.addMatchedOrders = function(opt_va }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.clearMatchedOrdersList = function() { - this.setMatchedOrdersList([]); + return this.setMatchedOrdersList([]); }; @@ -14429,9 +15756,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getBatchTxId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setBatchTxId = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -14468,9 +15798,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getBatchTx_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setBatchTx = function(value) { - jspb.Message.setProto3BytesField(this, 6, value); + return jspb.Message.setProto3BytesField(this, 6, value); }; @@ -14483,9 +15816,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getBatchTxFeeRateSatPerKw = functi }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setBatchTxFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -14498,9 +15834,12 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getCreationTimestampNs = function( }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.setCreationTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -14517,29 +15856,16 @@ proto.poolrpc.BatchSnapshotResponse.prototype.getMatchedMarketsMap = function(op }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.BatchSnapshotResponse} returns this + */ proto.poolrpc.BatchSnapshotResponse.prototype.clearMatchedMarketsMap = function() { this.getMatchedMarketsMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.ServerNodeRatingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerNodeRatingRequest.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ServerNodeRatingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerNodeRatingRequest.displayName = 'proto.poolrpc.ServerNodeRatingRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -14551,13 +15877,15 @@ proto.poolrpc.ServerNodeRatingRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerNodeRatingRequest.prototype.toObject = function(opt_includeInstance) { @@ -14567,8 +15895,8 @@ proto.poolrpc.ServerNodeRatingRequest.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerNodeRatingRequest} msg The msg instance to transform. * @return {!Object} @@ -14689,55 +16017,48 @@ proto.poolrpc.ServerNodeRatingRequest.prototype.getNodePubkeysList_asU8 = functi }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.ServerNodeRatingRequest} returns this + */ proto.poolrpc.ServerNodeRatingRequest.prototype.setNodePubkeysList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.ServerNodeRatingRequest} returns this */ proto.poolrpc.ServerNodeRatingRequest.prototype.addNodePubkeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerNodeRatingRequest} returns this + */ proto.poolrpc.ServerNodeRatingRequest.prototype.clearNodePubkeysList = function() { - this.setNodePubkeysList([]); + return this.setNodePubkeysList([]); }; -/** - * 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.poolrpc.NodeRating = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.NodeRating, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NodeRating.displayName = 'proto.poolrpc.NodeRating'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NodeRating.prototype.toObject = function(opt_includeInstance) { @@ -14747,8 +16068,8 @@ proto.poolrpc.NodeRating.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NodeRating} msg The msg instance to transform. * @return {!Object} @@ -14881,9 +16202,12 @@ proto.poolrpc.NodeRating.prototype.getNodePubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.NodeRating} returns this + */ proto.poolrpc.NodeRating.prototype.setNodePubkey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -14896,30 +16220,16 @@ proto.poolrpc.NodeRating.prototype.getNodeTier = function() { }; -/** @param {!proto.poolrpc.NodeTier} value */ +/** + * @param {!proto.poolrpc.NodeTier} value + * @return {!proto.poolrpc.NodeRating} returns this + */ proto.poolrpc.NodeRating.prototype.setNodeTier = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.poolrpc.ServerNodeRatingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ServerNodeRatingResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ServerNodeRatingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ServerNodeRatingResponse.displayName = 'proto.poolrpc.ServerNodeRatingResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -14931,13 +16241,15 @@ proto.poolrpc.ServerNodeRatingResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ServerNodeRatingResponse.prototype.toObject = function(opt_includeInstance) { @@ -14947,8 +16259,8 @@ proto.poolrpc.ServerNodeRatingResponse.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ServerNodeRatingResponse} msg The msg instance to transform. * @return {!Object} @@ -15049,9 +16361,12 @@ proto.poolrpc.ServerNodeRatingResponse.prototype.getNodeRatingsList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ServerNodeRatingResponse} returns this +*/ proto.poolrpc.ServerNodeRatingResponse.prototype.setNodeRatingsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -15065,40 +16380,29 @@ proto.poolrpc.ServerNodeRatingResponse.prototype.addNodeRatings = function(opt_v }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ServerNodeRatingResponse} returns this + */ proto.poolrpc.ServerNodeRatingResponse.prototype.clearNodeRatingsList = function() { - this.setNodeRatingsList([]); + return this.setNodeRatingsList([]); }; -/** - * 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.poolrpc.BatchSnapshotsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.BatchSnapshotsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BatchSnapshotsRequest.displayName = 'proto.poolrpc.BatchSnapshotsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BatchSnapshotsRequest.prototype.toObject = function(opt_includeInstance) { @@ -15108,8 +16412,8 @@ proto.poolrpc.BatchSnapshotsRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BatchSnapshotsRequest} msg The msg instance to transform. * @return {!Object} @@ -15242,9 +16546,12 @@ proto.poolrpc.BatchSnapshotsRequest.prototype.getStartBatchId_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotsRequest} returns this + */ proto.poolrpc.BatchSnapshotsRequest.prototype.setStartBatchId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -15257,30 +16564,16 @@ proto.poolrpc.BatchSnapshotsRequest.prototype.getNumBatchesBack = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.BatchSnapshotsRequest} returns this + */ proto.poolrpc.BatchSnapshotsRequest.prototype.setNumBatchesBack = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.poolrpc.BatchSnapshotsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.BatchSnapshotsResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.BatchSnapshotsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BatchSnapshotsResponse.displayName = 'proto.poolrpc.BatchSnapshotsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -15292,13 +16585,15 @@ proto.poolrpc.BatchSnapshotsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BatchSnapshotsResponse.prototype.toObject = function(opt_includeInstance) { @@ -15308,8 +16603,8 @@ proto.poolrpc.BatchSnapshotsResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BatchSnapshotsResponse} msg The msg instance to transform. * @return {!Object} @@ -15410,9 +16705,12 @@ proto.poolrpc.BatchSnapshotsResponse.prototype.getBatchesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.BatchSnapshotsResponse} returns this +*/ proto.poolrpc.BatchSnapshotsResponse.prototype.setBatchesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -15426,40 +16724,29 @@ proto.poolrpc.BatchSnapshotsResponse.prototype.addBatches = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.BatchSnapshotsResponse} returns this + */ proto.poolrpc.BatchSnapshotsResponse.prototype.clearBatchesList = function() { - this.setBatchesList([]); + return this.setBatchesList([]); }; -/** - * 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.poolrpc.MarketInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MarketInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MarketInfoRequest.displayName = 'proto.poolrpc.MarketInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MarketInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -15469,8 +16756,8 @@ proto.poolrpc.MarketInfoRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MarketInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -15548,23 +16835,6 @@ proto.poolrpc.MarketInfoRequest.serializeBinaryToWriter = function(message, writ -/** - * 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.poolrpc.MarketInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MarketInfo.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.MarketInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MarketInfo.displayName = 'proto.poolrpc.MarketInfo'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -15576,13 +16846,15 @@ proto.poolrpc.MarketInfo.repeatedFields_ = [1,2,3,4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MarketInfo.prototype.toObject = function(opt_includeInstance) { @@ -15592,8 +16864,8 @@ proto.poolrpc.MarketInfo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MarketInfo} msg The msg instance to transform. * @return {!Object} @@ -15730,34 +17002,19 @@ proto.poolrpc.MarketInfo.serializeBinaryToWriter = function(message, writer) { -/** - * 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.poolrpc.MarketInfo.TierValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MarketInfo.TierValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MarketInfo.TierValue.displayName = 'proto.poolrpc.MarketInfo.TierValue'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MarketInfo.TierValue.prototype.toObject = function(opt_includeInstance) { @@ -15767,8 +17024,8 @@ proto.poolrpc.MarketInfo.TierValue.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MarketInfo.TierValue} msg The msg instance to transform. * @return {!Object} @@ -15877,9 +17134,12 @@ proto.poolrpc.MarketInfo.TierValue.prototype.getTier = function() { }; -/** @param {!proto.poolrpc.NodeTier} value */ +/** + * @param {!proto.poolrpc.NodeTier} value + * @return {!proto.poolrpc.MarketInfo.TierValue} returns this + */ proto.poolrpc.MarketInfo.TierValue.prototype.setTier = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -15892,9 +17152,12 @@ proto.poolrpc.MarketInfo.TierValue.prototype.getValue = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MarketInfo.TierValue} returns this + */ proto.poolrpc.MarketInfo.TierValue.prototype.setValue = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -15908,9 +17171,12 @@ proto.poolrpc.MarketInfo.prototype.getNumAsksList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MarketInfo} returns this +*/ proto.poolrpc.MarketInfo.prototype.setNumAsksList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -15924,8 +17190,12 @@ proto.poolrpc.MarketInfo.prototype.addNumAsks = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MarketInfo} returns this + */ proto.poolrpc.MarketInfo.prototype.clearNumAsksList = function() { - this.setNumAsksList([]); + return this.setNumAsksList([]); }; @@ -15939,9 +17209,12 @@ proto.poolrpc.MarketInfo.prototype.getNumBidsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MarketInfo} returns this +*/ proto.poolrpc.MarketInfo.prototype.setNumBidsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -15955,8 +17228,12 @@ proto.poolrpc.MarketInfo.prototype.addNumBids = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MarketInfo} returns this + */ proto.poolrpc.MarketInfo.prototype.clearNumBidsList = function() { - this.setNumBidsList([]); + return this.setNumBidsList([]); }; @@ -15970,9 +17247,12 @@ proto.poolrpc.MarketInfo.prototype.getAskOpenInterestUnitsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MarketInfo} returns this +*/ proto.poolrpc.MarketInfo.prototype.setAskOpenInterestUnitsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -15986,8 +17266,12 @@ proto.poolrpc.MarketInfo.prototype.addAskOpenInterestUnits = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MarketInfo} returns this + */ proto.poolrpc.MarketInfo.prototype.clearAskOpenInterestUnitsList = function() { - this.setAskOpenInterestUnitsList([]); + return this.setAskOpenInterestUnitsList([]); }; @@ -16001,9 +17285,12 @@ proto.poolrpc.MarketInfo.prototype.getBidOpenInterestUnitsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.MarketInfo} returns this +*/ proto.poolrpc.MarketInfo.prototype.setBidOpenInterestUnitsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -16017,40 +17304,29 @@ proto.poolrpc.MarketInfo.prototype.addBidOpenInterestUnits = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.MarketInfo} returns this + */ proto.poolrpc.MarketInfo.prototype.clearBidOpenInterestUnitsList = function() { - this.setBidOpenInterestUnitsList([]); + return this.setBidOpenInterestUnitsList([]); }; -/** - * 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.poolrpc.MarketInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MarketInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MarketInfoResponse.displayName = 'proto.poolrpc.MarketInfoResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MarketInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -16060,8 +17336,8 @@ proto.poolrpc.MarketInfoResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MarketInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -16109,7 +17385,7 @@ proto.poolrpc.MarketInfoResponse.deserializeBinaryFromReader = function(msg, rea case 1: var value = msg.getMarketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MarketInfo.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.MarketInfo.deserializeBinaryFromReader, 0, new proto.poolrpc.MarketInfo()); }); break; default: @@ -16161,9 +17437,13 @@ proto.poolrpc.MarketInfoResponse.prototype.getMarketsMap = function(opt_noLazyCr }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.MarketInfoResponse} returns this + */ proto.poolrpc.MarketInfoResponse.prototype.clearMarketsMap = function() { this.getMarketsMap().clear(); -}; + return this;}; /** diff --git a/app/src/types/generated/firewall_pb.js b/app/src/types/generated/firewall_pb.js index 76fdae118..aebc5f990 100644 --- a/app/src/types/generated/firewall_pb.js +++ b/app/src/types/generated/firewall_pb.js @@ -1,18 +1,28 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: firewall.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.litrpc.Action', null, global); goog.exportSymbol('proto.litrpc.ActionState', null, global); @@ -20,7 +30,6 @@ goog.exportSymbol('proto.litrpc.ListActionsRequest', null, global); goog.exportSymbol('proto.litrpc.ListActionsResponse', null, global); goog.exportSymbol('proto.litrpc.PrivacyMapConversionRequest', null, global); goog.exportSymbol('proto.litrpc.PrivacyMapConversionResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -36,19 +45,110 @@ proto.litrpc.PrivacyMapConversionRequest = function(opt_data) { }; goog.inherits(proto.litrpc.PrivacyMapConversionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.PrivacyMapConversionRequest.displayName = 'proto.litrpc.PrivacyMapConversionRequest'; } +/** + * 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.litrpc.PrivacyMapConversionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.PrivacyMapConversionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.PrivacyMapConversionResponse.displayName = 'proto.litrpc.PrivacyMapConversionResponse'; +} +/** + * 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.litrpc.ListActionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListActionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListActionsRequest.displayName = 'proto.litrpc.ListActionsRequest'; +} +/** + * 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.litrpc.ListActionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListActionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.ListActionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListActionsResponse.displayName = 'proto.litrpc.ListActionsResponse'; +} +/** + * 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.litrpc.Action = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.Action, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Action.displayName = 'proto.litrpc.Action'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.PrivacyMapConversionRequest.prototype.toObject = function(opt_includeInstance) { @@ -58,8 +158,8 @@ proto.litrpc.PrivacyMapConversionRequest.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.PrivacyMapConversionRequest} msg The msg instance to transform. * @return {!Object} @@ -67,7 +167,7 @@ proto.litrpc.PrivacyMapConversionRequest.prototype.toObject = function(opt_inclu */ proto.litrpc.PrivacyMapConversionRequest.toObject = function(includeInstance, msg) { var f, obj = { - realToPseudo: jspb.Message.getFieldWithDefault(msg, 1, false), + realToPseudo: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), sessionId: msg.getSessionId_asB64(), input: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -173,18 +273,19 @@ proto.litrpc.PrivacyMapConversionRequest.serializeBinaryToWriter = function(mess /** * optional bool real_to_pseudo = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.PrivacyMapConversionRequest.prototype.getRealToPseudo = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.PrivacyMapConversionRequest} returns this + */ proto.litrpc.PrivacyMapConversionRequest.prototype.setRealToPseudo = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -221,9 +322,12 @@ proto.litrpc.PrivacyMapConversionRequest.prototype.getSessionId_asU8 = function( }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.PrivacyMapConversionRequest} returns this + */ proto.litrpc.PrivacyMapConversionRequest.prototype.setSessionId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -236,41 +340,29 @@ proto.litrpc.PrivacyMapConversionRequest.prototype.getInput = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.PrivacyMapConversionRequest} returns this + */ proto.litrpc.PrivacyMapConversionRequest.prototype.setInput = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.litrpc.PrivacyMapConversionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.PrivacyMapConversionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.PrivacyMapConversionResponse.displayName = 'proto.litrpc.PrivacyMapConversionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.PrivacyMapConversionResponse.prototype.toObject = function(opt_includeInstance) { @@ -280,8 +372,8 @@ proto.litrpc.PrivacyMapConversionResponse.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.PrivacyMapConversionResponse} msg The msg instance to transform. * @return {!Object} @@ -378,41 +470,29 @@ proto.litrpc.PrivacyMapConversionResponse.prototype.getOutput = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.PrivacyMapConversionResponse} returns this + */ proto.litrpc.PrivacyMapConversionResponse.prototype.setOutput = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.litrpc.ListActionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListActionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListActionsRequest.displayName = 'proto.litrpc.ListActionsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListActionsRequest.prototype.toObject = function(opt_includeInstance) { @@ -422,8 +502,8 @@ proto.litrpc.ListActionsRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListActionsRequest} msg The msg instance to transform. * @return {!Object} @@ -437,8 +517,8 @@ proto.litrpc.ListActionsRequest.toObject = function(includeInstance, msg) { state: jspb.Message.getFieldWithDefault(msg, 4, 0), indexOffset: jspb.Message.getFieldWithDefault(msg, 5, "0"), maxNumActions: jspb.Message.getFieldWithDefault(msg, 6, "0"), - reversed: jspb.Message.getFieldWithDefault(msg, 7, false), - countTotal: jspb.Message.getFieldWithDefault(msg, 8, false), + reversed: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + countTotal: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), sessionId: msg.getSessionId_asB64(), startTimestamp: jspb.Message.getFieldWithDefault(msg, 10, "0"), endTimestamp: jspb.Message.getFieldWithDefault(msg, 11, "0") @@ -640,9 +720,12 @@ proto.litrpc.ListActionsRequest.prototype.getFeatureName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setFeatureName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -655,9 +738,12 @@ proto.litrpc.ListActionsRequest.prototype.getActorName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setActorName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -670,9 +756,12 @@ proto.litrpc.ListActionsRequest.prototype.getMethodName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setMethodName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -685,9 +774,12 @@ proto.litrpc.ListActionsRequest.prototype.getState = function() { }; -/** @param {!proto.litrpc.ActionState} value */ +/** + * @param {!proto.litrpc.ActionState} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -700,9 +792,12 @@ proto.litrpc.ListActionsRequest.prototype.getIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -715,43 +810,48 @@ proto.litrpc.ListActionsRequest.prototype.getMaxNumActions = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setMaxNumActions = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** * optional bool reversed = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.ListActionsRequest.prototype.getReversed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setReversed = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional bool count_total = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.ListActionsRequest.prototype.getCountTotal = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setCountTotal = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; @@ -788,9 +888,12 @@ proto.litrpc.ListActionsRequest.prototype.getSessionId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setSessionId = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -803,9 +906,12 @@ proto.litrpc.ListActionsRequest.prototype.getStartTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setStartTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -818,30 +924,16 @@ proto.litrpc.ListActionsRequest.prototype.getEndTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setEndTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; -/** - * 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.litrpc.ListActionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListActionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.ListActionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListActionsResponse.displayName = 'proto.litrpc.ListActionsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -853,13 +945,15 @@ proto.litrpc.ListActionsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListActionsResponse.prototype.toObject = function(opt_includeInstance) { @@ -869,8 +963,8 @@ proto.litrpc.ListActionsResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListActionsResponse} msg The msg instance to transform. * @return {!Object} @@ -995,9 +1089,12 @@ proto.litrpc.ListActionsResponse.prototype.getActionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.ListActionsResponse} returns this +*/ proto.litrpc.ListActionsResponse.prototype.setActionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1011,8 +1108,12 @@ proto.litrpc.ListActionsResponse.prototype.addActions = function(opt_value, opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.ListActionsResponse} returns this + */ proto.litrpc.ListActionsResponse.prototype.clearActionsList = function() { - this.setActionsList([]); + return this.setActionsList([]); }; @@ -1025,9 +1126,12 @@ proto.litrpc.ListActionsResponse.prototype.getLastIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsResponse} returns this + */ proto.litrpc.ListActionsResponse.prototype.setLastIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -1040,41 +1144,29 @@ proto.litrpc.ListActionsResponse.prototype.getTotalCount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ListActionsResponse} returns this + */ proto.litrpc.ListActionsResponse.prototype.setTotalCount = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.litrpc.Action = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.Action, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Action.displayName = 'proto.litrpc.Action'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Action.prototype.toObject = function(opt_includeInstance) { @@ -1084,8 +1176,8 @@ proto.litrpc.Action.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Action} msg The msg instance to transform. * @return {!Object} @@ -1302,9 +1394,12 @@ proto.litrpc.Action.prototype.getActorName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setActorName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1317,9 +1412,12 @@ proto.litrpc.Action.prototype.getFeatureName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setFeatureName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1332,9 +1430,12 @@ proto.litrpc.Action.prototype.getTrigger = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setTrigger = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1347,9 +1448,12 @@ proto.litrpc.Action.prototype.getIntent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setIntent = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1362,9 +1466,12 @@ proto.litrpc.Action.prototype.getStructuredJsonData = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setStructuredJsonData = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -1377,9 +1484,12 @@ proto.litrpc.Action.prototype.getRpcMethod = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setRpcMethod = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -1392,9 +1502,12 @@ proto.litrpc.Action.prototype.getRpcParamsJson = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setRpcParamsJson = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -1407,9 +1520,12 @@ proto.litrpc.Action.prototype.getTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -1422,9 +1538,12 @@ proto.litrpc.Action.prototype.getState = function() { }; -/** @param {!proto.litrpc.ActionState} value */ +/** + * @param {!proto.litrpc.ActionState} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 9, value); + return jspb.Message.setProto3EnumField(this, 9, value); }; @@ -1437,9 +1556,12 @@ proto.litrpc.Action.prototype.getErrorReason = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setErrorReason = function(value) { - jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; @@ -1476,9 +1598,12 @@ proto.litrpc.Action.prototype.getSessionId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Action} returns this + */ proto.litrpc.Action.prototype.setSessionId = function(value) { - jspb.Message.setProto3BytesField(this, 11, value); + return jspb.Message.setProto3BytesField(this, 11, value); }; diff --git a/app/src/types/generated/lit-accounts_pb.js b/app/src/types/generated/lit-accounts_pb.js index 6219b4dd6..94ccc0328 100644 --- a/app/src/types/generated/lit-accounts_pb.js +++ b/app/src/types/generated/lit-accounts_pb.js @@ -1,18 +1,28 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: lit-accounts.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.litrpc.Account', null, global); goog.exportSymbol('proto.litrpc.AccountInvoice', null, global); @@ -24,7 +34,6 @@ goog.exportSymbol('proto.litrpc.ListAccountsResponse', null, global); goog.exportSymbol('proto.litrpc.RemoveAccountRequest', null, global); goog.exportSymbol('proto.litrpc.RemoveAccountResponse', null, global); goog.exportSymbol('proto.litrpc.UpdateAccountRequest', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -40,19 +49,215 @@ proto.litrpc.CreateAccountRequest = function(opt_data) { }; goog.inherits(proto.litrpc.CreateAccountRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.CreateAccountRequest.displayName = 'proto.litrpc.CreateAccountRequest'; } +/** + * 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.litrpc.CreateAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.CreateAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.CreateAccountResponse.displayName = 'proto.litrpc.CreateAccountResponse'; +} +/** + * 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.litrpc.Account = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Account.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.Account, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Account.displayName = 'proto.litrpc.Account'; +} +/** + * 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.litrpc.AccountInvoice = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.AccountInvoice, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.AccountInvoice.displayName = 'proto.litrpc.AccountInvoice'; +} +/** + * 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.litrpc.AccountPayment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.AccountPayment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.AccountPayment.displayName = 'proto.litrpc.AccountPayment'; +} +/** + * 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.litrpc.UpdateAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.UpdateAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.UpdateAccountRequest.displayName = 'proto.litrpc.UpdateAccountRequest'; +} +/** + * 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.litrpc.ListAccountsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListAccountsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAccountsRequest.displayName = 'proto.litrpc.ListAccountsRequest'; +} +/** + * 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.litrpc.ListAccountsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListAccountsResponse.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.ListAccountsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAccountsResponse.displayName = 'proto.litrpc.ListAccountsResponse'; +} +/** + * 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.litrpc.RemoveAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RemoveAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RemoveAccountRequest.displayName = 'proto.litrpc.RemoveAccountRequest'; +} +/** + * 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.litrpc.RemoveAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RemoveAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RemoveAccountResponse.displayName = 'proto.litrpc.RemoveAccountResponse'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.CreateAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -62,8 +267,8 @@ proto.litrpc.CreateAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.CreateAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -172,9 +377,12 @@ proto.litrpc.CreateAccountRequest.prototype.getAccountBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.CreateAccountRequest} returns this + */ proto.litrpc.CreateAccountRequest.prototype.setAccountBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -187,41 +395,29 @@ proto.litrpc.CreateAccountRequest.prototype.getExpirationDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.CreateAccountRequest} returns this + */ proto.litrpc.CreateAccountRequest.prototype.setExpirationDate = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.litrpc.CreateAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.CreateAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.CreateAccountResponse.displayName = 'proto.litrpc.CreateAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.CreateAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -231,8 +427,8 @@ proto.litrpc.CreateAccountResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.CreateAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -344,20 +540,27 @@ proto.litrpc.CreateAccountResponse.prototype.getAccount = function() { }; -/** @param {?proto.litrpc.Account|undefined} value */ +/** + * @param {?proto.litrpc.Account|undefined} value + * @return {!proto.litrpc.CreateAccountResponse} returns this +*/ proto.litrpc.CreateAccountResponse.prototype.setAccount = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.CreateAccountResponse} returns this + */ proto.litrpc.CreateAccountResponse.prototype.clearAccount = function() { - this.setAccount(undefined); + return this.setAccount(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.CreateAccountResponse.prototype.hasAccount = function() { return jspb.Message.getField(this, 1) != null; @@ -397,30 +600,16 @@ proto.litrpc.CreateAccountResponse.prototype.getMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.CreateAccountResponse} returns this + */ proto.litrpc.CreateAccountResponse.prototype.setMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.litrpc.Account = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Account.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.Account, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Account.displayName = 'proto.litrpc.Account'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -432,13 +621,15 @@ proto.litrpc.Account.repeatedFields_ = [6,7]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Account.prototype.toObject = function(opt_includeInstance) { @@ -448,8 +639,8 @@ proto.litrpc.Account.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Account} msg The msg instance to transform. * @return {!Object} @@ -624,9 +815,12 @@ proto.litrpc.Account.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -639,9 +833,12 @@ proto.litrpc.Account.prototype.getInitialBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setInitialBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -654,9 +851,12 @@ proto.litrpc.Account.prototype.getCurrentBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setCurrentBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -669,9 +869,12 @@ proto.litrpc.Account.prototype.getLastUpdate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setLastUpdate = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -684,9 +887,12 @@ proto.litrpc.Account.prototype.getExpirationDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setExpirationDate = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -700,9 +906,12 @@ proto.litrpc.Account.prototype.getInvoicesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.Account} returns this +*/ proto.litrpc.Account.prototype.setInvoicesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 6, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -716,8 +925,12 @@ proto.litrpc.Account.prototype.addInvoices = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.clearInvoicesList = function() { - this.setInvoicesList([]); + return this.setInvoicesList([]); }; @@ -731,9 +944,12 @@ proto.litrpc.Account.prototype.getPaymentsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.Account} returns this +*/ proto.litrpc.Account.prototype.setPaymentsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 7, value); + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; @@ -747,40 +963,29 @@ proto.litrpc.Account.prototype.addPayments = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.clearPaymentsList = function() { - this.setPaymentsList([]); + return this.setPaymentsList([]); }; -/** - * 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.litrpc.AccountInvoice = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.AccountInvoice, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.AccountInvoice.displayName = 'proto.litrpc.AccountInvoice'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AccountInvoice.prototype.toObject = function(opt_includeInstance) { @@ -790,8 +995,8 @@ proto.litrpc.AccountInvoice.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AccountInvoice} msg The msg instance to transform. * @return {!Object} @@ -912,41 +1117,29 @@ proto.litrpc.AccountInvoice.prototype.getHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.AccountInvoice} returns this + */ proto.litrpc.AccountInvoice.prototype.setHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.litrpc.AccountPayment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.AccountPayment, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.AccountPayment.displayName = 'proto.litrpc.AccountPayment'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AccountPayment.prototype.toObject = function(opt_includeInstance) { @@ -956,8 +1149,8 @@ proto.litrpc.AccountPayment.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AccountPayment} msg The msg instance to transform. * @return {!Object} @@ -1102,9 +1295,12 @@ proto.litrpc.AccountPayment.prototype.getHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.AccountPayment} returns this + */ proto.litrpc.AccountPayment.prototype.setHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -1117,9 +1313,12 @@ proto.litrpc.AccountPayment.prototype.getState = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AccountPayment} returns this + */ proto.litrpc.AccountPayment.prototype.setState = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1132,41 +1331,29 @@ proto.litrpc.AccountPayment.prototype.getFullAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AccountPayment} returns this + */ proto.litrpc.AccountPayment.prototype.setFullAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.litrpc.UpdateAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.UpdateAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.UpdateAccountRequest.displayName = 'proto.litrpc.UpdateAccountRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.UpdateAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -1176,8 +1363,8 @@ proto.litrpc.UpdateAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.UpdateAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -1298,9 +1485,12 @@ proto.litrpc.UpdateAccountRequest.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.UpdateAccountRequest} returns this + */ proto.litrpc.UpdateAccountRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1313,9 +1503,12 @@ proto.litrpc.UpdateAccountRequest.prototype.getAccountBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.UpdateAccountRequest} returns this + */ proto.litrpc.UpdateAccountRequest.prototype.setAccountBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -1328,41 +1521,29 @@ proto.litrpc.UpdateAccountRequest.prototype.getExpirationDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.UpdateAccountRequest} returns this + */ proto.litrpc.UpdateAccountRequest.prototype.setExpirationDate = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.litrpc.ListAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAccountsRequest.displayName = 'proto.litrpc.ListAccountsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAccountsRequest.prototype.toObject = function(opt_includeInstance) { @@ -1372,8 +1553,8 @@ proto.litrpc.ListAccountsRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAccountsRequest} msg The msg instance to transform. * @return {!Object} @@ -1451,23 +1632,6 @@ proto.litrpc.ListAccountsRequest.serializeBinaryToWriter = function(message, wri -/** - * 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.litrpc.ListAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListAccountsResponse.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.ListAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAccountsResponse.displayName = 'proto.litrpc.ListAccountsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1479,13 +1643,15 @@ proto.litrpc.ListAccountsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAccountsResponse.prototype.toObject = function(opt_includeInstance) { @@ -1495,8 +1661,8 @@ proto.litrpc.ListAccountsResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAccountsResponse} msg The msg instance to transform. * @return {!Object} @@ -1597,9 +1763,12 @@ proto.litrpc.ListAccountsResponse.prototype.getAccountsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.ListAccountsResponse} returns this +*/ proto.litrpc.ListAccountsResponse.prototype.setAccountsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1613,40 +1782,29 @@ proto.litrpc.ListAccountsResponse.prototype.addAccounts = function(opt_value, op }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.ListAccountsResponse} returns this + */ proto.litrpc.ListAccountsResponse.prototype.clearAccountsList = function() { - this.setAccountsList([]); + return this.setAccountsList([]); }; -/** - * 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.litrpc.RemoveAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RemoveAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RemoveAccountRequest.displayName = 'proto.litrpc.RemoveAccountRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RemoveAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -1656,8 +1814,8 @@ proto.litrpc.RemoveAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RemoveAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -1754,41 +1912,29 @@ proto.litrpc.RemoveAccountRequest.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.RemoveAccountRequest} returns this + */ proto.litrpc.RemoveAccountRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.litrpc.RemoveAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RemoveAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RemoveAccountResponse.displayName = 'proto.litrpc.RemoveAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RemoveAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -1798,8 +1944,8 @@ proto.litrpc.RemoveAccountResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RemoveAccountResponse} msg The msg instance to transform. * @return {!Object} diff --git a/app/src/types/generated/lit-autopilot_pb.js b/app/src/types/generated/lit-autopilot_pb.js index 10fc96a0e..83869b6ff 100644 --- a/app/src/types/generated/lit-autopilot_pb.js +++ b/app/src/types/generated/lit-autopilot_pb.js @@ -1,20 +1,31 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: lit-autopilot.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); var lit$sessions_pb = require('./lit-sessions_pb.js'); +goog.object.extend(proto, lit$sessions_pb); goog.exportSymbol('proto.litrpc.AddAutopilotSessionRequest', null, global); goog.exportSymbol('proto.litrpc.AddAutopilotSessionResponse', null, global); goog.exportSymbol('proto.litrpc.Feature', null, global); @@ -27,7 +38,6 @@ goog.exportSymbol('proto.litrpc.Permissions', null, global); goog.exportSymbol('proto.litrpc.RevokeAutopilotSessionRequest', null, global); goog.exportSymbol('proto.litrpc.RevokeAutopilotSessionResponse', null, global); goog.exportSymbol('proto.litrpc.RuleValues', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -43,19 +53,257 @@ proto.litrpc.AddAutopilotSessionRequest = function(opt_data) { }; goog.inherits(proto.litrpc.AddAutopilotSessionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.AddAutopilotSessionRequest.displayName = 'proto.litrpc.AddAutopilotSessionRequest'; } +/** + * 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.litrpc.FeatureConfig = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.FeatureConfig, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.FeatureConfig.displayName = 'proto.litrpc.FeatureConfig'; +} +/** + * 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.litrpc.ListAutopilotSessionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListAutopilotSessionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAutopilotSessionsRequest.displayName = 'proto.litrpc.ListAutopilotSessionsRequest'; +} +/** + * 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.litrpc.ListAutopilotSessionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListAutopilotSessionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.ListAutopilotSessionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAutopilotSessionsResponse.displayName = 'proto.litrpc.ListAutopilotSessionsResponse'; +} +/** + * 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.litrpc.AddAutopilotSessionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.AddAutopilotSessionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.AddAutopilotSessionResponse.displayName = 'proto.litrpc.AddAutopilotSessionResponse'; +} +/** + * 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.litrpc.ListAutopilotFeaturesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListAutopilotFeaturesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAutopilotFeaturesRequest.displayName = 'proto.litrpc.ListAutopilotFeaturesRequest'; +} +/** + * 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.litrpc.ListAutopilotFeaturesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListAutopilotFeaturesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListAutopilotFeaturesResponse.displayName = 'proto.litrpc.ListAutopilotFeaturesResponse'; +} +/** + * 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.litrpc.RevokeAutopilotSessionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RevokeAutopilotSessionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RevokeAutopilotSessionRequest.displayName = 'proto.litrpc.RevokeAutopilotSessionRequest'; +} +/** + * 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.litrpc.RevokeAutopilotSessionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RevokeAutopilotSessionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RevokeAutopilotSessionResponse.displayName = 'proto.litrpc.RevokeAutopilotSessionResponse'; +} +/** + * 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.litrpc.Feature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Feature.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.Feature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Feature.displayName = 'proto.litrpc.Feature'; +} +/** + * 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.litrpc.RuleValues = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RuleValues, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RuleValues.displayName = 'proto.litrpc.RuleValues'; +} +/** + * 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.litrpc.Permissions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Permissions.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.Permissions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Permissions.displayName = 'proto.litrpc.Permissions'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AddAutopilotSessionRequest.prototype.toObject = function(opt_includeInstance) { @@ -65,8 +313,8 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AddAutopilotSessionRequest} msg The msg instance to transform. * @return {!Object} @@ -77,10 +325,10 @@ proto.litrpc.AddAutopilotSessionRequest.toObject = function(includeInstance, msg label: jspb.Message.getFieldWithDefault(msg, 1, ""), expiryTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 2, "0"), mailboxServerAddr: jspb.Message.getFieldWithDefault(msg, 3, ""), - devServer: jspb.Message.getFieldWithDefault(msg, 4, false), + devServer: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.litrpc.FeatureConfig.toObject) : [], sessionRules: (f = msg.getSessionRules()) && lit$sessions_pb.RulesMap.toObject(includeInstance, f), - noPrivacyMapper: jspb.Message.getFieldWithDefault(msg, 7, false) + noPrivacyMapper: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -136,7 +384,7 @@ proto.litrpc.AddAutopilotSessionRequest.deserializeBinaryFromReader = function(m case 5: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.FeatureConfig.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.FeatureConfig.deserializeBinaryFromReader, "", new proto.litrpc.FeatureConfig()); }); break; case 6: @@ -236,9 +484,12 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -251,9 +502,12 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getExpiryTimestampSeconds = fu }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setExpiryTimestampSeconds = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -266,26 +520,30 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getMailboxServerAddr = functio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setMailboxServerAddr = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional bool dev_server = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.AddAutopilotSessionRequest.prototype.getDevServer = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setDevServer = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -302,9 +560,13 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getFeaturesMap = function(opt_ }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; /** @@ -317,20 +579,27 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getSessionRules = function() { }; -/** @param {?proto.litrpc.RulesMap|undefined} value */ +/** + * @param {?proto.litrpc.RulesMap|undefined} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this +*/ proto.litrpc.AddAutopilotSessionRequest.prototype.setSessionRules = function(value) { - jspb.Message.setWrapperField(this, 6, value); + return jspb.Message.setWrapperField(this, 6, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.clearSessionRules = function() { - this.setSessionRules(undefined); + return this.setSessionRules(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.AddAutopilotSessionRequest.prototype.hasSessionRules = function() { return jspb.Message.getField(this, 6) != null; @@ -339,50 +608,36 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.hasSessionRules = function() { /** * optional bool no_privacy_mapper = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.AddAutopilotSessionRequest.prototype.getNoPrivacyMapper = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setNoPrivacyMapper = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; -/** - * 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.litrpc.FeatureConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.FeatureConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.FeatureConfig.displayName = 'proto.litrpc.FeatureConfig'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.FeatureConfig.prototype.toObject = function(opt_includeInstance) { @@ -392,8 +647,8 @@ proto.litrpc.FeatureConfig.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.FeatureConfig} msg The msg instance to transform. * @return {!Object} @@ -505,20 +760,27 @@ proto.litrpc.FeatureConfig.prototype.getRules = function() { }; -/** @param {?proto.litrpc.RulesMap|undefined} value */ +/** + * @param {?proto.litrpc.RulesMap|undefined} value + * @return {!proto.litrpc.FeatureConfig} returns this +*/ proto.litrpc.FeatureConfig.prototype.setRules = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.FeatureConfig} returns this + */ proto.litrpc.FeatureConfig.prototype.clearRules = function() { - this.setRules(undefined); + return this.setRules(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.FeatureConfig.prototype.hasRules = function() { return jspb.Message.getField(this, 1) != null; @@ -558,41 +820,29 @@ proto.litrpc.FeatureConfig.prototype.getConfig_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.FeatureConfig} returns this + */ proto.litrpc.FeatureConfig.prototype.setConfig = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.litrpc.ListAutopilotSessionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListAutopilotSessionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAutopilotSessionsRequest.displayName = 'proto.litrpc.ListAutopilotSessionsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAutopilotSessionsRequest.prototype.toObject = function(opt_includeInstance) { @@ -602,8 +852,8 @@ proto.litrpc.ListAutopilotSessionsRequest.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAutopilotSessionsRequest} msg The msg instance to transform. * @return {!Object} @@ -681,23 +931,6 @@ proto.litrpc.ListAutopilotSessionsRequest.serializeBinaryToWriter = function(mes -/** - * 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.litrpc.ListAutopilotSessionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListAutopilotSessionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.ListAutopilotSessionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAutopilotSessionsResponse.displayName = 'proto.litrpc.ListAutopilotSessionsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -709,13 +942,15 @@ proto.litrpc.ListAutopilotSessionsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAutopilotSessionsResponse.prototype.toObject = function(opt_includeInstance) { @@ -725,8 +960,8 @@ proto.litrpc.ListAutopilotSessionsResponse.prototype.toObject = function(opt_inc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAutopilotSessionsResponse} msg The msg instance to transform. * @return {!Object} @@ -827,9 +1062,12 @@ proto.litrpc.ListAutopilotSessionsResponse.prototype.getSessionsList = function( }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.ListAutopilotSessionsResponse} returns this +*/ proto.litrpc.ListAutopilotSessionsResponse.prototype.setSessionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -843,40 +1081,29 @@ proto.litrpc.ListAutopilotSessionsResponse.prototype.addSessions = function(opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.ListAutopilotSessionsResponse} returns this + */ proto.litrpc.ListAutopilotSessionsResponse.prototype.clearSessionsList = function() { - this.setSessionsList([]); + return this.setSessionsList([]); }; -/** - * 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.litrpc.AddAutopilotSessionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.AddAutopilotSessionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.AddAutopilotSessionResponse.displayName = 'proto.litrpc.AddAutopilotSessionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AddAutopilotSessionResponse.prototype.toObject = function(opt_includeInstance) { @@ -886,8 +1113,8 @@ proto.litrpc.AddAutopilotSessionResponse.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AddAutopilotSessionResponse} msg The msg instance to transform. * @return {!Object} @@ -987,20 +1214,27 @@ proto.litrpc.AddAutopilotSessionResponse.prototype.getSession = function() { }; -/** @param {?proto.litrpc.Session|undefined} value */ +/** + * @param {?proto.litrpc.Session|undefined} value + * @return {!proto.litrpc.AddAutopilotSessionResponse} returns this +*/ proto.litrpc.AddAutopilotSessionResponse.prototype.setSession = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.AddAutopilotSessionResponse} returns this + */ proto.litrpc.AddAutopilotSessionResponse.prototype.clearSession = function() { - this.setSession(undefined); + return this.setSession(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.AddAutopilotSessionResponse.prototype.hasSession = function() { return jspb.Message.getField(this, 1) != null; @@ -1008,34 +1242,19 @@ proto.litrpc.AddAutopilotSessionResponse.prototype.hasSession = function() { -/** - * 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.litrpc.ListAutopilotFeaturesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListAutopilotFeaturesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAutopilotFeaturesRequest.displayName = 'proto.litrpc.ListAutopilotFeaturesRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAutopilotFeaturesRequest.prototype.toObject = function(opt_includeInstance) { @@ -1045,8 +1264,8 @@ proto.litrpc.ListAutopilotFeaturesRequest.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAutopilotFeaturesRequest} msg The msg instance to transform. * @return {!Object} @@ -1124,34 +1343,19 @@ proto.litrpc.ListAutopilotFeaturesRequest.serializeBinaryToWriter = function(mes -/** - * 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.litrpc.ListAutopilotFeaturesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListAutopilotFeaturesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListAutopilotFeaturesResponse.displayName = 'proto.litrpc.ListAutopilotFeaturesResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListAutopilotFeaturesResponse.prototype.toObject = function(opt_includeInstance) { @@ -1161,8 +1365,8 @@ proto.litrpc.ListAutopilotFeaturesResponse.prototype.toObject = function(opt_inc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListAutopilotFeaturesResponse} msg The msg instance to transform. * @return {!Object} @@ -1210,7 +1414,7 @@ proto.litrpc.ListAutopilotFeaturesResponse.deserializeBinaryFromReader = functio case 1: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.Feature.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.Feature.deserializeBinaryFromReader, "", new proto.litrpc.Feature()); }); break; default: @@ -1262,40 +1466,29 @@ proto.litrpc.ListAutopilotFeaturesResponse.prototype.getFeaturesMap = function(o }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.ListAutopilotFeaturesResponse} returns this + */ proto.litrpc.ListAutopilotFeaturesResponse.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; -/** - * 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.litrpc.RevokeAutopilotSessionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RevokeAutopilotSessionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RevokeAutopilotSessionRequest.displayName = 'proto.litrpc.RevokeAutopilotSessionRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RevokeAutopilotSessionRequest.prototype.toObject = function(opt_includeInstance) { @@ -1305,8 +1498,8 @@ proto.litrpc.RevokeAutopilotSessionRequest.prototype.toObject = function(opt_inc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RevokeAutopilotSessionRequest} msg The msg instance to transform. * @return {!Object} @@ -1427,41 +1620,29 @@ proto.litrpc.RevokeAutopilotSessionRequest.prototype.getLocalPublicKey_asU8 = fu }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.RevokeAutopilotSessionRequest} returns this + */ proto.litrpc.RevokeAutopilotSessionRequest.prototype.setLocalPublicKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.litrpc.RevokeAutopilotSessionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RevokeAutopilotSessionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RevokeAutopilotSessionResponse.displayName = 'proto.litrpc.RevokeAutopilotSessionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RevokeAutopilotSessionResponse.prototype.toObject = function(opt_includeInstance) { @@ -1471,8 +1652,8 @@ proto.litrpc.RevokeAutopilotSessionResponse.prototype.toObject = function(opt_in /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RevokeAutopilotSessionResponse} msg The msg instance to transform. * @return {!Object} @@ -1550,23 +1731,6 @@ proto.litrpc.RevokeAutopilotSessionResponse.serializeBinaryToWriter = function(m -/** - * 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.litrpc.Feature = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Feature.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.Feature, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Feature.displayName = 'proto.litrpc.Feature'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1578,13 +1742,15 @@ proto.litrpc.Feature.repeatedFields_ = [4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Feature.prototype.toObject = function(opt_includeInstance) { @@ -1594,8 +1760,8 @@ proto.litrpc.Feature.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Feature} msg The msg instance to transform. * @return {!Object} @@ -1608,7 +1774,7 @@ proto.litrpc.Feature.toObject = function(includeInstance, msg) { rulesMap: (f = msg.getRulesMap()) ? f.toObject(includeInstance, proto.litrpc.RuleValues.toObject) : [], permissionsListList: jspb.Message.toObjectList(msg.getPermissionsListList(), proto.litrpc.Permissions.toObject, includeInstance), - requiresUpgrade: jspb.Message.getFieldWithDefault(msg, 5, false) + requiresUpgrade: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) }; if (includeInstance) { @@ -1656,7 +1822,7 @@ proto.litrpc.Feature.deserializeBinaryFromReader = function(msg, reader) { case 3: var value = msg.getRulesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RuleValues.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RuleValues.deserializeBinaryFromReader, "", new proto.litrpc.RuleValues()); }); break; case 4: @@ -1742,9 +1908,12 @@ proto.litrpc.Feature.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1757,9 +1926,12 @@ proto.litrpc.Feature.prototype.getDescription = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1776,9 +1948,13 @@ proto.litrpc.Feature.prototype.getRulesMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.clearRulesMap = function() { this.getRulesMap().clear(); -}; + return this;}; /** @@ -1791,9 +1967,12 @@ proto.litrpc.Feature.prototype.getPermissionsListList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.Feature} returns this +*/ proto.litrpc.Feature.prototype.setPermissionsListList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -1807,57 +1986,47 @@ proto.litrpc.Feature.prototype.addPermissionsList = function(opt_value, opt_inde }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.clearPermissionsListList = function() { - this.setPermissionsListList([]); + return this.setPermissionsListList([]); }; /** * optional bool requires_upgrade = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.Feature.prototype.getRequiresUpgrade = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.setRequiresUpgrade = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; -/** - * 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.litrpc.RuleValues = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RuleValues, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RuleValues.displayName = 'proto.litrpc.RuleValues'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RuleValues.prototype.toObject = function(opt_includeInstance) { @@ -1867,8 +2036,8 @@ proto.litrpc.RuleValues.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RuleValues} msg The msg instance to transform. * @return {!Object} @@ -1876,7 +2045,7 @@ proto.litrpc.RuleValues.prototype.toObject = function(opt_includeInstance) { */ proto.litrpc.RuleValues.toObject = function(includeInstance, msg) { var f, obj = { - known: jspb.Message.getFieldWithDefault(msg, 1, false), + known: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), defaults: (f = msg.getDefaults()) && lit$sessions_pb.RuleValue.toObject(includeInstance, f), minValue: (f = msg.getMinValue()) && lit$sessions_pb.RuleValue.toObject(includeInstance, f), maxValue: (f = msg.getMaxValue()) && lit$sessions_pb.RuleValue.toObject(includeInstance, f) @@ -2000,18 +2169,19 @@ proto.litrpc.RuleValues.serializeBinaryToWriter = function(message, writer) { /** * optional bool known = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.RuleValues.prototype.getKnown = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.RuleValues} returns this + */ proto.litrpc.RuleValues.prototype.setKnown = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -2025,20 +2195,27 @@ proto.litrpc.RuleValues.prototype.getDefaults = function() { }; -/** @param {?proto.litrpc.RuleValue|undefined} value */ +/** + * @param {?proto.litrpc.RuleValue|undefined} value + * @return {!proto.litrpc.RuleValues} returns this +*/ proto.litrpc.RuleValues.prototype.setDefaults = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValues} returns this + */ proto.litrpc.RuleValues.prototype.clearDefaults = function() { - this.setDefaults(undefined); + return this.setDefaults(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValues.prototype.hasDefaults = function() { return jspb.Message.getField(this, 2) != null; @@ -2055,20 +2232,27 @@ proto.litrpc.RuleValues.prototype.getMinValue = function() { }; -/** @param {?proto.litrpc.RuleValue|undefined} value */ +/** + * @param {?proto.litrpc.RuleValue|undefined} value + * @return {!proto.litrpc.RuleValues} returns this +*/ proto.litrpc.RuleValues.prototype.setMinValue = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValues} returns this + */ proto.litrpc.RuleValues.prototype.clearMinValue = function() { - this.setMinValue(undefined); + return this.setMinValue(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValues.prototype.hasMinValue = function() { return jspb.Message.getField(this, 3) != null; @@ -2085,20 +2269,27 @@ proto.litrpc.RuleValues.prototype.getMaxValue = function() { }; -/** @param {?proto.litrpc.RuleValue|undefined} value */ +/** + * @param {?proto.litrpc.RuleValue|undefined} value + * @return {!proto.litrpc.RuleValues} returns this +*/ proto.litrpc.RuleValues.prototype.setMaxValue = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValues} returns this + */ proto.litrpc.RuleValues.prototype.clearMaxValue = function() { - this.setMaxValue(undefined); + return this.setMaxValue(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValues.prototype.hasMaxValue = function() { return jspb.Message.getField(this, 4) != null; @@ -2106,23 +2297,6 @@ proto.litrpc.RuleValues.prototype.hasMaxValue = function() { -/** - * 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.litrpc.Permissions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.Permissions.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.Permissions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Permissions.displayName = 'proto.litrpc.Permissions'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2134,13 +2308,15 @@ proto.litrpc.Permissions.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Permissions.prototype.toObject = function(opt_includeInstance) { @@ -2150,8 +2326,8 @@ proto.litrpc.Permissions.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Permissions} msg The msg instance to transform. * @return {!Object} @@ -2263,9 +2439,12 @@ proto.litrpc.Permissions.prototype.getMethod = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Permissions} returns this + */ proto.litrpc.Permissions.prototype.setMethod = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2279,9 +2458,12 @@ proto.litrpc.Permissions.prototype.getOperationsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.Permissions} returns this +*/ proto.litrpc.Permissions.prototype.setOperationsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -2295,8 +2477,12 @@ proto.litrpc.Permissions.prototype.addOperations = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.Permissions} returns this + */ proto.litrpc.Permissions.prototype.clearOperationsList = function() { - this.setOperationsList([]); + return this.setOperationsList([]); }; diff --git a/app/src/types/generated/lit-sessions_pb.js b/app/src/types/generated/lit-sessions_pb.js index e09f51593..bb9202010 100644 --- a/app/src/types/generated/lit-sessions_pb.js +++ b/app/src/types/generated/lit-sessions_pb.js @@ -1,18 +1,28 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: lit-sessions.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.litrpc.AddSessionRequest', null, global); goog.exportSymbol('proto.litrpc.AddSessionResponse', null, global); @@ -31,12 +41,12 @@ goog.exportSymbol('proto.litrpc.RateLimit', null, global); goog.exportSymbol('proto.litrpc.RevokeSessionRequest', null, global); goog.exportSymbol('proto.litrpc.RevokeSessionResponse', null, global); goog.exportSymbol('proto.litrpc.RuleValue', null, global); +goog.exportSymbol('proto.litrpc.RuleValue.ValueCase', null, global); goog.exportSymbol('proto.litrpc.RulesMap', null, global); goog.exportSymbol('proto.litrpc.SendToSelf', null, global); goog.exportSymbol('proto.litrpc.Session', null, global); goog.exportSymbol('proto.litrpc.SessionState', null, global); goog.exportSymbol('proto.litrpc.SessionType', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -52,8 +62,412 @@ proto.litrpc.AddSessionRequest = function(opt_data) { }; goog.inherits(proto.litrpc.AddSessionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.AddSessionRequest.displayName = 'proto.litrpc.AddSessionRequest'; } +/** + * 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.litrpc.MacaroonPermission = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.MacaroonPermission, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.MacaroonPermission.displayName = 'proto.litrpc.MacaroonPermission'; +} +/** + * 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.litrpc.AddSessionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.AddSessionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.AddSessionResponse.displayName = 'proto.litrpc.AddSessionResponse'; +} +/** + * 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.litrpc.Session = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.Session, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Session.displayName = 'proto.litrpc.Session'; +} +/** + * 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.litrpc.MacaroonRecipe = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.MacaroonRecipe.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.MacaroonRecipe, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.MacaroonRecipe.displayName = 'proto.litrpc.MacaroonRecipe'; +} +/** + * 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.litrpc.ListSessionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ListSessionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListSessionsRequest.displayName = 'proto.litrpc.ListSessionsRequest'; +} +/** + * 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.litrpc.ListSessionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListSessionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.ListSessionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ListSessionsResponse.displayName = 'proto.litrpc.ListSessionsResponse'; +} +/** + * 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.litrpc.RevokeSessionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RevokeSessionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RevokeSessionRequest.displayName = 'proto.litrpc.RevokeSessionRequest'; +} +/** + * 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.litrpc.RevokeSessionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RevokeSessionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RevokeSessionResponse.displayName = 'proto.litrpc.RevokeSessionResponse'; +} +/** + * 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.litrpc.RulesMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RulesMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RulesMap.displayName = 'proto.litrpc.RulesMap'; +} +/** + * 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.litrpc.RuleValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.litrpc.RuleValue.oneofGroups_); +}; +goog.inherits(proto.litrpc.RuleValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RuleValue.displayName = 'proto.litrpc.RuleValue'; +} +/** + * 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.litrpc.RateLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.RateLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.RateLimit.displayName = 'proto.litrpc.RateLimit'; +} +/** + * 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.litrpc.Rate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.Rate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.Rate.displayName = 'proto.litrpc.Rate'; +} +/** + * 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.litrpc.HistoryLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.HistoryLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.HistoryLimit.displayName = 'proto.litrpc.HistoryLimit'; +} +/** + * 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.litrpc.ChannelPolicyBounds = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ChannelPolicyBounds, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ChannelPolicyBounds.displayName = 'proto.litrpc.ChannelPolicyBounds'; +} +/** + * 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.litrpc.OffChainBudget = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.OffChainBudget, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.OffChainBudget.displayName = 'proto.litrpc.OffChainBudget'; +} +/** + * 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.litrpc.OnChainBudget = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.OnChainBudget, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.OnChainBudget.displayName = 'proto.litrpc.OnChainBudget'; +} +/** + * 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.litrpc.SendToSelf = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.SendToSelf, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.SendToSelf.displayName = 'proto.litrpc.SendToSelf'; +} +/** + * 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.litrpc.ChannelRestrict = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ChannelRestrict.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.ChannelRestrict, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ChannelRestrict.displayName = 'proto.litrpc.ChannelRestrict'; +} +/** + * 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.litrpc.PeerRestrict = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.PeerRestrict.repeatedFields_, null); +}; +goog.inherits(proto.litrpc.PeerRestrict, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.PeerRestrict.displayName = 'proto.litrpc.PeerRestrict'; +} + /** * List of repeated fields within this message type. * @private {!Array} @@ -65,13 +479,15 @@ proto.litrpc.AddSessionRequest.repeatedFields_ = [6]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AddSessionRequest.prototype.toObject = function(opt_includeInstance) { @@ -81,8 +497,8 @@ proto.litrpc.AddSessionRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AddSessionRequest} msg The msg instance to transform. * @return {!Object} @@ -94,7 +510,7 @@ proto.litrpc.AddSessionRequest.toObject = function(includeInstance, msg) { sessionType: jspb.Message.getFieldWithDefault(msg, 2, 0), expiryTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 3, "0"), mailboxServerAddr: jspb.Message.getFieldWithDefault(msg, 4, ""), - devServer: jspb.Message.getFieldWithDefault(msg, 5, false), + devServer: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), macaroonCustomPermissionsList: jspb.Message.toObjectList(msg.getMacaroonCustomPermissionsList(), proto.litrpc.MacaroonPermission.toObject, includeInstance), accountId: jspb.Message.getFieldWithDefault(msg, 7, "") @@ -254,9 +670,12 @@ proto.litrpc.AddSessionRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -269,9 +688,12 @@ proto.litrpc.AddSessionRequest.prototype.getSessionType = function() { }; -/** @param {!proto.litrpc.SessionType} value */ +/** + * @param {!proto.litrpc.SessionType} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setSessionType = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -284,9 +706,12 @@ proto.litrpc.AddSessionRequest.prototype.getExpiryTimestampSeconds = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setExpiryTimestampSeconds = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -299,26 +724,30 @@ proto.litrpc.AddSessionRequest.prototype.getMailboxServerAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setMailboxServerAddr = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional bool dev_server = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.AddSessionRequest.prototype.getDevServer = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setDevServer = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -332,9 +761,12 @@ proto.litrpc.AddSessionRequest.prototype.getMacaroonCustomPermissionsList = func }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.AddSessionRequest} returns this +*/ proto.litrpc.AddSessionRequest.prototype.setMacaroonCustomPermissionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 6, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -348,8 +780,12 @@ proto.litrpc.AddSessionRequest.prototype.addMacaroonCustomPermissions = function }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.clearMacaroonCustomPermissionsList = function() { - this.setMacaroonCustomPermissionsList([]); + return this.setMacaroonCustomPermissionsList([]); }; @@ -362,41 +798,29 @@ proto.litrpc.AddSessionRequest.prototype.getAccountId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddSessionRequest} returns this + */ proto.litrpc.AddSessionRequest.prototype.setAccountId = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; -/** - * 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.litrpc.MacaroonPermission = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.MacaroonPermission, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.MacaroonPermission.displayName = 'proto.litrpc.MacaroonPermission'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.MacaroonPermission.prototype.toObject = function(opt_includeInstance) { @@ -406,8 +830,8 @@ proto.litrpc.MacaroonPermission.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.MacaroonPermission} msg The msg instance to transform. * @return {!Object} @@ -516,9 +940,12 @@ proto.litrpc.MacaroonPermission.prototype.getEntity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.MacaroonPermission} returns this + */ proto.litrpc.MacaroonPermission.prototype.setEntity = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -531,41 +958,29 @@ proto.litrpc.MacaroonPermission.prototype.getAction = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.MacaroonPermission} returns this + */ proto.litrpc.MacaroonPermission.prototype.setAction = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.litrpc.AddSessionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.AddSessionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.AddSessionResponse.displayName = 'proto.litrpc.AddSessionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.AddSessionResponse.prototype.toObject = function(opt_includeInstance) { @@ -575,8 +990,8 @@ proto.litrpc.AddSessionResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.AddSessionResponse} msg The msg instance to transform. * @return {!Object} @@ -676,20 +1091,27 @@ proto.litrpc.AddSessionResponse.prototype.getSession = function() { }; -/** @param {?proto.litrpc.Session|undefined} value */ +/** + * @param {?proto.litrpc.Session|undefined} value + * @return {!proto.litrpc.AddSessionResponse} returns this +*/ proto.litrpc.AddSessionResponse.prototype.setSession = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.AddSessionResponse} returns this + */ proto.litrpc.AddSessionResponse.prototype.clearSession = function() { - this.setSession(undefined); + return this.setSession(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.AddSessionResponse.prototype.hasSession = function() { return jspb.Message.getField(this, 1) != null; @@ -697,34 +1119,19 @@ proto.litrpc.AddSessionResponse.prototype.hasSession = function() { -/** - * 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.litrpc.Session = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.Session, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Session.displayName = 'proto.litrpc.Session'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Session.prototype.toObject = function(opt_includeInstance) { @@ -734,8 +1141,8 @@ proto.litrpc.Session.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Session} msg The msg instance to transform. * @return {!Object} @@ -749,7 +1156,7 @@ proto.litrpc.Session.toObject = function(includeInstance, msg) { sessionType: jspb.Message.getFieldWithDefault(msg, 3, 0), expiryTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 4, "0"), mailboxServerAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - devServer: jspb.Message.getFieldWithDefault(msg, 6, false), + devServer: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), pairingSecret: msg.getPairingSecret_asB64(), pairingSecretMnemonic: jspb.Message.getFieldWithDefault(msg, 8, ""), localPublicKey: msg.getLocalPublicKey_asB64(), @@ -855,7 +1262,7 @@ proto.litrpc.Session.deserializeBinaryFromReader = function(msg, reader) { case 15: var value = msg.getAutopilotFeatureInfoMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RulesMap.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RulesMap.deserializeBinaryFromReader, "", new proto.litrpc.RulesMap()); }); break; case 16: @@ -1037,9 +1444,12 @@ proto.litrpc.Session.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 14, value); + return jspb.Message.setProto3BytesField(this, 14, value); }; @@ -1052,9 +1462,12 @@ proto.litrpc.Session.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1067,9 +1480,12 @@ proto.litrpc.Session.prototype.getSessionState = function() { }; -/** @param {!proto.litrpc.SessionState} value */ +/** + * @param {!proto.litrpc.SessionState} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setSessionState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -1082,9 +1498,12 @@ proto.litrpc.Session.prototype.getSessionType = function() { }; -/** @param {!proto.litrpc.SessionType} value */ +/** + * @param {!proto.litrpc.SessionType} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setSessionType = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); + return jspb.Message.setProto3EnumField(this, 3, value); }; @@ -1097,9 +1516,12 @@ proto.litrpc.Session.prototype.getExpiryTimestampSeconds = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setExpiryTimestampSeconds = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -1112,26 +1534,30 @@ proto.litrpc.Session.prototype.getMailboxServerAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setMailboxServerAddr = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional bool dev_server = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.litrpc.Session.prototype.getDevServer = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setDevServer = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; @@ -1168,9 +1594,12 @@ proto.litrpc.Session.prototype.getPairingSecret_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setPairingSecret = function(value) { - jspb.Message.setProto3BytesField(this, 7, value); + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -1183,9 +1612,12 @@ proto.litrpc.Session.prototype.getPairingSecretMnemonic = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setPairingSecretMnemonic = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -1222,9 +1654,12 @@ proto.litrpc.Session.prototype.getLocalPublicKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setLocalPublicKey = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -1261,9 +1696,12 @@ proto.litrpc.Session.prototype.getRemotePublicKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setRemotePublicKey = function(value) { - jspb.Message.setProto3BytesField(this, 10, value); + return jspb.Message.setProto3BytesField(this, 10, value); }; @@ -1276,9 +1714,12 @@ proto.litrpc.Session.prototype.getCreatedAt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setCreatedAt = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -1292,20 +1733,27 @@ proto.litrpc.Session.prototype.getMacaroonRecipe = function() { }; -/** @param {?proto.litrpc.MacaroonRecipe|undefined} value */ +/** + * @param {?proto.litrpc.MacaroonRecipe|undefined} value + * @return {!proto.litrpc.Session} returns this +*/ proto.litrpc.Session.prototype.setMacaroonRecipe = function(value) { - jspb.Message.setWrapperField(this, 12, value); + return jspb.Message.setWrapperField(this, 12, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.clearMacaroonRecipe = function() { - this.setMacaroonRecipe(undefined); + return this.setMacaroonRecipe(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.Session.prototype.hasMacaroonRecipe = function() { return jspb.Message.getField(this, 12) != null; @@ -1321,9 +1769,12 @@ proto.litrpc.Session.prototype.getAccountId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setAccountId = function(value) { - jspb.Message.setProto3StringField(this, 13, value); + return jspb.Message.setProto3StringField(this, 13, value); }; @@ -1340,9 +1791,13 @@ proto.litrpc.Session.prototype.getAutopilotFeatureInfoMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.clearAutopilotFeatureInfoMap = function() { this.getAutopilotFeatureInfoMap().clear(); -}; + return this;}; /** @@ -1354,30 +1809,16 @@ proto.litrpc.Session.prototype.getRevokedAt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setRevokedAt = function(value) { - jspb.Message.setProto3StringIntField(this, 16, value); + return jspb.Message.setProto3StringIntField(this, 16, value); }; -/** - * 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.litrpc.MacaroonRecipe = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.MacaroonRecipe.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.MacaroonRecipe, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.MacaroonRecipe.displayName = 'proto.litrpc.MacaroonRecipe'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1389,13 +1830,15 @@ proto.litrpc.MacaroonRecipe.repeatedFields_ = [1,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.MacaroonRecipe.prototype.toObject = function(opt_includeInstance) { @@ -1405,8 +1848,8 @@ proto.litrpc.MacaroonRecipe.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.MacaroonRecipe} msg The msg instance to transform. * @return {!Object} @@ -1416,7 +1859,7 @@ proto.litrpc.MacaroonRecipe.toObject = function(includeInstance, msg) { var f, obj = { permissionsList: jspb.Message.toObjectList(msg.getPermissionsList(), proto.litrpc.MacaroonPermission.toObject, includeInstance), - caveatsList: jspb.Message.getRepeatedField(msg, 2) + caveatsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -1519,9 +1962,12 @@ proto.litrpc.MacaroonRecipe.prototype.getPermissionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.MacaroonRecipe} returns this +*/ proto.litrpc.MacaroonRecipe.prototype.setPermissionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1535,8 +1981,12 @@ proto.litrpc.MacaroonRecipe.prototype.addPermissions = function(opt_value, opt_i }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.MacaroonRecipe} returns this + */ proto.litrpc.MacaroonRecipe.prototype.clearPermissionsList = function() { - this.setPermissionsList([]); + return this.setPermissionsList([]); }; @@ -1549,55 +1999,48 @@ proto.litrpc.MacaroonRecipe.prototype.getCaveatsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.MacaroonRecipe} returns this + */ proto.litrpc.MacaroonRecipe.prototype.setCaveatsList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.litrpc.MacaroonRecipe} returns this */ proto.litrpc.MacaroonRecipe.prototype.addCaveats = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.MacaroonRecipe} returns this + */ proto.litrpc.MacaroonRecipe.prototype.clearCaveatsList = function() { - this.setCaveatsList([]); + return this.setCaveatsList([]); }; -/** - * 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.litrpc.ListSessionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ListSessionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListSessionsRequest.displayName = 'proto.litrpc.ListSessionsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListSessionsRequest.prototype.toObject = function(opt_includeInstance) { @@ -1607,8 +2050,8 @@ proto.litrpc.ListSessionsRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListSessionsRequest} msg The msg instance to transform. * @return {!Object} @@ -1686,23 +2129,6 @@ proto.litrpc.ListSessionsRequest.serializeBinaryToWriter = function(message, wri -/** - * 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.litrpc.ListSessionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ListSessionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.ListSessionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ListSessionsResponse.displayName = 'proto.litrpc.ListSessionsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1714,13 +2140,15 @@ proto.litrpc.ListSessionsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ListSessionsResponse.prototype.toObject = function(opt_includeInstance) { @@ -1730,8 +2158,8 @@ proto.litrpc.ListSessionsResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ListSessionsResponse} msg The msg instance to transform. * @return {!Object} @@ -1832,9 +2260,12 @@ proto.litrpc.ListSessionsResponse.prototype.getSessionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.ListSessionsResponse} returns this +*/ proto.litrpc.ListSessionsResponse.prototype.setSessionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1848,40 +2279,29 @@ proto.litrpc.ListSessionsResponse.prototype.addSessions = function(opt_value, op }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.ListSessionsResponse} returns this + */ proto.litrpc.ListSessionsResponse.prototype.clearSessionsList = function() { - this.setSessionsList([]); + return this.setSessionsList([]); }; -/** - * 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.litrpc.RevokeSessionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RevokeSessionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RevokeSessionRequest.displayName = 'proto.litrpc.RevokeSessionRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RevokeSessionRequest.prototype.toObject = function(opt_includeInstance) { @@ -1891,8 +2311,8 @@ proto.litrpc.RevokeSessionRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RevokeSessionRequest} msg The msg instance to transform. * @return {!Object} @@ -2013,41 +2433,29 @@ proto.litrpc.RevokeSessionRequest.prototype.getLocalPublicKey_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.RevokeSessionRequest} returns this + */ proto.litrpc.RevokeSessionRequest.prototype.setLocalPublicKey = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; -/** - * 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.litrpc.RevokeSessionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RevokeSessionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RevokeSessionResponse.displayName = 'proto.litrpc.RevokeSessionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RevokeSessionResponse.prototype.toObject = function(opt_includeInstance) { @@ -2057,8 +2465,8 @@ proto.litrpc.RevokeSessionResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RevokeSessionResponse} msg The msg instance to transform. * @return {!Object} @@ -2136,34 +2544,19 @@ proto.litrpc.RevokeSessionResponse.serializeBinaryToWriter = function(message, w -/** - * 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.litrpc.RulesMap = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RulesMap, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RulesMap.displayName = 'proto.litrpc.RulesMap'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RulesMap.prototype.toObject = function(opt_includeInstance) { @@ -2173,8 +2566,8 @@ proto.litrpc.RulesMap.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RulesMap} msg The msg instance to transform. * @return {!Object} @@ -2222,7 +2615,7 @@ proto.litrpc.RulesMap.deserializeBinaryFromReader = function(msg, reader) { case 1: var value = msg.getRulesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RuleValue.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.RuleValue.deserializeBinaryFromReader, "", new proto.litrpc.RuleValue()); }); break; default: @@ -2272,31 +2665,18 @@ proto.litrpc.RulesMap.prototype.getRulesMap = function(opt_noLazyCreate) { jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.litrpc.RuleValue)); }; - - -proto.litrpc.RulesMap.prototype.clearRulesMap = function() { - this.getRulesMap().clear(); -}; - - - -/** - * 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.litrpc.RuleValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.litrpc.RuleValue.oneofGroups_); -}; -goog.inherits(proto.litrpc.RuleValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RuleValue.displayName = 'proto.litrpc.RuleValue'; -} + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.RulesMap} returns this + */ +proto.litrpc.RulesMap.prototype.clearRulesMap = function() { + this.getRulesMap().clear(); + return this;}; + + + /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -2333,13 +2713,15 @@ proto.litrpc.RuleValue.prototype.getValueCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RuleValue.prototype.toObject = function(opt_includeInstance) { @@ -2349,8 +2731,8 @@ proto.litrpc.RuleValue.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RuleValue} msg The msg instance to transform. * @return {!Object} @@ -2548,20 +2930,27 @@ proto.litrpc.RuleValue.prototype.getRateLimit = function() { }; -/** @param {?proto.litrpc.RateLimit|undefined} value */ +/** + * @param {?proto.litrpc.RateLimit|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setRateLimit = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearRateLimit = function() { - this.setRateLimit(undefined); + return this.setRateLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasRateLimit = function() { return jspb.Message.getField(this, 1) != null; @@ -2578,20 +2967,27 @@ proto.litrpc.RuleValue.prototype.getChanPolicyBounds = function() { }; -/** @param {?proto.litrpc.ChannelPolicyBounds|undefined} value */ +/** + * @param {?proto.litrpc.ChannelPolicyBounds|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setChanPolicyBounds = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearChanPolicyBounds = function() { - this.setChanPolicyBounds(undefined); + return this.setChanPolicyBounds(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasChanPolicyBounds = function() { return jspb.Message.getField(this, 2) != null; @@ -2608,20 +3004,27 @@ proto.litrpc.RuleValue.prototype.getHistoryLimit = function() { }; -/** @param {?proto.litrpc.HistoryLimit|undefined} value */ +/** + * @param {?proto.litrpc.HistoryLimit|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setHistoryLimit = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearHistoryLimit = function() { - this.setHistoryLimit(undefined); + return this.setHistoryLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasHistoryLimit = function() { return jspb.Message.getField(this, 3) != null; @@ -2638,20 +3041,27 @@ proto.litrpc.RuleValue.prototype.getOffChainBudget = function() { }; -/** @param {?proto.litrpc.OffChainBudget|undefined} value */ +/** + * @param {?proto.litrpc.OffChainBudget|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setOffChainBudget = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearOffChainBudget = function() { - this.setOffChainBudget(undefined); + return this.setOffChainBudget(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasOffChainBudget = function() { return jspb.Message.getField(this, 4) != null; @@ -2668,20 +3078,27 @@ proto.litrpc.RuleValue.prototype.getOnChainBudget = function() { }; -/** @param {?proto.litrpc.OnChainBudget|undefined} value */ +/** + * @param {?proto.litrpc.OnChainBudget|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setOnChainBudget = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearOnChainBudget = function() { - this.setOnChainBudget(undefined); + return this.setOnChainBudget(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasOnChainBudget = function() { return jspb.Message.getField(this, 5) != null; @@ -2698,20 +3115,27 @@ proto.litrpc.RuleValue.prototype.getSendToSelf = function() { }; -/** @param {?proto.litrpc.SendToSelf|undefined} value */ +/** + * @param {?proto.litrpc.SendToSelf|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setSendToSelf = function(value) { - jspb.Message.setOneofWrapperField(this, 6, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearSendToSelf = function() { - this.setSendToSelf(undefined); + return this.setSendToSelf(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasSendToSelf = function() { return jspb.Message.getField(this, 6) != null; @@ -2728,20 +3152,27 @@ proto.litrpc.RuleValue.prototype.getChannelRestrict = function() { }; -/** @param {?proto.litrpc.ChannelRestrict|undefined} value */ +/** + * @param {?proto.litrpc.ChannelRestrict|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setChannelRestrict = function(value) { - jspb.Message.setOneofWrapperField(this, 7, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 7, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearChannelRestrict = function() { - this.setChannelRestrict(undefined); + return this.setChannelRestrict(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasChannelRestrict = function() { return jspb.Message.getField(this, 7) != null; @@ -2758,20 +3189,27 @@ proto.litrpc.RuleValue.prototype.getPeerRestrict = function() { }; -/** @param {?proto.litrpc.PeerRestrict|undefined} value */ +/** + * @param {?proto.litrpc.PeerRestrict|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setPeerRestrict = function(value) { - jspb.Message.setOneofWrapperField(this, 8, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 8, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearPeerRestrict = function() { - this.setPeerRestrict(undefined); + return this.setPeerRestrict(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasPeerRestrict = function() { return jspb.Message.getField(this, 8) != null; @@ -2779,34 +3217,19 @@ proto.litrpc.RuleValue.prototype.hasPeerRestrict = function() { -/** - * 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.litrpc.RateLimit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.RateLimit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.RateLimit.displayName = 'proto.litrpc.RateLimit'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.RateLimit.prototype.toObject = function(opt_includeInstance) { @@ -2816,8 +3239,8 @@ proto.litrpc.RateLimit.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.RateLimit} msg The msg instance to transform. * @return {!Object} @@ -2931,20 +3354,27 @@ proto.litrpc.RateLimit.prototype.getReadLimit = function() { }; -/** @param {?proto.litrpc.Rate|undefined} value */ +/** + * @param {?proto.litrpc.Rate|undefined} value + * @return {!proto.litrpc.RateLimit} returns this +*/ proto.litrpc.RateLimit.prototype.setReadLimit = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RateLimit} returns this + */ proto.litrpc.RateLimit.prototype.clearReadLimit = function() { - this.setReadLimit(undefined); + return this.setReadLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RateLimit.prototype.hasReadLimit = function() { return jspb.Message.getField(this, 1) != null; @@ -2961,20 +3391,27 @@ proto.litrpc.RateLimit.prototype.getWriteLimit = function() { }; -/** @param {?proto.litrpc.Rate|undefined} value */ +/** + * @param {?proto.litrpc.Rate|undefined} value + * @return {!proto.litrpc.RateLimit} returns this +*/ proto.litrpc.RateLimit.prototype.setWriteLimit = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RateLimit} returns this + */ proto.litrpc.RateLimit.prototype.clearWriteLimit = function() { - this.setWriteLimit(undefined); + return this.setWriteLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RateLimit.prototype.hasWriteLimit = function() { return jspb.Message.getField(this, 2) != null; @@ -2982,34 +3419,19 @@ proto.litrpc.RateLimit.prototype.hasWriteLimit = function() { -/** - * 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.litrpc.Rate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.Rate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.Rate.displayName = 'proto.litrpc.Rate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.Rate.prototype.toObject = function(opt_includeInstance) { @@ -3019,8 +3441,8 @@ proto.litrpc.Rate.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.Rate} msg The msg instance to transform. * @return {!Object} @@ -3129,9 +3551,12 @@ proto.litrpc.Rate.prototype.getIterations = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.Rate} returns this + */ proto.litrpc.Rate.prototype.setIterations = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -3144,41 +3569,29 @@ proto.litrpc.Rate.prototype.getNumHours = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.Rate} returns this + */ proto.litrpc.Rate.prototype.setNumHours = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.litrpc.HistoryLimit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.HistoryLimit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.HistoryLimit.displayName = 'proto.litrpc.HistoryLimit'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.HistoryLimit.prototype.toObject = function(opt_includeInstance) { @@ -3188,8 +3601,8 @@ proto.litrpc.HistoryLimit.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.HistoryLimit} msg The msg instance to transform. * @return {!Object} @@ -3298,9 +3711,12 @@ proto.litrpc.HistoryLimit.prototype.getStartTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.HistoryLimit} returns this + */ proto.litrpc.HistoryLimit.prototype.setStartTime = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3313,41 +3729,29 @@ proto.litrpc.HistoryLimit.prototype.getDuration = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.HistoryLimit} returns this + */ proto.litrpc.HistoryLimit.prototype.setDuration = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.litrpc.ChannelPolicyBounds = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ChannelPolicyBounds, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ChannelPolicyBounds.displayName = 'proto.litrpc.ChannelPolicyBounds'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ChannelPolicyBounds.prototype.toObject = function(opt_includeInstance) { @@ -3357,8 +3761,8 @@ proto.litrpc.ChannelPolicyBounds.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ChannelPolicyBounds} msg The msg instance to transform. * @return {!Object} @@ -3539,9 +3943,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMinBaseMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMinBaseMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3554,9 +3961,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMaxBaseMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMaxBaseMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -3569,9 +3979,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMinRatePpm = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMinRatePpm = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -3584,9 +3997,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMaxRatePpm = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMaxRatePpm = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -3599,9 +4015,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMinCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMinCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -3614,9 +4033,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMaxCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMaxCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -3629,9 +4051,12 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMinHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMinHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -3644,41 +4069,29 @@ proto.litrpc.ChannelPolicyBounds.prototype.getMaxHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelPolicyBounds} returns this + */ proto.litrpc.ChannelPolicyBounds.prototype.setMaxHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; -/** - * 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.litrpc.OffChainBudget = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.OffChainBudget, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.OffChainBudget.displayName = 'proto.litrpc.OffChainBudget'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.OffChainBudget.prototype.toObject = function(opt_includeInstance) { @@ -3688,8 +4101,8 @@ proto.litrpc.OffChainBudget.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.OffChainBudget} msg The msg instance to transform. * @return {!Object} @@ -3798,9 +4211,12 @@ proto.litrpc.OffChainBudget.prototype.getMaxAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.OffChainBudget} returns this + */ proto.litrpc.OffChainBudget.prototype.setMaxAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3813,41 +4229,29 @@ proto.litrpc.OffChainBudget.prototype.getMaxFeesMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.OffChainBudget} returns this + */ proto.litrpc.OffChainBudget.prototype.setMaxFeesMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.litrpc.OnChainBudget = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.OnChainBudget, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.OnChainBudget.displayName = 'proto.litrpc.OnChainBudget'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.OnChainBudget.prototype.toObject = function(opt_includeInstance) { @@ -3857,8 +4261,8 @@ proto.litrpc.OnChainBudget.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.OnChainBudget} msg The msg instance to transform. * @return {!Object} @@ -3967,9 +4371,12 @@ proto.litrpc.OnChainBudget.prototype.getAbsoluteAmtSats = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.OnChainBudget} returns this + */ proto.litrpc.OnChainBudget.prototype.setAbsoluteAmtSats = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3982,41 +4389,29 @@ proto.litrpc.OnChainBudget.prototype.getMaxSatPerVByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.OnChainBudget} returns this + */ proto.litrpc.OnChainBudget.prototype.setMaxSatPerVByte = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.litrpc.SendToSelf = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.SendToSelf, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.SendToSelf.displayName = 'proto.litrpc.SendToSelf'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.SendToSelf.prototype.toObject = function(opt_includeInstance) { @@ -4026,8 +4421,8 @@ proto.litrpc.SendToSelf.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.SendToSelf} msg The msg instance to transform. * @return {!Object} @@ -4105,23 +4500,6 @@ proto.litrpc.SendToSelf.serializeBinaryToWriter = function(message, writer) { -/** - * 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.litrpc.ChannelRestrict = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.ChannelRestrict.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.ChannelRestrict, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ChannelRestrict.displayName = 'proto.litrpc.ChannelRestrict'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -4133,13 +4511,15 @@ proto.litrpc.ChannelRestrict.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.ChannelRestrict.prototype.toObject = function(opt_includeInstance) { @@ -4149,8 +4529,8 @@ proto.litrpc.ChannelRestrict.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.ChannelRestrict} msg The msg instance to transform. * @return {!Object} @@ -4158,7 +4538,7 @@ proto.litrpc.ChannelRestrict.prototype.toObject = function(opt_includeInstance) */ proto.litrpc.ChannelRestrict.toObject = function(includeInstance, msg) { var f, obj = { - channelIdsList: jspb.Message.getRepeatedField(msg, 1) + channelIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -4196,8 +4576,10 @@ proto.litrpc.ChannelRestrict.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setChannelIdsList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addChannelIds(values[i]); + } break; default: reader.skipField(); @@ -4247,44 +4629,35 @@ proto.litrpc.ChannelRestrict.prototype.getChannelIdsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.ChannelRestrict} returns this + */ proto.litrpc.ChannelRestrict.prototype.setChannelIdsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.litrpc.ChannelRestrict} returns this */ proto.litrpc.ChannelRestrict.prototype.addChannelIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.ChannelRestrict} returns this + */ proto.litrpc.ChannelRestrict.prototype.clearChannelIdsList = function() { - this.setChannelIdsList([]); + return this.setChannelIdsList([]); }; -/** - * 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.litrpc.PeerRestrict = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.litrpc.PeerRestrict.repeatedFields_, null); -}; -goog.inherits(proto.litrpc.PeerRestrict, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.PeerRestrict.displayName = 'proto.litrpc.PeerRestrict'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -4296,13 +4669,15 @@ proto.litrpc.PeerRestrict.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.PeerRestrict.prototype.toObject = function(opt_includeInstance) { @@ -4312,8 +4687,8 @@ proto.litrpc.PeerRestrict.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.PeerRestrict} msg The msg instance to transform. * @return {!Object} @@ -4321,7 +4696,7 @@ proto.litrpc.PeerRestrict.prototype.toObject = function(opt_includeInstance) { */ proto.litrpc.PeerRestrict.toObject = function(includeInstance, msg) { var f, obj = { - peerIdsList: jspb.Message.getRepeatedField(msg, 1) + peerIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -4410,23 +4785,31 @@ proto.litrpc.PeerRestrict.prototype.getPeerIdsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.litrpc.PeerRestrict} returns this + */ proto.litrpc.PeerRestrict.prototype.setPeerIdsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.litrpc.PeerRestrict} returns this */ proto.litrpc.PeerRestrict.prototype.addPeerIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.litrpc.PeerRestrict} returns this + */ proto.litrpc.PeerRestrict.prototype.clearPeerIdsList = function() { - this.setPeerIdsList([]); + return this.setPeerIdsList([]); }; diff --git a/app/src/types/generated/lnd_pb.js b/app/src/types/generated/lnd_pb.js index 38f3711bf..80bf57c98 100644 --- a/app/src/types/generated/lnd_pb.js +++ b/app/src/types/generated/lnd_pb.js @@ -1,18 +1,28 @@ /* eslint-disable */ var proto = { lnrpc: {} }; +// source: lnd.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.lnrpc.AMP', null, global); goog.exportSymbol('proto.lnrpc.AMPInvoiceState', null, global); @@ -49,17 +59,20 @@ goog.exportSymbol('proto.lnrpc.ChannelEdge', null, global); goog.exportSymbol('proto.lnrpc.ChannelEdgeUpdate', null, global); goog.exportSymbol('proto.lnrpc.ChannelEventSubscription', null, global); goog.exportSymbol('proto.lnrpc.ChannelEventUpdate', null, global); +goog.exportSymbol('proto.lnrpc.ChannelEventUpdate.ChannelCase', null, global); goog.exportSymbol('proto.lnrpc.ChannelEventUpdate.UpdateType', null, global); goog.exportSymbol('proto.lnrpc.ChannelFeeReport', null, global); goog.exportSymbol('proto.lnrpc.ChannelGraph', null, global); goog.exportSymbol('proto.lnrpc.ChannelGraphRequest', null, global); goog.exportSymbol('proto.lnrpc.ChannelOpenUpdate', null, global); goog.exportSymbol('proto.lnrpc.ChannelPoint', null, global); +goog.exportSymbol('proto.lnrpc.ChannelPoint.FundingTxidCase', null, global); goog.exportSymbol('proto.lnrpc.ChannelUpdate', null, global); goog.exportSymbol('proto.lnrpc.CheckMacPermRequest', null, global); goog.exportSymbol('proto.lnrpc.CheckMacPermResponse', null, global); goog.exportSymbol('proto.lnrpc.CloseChannelRequest', null, global); goog.exportSymbol('proto.lnrpc.CloseStatusUpdate', null, global); +goog.exportSymbol('proto.lnrpc.CloseStatusUpdate.UpdateCase', null, global); goog.exportSymbol('proto.lnrpc.ClosedChannelUpdate', null, global); goog.exportSymbol('proto.lnrpc.ClosedChannelsRequest', null, global); goog.exportSymbol('proto.lnrpc.ClosedChannelsResponse', null, global); @@ -88,6 +101,7 @@ goog.exportSymbol('proto.lnrpc.Failure.FailureCode', null, global); goog.exportSymbol('proto.lnrpc.Feature', null, global); goog.exportSymbol('proto.lnrpc.FeatureBit', null, global); goog.exportSymbol('proto.lnrpc.FeeLimit', null, global); +goog.exportSymbol('proto.lnrpc.FeeLimit.LimitCase', null, global); goog.exportSymbol('proto.lnrpc.FeeReportRequest', null, global); goog.exportSymbol('proto.lnrpc.FeeReportResponse', null, global); goog.exportSymbol('proto.lnrpc.FloatMetric', null, global); @@ -97,9 +111,11 @@ goog.exportSymbol('proto.lnrpc.ForwardingHistoryResponse', null, global); goog.exportSymbol('proto.lnrpc.FundingPsbtFinalize', null, global); goog.exportSymbol('proto.lnrpc.FundingPsbtVerify', null, global); goog.exportSymbol('proto.lnrpc.FundingShim', null, global); +goog.exportSymbol('proto.lnrpc.FundingShim.ShimCase', null, global); goog.exportSymbol('proto.lnrpc.FundingShimCancel', null, global); goog.exportSymbol('proto.lnrpc.FundingStateStepResp', null, global); goog.exportSymbol('proto.lnrpc.FundingTransitionMsg', null, global); +goog.exportSymbol('proto.lnrpc.FundingTransitionMsg.TriggerCase', null, global); goog.exportSymbol('proto.lnrpc.GetInfoRequest', null, global); goog.exportSymbol('proto.lnrpc.GetInfoResponse', null, global); goog.exportSymbol('proto.lnrpc.GetRecoveryInfoRequest', null, global); @@ -162,6 +178,7 @@ goog.exportSymbol('proto.lnrpc.NodeUpdate', null, global); goog.exportSymbol('proto.lnrpc.Op', null, global); goog.exportSymbol('proto.lnrpc.OpenChannelRequest', null, global); goog.exportSymbol('proto.lnrpc.OpenStatusUpdate', null, global); +goog.exportSymbol('proto.lnrpc.OpenStatusUpdate.UpdateCase', null, global); goog.exportSymbol('proto.lnrpc.OutPoint', null, global); goog.exportSymbol('proto.lnrpc.OutputDetail', null, global); goog.exportSymbol('proto.lnrpc.OutputScriptType', null, global); @@ -188,6 +205,7 @@ goog.exportSymbol('proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel', nul goog.exportSymbol('proto.lnrpc.PendingHTLC', null, global); goog.exportSymbol('proto.lnrpc.PendingUpdate', null, global); goog.exportSymbol('proto.lnrpc.PolicyUpdateRequest', null, global); +goog.exportSymbol('proto.lnrpc.PolicyUpdateRequest.ScopeCase', null, global); goog.exportSymbol('proto.lnrpc.PolicyUpdateResponse', null, global); goog.exportSymbol('proto.lnrpc.PreviousOutPoint', null, global); goog.exportSymbol('proto.lnrpc.PsbtShim', null, global); @@ -195,13 +213,16 @@ goog.exportSymbol('proto.lnrpc.QueryRoutesRequest', null, global); goog.exportSymbol('proto.lnrpc.QueryRoutesResponse', null, global); goog.exportSymbol('proto.lnrpc.RPCMessage', null, global); goog.exportSymbol('proto.lnrpc.RPCMiddlewareRequest', null, global); +goog.exportSymbol('proto.lnrpc.RPCMiddlewareRequest.InterceptTypeCase', null, global); goog.exportSymbol('proto.lnrpc.RPCMiddlewareResponse', null, global); +goog.exportSymbol('proto.lnrpc.RPCMiddlewareResponse.MiddlewareMessageCase', null, global); goog.exportSymbol('proto.lnrpc.ReadyForPsbtFunding', null, global); goog.exportSymbol('proto.lnrpc.Resolution', null, global); goog.exportSymbol('proto.lnrpc.ResolutionOutcome', null, global); goog.exportSymbol('proto.lnrpc.ResolutionType', null, global); goog.exportSymbol('proto.lnrpc.RestoreBackupResponse', null, global); goog.exportSymbol('proto.lnrpc.RestoreChanBackupRequest', null, global); +goog.exportSymbol('proto.lnrpc.RestoreChanBackupRequest.BackupCase', null, global); goog.exportSymbol('proto.lnrpc.Route', null, global); goog.exportSymbol('proto.lnrpc.RouteHint', null, global); goog.exportSymbol('proto.lnrpc.RoutingPolicy', null, global); @@ -232,7 +253,6 @@ goog.exportSymbol('proto.lnrpc.VerifyMessageResponse', null, global); goog.exportSymbol('proto.lnrpc.WalletAccountBalance', null, global); goog.exportSymbol('proto.lnrpc.WalletBalanceRequest', null, global); goog.exportSymbol('proto.lnrpc.WalletBalanceResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -248,160 +268,222 @@ proto.lnrpc.LookupHtlcResolutionRequest = function(opt_data) { }; goog.inherits(proto.lnrpc.LookupHtlcResolutionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.lnrpc.LookupHtlcResolutionRequest.displayName = 'proto.lnrpc.LookupHtlcResolutionRequest'; } - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} + * 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.lnrpc.LookupHtlcResolutionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.lnrpc.LookupHtlcResolutionRequest.toObject(opt_includeInstance, this); +proto.lnrpc.LookupHtlcResolutionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.lnrpc.LookupHtlcResolutionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.LookupHtlcResolutionResponse.displayName = 'proto.lnrpc.LookupHtlcResolutionResponse'; +} /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.lnrpc.LookupHtlcResolutionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * 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.lnrpc.LookupHtlcResolutionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - chanId: jspb.Message.getFieldWithDefault(msg, 1, "0"), - htlcIndex: jspb.Message.getFieldWithDefault(msg, 2, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.lnrpc.SubscribeCustomMessagesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; +goog.inherits(proto.lnrpc.SubscribeCustomMessagesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SubscribeCustomMessagesRequest.displayName = 'proto.lnrpc.SubscribeCustomMessagesRequest'; } - - /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.lnrpc.LookupHtlcResolutionRequest} + * 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.lnrpc.LookupHtlcResolutionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.lnrpc.LookupHtlcResolutionRequest; - return proto.lnrpc.LookupHtlcResolutionRequest.deserializeBinaryFromReader(msg, reader); +proto.lnrpc.CustomMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.lnrpc.CustomMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.CustomMessage.displayName = 'proto.lnrpc.CustomMessage'; +} /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.lnrpc.LookupHtlcResolutionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.lnrpc.LookupHtlcResolutionRequest} + * 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.lnrpc.LookupHtlcResolutionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setChanId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setHtlcIndex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.lnrpc.SendCustomMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.lnrpc.SendCustomMessageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendCustomMessageRequest.displayName = 'proto.lnrpc.SendCustomMessageRequest'; +} /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * 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.lnrpc.LookupHtlcResolutionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.lnrpc.LookupHtlcResolutionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.lnrpc.SendCustomMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.lnrpc.SendCustomMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendCustomMessageResponse.displayName = 'proto.lnrpc.SendCustomMessageResponse'; +} /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.lnrpc.LookupHtlcResolutionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * 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.lnrpc.LookupHtlcResolutionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChanId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getHtlcIndex(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } +proto.lnrpc.Utxo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.lnrpc.Utxo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Utxo.displayName = 'proto.lnrpc.Utxo'; +} /** - * optional uint64 chan_id = 1; - * @return {string} + * 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.lnrpc.LookupHtlcResolutionRequest.prototype.getChanId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.lnrpc.OutputDetail = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - -/** @param {string} value */ -proto.lnrpc.LookupHtlcResolutionRequest.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); +goog.inherits(proto.lnrpc.OutputDetail, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.OutputDetail.displayName = 'proto.lnrpc.OutputDetail'; +} +/** + * 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.lnrpc.Transaction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Transaction.repeatedFields_, null); }; - - +goog.inherits(proto.lnrpc.Transaction, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Transaction.displayName = 'proto.lnrpc.Transaction'; +} /** - * optional uint64 htlc_index = 2; - * @return {string} + * 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.lnrpc.LookupHtlcResolutionRequest.prototype.getHtlcIndex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.lnrpc.GetTransactionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - -/** @param {string} value */ -proto.lnrpc.LookupHtlcResolutionRequest.prototype.setHtlcIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); +goog.inherits(proto.lnrpc.GetTransactionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetTransactionsRequest.displayName = 'proto.lnrpc.GetTransactionsRequest'; +} +/** + * 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.lnrpc.TransactionDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.TransactionDetails.repeatedFields_, null); }; - - - +goog.inherits(proto.lnrpc.TransactionDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.TransactionDetails.displayName = 'proto.lnrpc.TransactionDetails'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -412,24 +494,4097 @@ proto.lnrpc.LookupHtlcResolutionRequest.prototype.setHtlcIndex = function(value) * @extends {jspb.Message} * @constructor */ -proto.lnrpc.LookupHtlcResolutionResponse = function(opt_data) { +proto.lnrpc.FeeLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FeeLimit.oneofGroups_); +}; +goog.inherits(proto.lnrpc.FeeLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FeeLimit.displayName = 'proto.lnrpc.FeeLimit'; +} +/** + * 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.lnrpc.SendRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.SendRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.SendRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendRequest.displayName = 'proto.lnrpc.SendRequest'; +} +/** + * 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.lnrpc.SendResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.lnrpc.LookupHtlcResolutionResponse, jspb.Message); +goog.inherits(proto.lnrpc.SendResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.lnrpc.LookupHtlcResolutionResponse.displayName = 'proto.lnrpc.LookupHtlcResolutionResponse'; + /** + * @public + * @override + */ + proto.lnrpc.SendResponse.displayName = 'proto.lnrpc.SendResponse'; } - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendToRouteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SendToRouteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendToRouteRequest.displayName = 'proto.lnrpc.SendToRouteRequest'; +} +/** + * 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.lnrpc.ChannelAcceptRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelAcceptRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelAcceptRequest.displayName = 'proto.lnrpc.ChannelAcceptRequest'; +} +/** + * 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.lnrpc.ChannelAcceptResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelAcceptResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelAcceptResponse.displayName = 'proto.lnrpc.ChannelAcceptResponse'; +} +/** + * 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.lnrpc.ChannelPoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.ChannelPoint.oneofGroups_); +}; +goog.inherits(proto.lnrpc.ChannelPoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelPoint.displayName = 'proto.lnrpc.ChannelPoint'; +} +/** + * 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.lnrpc.OutPoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.OutPoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.OutPoint.displayName = 'proto.lnrpc.OutPoint'; +} +/** + * 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.lnrpc.PreviousOutPoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PreviousOutPoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PreviousOutPoint.displayName = 'proto.lnrpc.PreviousOutPoint'; +} +/** + * 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.lnrpc.LightningAddress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.LightningAddress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.LightningAddress.displayName = 'proto.lnrpc.LightningAddress'; +} +/** + * 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.lnrpc.EstimateFeeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.EstimateFeeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.EstimateFeeRequest.displayName = 'proto.lnrpc.EstimateFeeRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.lnrpc.EstimateFeeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.EstimateFeeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.EstimateFeeResponse.displayName = 'proto.lnrpc.EstimateFeeResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.lnrpc.SendManyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SendManyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendManyRequest.displayName = 'proto.lnrpc.SendManyRequest'; +} +/** + * 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.lnrpc.SendManyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SendManyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendManyResponse.displayName = 'proto.lnrpc.SendManyResponse'; +} +/** + * 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.lnrpc.SendCoinsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SendCoinsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendCoinsRequest.displayName = 'proto.lnrpc.SendCoinsRequest'; +} +/** + * 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.lnrpc.SendCoinsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SendCoinsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendCoinsResponse.displayName = 'proto.lnrpc.SendCoinsResponse'; +} +/** + * 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.lnrpc.ListUnspentRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListUnspentRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListUnspentRequest.displayName = 'proto.lnrpc.ListUnspentRequest'; +} +/** + * 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.lnrpc.ListUnspentResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListUnspentResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListUnspentResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListUnspentResponse.displayName = 'proto.lnrpc.ListUnspentResponse'; +} +/** + * 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.lnrpc.NewAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NewAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NewAddressRequest.displayName = 'proto.lnrpc.NewAddressRequest'; +} +/** + * 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.lnrpc.NewAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NewAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NewAddressResponse.displayName = 'proto.lnrpc.NewAddressResponse'; +} +/** + * 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.lnrpc.SignMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SignMessageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SignMessageRequest.displayName = 'proto.lnrpc.SignMessageRequest'; +} +/** + * 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.lnrpc.SignMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SignMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SignMessageResponse.displayName = 'proto.lnrpc.SignMessageResponse'; +} +/** + * 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.lnrpc.VerifyMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.VerifyMessageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.VerifyMessageRequest.displayName = 'proto.lnrpc.VerifyMessageRequest'; +} +/** + * 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.lnrpc.VerifyMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.VerifyMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.VerifyMessageResponse.displayName = 'proto.lnrpc.VerifyMessageResponse'; +} +/** + * 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.lnrpc.ConnectPeerRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ConnectPeerRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ConnectPeerRequest.displayName = 'proto.lnrpc.ConnectPeerRequest'; +} +/** + * 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.lnrpc.ConnectPeerResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ConnectPeerResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ConnectPeerResponse.displayName = 'proto.lnrpc.ConnectPeerResponse'; +} +/** + * 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.lnrpc.DisconnectPeerRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DisconnectPeerRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DisconnectPeerRequest.displayName = 'proto.lnrpc.DisconnectPeerRequest'; +} +/** + * 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.lnrpc.DisconnectPeerResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DisconnectPeerResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DisconnectPeerResponse.displayName = 'proto.lnrpc.DisconnectPeerResponse'; +} +/** + * 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.lnrpc.HTLC = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.HTLC, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.HTLC.displayName = 'proto.lnrpc.HTLC'; +} +/** + * 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.lnrpc.ChannelConstraints = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelConstraints, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelConstraints.displayName = 'proto.lnrpc.ChannelConstraints'; +} +/** + * 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.lnrpc.Channel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Channel.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Channel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Channel.displayName = 'proto.lnrpc.Channel'; +} +/** + * 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.lnrpc.ListChannelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListChannelsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListChannelsRequest.displayName = 'proto.lnrpc.ListChannelsRequest'; +} +/** + * 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.lnrpc.ListChannelsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListChannelsResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListChannelsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListChannelsResponse.displayName = 'proto.lnrpc.ListChannelsResponse'; +} +/** + * 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.lnrpc.AliasMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.AliasMap.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.AliasMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AliasMap.displayName = 'proto.lnrpc.AliasMap'; +} +/** + * 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.lnrpc.ListAliasesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListAliasesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListAliasesRequest.displayName = 'proto.lnrpc.ListAliasesRequest'; +} +/** + * 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.lnrpc.ListAliasesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListAliasesResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListAliasesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListAliasesResponse.displayName = 'proto.lnrpc.ListAliasesResponse'; +} +/** + * 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.lnrpc.ChannelCloseSummary = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelCloseSummary.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ChannelCloseSummary, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelCloseSummary.displayName = 'proto.lnrpc.ChannelCloseSummary'; +} +/** + * 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.lnrpc.Resolution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Resolution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Resolution.displayName = 'proto.lnrpc.Resolution'; +} +/** + * 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.lnrpc.ClosedChannelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ClosedChannelsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ClosedChannelsRequest.displayName = 'proto.lnrpc.ClosedChannelsRequest'; +} +/** + * 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.lnrpc.ClosedChannelsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ClosedChannelsResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ClosedChannelsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ClosedChannelsResponse.displayName = 'proto.lnrpc.ClosedChannelsResponse'; +} +/** + * 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.lnrpc.Peer = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Peer.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Peer, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Peer.displayName = 'proto.lnrpc.Peer'; +} +/** + * 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.lnrpc.TimestampedError = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.TimestampedError, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.TimestampedError.displayName = 'proto.lnrpc.TimestampedError'; +} +/** + * 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.lnrpc.ListPeersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListPeersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPeersRequest.displayName = 'proto.lnrpc.ListPeersRequest'; +} +/** + * 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.lnrpc.ListPeersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListPeersResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListPeersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPeersResponse.displayName = 'proto.lnrpc.ListPeersResponse'; +} +/** + * 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.lnrpc.PeerEventSubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PeerEventSubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PeerEventSubscription.displayName = 'proto.lnrpc.PeerEventSubscription'; +} +/** + * 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.lnrpc.PeerEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PeerEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PeerEvent.displayName = 'proto.lnrpc.PeerEvent'; +} +/** + * 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.lnrpc.GetInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.GetInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetInfoRequest.displayName = 'proto.lnrpc.GetInfoRequest'; +} +/** + * 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.lnrpc.GetInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GetInfoResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.GetInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetInfoResponse.displayName = 'proto.lnrpc.GetInfoResponse'; +} +/** + * 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.lnrpc.GetRecoveryInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.GetRecoveryInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetRecoveryInfoRequest.displayName = 'proto.lnrpc.GetRecoveryInfoRequest'; +} +/** + * 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.lnrpc.GetRecoveryInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.GetRecoveryInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetRecoveryInfoResponse.displayName = 'proto.lnrpc.GetRecoveryInfoResponse'; +} +/** + * 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.lnrpc.Chain = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Chain, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Chain.displayName = 'proto.lnrpc.Chain'; +} +/** + * 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.lnrpc.ConfirmationUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ConfirmationUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ConfirmationUpdate.displayName = 'proto.lnrpc.ConfirmationUpdate'; +} +/** + * 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.lnrpc.ChannelOpenUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelOpenUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelOpenUpdate.displayName = 'proto.lnrpc.ChannelOpenUpdate'; +} +/** + * 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.lnrpc.ChannelCloseUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelCloseUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelCloseUpdate.displayName = 'proto.lnrpc.ChannelCloseUpdate'; +} +/** + * 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.lnrpc.CloseChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.CloseChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.CloseChannelRequest.displayName = 'proto.lnrpc.CloseChannelRequest'; +} +/** + * 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.lnrpc.CloseStatusUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.CloseStatusUpdate.oneofGroups_); +}; +goog.inherits(proto.lnrpc.CloseStatusUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.CloseStatusUpdate.displayName = 'proto.lnrpc.CloseStatusUpdate'; +} +/** + * 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.lnrpc.PendingUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingUpdate.displayName = 'proto.lnrpc.PendingUpdate'; +} +/** + * 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.lnrpc.ReadyForPsbtFunding = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ReadyForPsbtFunding, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ReadyForPsbtFunding.displayName = 'proto.lnrpc.ReadyForPsbtFunding'; +} +/** + * 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.lnrpc.BatchOpenChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BatchOpenChannelRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BatchOpenChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BatchOpenChannelRequest.displayName = 'proto.lnrpc.BatchOpenChannelRequest'; +} +/** + * 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.lnrpc.BatchOpenChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.BatchOpenChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BatchOpenChannel.displayName = 'proto.lnrpc.BatchOpenChannel'; +} +/** + * 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.lnrpc.BatchOpenChannelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BatchOpenChannelResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BatchOpenChannelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BatchOpenChannelResponse.displayName = 'proto.lnrpc.BatchOpenChannelResponse'; +} +/** + * 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.lnrpc.OpenChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.OpenChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.OpenChannelRequest.displayName = 'proto.lnrpc.OpenChannelRequest'; +} +/** + * 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.lnrpc.OpenStatusUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.OpenStatusUpdate.oneofGroups_); +}; +goog.inherits(proto.lnrpc.OpenStatusUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.OpenStatusUpdate.displayName = 'proto.lnrpc.OpenStatusUpdate'; +} +/** + * 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.lnrpc.KeyLocator = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.KeyLocator, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.KeyLocator.displayName = 'proto.lnrpc.KeyLocator'; +} +/** + * 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.lnrpc.KeyDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.KeyDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.KeyDescriptor.displayName = 'proto.lnrpc.KeyDescriptor'; +} +/** + * 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.lnrpc.ChanPointShim = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChanPointShim, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChanPointShim.displayName = 'proto.lnrpc.ChanPointShim'; +} +/** + * 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.lnrpc.PsbtShim = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PsbtShim, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PsbtShim.displayName = 'proto.lnrpc.PsbtShim'; +} +/** + * 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.lnrpc.FundingShim = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FundingShim.oneofGroups_); +}; +goog.inherits(proto.lnrpc.FundingShim, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingShim.displayName = 'proto.lnrpc.FundingShim'; +} +/** + * 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.lnrpc.FundingShimCancel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FundingShimCancel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingShimCancel.displayName = 'proto.lnrpc.FundingShimCancel'; +} +/** + * 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.lnrpc.FundingPsbtVerify = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FundingPsbtVerify, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingPsbtVerify.displayName = 'proto.lnrpc.FundingPsbtVerify'; +} +/** + * 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.lnrpc.FundingPsbtFinalize = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FundingPsbtFinalize, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingPsbtFinalize.displayName = 'proto.lnrpc.FundingPsbtFinalize'; +} +/** + * 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.lnrpc.FundingTransitionMsg = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FundingTransitionMsg.oneofGroups_); +}; +goog.inherits(proto.lnrpc.FundingTransitionMsg, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingTransitionMsg.displayName = 'proto.lnrpc.FundingTransitionMsg'; +} +/** + * 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.lnrpc.FundingStateStepResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FundingStateStepResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FundingStateStepResp.displayName = 'proto.lnrpc.FundingStateStepResp'; +} +/** + * 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.lnrpc.PendingHTLC = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingHTLC, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingHTLC.displayName = 'proto.lnrpc.PendingHTLC'; +} +/** + * 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.lnrpc.PendingChannelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsRequest.displayName = 'proto.lnrpc.PendingChannelsRequest'; +} +/** + * 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.lnrpc.PendingChannelsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PendingChannelsResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.displayName = 'proto.lnrpc.PendingChannelsResponse'; +} +/** + * 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.lnrpc.PendingChannelsResponse.PendingChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.PendingChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.PendingChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.PendingChannel'; +} +/** + * 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.lnrpc.PendingChannelsResponse.PendingOpenChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.PendingOpenChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.PendingOpenChannel'; +} +/** + * 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.lnrpc.PendingChannelsResponse.WaitingCloseChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel'; +} +/** + * 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.lnrpc.PendingChannelsResponse.Commitments = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.Commitments, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.Commitments.displayName = 'proto.lnrpc.PendingChannelsResponse.Commitments'; +} +/** + * 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.lnrpc.PendingChannelsResponse.ClosedChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.ClosedChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.ClosedChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.ClosedChannel'; +} +/** + * 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.lnrpc.PendingChannelsResponse.ForceClosedChannel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.PendingChannelsResponse.ForceClosedChannel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.ForceClosedChannel'; +} +/** + * 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.lnrpc.ChannelEventSubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelEventSubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelEventSubscription.displayName = 'proto.lnrpc.ChannelEventSubscription'; +} +/** + * 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.lnrpc.ChannelEventUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.ChannelEventUpdate.oneofGroups_); +}; +goog.inherits(proto.lnrpc.ChannelEventUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelEventUpdate.displayName = 'proto.lnrpc.ChannelEventUpdate'; +} +/** + * 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.lnrpc.WalletAccountBalance = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.WalletAccountBalance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.WalletAccountBalance.displayName = 'proto.lnrpc.WalletAccountBalance'; +} +/** + * 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.lnrpc.WalletBalanceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.WalletBalanceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.WalletBalanceRequest.displayName = 'proto.lnrpc.WalletBalanceRequest'; +} +/** + * 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.lnrpc.WalletBalanceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.WalletBalanceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.WalletBalanceResponse.displayName = 'proto.lnrpc.WalletBalanceResponse'; +} +/** + * 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.lnrpc.Amount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Amount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Amount.displayName = 'proto.lnrpc.Amount'; +} +/** + * 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.lnrpc.ChannelBalanceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelBalanceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelBalanceRequest.displayName = 'proto.lnrpc.ChannelBalanceRequest'; +} +/** + * 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.lnrpc.ChannelBalanceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelBalanceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelBalanceResponse.displayName = 'proto.lnrpc.ChannelBalanceResponse'; +} +/** + * 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.lnrpc.QueryRoutesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.QueryRoutesRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.QueryRoutesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.QueryRoutesRequest.displayName = 'proto.lnrpc.QueryRoutesRequest'; +} +/** + * 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.lnrpc.NodePair = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NodePair, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodePair.displayName = 'proto.lnrpc.NodePair'; +} +/** + * 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.lnrpc.EdgeLocator = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.EdgeLocator, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.EdgeLocator.displayName = 'proto.lnrpc.EdgeLocator'; +} +/** + * 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.lnrpc.QueryRoutesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.QueryRoutesResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.QueryRoutesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.QueryRoutesResponse.displayName = 'proto.lnrpc.QueryRoutesResponse'; +} +/** + * 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.lnrpc.Hop = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Hop, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Hop.displayName = 'proto.lnrpc.Hop'; +} +/** + * 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.lnrpc.MPPRecord = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.MPPRecord, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MPPRecord.displayName = 'proto.lnrpc.MPPRecord'; +} +/** + * 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.lnrpc.AMPRecord = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AMPRecord, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AMPRecord.displayName = 'proto.lnrpc.AMPRecord'; +} +/** + * 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.lnrpc.Route = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Route.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Route, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Route.displayName = 'proto.lnrpc.Route'; +} +/** + * 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.lnrpc.NodeInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NodeInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeInfoRequest.displayName = 'proto.lnrpc.NodeInfoRequest'; +} +/** + * 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.lnrpc.NodeInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeInfo.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.NodeInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeInfo.displayName = 'proto.lnrpc.NodeInfo'; +} +/** + * 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.lnrpc.LightningNode = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.LightningNode.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.LightningNode, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.LightningNode.displayName = 'proto.lnrpc.LightningNode'; +} +/** + * 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.lnrpc.NodeAddress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NodeAddress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeAddress.displayName = 'proto.lnrpc.NodeAddress'; +} +/** + * 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.lnrpc.RoutingPolicy = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.RoutingPolicy, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RoutingPolicy.displayName = 'proto.lnrpc.RoutingPolicy'; +} +/** + * 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.lnrpc.ChannelEdge = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelEdge, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelEdge.displayName = 'proto.lnrpc.ChannelEdge'; +} +/** + * 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.lnrpc.ChannelGraphRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelGraphRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelGraphRequest.displayName = 'proto.lnrpc.ChannelGraphRequest'; +} +/** + * 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.lnrpc.ChannelGraph = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelGraph.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ChannelGraph, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelGraph.displayName = 'proto.lnrpc.ChannelGraph'; +} +/** + * 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.lnrpc.NodeMetricsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeMetricsRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.NodeMetricsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeMetricsRequest.displayName = 'proto.lnrpc.NodeMetricsRequest'; +} +/** + * 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.lnrpc.NodeMetricsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NodeMetricsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeMetricsResponse.displayName = 'proto.lnrpc.NodeMetricsResponse'; +} +/** + * 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.lnrpc.FloatMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FloatMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FloatMetric.displayName = 'proto.lnrpc.FloatMetric'; +} +/** + * 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.lnrpc.ChanInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChanInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChanInfoRequest.displayName = 'proto.lnrpc.ChanInfoRequest'; +} +/** + * 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.lnrpc.NetworkInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NetworkInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NetworkInfoRequest.displayName = 'proto.lnrpc.NetworkInfoRequest'; +} +/** + * 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.lnrpc.NetworkInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.NetworkInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NetworkInfo.displayName = 'proto.lnrpc.NetworkInfo'; +} +/** + * 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.lnrpc.StopRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.StopRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.StopRequest.displayName = 'proto.lnrpc.StopRequest'; +} +/** + * 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.lnrpc.StopResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.StopResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.StopResponse.displayName = 'proto.lnrpc.StopResponse'; +} +/** + * 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.lnrpc.GraphTopologySubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.GraphTopologySubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GraphTopologySubscription.displayName = 'proto.lnrpc.GraphTopologySubscription'; +} +/** + * 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.lnrpc.GraphTopologyUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GraphTopologyUpdate.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.GraphTopologyUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GraphTopologyUpdate.displayName = 'proto.lnrpc.GraphTopologyUpdate'; +} +/** + * 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.lnrpc.NodeUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeUpdate.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.NodeUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.NodeUpdate.displayName = 'proto.lnrpc.NodeUpdate'; +} +/** + * 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.lnrpc.ChannelEdgeUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelEdgeUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelEdgeUpdate.displayName = 'proto.lnrpc.ChannelEdgeUpdate'; +} +/** + * 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.lnrpc.ClosedChannelUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ClosedChannelUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ClosedChannelUpdate.displayName = 'proto.lnrpc.ClosedChannelUpdate'; +} +/** + * 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.lnrpc.HopHint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.HopHint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.HopHint.displayName = 'proto.lnrpc.HopHint'; +} +/** + * 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.lnrpc.SetID = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.SetID, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SetID.displayName = 'proto.lnrpc.SetID'; +} +/** + * 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.lnrpc.RouteHint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.RouteHint.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.RouteHint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RouteHint.displayName = 'proto.lnrpc.RouteHint'; +} +/** + * 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.lnrpc.AMPInvoiceState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AMPInvoiceState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AMPInvoiceState.displayName = 'proto.lnrpc.AMPInvoiceState'; +} +/** + * 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.lnrpc.Invoice = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Invoice.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Invoice, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Invoice.displayName = 'proto.lnrpc.Invoice'; +} +/** + * 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.lnrpc.InvoiceHTLC = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.InvoiceHTLC, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.InvoiceHTLC.displayName = 'proto.lnrpc.InvoiceHTLC'; +} +/** + * 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.lnrpc.AMP = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AMP, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AMP.displayName = 'proto.lnrpc.AMP'; +} +/** + * 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.lnrpc.AddInvoiceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AddInvoiceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AddInvoiceResponse.displayName = 'proto.lnrpc.AddInvoiceResponse'; +} +/** + * 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.lnrpc.PaymentHash = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PaymentHash, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PaymentHash.displayName = 'proto.lnrpc.PaymentHash'; +} +/** + * 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.lnrpc.ListInvoiceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListInvoiceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListInvoiceRequest.displayName = 'proto.lnrpc.ListInvoiceRequest'; +} +/** + * 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.lnrpc.ListInvoiceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListInvoiceResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListInvoiceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListInvoiceResponse.displayName = 'proto.lnrpc.ListInvoiceResponse'; +} +/** + * 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.lnrpc.InvoiceSubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.InvoiceSubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.InvoiceSubscription.displayName = 'proto.lnrpc.InvoiceSubscription'; +} +/** + * 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.lnrpc.Payment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Payment.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Payment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Payment.displayName = 'proto.lnrpc.Payment'; +} +/** + * 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.lnrpc.HTLCAttempt = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.HTLCAttempt, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.HTLCAttempt.displayName = 'proto.lnrpc.HTLCAttempt'; +} +/** + * 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.lnrpc.ListPaymentsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListPaymentsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPaymentsRequest.displayName = 'proto.lnrpc.ListPaymentsRequest'; +} +/** + * 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.lnrpc.ListPaymentsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListPaymentsResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListPaymentsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPaymentsResponse.displayName = 'proto.lnrpc.ListPaymentsResponse'; +} +/** + * 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.lnrpc.DeletePaymentRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeletePaymentRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeletePaymentRequest.displayName = 'proto.lnrpc.DeletePaymentRequest'; +} +/** + * 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.lnrpc.DeleteAllPaymentsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeleteAllPaymentsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeleteAllPaymentsRequest.displayName = 'proto.lnrpc.DeleteAllPaymentsRequest'; +} +/** + * 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.lnrpc.DeletePaymentResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeletePaymentResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeletePaymentResponse.displayName = 'proto.lnrpc.DeletePaymentResponse'; +} +/** + * 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.lnrpc.DeleteAllPaymentsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeleteAllPaymentsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeleteAllPaymentsResponse.displayName = 'proto.lnrpc.DeleteAllPaymentsResponse'; +} +/** + * 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.lnrpc.AbandonChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AbandonChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AbandonChannelRequest.displayName = 'proto.lnrpc.AbandonChannelRequest'; +} +/** + * 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.lnrpc.AbandonChannelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.AbandonChannelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.AbandonChannelResponse.displayName = 'proto.lnrpc.AbandonChannelResponse'; +} +/** + * 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.lnrpc.DebugLevelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DebugLevelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DebugLevelRequest.displayName = 'proto.lnrpc.DebugLevelRequest'; +} +/** + * 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.lnrpc.DebugLevelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DebugLevelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DebugLevelResponse.displayName = 'proto.lnrpc.DebugLevelResponse'; +} +/** + * 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.lnrpc.PayReqString = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.PayReqString, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PayReqString.displayName = 'proto.lnrpc.PayReqString'; +} +/** + * 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.lnrpc.PayReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PayReq.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.PayReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PayReq.displayName = 'proto.lnrpc.PayReq'; +} +/** + * 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.lnrpc.Feature = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Feature, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Feature.displayName = 'proto.lnrpc.Feature'; +} +/** + * 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.lnrpc.FeeReportRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FeeReportRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FeeReportRequest.displayName = 'proto.lnrpc.FeeReportRequest'; +} +/** + * 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.lnrpc.ChannelFeeReport = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelFeeReport, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelFeeReport.displayName = 'proto.lnrpc.ChannelFeeReport'; +} +/** + * 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.lnrpc.FeeReportResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.FeeReportResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.FeeReportResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FeeReportResponse.displayName = 'proto.lnrpc.FeeReportResponse'; +} +/** + * 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.lnrpc.PolicyUpdateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.PolicyUpdateRequest.oneofGroups_); +}; +goog.inherits(proto.lnrpc.PolicyUpdateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PolicyUpdateRequest.displayName = 'proto.lnrpc.PolicyUpdateRequest'; +} +/** + * 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.lnrpc.FailedUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.FailedUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.FailedUpdate.displayName = 'proto.lnrpc.FailedUpdate'; +} +/** + * 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.lnrpc.PolicyUpdateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PolicyUpdateResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.PolicyUpdateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.PolicyUpdateResponse.displayName = 'proto.lnrpc.PolicyUpdateResponse'; +} +/** + * 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.lnrpc.ForwardingHistoryRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ForwardingHistoryRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ForwardingHistoryRequest.displayName = 'proto.lnrpc.ForwardingHistoryRequest'; +} +/** + * 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.lnrpc.ForwardingEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ForwardingEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ForwardingEvent.displayName = 'proto.lnrpc.ForwardingEvent'; +} +/** + * 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.lnrpc.ForwardingHistoryResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ForwardingHistoryResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ForwardingHistoryResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ForwardingHistoryResponse.displayName = 'proto.lnrpc.ForwardingHistoryResponse'; +} +/** + * 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.lnrpc.ExportChannelBackupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ExportChannelBackupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ExportChannelBackupRequest.displayName = 'proto.lnrpc.ExportChannelBackupRequest'; +} +/** + * 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.lnrpc.ChannelBackup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelBackup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelBackup.displayName = 'proto.lnrpc.ChannelBackup'; +} +/** + * 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.lnrpc.MultiChanBackup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MultiChanBackup.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.MultiChanBackup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MultiChanBackup.displayName = 'proto.lnrpc.MultiChanBackup'; +} +/** + * 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.lnrpc.ChanBackupExportRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChanBackupExportRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChanBackupExportRequest.displayName = 'proto.lnrpc.ChanBackupExportRequest'; +} +/** + * 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.lnrpc.ChanBackupSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChanBackupSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChanBackupSnapshot.displayName = 'proto.lnrpc.ChanBackupSnapshot'; +} +/** + * 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.lnrpc.ChannelBackups = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelBackups.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ChannelBackups, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelBackups.displayName = 'proto.lnrpc.ChannelBackups'; +} +/** + * 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.lnrpc.RestoreChanBackupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_); +}; +goog.inherits(proto.lnrpc.RestoreChanBackupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RestoreChanBackupRequest.displayName = 'proto.lnrpc.RestoreChanBackupRequest'; +} +/** + * 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.lnrpc.RestoreBackupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.RestoreBackupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RestoreBackupResponse.displayName = 'proto.lnrpc.RestoreBackupResponse'; +} +/** + * 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.lnrpc.ChannelBackupSubscription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelBackupSubscription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelBackupSubscription.displayName = 'proto.lnrpc.ChannelBackupSubscription'; +} +/** + * 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.lnrpc.VerifyChanBackupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.VerifyChanBackupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.VerifyChanBackupResponse.displayName = 'proto.lnrpc.VerifyChanBackupResponse'; +} +/** + * 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.lnrpc.MacaroonPermission = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.MacaroonPermission, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MacaroonPermission.displayName = 'proto.lnrpc.MacaroonPermission'; +} +/** + * 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.lnrpc.BakeMacaroonRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BakeMacaroonRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BakeMacaroonRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BakeMacaroonRequest.displayName = 'proto.lnrpc.BakeMacaroonRequest'; +} +/** + * 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.lnrpc.BakeMacaroonResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.BakeMacaroonResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BakeMacaroonResponse.displayName = 'proto.lnrpc.BakeMacaroonResponse'; +} +/** + * 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.lnrpc.ListMacaroonIDsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListMacaroonIDsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListMacaroonIDsRequest.displayName = 'proto.lnrpc.ListMacaroonIDsRequest'; +} +/** + * 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.lnrpc.ListMacaroonIDsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListMacaroonIDsResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.ListMacaroonIDsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListMacaroonIDsResponse.displayName = 'proto.lnrpc.ListMacaroonIDsResponse'; +} +/** + * 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.lnrpc.DeleteMacaroonIDRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeleteMacaroonIDRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeleteMacaroonIDRequest.displayName = 'proto.lnrpc.DeleteMacaroonIDRequest'; +} +/** + * 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.lnrpc.DeleteMacaroonIDResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.DeleteMacaroonIDResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.DeleteMacaroonIDResponse.displayName = 'proto.lnrpc.DeleteMacaroonIDResponse'; +} +/** + * 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.lnrpc.MacaroonPermissionList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MacaroonPermissionList.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.MacaroonPermissionList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MacaroonPermissionList.displayName = 'proto.lnrpc.MacaroonPermissionList'; +} +/** + * 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.lnrpc.ListPermissionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListPermissionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPermissionsRequest.displayName = 'proto.lnrpc.ListPermissionsRequest'; +} +/** + * 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.lnrpc.ListPermissionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ListPermissionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ListPermissionsResponse.displayName = 'proto.lnrpc.ListPermissionsResponse'; +} +/** + * 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.lnrpc.Failure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.Failure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Failure.displayName = 'proto.lnrpc.Failure'; +} +/** + * 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.lnrpc.ChannelUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.ChannelUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.ChannelUpdate.displayName = 'proto.lnrpc.ChannelUpdate'; +} +/** + * 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.lnrpc.MacaroonId = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MacaroonId.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.MacaroonId, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MacaroonId.displayName = 'proto.lnrpc.MacaroonId'; +} +/** + * 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.lnrpc.Op = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Op.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.Op, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.Op.displayName = 'proto.lnrpc.Op'; +} +/** + * 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.lnrpc.CheckMacPermRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.CheckMacPermRequest.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.CheckMacPermRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.CheckMacPermRequest.displayName = 'proto.lnrpc.CheckMacPermRequest'; +} +/** + * 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.lnrpc.CheckMacPermResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.CheckMacPermResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.CheckMacPermResponse.displayName = 'proto.lnrpc.CheckMacPermResponse'; +} +/** + * 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.lnrpc.RPCMiddlewareRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_); +}; +goog.inherits(proto.lnrpc.RPCMiddlewareRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RPCMiddlewareRequest.displayName = 'proto.lnrpc.RPCMiddlewareRequest'; +} +/** + * 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.lnrpc.StreamAuth = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.StreamAuth, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.StreamAuth.displayName = 'proto.lnrpc.StreamAuth'; +} +/** + * 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.lnrpc.RPCMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.RPCMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RPCMessage.displayName = 'proto.lnrpc.RPCMessage'; +} +/** + * 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.lnrpc.RPCMiddlewareResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_); +}; +goog.inherits(proto.lnrpc.RPCMiddlewareResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.RPCMiddlewareResponse.displayName = 'proto.lnrpc.RPCMiddlewareResponse'; +} +/** + * 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.lnrpc.MiddlewareRegistration = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.MiddlewareRegistration, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.MiddlewareRegistration.displayName = 'proto.lnrpc.MiddlewareRegistration'; +} +/** + * 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.lnrpc.InterceptFeedback = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.InterceptFeedback, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.InterceptFeedback.displayName = 'proto.lnrpc.InterceptFeedback'; +} + + + +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.lnrpc.LookupHtlcResolutionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.lnrpc.LookupHtlcResolutionRequest.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.lnrpc.LookupHtlcResolutionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.lnrpc.LookupHtlcResolutionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + chanId: jspb.Message.getFieldWithDefault(msg, 1, "0"), + htlcIndex: jspb.Message.getFieldWithDefault(msg, 2, "0") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} + */ +proto.lnrpc.LookupHtlcResolutionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.lnrpc.LookupHtlcResolutionRequest; + return proto.lnrpc.LookupHtlcResolutionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.lnrpc.LookupHtlcResolutionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} + */ +proto.lnrpc.LookupHtlcResolutionRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setChanId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readUint64String()); + msg.setHtlcIndex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.lnrpc.LookupHtlcResolutionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.lnrpc.LookupHtlcResolutionRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.lnrpc.LookupHtlcResolutionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.lnrpc.LookupHtlcResolutionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getChanId(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 1, + f + ); + } + f = message.getHtlcIndex(); + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( + 2, + f + ); + } +}; + + +/** + * optional uint64 chan_id = 1; + * @return {string} + */ +proto.lnrpc.LookupHtlcResolutionRequest.prototype.getChanId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} returns this + */ +proto.lnrpc.LookupHtlcResolutionRequest.prototype.setChanId = function(value) { + return jspb.Message.setProto3StringIntField(this, 1, value); +}; + + +/** + * optional uint64 htlc_index = 2; + * @return {string} + */ +proto.lnrpc.LookupHtlcResolutionRequest.prototype.getHtlcIndex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} returns this + */ +proto.lnrpc.LookupHtlcResolutionRequest.prototype.setHtlcIndex = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, 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.lnrpc.LookupHtlcResolutionResponse.prototype.toObject = function(opt_includeInstance) { @@ -439,8 +4594,8 @@ proto.lnrpc.LookupHtlcResolutionResponse.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.LookupHtlcResolutionResponse} msg The msg instance to transform. * @return {!Object} @@ -448,8 +4603,8 @@ proto.lnrpc.LookupHtlcResolutionResponse.prototype.toObject = function(opt_inclu */ proto.lnrpc.LookupHtlcResolutionResponse.toObject = function(includeInstance, msg) { var f, obj = { - settled: jspb.Message.getFieldWithDefault(msg, 1, false), - offchain: jspb.Message.getFieldWithDefault(msg, 2, false) + settled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + offchain: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -542,67 +4697,54 @@ proto.lnrpc.LookupHtlcResolutionResponse.serializeBinaryToWriter = function(mess /** * optional bool settled = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.LookupHtlcResolutionResponse.prototype.getSettled = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.LookupHtlcResolutionResponse} returns this + */ proto.lnrpc.LookupHtlcResolutionResponse.prototype.setSettled = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool offchain = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.LookupHtlcResolutionResponse.prototype.getOffchain = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.LookupHtlcResolutionResponse} returns this + */ proto.lnrpc.LookupHtlcResolutionResponse.prototype.setOffchain = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.SubscribeCustomMessagesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SubscribeCustomMessagesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SubscribeCustomMessagesRequest.displayName = 'proto.lnrpc.SubscribeCustomMessagesRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SubscribeCustomMessagesRequest.prototype.toObject = function(opt_includeInstance) { @@ -612,8 +4754,8 @@ proto.lnrpc.SubscribeCustomMessagesRequest.prototype.toObject = function(opt_inc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SubscribeCustomMessagesRequest} msg The msg instance to transform. * @return {!Object} @@ -691,34 +4833,19 @@ proto.lnrpc.SubscribeCustomMessagesRequest.serializeBinaryToWriter = function(me -/** - * 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.lnrpc.CustomMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.CustomMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.CustomMessage.displayName = 'proto.lnrpc.CustomMessage'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.CustomMessage.prototype.toObject = function(opt_includeInstance) { @@ -728,8 +4855,8 @@ proto.lnrpc.CustomMessage.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.CustomMessage} msg The msg instance to transform. * @return {!Object} @@ -874,9 +5001,12 @@ proto.lnrpc.CustomMessage.prototype.getPeer_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.CustomMessage} returns this + */ proto.lnrpc.CustomMessage.prototype.setPeer = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -889,9 +5019,12 @@ proto.lnrpc.CustomMessage.prototype.getType = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.CustomMessage} returns this + */ proto.lnrpc.CustomMessage.prototype.setType = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -928,41 +5061,29 @@ proto.lnrpc.CustomMessage.prototype.getData_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.CustomMessage} returns this + */ proto.lnrpc.CustomMessage.prototype.setData = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.lnrpc.SendCustomMessageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendCustomMessageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendCustomMessageRequest.displayName = 'proto.lnrpc.SendCustomMessageRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendCustomMessageRequest.prototype.toObject = function(opt_includeInstance) { @@ -972,8 +5093,8 @@ proto.lnrpc.SendCustomMessageRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendCustomMessageRequest} msg The msg instance to transform. * @return {!Object} @@ -1118,9 +5239,12 @@ proto.lnrpc.SendCustomMessageRequest.prototype.getPeer_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendCustomMessageRequest} returns this + */ proto.lnrpc.SendCustomMessageRequest.prototype.setPeer = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -1133,9 +5257,12 @@ proto.lnrpc.SendCustomMessageRequest.prototype.getType = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendCustomMessageRequest} returns this + */ proto.lnrpc.SendCustomMessageRequest.prototype.setType = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -1172,41 +5299,29 @@ proto.lnrpc.SendCustomMessageRequest.prototype.getData_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendCustomMessageRequest} returns this + */ proto.lnrpc.SendCustomMessageRequest.prototype.setData = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.lnrpc.SendCustomMessageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendCustomMessageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendCustomMessageResponse.displayName = 'proto.lnrpc.SendCustomMessageResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendCustomMessageResponse.prototype.toObject = function(opt_includeInstance) { @@ -1216,8 +5331,8 @@ proto.lnrpc.SendCustomMessageResponse.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendCustomMessageResponse} msg The msg instance to transform. * @return {!Object} @@ -1295,34 +5410,19 @@ proto.lnrpc.SendCustomMessageResponse.serializeBinaryToWriter = function(message -/** - * 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.lnrpc.Utxo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Utxo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Utxo.displayName = 'proto.lnrpc.Utxo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Utxo.prototype.toObject = function(opt_includeInstance) { @@ -1332,8 +5432,8 @@ proto.lnrpc.Utxo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Utxo} msg The msg instance to transform. * @return {!Object} @@ -1492,9 +5592,12 @@ proto.lnrpc.Utxo.prototype.getAddressType = function() { }; -/** @param {!proto.lnrpc.AddressType} value */ +/** + * @param {!proto.lnrpc.AddressType} value + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.setAddressType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -1507,9 +5610,12 @@ proto.lnrpc.Utxo.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1522,9 +5628,12 @@ proto.lnrpc.Utxo.prototype.getAmountSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.setAmountSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -1537,9 +5646,12 @@ proto.lnrpc.Utxo.prototype.getPkScript = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.setPkScript = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1553,20 +5665,27 @@ proto.lnrpc.Utxo.prototype.getOutpoint = function() { }; -/** @param {?proto.lnrpc.OutPoint|undefined} value */ +/** + * @param {?proto.lnrpc.OutPoint|undefined} value + * @return {!proto.lnrpc.Utxo} returns this +*/ proto.lnrpc.Utxo.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 5, value); + return jspb.Message.setWrapperField(this, 5, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Utxo.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 5) != null; @@ -1582,41 +5701,29 @@ proto.lnrpc.Utxo.prototype.getConfirmations = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Utxo} returns this + */ proto.lnrpc.Utxo.prototype.setConfirmations = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; -/** - * 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.lnrpc.OutputDetail = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.OutputDetail, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.OutputDetail.displayName = 'proto.lnrpc.OutputDetail'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.OutputDetail.prototype.toObject = function(opt_includeInstance) { @@ -1626,8 +5733,8 @@ proto.lnrpc.OutputDetail.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.OutputDetail} msg The msg instance to transform. * @return {!Object} @@ -1640,7 +5747,7 @@ proto.lnrpc.OutputDetail.toObject = function(includeInstance, msg) { pkScript: jspb.Message.getFieldWithDefault(msg, 3, ""), outputIndex: jspb.Message.getFieldWithDefault(msg, 4, "0"), amount: jspb.Message.getFieldWithDefault(msg, 5, "0"), - isOurAddress: jspb.Message.getFieldWithDefault(msg, 6, false) + isOurAddress: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -1784,9 +5891,12 @@ proto.lnrpc.OutputDetail.prototype.getOutputType = function() { }; -/** @param {!proto.lnrpc.OutputScriptType} value */ +/** + * @param {!proto.lnrpc.OutputScriptType} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setOutputType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -1799,9 +5909,12 @@ proto.lnrpc.OutputDetail.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1814,9 +5927,12 @@ proto.lnrpc.OutputDetail.prototype.getPkScript = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setPkScript = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -1829,9 +5945,12 @@ proto.lnrpc.OutputDetail.prototype.getOutputIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setOutputIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -1844,47 +5963,34 @@ proto.lnrpc.OutputDetail.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** * optional bool is_our_address = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OutputDetail.prototype.getIsOurAddress = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OutputDetail} returns this + */ proto.lnrpc.OutputDetail.prototype.setIsOurAddress = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; -/** - * 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.lnrpc.Transaction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Transaction.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Transaction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Transaction.displayName = 'proto.lnrpc.Transaction'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1896,13 +6002,15 @@ proto.lnrpc.Transaction.repeatedFields_ = [8,11,12]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Transaction.prototype.toObject = function(opt_includeInstance) { @@ -1912,8 +6020,8 @@ proto.lnrpc.Transaction.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Transaction} msg The msg instance to transform. * @return {!Object} @@ -1928,7 +6036,7 @@ proto.lnrpc.Transaction.toObject = function(includeInstance, msg) { blockHeight: jspb.Message.getFieldWithDefault(msg, 5, 0), timeStamp: jspb.Message.getFieldWithDefault(msg, 6, "0"), totalFees: jspb.Message.getFieldWithDefault(msg, 7, "0"), - destAddressesList: jspb.Message.getRepeatedField(msg, 8), + destAddressesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, outputDetailsList: jspb.Message.toObjectList(msg.getOutputDetailsList(), proto.lnrpc.OutputDetail.toObject, includeInstance), rawTxHex: jspb.Message.getFieldWithDefault(msg, 9, ""), @@ -2148,9 +6256,12 @@ proto.lnrpc.Transaction.prototype.getTxHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setTxHash = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -2163,9 +6274,12 @@ proto.lnrpc.Transaction.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -2178,9 +6292,12 @@ proto.lnrpc.Transaction.prototype.getNumConfirmations = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setNumConfirmations = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -2193,9 +6310,12 @@ proto.lnrpc.Transaction.prototype.getBlockHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setBlockHash = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -2208,9 +6328,12 @@ proto.lnrpc.Transaction.prototype.getBlockHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setBlockHeight = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -2223,9 +6346,12 @@ proto.lnrpc.Transaction.prototype.getTimeStamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setTimeStamp = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -2238,9 +6364,12 @@ proto.lnrpc.Transaction.prototype.getTotalFees = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setTotalFees = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -2253,23 +6382,31 @@ proto.lnrpc.Transaction.prototype.getDestAddressesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setDestAddressesList = function(value) { - jspb.Message.setField(this, 8, value || []); + return jspb.Message.setField(this, 8, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.Transaction} returns this */ proto.lnrpc.Transaction.prototype.addDestAddresses = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 8, value, opt_index); + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.clearDestAddressesList = function() { - this.setDestAddressesList([]); + return this.setDestAddressesList([]); }; @@ -2283,9 +6420,12 @@ proto.lnrpc.Transaction.prototype.getOutputDetailsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Transaction} returns this +*/ proto.lnrpc.Transaction.prototype.setOutputDetailsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 11, value); + return jspb.Message.setRepeatedWrapperField(this, 11, value); }; @@ -2299,8 +6439,12 @@ proto.lnrpc.Transaction.prototype.addOutputDetails = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.clearOutputDetailsList = function() { - this.setOutputDetailsList([]); + return this.setOutputDetailsList([]); }; @@ -2313,9 +6457,12 @@ proto.lnrpc.Transaction.prototype.getRawTxHex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setRawTxHex = function(value) { - jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 9, value); }; @@ -2328,9 +6475,12 @@ proto.lnrpc.Transaction.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; @@ -2344,9 +6494,12 @@ proto.lnrpc.Transaction.prototype.getPreviousOutpointsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Transaction} returns this +*/ proto.lnrpc.Transaction.prototype.setPreviousOutpointsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 12, value); + return jspb.Message.setRepeatedWrapperField(this, 12, value); }; @@ -2360,40 +6513,29 @@ proto.lnrpc.Transaction.prototype.addPreviousOutpoints = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Transaction} returns this + */ proto.lnrpc.Transaction.prototype.clearPreviousOutpointsList = function() { - this.setPreviousOutpointsList([]); + return this.setPreviousOutpointsList([]); }; -/** - * 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.lnrpc.GetTransactionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GetTransactionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetTransactionsRequest.displayName = 'proto.lnrpc.GetTransactionsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GetTransactionsRequest.prototype.toObject = function(opt_includeInstance) { @@ -2403,8 +6545,8 @@ proto.lnrpc.GetTransactionsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GetTransactionsRequest} msg The msg instance to transform. * @return {!Object} @@ -2525,9 +6667,12 @@ proto.lnrpc.GetTransactionsRequest.prototype.getStartHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetTransactionsRequest} returns this + */ proto.lnrpc.GetTransactionsRequest.prototype.setStartHeight = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -2540,9 +6685,12 @@ proto.lnrpc.GetTransactionsRequest.prototype.getEndHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetTransactionsRequest} returns this + */ proto.lnrpc.GetTransactionsRequest.prototype.setEndHeight = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -2555,30 +6703,16 @@ proto.lnrpc.GetTransactionsRequest.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetTransactionsRequest} returns this + */ proto.lnrpc.GetTransactionsRequest.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.lnrpc.TransactionDetails = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.TransactionDetails.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.TransactionDetails, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.TransactionDetails.displayName = 'proto.lnrpc.TransactionDetails'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2590,13 +6724,15 @@ proto.lnrpc.TransactionDetails.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.TransactionDetails.prototype.toObject = function(opt_includeInstance) { @@ -2606,8 +6742,8 @@ proto.lnrpc.TransactionDetails.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.TransactionDetails} msg The msg instance to transform. * @return {!Object} @@ -2708,9 +6844,12 @@ proto.lnrpc.TransactionDetails.prototype.getTransactionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.TransactionDetails} returns this +*/ proto.lnrpc.TransactionDetails.prototype.setTransactionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -2724,29 +6863,16 @@ proto.lnrpc.TransactionDetails.prototype.addTransactions = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.TransactionDetails} returns this + */ proto.lnrpc.TransactionDetails.prototype.clearTransactionsList = function() { - this.setTransactionsList([]); + return this.setTransactionsList([]); }; -/** - * 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.lnrpc.FeeLimit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FeeLimit.oneofGroups_); -}; -goog.inherits(proto.lnrpc.FeeLimit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FeeLimit.displayName = 'proto.lnrpc.FeeLimit'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -2778,13 +6904,15 @@ proto.lnrpc.FeeLimit.prototype.getLimitCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FeeLimit.prototype.toObject = function(opt_includeInstance) { @@ -2794,8 +6922,8 @@ proto.lnrpc.FeeLimit.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FeeLimit} msg The msg instance to transform. * @return {!Object} @@ -2916,20 +7044,27 @@ proto.lnrpc.FeeLimit.prototype.getFixed = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.setFixed = function(value) { - jspb.Message.setOneofField(this, 1, proto.lnrpc.FeeLimit.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.FeeLimit.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.clearFixed = function() { - jspb.Message.setOneofField(this, 1, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FeeLimit.prototype.hasFixed = function() { return jspb.Message.getField(this, 1) != null; @@ -2945,20 +7080,27 @@ proto.lnrpc.FeeLimit.prototype.getFixedMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.setFixedMsat = function(value) { - jspb.Message.setOneofField(this, 3, proto.lnrpc.FeeLimit.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 3, proto.lnrpc.FeeLimit.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.clearFixedMsat = function() { - jspb.Message.setOneofField(this, 3, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 3, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FeeLimit.prototype.hasFixedMsat = function() { return jspb.Message.getField(this, 3) != null; @@ -2974,20 +7116,27 @@ proto.lnrpc.FeeLimit.prototype.getPercent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.setPercent = function(value) { - jspb.Message.setOneofField(this, 2, proto.lnrpc.FeeLimit.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.FeeLimit.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.FeeLimit} returns this + */ proto.lnrpc.FeeLimit.prototype.clearPercent = function() { - jspb.Message.setOneofField(this, 2, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.FeeLimit.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FeeLimit.prototype.hasPercent = function() { return jspb.Message.getField(this, 2) != null; @@ -2995,23 +7144,6 @@ proto.lnrpc.FeeLimit.prototype.hasPercent = function() { -/** - * 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.lnrpc.SendRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.SendRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.SendRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendRequest.displayName = 'proto.lnrpc.SendRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -3023,13 +7155,15 @@ proto.lnrpc.SendRequest.repeatedFields_ = [15]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendRequest.prototype.toObject = function(opt_includeInstance) { @@ -3039,8 +7173,8 @@ proto.lnrpc.SendRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendRequest} msg The msg instance to transform. * @return {!Object} @@ -3061,8 +7195,8 @@ proto.lnrpc.SendRequest.toObject = function(includeInstance, msg) { lastHopPubkey: msg.getLastHopPubkey_asB64(), cltvLimit: jspb.Message.getFieldWithDefault(msg, 10, 0), destCustomRecordsMap: (f = msg.getDestCustomRecordsMap()) ? f.toObject(includeInstance, undefined) : [], - allowSelfPayment: jspb.Message.getFieldWithDefault(msg, 14, false), - destFeaturesList: jspb.Message.getRepeatedField(msg, 15), + allowSelfPayment: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + destFeaturesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, paymentAddr: msg.getPaymentAddr_asB64() }; @@ -3152,7 +7286,7 @@ proto.lnrpc.SendRequest.deserializeBinaryFromReader = function(msg, reader) { case 11: var value = msg.getDestCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; case 14: @@ -3160,8 +7294,10 @@ proto.lnrpc.SendRequest.deserializeBinaryFromReader = function(msg, reader) { msg.setAllowSelfPayment(value); break; case 15: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setDestFeaturesList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addDestFeatures(values[i]); + } break; case 16: var value = /** @type {!Uint8Array} */ (reader.readBytes()); @@ -3342,9 +7478,12 @@ proto.lnrpc.SendRequest.prototype.getDest_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setDest = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -3357,9 +7496,12 @@ proto.lnrpc.SendRequest.prototype.getDestString = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setDestString = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -3372,9 +7514,12 @@ proto.lnrpc.SendRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -3387,9 +7532,12 @@ proto.lnrpc.SendRequest.prototype.getAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -3426,9 +7574,12 @@ proto.lnrpc.SendRequest.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -3441,9 +7592,12 @@ proto.lnrpc.SendRequest.prototype.getPaymentHashString = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setPaymentHashString = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -3456,9 +7610,12 @@ proto.lnrpc.SendRequest.prototype.getPaymentRequest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setPaymentRequest = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -3471,9 +7628,12 @@ proto.lnrpc.SendRequest.prototype.getFinalCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setFinalCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -3487,20 +7647,27 @@ proto.lnrpc.SendRequest.prototype.getFeeLimit = function() { }; -/** @param {?proto.lnrpc.FeeLimit|undefined} value */ +/** + * @param {?proto.lnrpc.FeeLimit|undefined} value + * @return {!proto.lnrpc.SendRequest} returns this +*/ proto.lnrpc.SendRequest.prototype.setFeeLimit = function(value) { - jspb.Message.setWrapperField(this, 8, value); + return jspb.Message.setWrapperField(this, 8, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.clearFeeLimit = function() { - this.setFeeLimit(undefined); + return this.setFeeLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.SendRequest.prototype.hasFeeLimit = function() { return jspb.Message.getField(this, 8) != null; @@ -3516,9 +7683,12 @@ proto.lnrpc.SendRequest.prototype.getOutgoingChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setOutgoingChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -3555,9 +7725,12 @@ proto.lnrpc.SendRequest.prototype.getLastHopPubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setLastHopPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 13, value); + return jspb.Message.setProto3BytesField(this, 13, value); }; @@ -3570,9 +7743,12 @@ proto.lnrpc.SendRequest.prototype.getCltvLimit = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setCltvLimit = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 10, value); }; @@ -3589,25 +7765,30 @@ proto.lnrpc.SendRequest.prototype.getDestCustomRecordsMap = function(opt_noLazyC }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.clearDestCustomRecordsMap = function() { this.getDestCustomRecordsMap().clear(); -}; + return this;}; /** * optional bool allow_self_payment = 14; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.SendRequest.prototype.getAllowSelfPayment = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 14, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setAllowSelfPayment = function(value) { - jspb.Message.setProto3BooleanField(this, 14, value); + return jspb.Message.setProto3BooleanField(this, 14, value); }; @@ -3620,23 +7801,31 @@ proto.lnrpc.SendRequest.prototype.getDestFeaturesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setDestFeaturesList = function(value) { - jspb.Message.setField(this, 15, value || []); + return jspb.Message.setField(this, 15, value || []); }; /** * @param {!proto.lnrpc.FeatureBit} value * @param {number=} opt_index + * @return {!proto.lnrpc.SendRequest} returns this */ proto.lnrpc.SendRequest.prototype.addDestFeatures = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 15, value, opt_index); + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.clearDestFeaturesList = function() { - this.setDestFeaturesList([]); + return this.setDestFeaturesList([]); }; @@ -3673,41 +7862,29 @@ proto.lnrpc.SendRequest.prototype.getPaymentAddr_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendRequest} returns this + */ proto.lnrpc.SendRequest.prototype.setPaymentAddr = function(value) { - jspb.Message.setProto3BytesField(this, 16, value); + return jspb.Message.setProto3BytesField(this, 16, value); }; -/** - * 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.lnrpc.SendResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendResponse.displayName = 'proto.lnrpc.SendResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendResponse.prototype.toObject = function(opt_includeInstance) { @@ -3717,8 +7894,8 @@ proto.lnrpc.SendResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendResponse} msg The msg instance to transform. * @return {!Object} @@ -3853,9 +8030,12 @@ proto.lnrpc.SendResponse.prototype.getPaymentError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendResponse} returns this + */ proto.lnrpc.SendResponse.prototype.setPaymentError = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -3892,9 +8072,12 @@ proto.lnrpc.SendResponse.prototype.getPaymentPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendResponse} returns this + */ proto.lnrpc.SendResponse.prototype.setPaymentPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -3908,20 +8091,27 @@ proto.lnrpc.SendResponse.prototype.getPaymentRoute = function() { }; -/** @param {?proto.lnrpc.Route|undefined} value */ +/** + * @param {?proto.lnrpc.Route|undefined} value + * @return {!proto.lnrpc.SendResponse} returns this +*/ proto.lnrpc.SendResponse.prototype.setPaymentRoute = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.SendResponse} returns this + */ proto.lnrpc.SendResponse.prototype.clearPaymentRoute = function() { - this.setPaymentRoute(undefined); + return this.setPaymentRoute(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.SendResponse.prototype.hasPaymentRoute = function() { return jspb.Message.getField(this, 3) != null; @@ -3961,41 +8151,29 @@ proto.lnrpc.SendResponse.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendResponse} returns this + */ proto.lnrpc.SendResponse.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; -/** - * 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.lnrpc.SendToRouteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendToRouteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendToRouteRequest.displayName = 'proto.lnrpc.SendToRouteRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendToRouteRequest.prototype.toObject = function(opt_includeInstance) { @@ -4005,8 +8183,8 @@ proto.lnrpc.SendToRouteRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendToRouteRequest} msg The msg instance to transform. * @return {!Object} @@ -4153,9 +8331,12 @@ proto.lnrpc.SendToRouteRequest.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SendToRouteRequest} returns this + */ proto.lnrpc.SendToRouteRequest.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4168,9 +8349,12 @@ proto.lnrpc.SendToRouteRequest.prototype.getPaymentHashString = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendToRouteRequest} returns this + */ proto.lnrpc.SendToRouteRequest.prototype.setPaymentHashString = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -4184,20 +8368,27 @@ proto.lnrpc.SendToRouteRequest.prototype.getRoute = function() { }; -/** @param {?proto.lnrpc.Route|undefined} value */ +/** + * @param {?proto.lnrpc.Route|undefined} value + * @return {!proto.lnrpc.SendToRouteRequest} returns this +*/ proto.lnrpc.SendToRouteRequest.prototype.setRoute = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.SendToRouteRequest} returns this + */ proto.lnrpc.SendToRouteRequest.prototype.clearRoute = function() { - this.setRoute(undefined); + return this.setRoute(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.SendToRouteRequest.prototype.hasRoute = function() { return jspb.Message.getField(this, 4) != null; @@ -4205,34 +8396,19 @@ proto.lnrpc.SendToRouteRequest.prototype.hasRoute = function() { -/** - * 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.lnrpc.ChannelAcceptRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelAcceptRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelAcceptRequest.displayName = 'proto.lnrpc.ChannelAcceptRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelAcceptRequest.prototype.toObject = function(opt_includeInstance) { @@ -4242,8 +8418,8 @@ proto.lnrpc.ChannelAcceptRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelAcceptRequest} msg The msg instance to transform. * @return {!Object} @@ -4265,8 +8441,8 @@ proto.lnrpc.ChannelAcceptRequest.toObject = function(includeInstance, msg) { maxAcceptedHtlcs: jspb.Message.getFieldWithDefault(msg, 12, 0), channelFlags: jspb.Message.getFieldWithDefault(msg, 13, 0), commitmentType: jspb.Message.getFieldWithDefault(msg, 14, 0), - wantsZeroConf: jspb.Message.getFieldWithDefault(msg, 15, false), - wantsScidAlias: jspb.Message.getFieldWithDefault(msg, 16, false) + wantsZeroConf: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), + wantsScidAlias: jspb.Message.getBooleanFieldWithDefault(msg, 16, false) }; if (includeInstance) { @@ -4544,9 +8720,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getNodePubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setNodePubkey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4583,9 +8762,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getChainHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setChainHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -4622,9 +8804,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -4637,9 +8822,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getFundingAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setFundingAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -4652,9 +8840,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getPushAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setPushAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -4667,9 +8858,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getDustLimit = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setDustLimit = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -4682,9 +8876,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getMaxValueInFlight = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setMaxValueInFlight = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -4697,9 +8894,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getChannelReserve = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setChannelReserve = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -4712,9 +8912,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getMinHtlc = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setMinHtlc = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -4727,9 +8930,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getFeePerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setFeePerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -4742,9 +8948,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 11, value); }; @@ -4757,9 +8966,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getMaxAcceptedHtlcs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setMaxAcceptedHtlcs = function(value) { - jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 12, value); }; @@ -4772,9 +8984,12 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getChannelFlags = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setChannelFlags = function(value) { - jspb.Message.setProto3IntField(this, 13, value); + return jspb.Message.setProto3IntField(this, 13, value); }; @@ -4787,75 +9002,65 @@ proto.lnrpc.ChannelAcceptRequest.prototype.getCommitmentType = function() { }; -/** @param {!proto.lnrpc.CommitmentType} value */ +/** + * @param {!proto.lnrpc.CommitmentType} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setCommitmentType = function(value) { - jspb.Message.setProto3EnumField(this, 14, value); + return jspb.Message.setProto3EnumField(this, 14, value); }; /** * optional bool wants_zero_conf = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelAcceptRequest.prototype.getWantsZeroConf = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setWantsZeroConf = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); + return jspb.Message.setProto3BooleanField(this, 15, value); }; /** * optional bool wants_scid_alias = 16; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelAcceptRequest.prototype.getWantsScidAlias = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 16, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelAcceptRequest} returns this + */ proto.lnrpc.ChannelAcceptRequest.prototype.setWantsScidAlias = function(value) { - jspb.Message.setProto3BooleanField(this, 16, value); + return jspb.Message.setProto3BooleanField(this, 16, value); }; -/** - * 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.lnrpc.ChannelAcceptResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelAcceptResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelAcceptResponse.displayName = 'proto.lnrpc.ChannelAcceptResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelAcceptResponse.prototype.toObject = function(opt_includeInstance) { @@ -4865,8 +9070,8 @@ proto.lnrpc.ChannelAcceptResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelAcceptResponse} msg The msg instance to transform. * @return {!Object} @@ -4874,7 +9079,7 @@ proto.lnrpc.ChannelAcceptResponse.prototype.toObject = function(opt_includeInsta */ proto.lnrpc.ChannelAcceptResponse.toObject = function(includeInstance, msg) { var f, obj = { - accept: jspb.Message.getFieldWithDefault(msg, 1, false), + accept: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), pendingChanId: msg.getPendingChanId_asB64(), error: jspb.Message.getFieldWithDefault(msg, 3, ""), upfrontShutdown: jspb.Message.getFieldWithDefault(msg, 4, ""), @@ -4884,7 +9089,7 @@ proto.lnrpc.ChannelAcceptResponse.toObject = function(includeInstance, msg) { maxHtlcCount: jspb.Message.getFieldWithDefault(msg, 8, 0), minHtlcIn: jspb.Message.getFieldWithDefault(msg, 9, "0"), minAcceptDepth: jspb.Message.getFieldWithDefault(msg, 10, 0), - zeroConf: jspb.Message.getFieldWithDefault(msg, 11, false) + zeroConf: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) }; if (includeInstance) { @@ -5076,18 +9281,19 @@ proto.lnrpc.ChannelAcceptResponse.serializeBinaryToWriter = function(message, wr /** * optional bool accept = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelAcceptResponse.prototype.getAccept = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setAccept = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -5124,9 +9330,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -5139,9 +9348,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -5154,9 +9366,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getUpfrontShutdown = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setUpfrontShutdown = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -5169,9 +9384,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -5184,9 +9402,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -5199,9 +9420,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getInFlightMaxMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setInFlightMaxMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -5214,9 +9438,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getMaxHtlcCount = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setMaxHtlcCount = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -5229,9 +9456,12 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getMinHtlcIn = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setMinHtlcIn = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -5244,47 +9474,34 @@ proto.lnrpc.ChannelAcceptResponse.prototype.getMinAcceptDepth = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setMinAcceptDepth = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 10, value); }; /** * optional bool zero_conf = 11; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelAcceptResponse.prototype.getZeroConf = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelAcceptResponse} returns this + */ proto.lnrpc.ChannelAcceptResponse.prototype.setZeroConf = function(value) { - jspb.Message.setProto3BooleanField(this, 11, value); + return jspb.Message.setProto3BooleanField(this, 11, value); }; -/** - * 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.lnrpc.ChannelPoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.ChannelPoint.oneofGroups_); -}; -goog.inherits(proto.lnrpc.ChannelPoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelPoint.displayName = 'proto.lnrpc.ChannelPoint'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -5315,13 +9532,15 @@ proto.lnrpc.ChannelPoint.prototype.getFundingTxidCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelPoint.prototype.toObject = function(opt_includeInstance) { @@ -5331,8 +9550,8 @@ proto.lnrpc.ChannelPoint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelPoint} msg The msg instance to transform. * @return {!Object} @@ -5477,20 +9696,27 @@ proto.lnrpc.ChannelPoint.prototype.getFundingTxidBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelPoint} returns this + */ proto.lnrpc.ChannelPoint.prototype.setFundingTxidBytes = function(value) { - jspb.Message.setOneofField(this, 1, proto.lnrpc.ChannelPoint.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.ChannelPoint.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.ChannelPoint} returns this + */ proto.lnrpc.ChannelPoint.prototype.clearFundingTxidBytes = function() { - jspb.Message.setOneofField(this, 1, proto.lnrpc.ChannelPoint.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.ChannelPoint.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelPoint.prototype.hasFundingTxidBytes = function() { return jspb.Message.getField(this, 1) != null; @@ -5506,20 +9732,27 @@ proto.lnrpc.ChannelPoint.prototype.getFundingTxidStr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelPoint} returns this + */ proto.lnrpc.ChannelPoint.prototype.setFundingTxidStr = function(value) { - jspb.Message.setOneofField(this, 2, proto.lnrpc.ChannelPoint.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.ChannelPoint.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.ChannelPoint} returns this + */ proto.lnrpc.ChannelPoint.prototype.clearFundingTxidStr = function() { - jspb.Message.setOneofField(this, 2, proto.lnrpc.ChannelPoint.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.ChannelPoint.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelPoint.prototype.hasFundingTxidStr = function() { return jspb.Message.getField(this, 2) != null; @@ -5535,41 +9768,29 @@ proto.lnrpc.ChannelPoint.prototype.getOutputIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelPoint} returns this + */ proto.lnrpc.ChannelPoint.prototype.setOutputIndex = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * 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.lnrpc.OutPoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.OutPoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.OutPoint.displayName = 'proto.lnrpc.OutPoint'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.OutPoint.prototype.toObject = function(opt_includeInstance) { @@ -5579,8 +9800,8 @@ proto.lnrpc.OutPoint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.OutPoint} msg The msg instance to transform. * @return {!Object} @@ -5725,9 +9946,12 @@ proto.lnrpc.OutPoint.prototype.getTxidBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.OutPoint} returns this + */ proto.lnrpc.OutPoint.prototype.setTxidBytes = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -5740,9 +9964,12 @@ proto.lnrpc.OutPoint.prototype.getTxidStr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OutPoint} returns this + */ proto.lnrpc.OutPoint.prototype.setTxidStr = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5755,41 +9982,29 @@ proto.lnrpc.OutPoint.prototype.getOutputIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OutPoint} returns this + */ proto.lnrpc.OutPoint.prototype.setOutputIndex = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * 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.lnrpc.PreviousOutPoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PreviousOutPoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PreviousOutPoint.displayName = 'proto.lnrpc.PreviousOutPoint'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PreviousOutPoint.prototype.toObject = function(opt_includeInstance) { @@ -5799,8 +10014,8 @@ proto.lnrpc.PreviousOutPoint.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PreviousOutPoint} msg The msg instance to transform. * @return {!Object} @@ -5809,7 +10024,7 @@ proto.lnrpc.PreviousOutPoint.prototype.toObject = function(opt_includeInstance) proto.lnrpc.PreviousOutPoint.toObject = function(includeInstance, msg) { var f, obj = { outpoint: jspb.Message.getFieldWithDefault(msg, 1, ""), - isOurOutput: jspb.Message.getFieldWithDefault(msg, 2, false) + isOurOutput: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -5909,58 +10124,47 @@ proto.lnrpc.PreviousOutPoint.prototype.getOutpoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PreviousOutPoint} returns this + */ proto.lnrpc.PreviousOutPoint.prototype.setOutpoint = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool is_our_output = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PreviousOutPoint.prototype.getIsOurOutput = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PreviousOutPoint} returns this + */ proto.lnrpc.PreviousOutPoint.prototype.setIsOurOutput = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.LightningAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.LightningAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.LightningAddress.displayName = 'proto.lnrpc.LightningAddress'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.LightningAddress.prototype.toObject = function(opt_includeInstance) { @@ -5970,8 +10174,8 @@ proto.lnrpc.LightningAddress.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.LightningAddress} msg The msg instance to transform. * @return {!Object} @@ -6080,9 +10284,12 @@ proto.lnrpc.LightningAddress.prototype.getPubkey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LightningAddress} returns this + */ proto.lnrpc.LightningAddress.prototype.setPubkey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6095,41 +10302,29 @@ proto.lnrpc.LightningAddress.prototype.getHost = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LightningAddress} returns this + */ proto.lnrpc.LightningAddress.prototype.setHost = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.EstimateFeeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.EstimateFeeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.EstimateFeeRequest.displayName = 'proto.lnrpc.EstimateFeeRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.EstimateFeeRequest.prototype.toObject = function(opt_includeInstance) { @@ -6139,8 +10334,8 @@ proto.lnrpc.EstimateFeeRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.EstimateFeeRequest} msg The msg instance to transform. * @return {!Object} @@ -6151,7 +10346,7 @@ proto.lnrpc.EstimateFeeRequest.toObject = function(includeInstance, msg) { addrtoamountMap: (f = msg.getAddrtoamountMap()) ? f.toObject(includeInstance, undefined) : [], targetConf: jspb.Message.getFieldWithDefault(msg, 2, 0), minConfs: jspb.Message.getFieldWithDefault(msg, 3, 0), - spendUnconfirmed: jspb.Message.getFieldWithDefault(msg, 4, false) + spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -6191,7 +10386,7 @@ proto.lnrpc.EstimateFeeRequest.deserializeBinaryFromReader = function(msg, reade case 1: var value = msg.getAddrtoamountMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); }); break; case 2: @@ -6276,9 +10471,13 @@ proto.lnrpc.EstimateFeeRequest.prototype.getAddrtoamountMap = function(opt_noLaz }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.EstimateFeeRequest} returns this + */ proto.lnrpc.EstimateFeeRequest.prototype.clearAddrtoamountMap = function() { this.getAddrtoamountMap().clear(); -}; + return this;}; /** @@ -6290,9 +10489,12 @@ proto.lnrpc.EstimateFeeRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.EstimateFeeRequest} returns this + */ proto.lnrpc.EstimateFeeRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -6305,58 +10507,47 @@ proto.lnrpc.EstimateFeeRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.EstimateFeeRequest} returns this + */ proto.lnrpc.EstimateFeeRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional bool spend_unconfirmed = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.EstimateFeeRequest.prototype.getSpendUnconfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.EstimateFeeRequest} returns this + */ proto.lnrpc.EstimateFeeRequest.prototype.setSpendUnconfirmed = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; -/** - * 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.lnrpc.EstimateFeeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.EstimateFeeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.EstimateFeeResponse.displayName = 'proto.lnrpc.EstimateFeeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.EstimateFeeResponse.prototype.toObject = function(opt_includeInstance) { @@ -6366,8 +10557,8 @@ proto.lnrpc.EstimateFeeResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.EstimateFeeResponse} msg The msg instance to transform. * @return {!Object} @@ -6488,9 +10679,12 @@ proto.lnrpc.EstimateFeeResponse.prototype.getFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.EstimateFeeResponse} returns this + */ proto.lnrpc.EstimateFeeResponse.prototype.setFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -6503,9 +10697,12 @@ proto.lnrpc.EstimateFeeResponse.prototype.getFeerateSatPerByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.EstimateFeeResponse} returns this + */ proto.lnrpc.EstimateFeeResponse.prototype.setFeerateSatPerByte = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -6518,41 +10715,29 @@ proto.lnrpc.EstimateFeeResponse.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.EstimateFeeResponse} returns this + */ proto.lnrpc.EstimateFeeResponse.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.lnrpc.SendManyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendManyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendManyRequest.displayName = 'proto.lnrpc.SendManyRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendManyRequest.prototype.toObject = function(opt_includeInstance) { @@ -6562,8 +10747,8 @@ proto.lnrpc.SendManyRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendManyRequest} msg The msg instance to transform. * @return {!Object} @@ -6577,7 +10762,7 @@ proto.lnrpc.SendManyRequest.toObject = function(includeInstance, msg) { satPerByte: jspb.Message.getFieldWithDefault(msg, 5, "0"), label: jspb.Message.getFieldWithDefault(msg, 6, ""), minConfs: jspb.Message.getFieldWithDefault(msg, 7, 0), - spendUnconfirmed: jspb.Message.getFieldWithDefault(msg, 8, false) + spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) }; if (includeInstance) { @@ -6617,7 +10802,7 @@ proto.lnrpc.SendManyRequest.deserializeBinaryFromReader = function(msg, reader) case 1: var value = msg.getAddrtoamountMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); }); break; case 3: @@ -6735,9 +10920,13 @@ proto.lnrpc.SendManyRequest.prototype.getAddrtoamountMap = function(opt_noLazyCr }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.clearAddrtoamountMap = function() { this.getAddrtoamountMap().clear(); -}; + return this;}; /** @@ -6749,9 +10938,12 @@ proto.lnrpc.SendManyRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -6764,9 +10956,12 @@ proto.lnrpc.SendManyRequest.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -6779,9 +10974,12 @@ proto.lnrpc.SendManyRequest.prototype.getSatPerByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setSatPerByte = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -6794,9 +10992,12 @@ proto.lnrpc.SendManyRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -6809,58 +11010,47 @@ proto.lnrpc.SendManyRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional bool spend_unconfirmed = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.SendManyRequest.prototype.getSpendUnconfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setSpendUnconfirmed = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; -/** - * 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.lnrpc.SendManyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendManyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendManyResponse.displayName = 'proto.lnrpc.SendManyResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendManyResponse.prototype.toObject = function(opt_includeInstance) { @@ -6870,8 +11060,8 @@ proto.lnrpc.SendManyResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendManyResponse} msg The msg instance to transform. * @return {!Object} @@ -6968,41 +11158,29 @@ proto.lnrpc.SendManyResponse.prototype.getTxid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendManyResponse} returns this + */ proto.lnrpc.SendManyResponse.prototype.setTxid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.SendCoinsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendCoinsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendCoinsRequest.displayName = 'proto.lnrpc.SendCoinsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendCoinsRequest.prototype.toObject = function(opt_includeInstance) { @@ -7012,8 +11190,8 @@ proto.lnrpc.SendCoinsRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendCoinsRequest} msg The msg instance to transform. * @return {!Object} @@ -7026,10 +11204,10 @@ proto.lnrpc.SendCoinsRequest.toObject = function(includeInstance, msg) { targetConf: jspb.Message.getFieldWithDefault(msg, 3, 0), satPerVbyte: jspb.Message.getFieldWithDefault(msg, 4, "0"), satPerByte: jspb.Message.getFieldWithDefault(msg, 5, "0"), - sendAll: jspb.Message.getFieldWithDefault(msg, 6, false), + sendAll: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), label: jspb.Message.getFieldWithDefault(msg, 7, ""), minConfs: jspb.Message.getFieldWithDefault(msg, 8, 0), - spendUnconfirmed: jspb.Message.getFieldWithDefault(msg, 9, false) + spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; if (includeInstance) { @@ -7206,9 +11384,12 @@ proto.lnrpc.SendCoinsRequest.prototype.getAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setAddr = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -7221,9 +11402,12 @@ proto.lnrpc.SendCoinsRequest.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -7236,9 +11420,12 @@ proto.lnrpc.SendCoinsRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -7251,9 +11438,12 @@ proto.lnrpc.SendCoinsRequest.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -7266,26 +11456,30 @@ proto.lnrpc.SendCoinsRequest.prototype.getSatPerByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setSatPerByte = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** * optional bool send_all = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.SendCoinsRequest.prototype.getSendAll = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setSendAll = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; @@ -7298,9 +11492,12 @@ proto.lnrpc.SendCoinsRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -7313,58 +11510,47 @@ proto.lnrpc.SendCoinsRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; /** * optional bool spend_unconfirmed = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.SendCoinsRequest.prototype.getSpendUnconfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setSpendUnconfirmed = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; -/** - * 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.lnrpc.SendCoinsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SendCoinsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SendCoinsResponse.displayName = 'proto.lnrpc.SendCoinsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SendCoinsResponse.prototype.toObject = function(opt_includeInstance) { @@ -7374,8 +11560,8 @@ proto.lnrpc.SendCoinsResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SendCoinsResponse} msg The msg instance to transform. * @return {!Object} @@ -7472,41 +11658,29 @@ proto.lnrpc.SendCoinsResponse.prototype.getTxid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SendCoinsResponse} returns this + */ proto.lnrpc.SendCoinsResponse.prototype.setTxid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.ListUnspentRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListUnspentRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListUnspentRequest.displayName = 'proto.lnrpc.ListUnspentRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListUnspentRequest.prototype.toObject = function(opt_includeInstance) { @@ -7516,8 +11690,8 @@ proto.lnrpc.ListUnspentRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListUnspentRequest} msg The msg instance to transform. * @return {!Object} @@ -7638,9 +11812,12 @@ proto.lnrpc.ListUnspentRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ListUnspentRequest} returns this + */ proto.lnrpc.ListUnspentRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -7653,9 +11830,12 @@ proto.lnrpc.ListUnspentRequest.prototype.getMaxConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ListUnspentRequest} returns this + */ proto.lnrpc.ListUnspentRequest.prototype.setMaxConfs = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -7668,30 +11848,16 @@ proto.lnrpc.ListUnspentRequest.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListUnspentRequest} returns this + */ proto.lnrpc.ListUnspentRequest.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.lnrpc.ListUnspentResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListUnspentResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListUnspentResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListUnspentResponse.displayName = 'proto.lnrpc.ListUnspentResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7703,13 +11869,15 @@ proto.lnrpc.ListUnspentResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListUnspentResponse.prototype.toObject = function(opt_includeInstance) { @@ -7719,8 +11887,8 @@ proto.lnrpc.ListUnspentResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListUnspentResponse} msg The msg instance to transform. * @return {!Object} @@ -7821,9 +11989,12 @@ proto.lnrpc.ListUnspentResponse.prototype.getUtxosList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListUnspentResponse} returns this +*/ proto.lnrpc.ListUnspentResponse.prototype.setUtxosList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -7837,40 +12008,29 @@ proto.lnrpc.ListUnspentResponse.prototype.addUtxos = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListUnspentResponse} returns this + */ proto.lnrpc.ListUnspentResponse.prototype.clearUtxosList = function() { - this.setUtxosList([]); + return this.setUtxosList([]); }; -/** - * 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.lnrpc.NewAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NewAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NewAddressRequest.displayName = 'proto.lnrpc.NewAddressRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NewAddressRequest.prototype.toObject = function(opt_includeInstance) { @@ -7880,8 +12040,8 @@ proto.lnrpc.NewAddressRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NewAddressRequest} msg The msg instance to transform. * @return {!Object} @@ -7990,9 +12150,12 @@ proto.lnrpc.NewAddressRequest.prototype.getType = function() { }; -/** @param {!proto.lnrpc.AddressType} value */ +/** + * @param {!proto.lnrpc.AddressType} value + * @return {!proto.lnrpc.NewAddressRequest} returns this + */ proto.lnrpc.NewAddressRequest.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -8005,41 +12168,29 @@ proto.lnrpc.NewAddressRequest.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NewAddressRequest} returns this + */ proto.lnrpc.NewAddressRequest.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.NewAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NewAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NewAddressResponse.displayName = 'proto.lnrpc.NewAddressResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NewAddressResponse.prototype.toObject = function(opt_includeInstance) { @@ -8049,8 +12200,8 @@ proto.lnrpc.NewAddressResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NewAddressResponse} msg The msg instance to transform. * @return {!Object} @@ -8147,41 +12298,29 @@ proto.lnrpc.NewAddressResponse.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NewAddressResponse} returns this + */ proto.lnrpc.NewAddressResponse.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.SignMessageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SignMessageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SignMessageRequest.displayName = 'proto.lnrpc.SignMessageRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SignMessageRequest.prototype.toObject = function(opt_includeInstance) { @@ -8191,8 +12330,8 @@ proto.lnrpc.SignMessageRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SignMessageRequest} msg The msg instance to transform. * @return {!Object} @@ -8201,7 +12340,7 @@ proto.lnrpc.SignMessageRequest.prototype.toObject = function(opt_includeInstance proto.lnrpc.SignMessageRequest.toObject = function(includeInstance, msg) { var f, obj = { msg: msg.getMsg_asB64(), - singleHash: jspb.Message.getFieldWithDefault(msg, 2, false) + singleHash: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -8325,58 +12464,47 @@ proto.lnrpc.SignMessageRequest.prototype.getMsg_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SignMessageRequest} returns this + */ proto.lnrpc.SignMessageRequest.prototype.setMsg = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional bool single_hash = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.SignMessageRequest.prototype.getSingleHash = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.SignMessageRequest} returns this + */ proto.lnrpc.SignMessageRequest.prototype.setSingleHash = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.SignMessageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SignMessageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SignMessageResponse.displayName = 'proto.lnrpc.SignMessageResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SignMessageResponse.prototype.toObject = function(opt_includeInstance) { @@ -8386,8 +12514,8 @@ proto.lnrpc.SignMessageResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SignMessageResponse} msg The msg instance to transform. * @return {!Object} @@ -8484,41 +12612,29 @@ proto.lnrpc.SignMessageResponse.prototype.getSignature = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.SignMessageResponse} returns this + */ proto.lnrpc.SignMessageResponse.prototype.setSignature = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.VerifyMessageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.VerifyMessageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.VerifyMessageRequest.displayName = 'proto.lnrpc.VerifyMessageRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.VerifyMessageRequest.prototype.toObject = function(opt_includeInstance) { @@ -8528,8 +12644,8 @@ proto.lnrpc.VerifyMessageRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.VerifyMessageRequest} msg The msg instance to transform. * @return {!Object} @@ -8662,9 +12778,12 @@ proto.lnrpc.VerifyMessageRequest.prototype.getMsg_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.VerifyMessageRequest} returns this + */ proto.lnrpc.VerifyMessageRequest.prototype.setMsg = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -8677,41 +12796,29 @@ proto.lnrpc.VerifyMessageRequest.prototype.getSignature = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.VerifyMessageRequest} returns this + */ proto.lnrpc.VerifyMessageRequest.prototype.setSignature = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.VerifyMessageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.VerifyMessageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.VerifyMessageResponse.displayName = 'proto.lnrpc.VerifyMessageResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.VerifyMessageResponse.prototype.toObject = function(opt_includeInstance) { @@ -8721,8 +12828,8 @@ proto.lnrpc.VerifyMessageResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.VerifyMessageResponse} msg The msg instance to transform. * @return {!Object} @@ -8730,7 +12837,7 @@ proto.lnrpc.VerifyMessageResponse.prototype.toObject = function(opt_includeInsta */ proto.lnrpc.VerifyMessageResponse.toObject = function(includeInstance, msg) { var f, obj = { - valid: jspb.Message.getFieldWithDefault(msg, 1, false), + valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), pubkey: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -8824,18 +12931,19 @@ proto.lnrpc.VerifyMessageResponse.serializeBinaryToWriter = function(message, wr /** * optional bool valid = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.VerifyMessageResponse.prototype.getValid = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.VerifyMessageResponse} returns this + */ proto.lnrpc.VerifyMessageResponse.prototype.setValid = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -8848,41 +12956,29 @@ proto.lnrpc.VerifyMessageResponse.prototype.getPubkey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.VerifyMessageResponse} returns this + */ proto.lnrpc.VerifyMessageResponse.prototype.setPubkey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.ConnectPeerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ConnectPeerRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ConnectPeerRequest.displayName = 'proto.lnrpc.ConnectPeerRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ConnectPeerRequest.prototype.toObject = function(opt_includeInstance) { @@ -8892,8 +12988,8 @@ proto.lnrpc.ConnectPeerRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ConnectPeerRequest} msg The msg instance to transform. * @return {!Object} @@ -8902,7 +12998,7 @@ proto.lnrpc.ConnectPeerRequest.prototype.toObject = function(opt_includeInstance proto.lnrpc.ConnectPeerRequest.toObject = function(includeInstance, msg) { var f, obj = { addr: (f = msg.getAddr()) && proto.lnrpc.LightningAddress.toObject(includeInstance, f), - perm: jspb.Message.getFieldWithDefault(msg, 2, false), + perm: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), timeout: jspb.Message.getFieldWithDefault(msg, 3, "0") }; @@ -9017,20 +13113,27 @@ proto.lnrpc.ConnectPeerRequest.prototype.getAddr = function() { }; -/** @param {?proto.lnrpc.LightningAddress|undefined} value */ +/** + * @param {?proto.lnrpc.LightningAddress|undefined} value + * @return {!proto.lnrpc.ConnectPeerRequest} returns this +*/ proto.lnrpc.ConnectPeerRequest.prototype.setAddr = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ConnectPeerRequest} returns this + */ proto.lnrpc.ConnectPeerRequest.prototype.clearAddr = function() { - this.setAddr(undefined); + return this.setAddr(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ConnectPeerRequest.prototype.hasAddr = function() { return jspb.Message.getField(this, 1) != null; @@ -9039,18 +13142,19 @@ proto.lnrpc.ConnectPeerRequest.prototype.hasAddr = function() { /** * optional bool perm = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ConnectPeerRequest.prototype.getPerm = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ConnectPeerRequest} returns this + */ proto.lnrpc.ConnectPeerRequest.prototype.setPerm = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -9063,41 +13167,29 @@ proto.lnrpc.ConnectPeerRequest.prototype.getTimeout = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ConnectPeerRequest} returns this + */ proto.lnrpc.ConnectPeerRequest.prototype.setTimeout = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.lnrpc.ConnectPeerResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ConnectPeerResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ConnectPeerResponse.displayName = 'proto.lnrpc.ConnectPeerResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ConnectPeerResponse.prototype.toObject = function(opt_includeInstance) { @@ -9107,8 +13199,8 @@ proto.lnrpc.ConnectPeerResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ConnectPeerResponse} msg The msg instance to transform. * @return {!Object} @@ -9186,34 +13278,19 @@ proto.lnrpc.ConnectPeerResponse.serializeBinaryToWriter = function(message, writ -/** - * 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.lnrpc.DisconnectPeerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DisconnectPeerRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DisconnectPeerRequest.displayName = 'proto.lnrpc.DisconnectPeerRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DisconnectPeerRequest.prototype.toObject = function(opt_includeInstance) { @@ -9223,8 +13300,8 @@ proto.lnrpc.DisconnectPeerRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DisconnectPeerRequest} msg The msg instance to transform. * @return {!Object} @@ -9321,41 +13398,29 @@ proto.lnrpc.DisconnectPeerRequest.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.DisconnectPeerRequest} returns this + */ proto.lnrpc.DisconnectPeerRequest.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.DisconnectPeerResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DisconnectPeerResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DisconnectPeerResponse.displayName = 'proto.lnrpc.DisconnectPeerResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DisconnectPeerResponse.prototype.toObject = function(opt_includeInstance) { @@ -9365,8 +13430,8 @@ proto.lnrpc.DisconnectPeerResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DisconnectPeerResponse} msg The msg instance to transform. * @return {!Object} @@ -9444,34 +13509,19 @@ proto.lnrpc.DisconnectPeerResponse.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.HTLC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.HTLC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.HTLC.displayName = 'proto.lnrpc.HTLC'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.HTLC.prototype.toObject = function(opt_includeInstance) { @@ -9481,8 +13531,8 @@ proto.lnrpc.HTLC.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.HTLC} msg The msg instance to transform. * @return {!Object} @@ -9490,7 +13540,7 @@ proto.lnrpc.HTLC.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.HTLC.toObject = function(includeInstance, msg) { var f, obj = { - incoming: jspb.Message.getFieldWithDefault(msg, 1, false), + incoming: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), amount: jspb.Message.getFieldWithDefault(msg, 2, "0"), hashLock: msg.getHashLock_asB64(), expirationHeight: jspb.Message.getFieldWithDefault(msg, 4, 0), @@ -9644,18 +13694,19 @@ proto.lnrpc.HTLC.serializeBinaryToWriter = function(message, writer) { /** * optional bool incoming = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.HTLC.prototype.getIncoming = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setIncoming = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -9668,9 +13719,12 @@ proto.lnrpc.HTLC.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -9707,9 +13761,12 @@ proto.lnrpc.HTLC.prototype.getHashLock_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setHashLock = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -9722,9 +13779,12 @@ proto.lnrpc.HTLC.prototype.getExpirationHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setExpirationHeight = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -9737,9 +13797,12 @@ proto.lnrpc.HTLC.prototype.getHtlcIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setHtlcIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -9752,9 +13815,12 @@ proto.lnrpc.HTLC.prototype.getForwardingChannel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setForwardingChannel = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -9767,41 +13833,29 @@ proto.lnrpc.HTLC.prototype.getForwardingHtlcIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLC} returns this + */ proto.lnrpc.HTLC.prototype.setForwardingHtlcIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; -/** - * 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.lnrpc.ChannelConstraints = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelConstraints, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelConstraints.displayName = 'proto.lnrpc.ChannelConstraints'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelConstraints.prototype.toObject = function(opt_includeInstance) { @@ -9811,8 +13865,8 @@ proto.lnrpc.ChannelConstraints.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelConstraints} msg The msg instance to transform. * @return {!Object} @@ -9969,9 +14023,12 @@ proto.lnrpc.ChannelConstraints.prototype.getCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -9984,9 +14041,12 @@ proto.lnrpc.ChannelConstraints.prototype.getChanReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -9999,9 +14059,12 @@ proto.lnrpc.ChannelConstraints.prototype.getDustLimitSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setDustLimitSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -10014,9 +14077,12 @@ proto.lnrpc.ChannelConstraints.prototype.getMaxPendingAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setMaxPendingAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -10029,9 +14095,12 @@ proto.lnrpc.ChannelConstraints.prototype.getMinHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setMinHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -10044,30 +14113,16 @@ proto.lnrpc.ChannelConstraints.prototype.getMaxAcceptedHtlcs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelConstraints} returns this + */ proto.lnrpc.ChannelConstraints.prototype.setMaxAcceptedHtlcs = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.lnrpc.Channel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Channel.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Channel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Channel.displayName = 'proto.lnrpc.Channel'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10079,13 +14134,15 @@ proto.lnrpc.Channel.repeatedFields_ = [15,31]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Channel.prototype.toObject = function(opt_includeInstance) { @@ -10095,8 +14152,8 @@ proto.lnrpc.Channel.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Channel} msg The msg instance to transform. * @return {!Object} @@ -10104,7 +14161,7 @@ proto.lnrpc.Channel.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.Channel.toObject = function(includeInstance, msg) { var f, obj = { - active: jspb.Message.getFieldWithDefault(msg, 1, false), + active: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), remotePubkey: jspb.Message.getFieldWithDefault(msg, 2, ""), channelPoint: jspb.Message.getFieldWithDefault(msg, 3, ""), chanId: jspb.Message.getFieldWithDefault(msg, 4, "0"), @@ -10121,12 +14178,12 @@ proto.lnrpc.Channel.toObject = function(includeInstance, msg) { pendingHtlcsList: jspb.Message.toObjectList(msg.getPendingHtlcsList(), proto.lnrpc.HTLC.toObject, includeInstance), csvDelay: jspb.Message.getFieldWithDefault(msg, 16, 0), - pb_private: jspb.Message.getFieldWithDefault(msg, 17, false), - initiator: jspb.Message.getFieldWithDefault(msg, 18, false), + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + initiator: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), chanStatusFlags: jspb.Message.getFieldWithDefault(msg, 19, ""), localChanReserveSat: jspb.Message.getFieldWithDefault(msg, 20, "0"), remoteChanReserveSat: jspb.Message.getFieldWithDefault(msg, 21, "0"), - staticRemoteKey: jspb.Message.getFieldWithDefault(msg, 22, false), + staticRemoteKey: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), commitmentType: jspb.Message.getFieldWithDefault(msg, 26, 0), lifetime: jspb.Message.getFieldWithDefault(msg, 23, "0"), uptime: jspb.Message.getFieldWithDefault(msg, 24, "0"), @@ -10135,8 +14192,8 @@ proto.lnrpc.Channel.toObject = function(includeInstance, msg) { thawHeight: jspb.Message.getFieldWithDefault(msg, 28, 0), localConstraints: (f = msg.getLocalConstraints()) && proto.lnrpc.ChannelConstraints.toObject(includeInstance, f), remoteConstraints: (f = msg.getRemoteConstraints()) && proto.lnrpc.ChannelConstraints.toObject(includeInstance, f), - aliasScidsList: jspb.Message.getRepeatedField(msg, 31), - zeroConf: jspb.Message.getFieldWithDefault(msg, 32, false), + aliasScidsList: (f = jspb.Message.getRepeatedField(msg, 31)) == null ? undefined : f, + zeroConf: jspb.Message.getBooleanFieldWithDefault(msg, 32, false), zeroConfConfirmedScid: jspb.Message.getFieldWithDefault(msg, 33, "0"), peerAlias: jspb.Message.getFieldWithDefault(msg, 34, "") }; @@ -10299,8 +14356,10 @@ proto.lnrpc.Channel.deserializeBinaryFromReader = function(msg, reader) { msg.setRemoteConstraints(value); break; case 31: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setAliasScidsList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addAliasScids(values[i]); + } break; case 32: var value = /** @type {boolean} */ (reader.readBool()); @@ -10589,18 +14648,19 @@ proto.lnrpc.Channel.serializeBinaryToWriter = function(message, writer) { /** * optional bool active = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Channel.prototype.getActive = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setActive = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -10613,9 +14673,12 @@ proto.lnrpc.Channel.prototype.getRemotePubkey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setRemotePubkey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -10628,9 +14691,12 @@ proto.lnrpc.Channel.prototype.getChannelPoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setChannelPoint = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -10643,9 +14709,12 @@ proto.lnrpc.Channel.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -10658,9 +14727,12 @@ proto.lnrpc.Channel.prototype.getCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -10673,9 +14745,12 @@ proto.lnrpc.Channel.prototype.getLocalBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setLocalBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -10688,9 +14763,12 @@ proto.lnrpc.Channel.prototype.getRemoteBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setRemoteBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -10703,9 +14781,12 @@ proto.lnrpc.Channel.prototype.getCommitFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCommitFee = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -10718,9 +14799,12 @@ proto.lnrpc.Channel.prototype.getCommitWeight = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCommitWeight = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -10733,9 +14817,12 @@ proto.lnrpc.Channel.prototype.getFeePerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setFeePerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -10748,9 +14835,12 @@ proto.lnrpc.Channel.prototype.getUnsettledBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setUnsettledBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -10763,9 +14853,12 @@ proto.lnrpc.Channel.prototype.getTotalSatoshisSent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setTotalSatoshisSent = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -10778,9 +14871,12 @@ proto.lnrpc.Channel.prototype.getTotalSatoshisReceived = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setTotalSatoshisReceived = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; @@ -10793,9 +14889,12 @@ proto.lnrpc.Channel.prototype.getNumUpdates = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setNumUpdates = function(value) { - jspb.Message.setProto3StringIntField(this, 14, value); + return jspb.Message.setProto3StringIntField(this, 14, value); }; @@ -10809,9 +14908,12 @@ proto.lnrpc.Channel.prototype.getPendingHtlcsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Channel} returns this +*/ proto.lnrpc.Channel.prototype.setPendingHtlcsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 15, value); + return jspb.Message.setRepeatedWrapperField(this, 15, value); }; @@ -10825,8 +14927,12 @@ proto.lnrpc.Channel.prototype.addPendingHtlcs = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.clearPendingHtlcsList = function() { - this.setPendingHtlcsList([]); + return this.setPendingHtlcsList([]); }; @@ -10839,43 +14945,48 @@ proto.lnrpc.Channel.prototype.getCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 16, value); + return jspb.Message.setProto3IntField(this, 16, value); }; /** * optional bool private = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Channel.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; /** * optional bool initiator = 18; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Channel.prototype.getInitiator = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 18, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setInitiator = function(value) { - jspb.Message.setProto3BooleanField(this, 18, value); + return jspb.Message.setProto3BooleanField(this, 18, value); }; @@ -10888,9 +14999,12 @@ proto.lnrpc.Channel.prototype.getChanStatusFlags = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setChanStatusFlags = function(value) { - jspb.Message.setProto3StringField(this, 19, value); + return jspb.Message.setProto3StringField(this, 19, value); }; @@ -10903,9 +15017,12 @@ proto.lnrpc.Channel.prototype.getLocalChanReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setLocalChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 20, value); + return jspb.Message.setProto3StringIntField(this, 20, value); }; @@ -10918,26 +15035,30 @@ proto.lnrpc.Channel.prototype.getRemoteChanReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setRemoteChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 21, value); + return jspb.Message.setProto3StringIntField(this, 21, value); }; /** * optional bool static_remote_key = 22; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Channel.prototype.getStaticRemoteKey = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 22, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setStaticRemoteKey = function(value) { - jspb.Message.setProto3BooleanField(this, 22, value); + return jspb.Message.setProto3BooleanField(this, 22, value); }; @@ -10950,9 +15071,12 @@ proto.lnrpc.Channel.prototype.getCommitmentType = function() { }; -/** @param {!proto.lnrpc.CommitmentType} value */ +/** + * @param {!proto.lnrpc.CommitmentType} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCommitmentType = function(value) { - jspb.Message.setProto3EnumField(this, 26, value); + return jspb.Message.setProto3EnumField(this, 26, value); }; @@ -10965,9 +15089,12 @@ proto.lnrpc.Channel.prototype.getLifetime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setLifetime = function(value) { - jspb.Message.setProto3StringIntField(this, 23, value); + return jspb.Message.setProto3StringIntField(this, 23, value); }; @@ -10980,9 +15107,12 @@ proto.lnrpc.Channel.prototype.getUptime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setUptime = function(value) { - jspb.Message.setProto3StringIntField(this, 24, value); + return jspb.Message.setProto3StringIntField(this, 24, value); }; @@ -10995,9 +15125,12 @@ proto.lnrpc.Channel.prototype.getCloseAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setCloseAddress = function(value) { - jspb.Message.setProto3StringField(this, 25, value); + return jspb.Message.setProto3StringField(this, 25, value); }; @@ -11010,9 +15143,12 @@ proto.lnrpc.Channel.prototype.getPushAmountSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setPushAmountSat = function(value) { - jspb.Message.setProto3StringIntField(this, 27, value); + return jspb.Message.setProto3StringIntField(this, 27, value); }; @@ -11025,9 +15161,12 @@ proto.lnrpc.Channel.prototype.getThawHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setThawHeight = function(value) { - jspb.Message.setProto3IntField(this, 28, value); + return jspb.Message.setProto3IntField(this, 28, value); }; @@ -11041,20 +15180,27 @@ proto.lnrpc.Channel.prototype.getLocalConstraints = function() { }; -/** @param {?proto.lnrpc.ChannelConstraints|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelConstraints|undefined} value + * @return {!proto.lnrpc.Channel} returns this +*/ proto.lnrpc.Channel.prototype.setLocalConstraints = function(value) { - jspb.Message.setWrapperField(this, 29, value); + return jspb.Message.setWrapperField(this, 29, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.clearLocalConstraints = function() { - this.setLocalConstraints(undefined); + return this.setLocalConstraints(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Channel.prototype.hasLocalConstraints = function() { return jspb.Message.getField(this, 29) != null; @@ -11071,20 +15217,27 @@ proto.lnrpc.Channel.prototype.getRemoteConstraints = function() { }; -/** @param {?proto.lnrpc.ChannelConstraints|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelConstraints|undefined} value + * @return {!proto.lnrpc.Channel} returns this +*/ proto.lnrpc.Channel.prototype.setRemoteConstraints = function(value) { - jspb.Message.setWrapperField(this, 30, value); + return jspb.Message.setWrapperField(this, 30, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.clearRemoteConstraints = function() { - this.setRemoteConstraints(undefined); + return this.setRemoteConstraints(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Channel.prototype.hasRemoteConstraints = function() { return jspb.Message.getField(this, 30) != null; @@ -11100,40 +15253,49 @@ proto.lnrpc.Channel.prototype.getAliasScidsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setAliasScidsList = function(value) { - jspb.Message.setField(this, 31, value || []); + return jspb.Message.setField(this, 31, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.Channel} returns this */ proto.lnrpc.Channel.prototype.addAliasScids = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 31, value, opt_index); + return jspb.Message.addToRepeatedField(this, 31, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.clearAliasScidsList = function() { - this.setAliasScidsList([]); + return this.setAliasScidsList([]); }; /** * optional bool zero_conf = 32; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Channel.prototype.getZeroConf = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 32, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 32, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setZeroConf = function(value) { - jspb.Message.setProto3BooleanField(this, 32, value); + return jspb.Message.setProto3BooleanField(this, 32, value); }; @@ -11146,9 +15308,12 @@ proto.lnrpc.Channel.prototype.getZeroConfConfirmedScid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setZeroConfConfirmedScid = function(value) { - jspb.Message.setProto3StringIntField(this, 33, value); + return jspb.Message.setProto3StringIntField(this, 33, value); }; @@ -11161,41 +15326,29 @@ proto.lnrpc.Channel.prototype.getPeerAlias = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setPeerAlias = function(value) { - jspb.Message.setProto3StringField(this, 34, value); + return jspb.Message.setProto3StringField(this, 34, value); }; -/** - * 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.lnrpc.ListChannelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListChannelsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListChannelsRequest.displayName = 'proto.lnrpc.ListChannelsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListChannelsRequest.prototype.toObject = function(opt_includeInstance) { @@ -11205,8 +15358,8 @@ proto.lnrpc.ListChannelsRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListChannelsRequest} msg The msg instance to transform. * @return {!Object} @@ -11214,12 +15367,12 @@ proto.lnrpc.ListChannelsRequest.prototype.toObject = function(opt_includeInstanc */ proto.lnrpc.ListChannelsRequest.toObject = function(includeInstance, msg) { var f, obj = { - activeOnly: jspb.Message.getFieldWithDefault(msg, 1, false), - inactiveOnly: jspb.Message.getFieldWithDefault(msg, 2, false), - publicOnly: jspb.Message.getFieldWithDefault(msg, 3, false), - privateOnly: jspb.Message.getFieldWithDefault(msg, 4, false), + activeOnly: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + inactiveOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + publicOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + privateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), peer: msg.getPeer_asB64(), - peerAliasLookup: jspb.Message.getFieldWithDefault(msg, 6, false) + peerAliasLookup: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -11356,69 +15509,73 @@ proto.lnrpc.ListChannelsRequest.serializeBinaryToWriter = function(message, writ /** * optional bool active_only = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListChannelsRequest.prototype.getActiveOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setActiveOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool inactive_only = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListChannelsRequest.prototype.getInactiveOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setInactiveOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * optional bool public_only = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListChannelsRequest.prototype.getPublicOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setPublicOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional bool private_only = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListChannelsRequest.prototype.getPrivateOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setPrivateOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -11455,47 +15612,34 @@ proto.lnrpc.ListChannelsRequest.prototype.getPeer_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setPeer = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; /** * optional bool peer_alias_lookup = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListChannelsRequest.prototype.getPeerAliasLookup = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListChannelsRequest} returns this + */ proto.lnrpc.ListChannelsRequest.prototype.setPeerAliasLookup = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; -/** - * 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.lnrpc.ListChannelsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListChannelsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListChannelsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListChannelsResponse.displayName = 'proto.lnrpc.ListChannelsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11507,13 +15651,15 @@ proto.lnrpc.ListChannelsResponse.repeatedFields_ = [11]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListChannelsResponse.prototype.toObject = function(opt_includeInstance) { @@ -11523,8 +15669,8 @@ proto.lnrpc.ListChannelsResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListChannelsResponse} msg The msg instance to transform. * @return {!Object} @@ -11625,9 +15771,12 @@ proto.lnrpc.ListChannelsResponse.prototype.getChannelsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListChannelsResponse} returns this +*/ proto.lnrpc.ListChannelsResponse.prototype.setChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 11, value); + return jspb.Message.setRepeatedWrapperField(this, 11, value); }; @@ -11641,29 +15790,16 @@ proto.lnrpc.ListChannelsResponse.prototype.addChannels = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListChannelsResponse} returns this + */ proto.lnrpc.ListChannelsResponse.prototype.clearChannelsList = function() { - this.setChannelsList([]); + return this.setChannelsList([]); }; -/** - * 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.lnrpc.AliasMap = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.AliasMap.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.AliasMap, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AliasMap.displayName = 'proto.lnrpc.AliasMap'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11675,13 +15811,15 @@ proto.lnrpc.AliasMap.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AliasMap.prototype.toObject = function(opt_includeInstance) { @@ -11691,8 +15829,8 @@ proto.lnrpc.AliasMap.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AliasMap} msg The msg instance to transform. * @return {!Object} @@ -11701,7 +15839,7 @@ proto.lnrpc.AliasMap.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.AliasMap.toObject = function(includeInstance, msg) { var f, obj = { baseScid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - aliasesList: jspb.Message.getRepeatedField(msg, 2) + aliasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -11743,8 +15881,10 @@ proto.lnrpc.AliasMap.deserializeBinaryFromReader = function(msg, reader) { msg.setBaseScid(value); break; case 2: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setAliasesList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addAliases(values[i]); + } break; default: reader.skipField(); @@ -11801,9 +15941,12 @@ proto.lnrpc.AliasMap.prototype.getBaseScid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AliasMap} returns this + */ proto.lnrpc.AliasMap.prototype.setBaseScid = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -11816,55 +15959,48 @@ proto.lnrpc.AliasMap.prototype.getAliasesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.AliasMap} returns this + */ proto.lnrpc.AliasMap.prototype.setAliasesList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.AliasMap} returns this */ proto.lnrpc.AliasMap.prototype.addAliases = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.AliasMap} returns this + */ proto.lnrpc.AliasMap.prototype.clearAliasesList = function() { - this.setAliasesList([]); + return this.setAliasesList([]); }; -/** - * 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.lnrpc.ListAliasesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListAliasesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListAliasesRequest.displayName = 'proto.lnrpc.ListAliasesRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListAliasesRequest.prototype.toObject = function(opt_includeInstance) { @@ -11874,8 +16010,8 @@ proto.lnrpc.ListAliasesRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListAliasesRequest} msg The msg instance to transform. * @return {!Object} @@ -11953,23 +16089,6 @@ proto.lnrpc.ListAliasesRequest.serializeBinaryToWriter = function(message, write -/** - * 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.lnrpc.ListAliasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListAliasesResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListAliasesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListAliasesResponse.displayName = 'proto.lnrpc.ListAliasesResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11981,13 +16100,15 @@ proto.lnrpc.ListAliasesResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListAliasesResponse.prototype.toObject = function(opt_includeInstance) { @@ -11997,8 +16118,8 @@ proto.lnrpc.ListAliasesResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListAliasesResponse} msg The msg instance to transform. * @return {!Object} @@ -12099,9 +16220,12 @@ proto.lnrpc.ListAliasesResponse.prototype.getAliasMapsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListAliasesResponse} returns this +*/ proto.lnrpc.ListAliasesResponse.prototype.setAliasMapsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -12115,29 +16239,16 @@ proto.lnrpc.ListAliasesResponse.prototype.addAliasMaps = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListAliasesResponse} returns this + */ proto.lnrpc.ListAliasesResponse.prototype.clearAliasMapsList = function() { - this.setAliasMapsList([]); + return this.setAliasMapsList([]); }; -/** - * 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.lnrpc.ChannelCloseSummary = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelCloseSummary.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ChannelCloseSummary, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelCloseSummary.displayName = 'proto.lnrpc.ChannelCloseSummary'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -12149,13 +16260,15 @@ proto.lnrpc.ChannelCloseSummary.repeatedFields_ = [13,14]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelCloseSummary.prototype.toObject = function(opt_includeInstance) { @@ -12165,8 +16278,8 @@ proto.lnrpc.ChannelCloseSummary.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelCloseSummary} msg The msg instance to transform. * @return {!Object} @@ -12188,7 +16301,7 @@ proto.lnrpc.ChannelCloseSummary.toObject = function(includeInstance, msg) { closeInitiator: jspb.Message.getFieldWithDefault(msg, 12, 0), resolutionsList: jspb.Message.toObjectList(msg.getResolutionsList(), proto.lnrpc.Resolution.toObject, includeInstance), - aliasScidsList: jspb.Message.getRepeatedField(msg, 14), + aliasScidsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, zeroConfConfirmedScid: jspb.Message.getFieldWithDefault(msg, 15, "0") }; @@ -12280,8 +16393,10 @@ proto.lnrpc.ChannelCloseSummary.deserializeBinaryFromReader = function(msg, read msg.addResolutions(value); break; case 14: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setAliasScidsList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addAliasScids(values[i]); + } break; case 15: var value = /** @type {string} */ (reader.readUint64String()); @@ -12446,9 +16561,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getChannelPoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setChannelPoint = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -12461,9 +16579,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -12476,9 +16597,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getChainHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setChainHash = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -12491,9 +16615,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getClosingTxHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setClosingTxHash = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -12506,9 +16633,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getRemotePubkey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setRemotePubkey = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -12521,9 +16651,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -12536,9 +16669,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getCloseHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setCloseHeight = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -12551,9 +16687,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getSettledBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setSettledBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -12566,9 +16705,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getTimeLockedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setTimeLockedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -12581,9 +16723,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getCloseType = function() { }; -/** @param {!proto.lnrpc.ChannelCloseSummary.ClosureType} value */ +/** + * @param {!proto.lnrpc.ChannelCloseSummary.ClosureType} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setCloseType = function(value) { - jspb.Message.setProto3EnumField(this, 10, value); + return jspb.Message.setProto3EnumField(this, 10, value); }; @@ -12596,9 +16741,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getOpenInitiator = function() { }; -/** @param {!proto.lnrpc.Initiator} value */ +/** + * @param {!proto.lnrpc.Initiator} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setOpenInitiator = function(value) { - jspb.Message.setProto3EnumField(this, 11, value); + return jspb.Message.setProto3EnumField(this, 11, value); }; @@ -12611,9 +16759,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getCloseInitiator = function() { }; -/** @param {!proto.lnrpc.Initiator} value */ +/** + * @param {!proto.lnrpc.Initiator} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setCloseInitiator = function(value) { - jspb.Message.setProto3EnumField(this, 12, value); + return jspb.Message.setProto3EnumField(this, 12, value); }; @@ -12627,9 +16778,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.getResolutionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this +*/ proto.lnrpc.ChannelCloseSummary.prototype.setResolutionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 13, value); + return jspb.Message.setRepeatedWrapperField(this, 13, value); }; @@ -12643,8 +16797,12 @@ proto.lnrpc.ChannelCloseSummary.prototype.addResolutions = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.clearResolutionsList = function() { - this.setResolutionsList([]); + return this.setResolutionsList([]); }; @@ -12657,23 +16815,31 @@ proto.lnrpc.ChannelCloseSummary.prototype.getAliasScidsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setAliasScidsList = function(value) { - jspb.Message.setField(this, 14, value || []); + return jspb.Message.setField(this, 14, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.ChannelCloseSummary} returns this */ proto.lnrpc.ChannelCloseSummary.prototype.addAliasScids = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 14, value, opt_index); + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.clearAliasScidsList = function() { - this.setAliasScidsList([]); + return this.setAliasScidsList([]); }; @@ -12686,41 +16852,29 @@ proto.lnrpc.ChannelCloseSummary.prototype.getZeroConfConfirmedScid = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelCloseSummary} returns this + */ proto.lnrpc.ChannelCloseSummary.prototype.setZeroConfConfirmedScid = function(value) { - jspb.Message.setProto3StringIntField(this, 15, value); + return jspb.Message.setProto3StringIntField(this, 15, value); }; -/** - * 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.lnrpc.Resolution = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Resolution, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Resolution.displayName = 'proto.lnrpc.Resolution'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Resolution.prototype.toObject = function(opt_includeInstance) { @@ -12730,8 +16884,8 @@ proto.lnrpc.Resolution.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Resolution} msg The msg instance to transform. * @return {!Object} @@ -12878,9 +17032,12 @@ proto.lnrpc.Resolution.prototype.getResolutionType = function() { }; -/** @param {!proto.lnrpc.ResolutionType} value */ +/** + * @param {!proto.lnrpc.ResolutionType} value + * @return {!proto.lnrpc.Resolution} returns this + */ proto.lnrpc.Resolution.prototype.setResolutionType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -12893,9 +17050,12 @@ proto.lnrpc.Resolution.prototype.getOutcome = function() { }; -/** @param {!proto.lnrpc.ResolutionOutcome} value */ +/** + * @param {!proto.lnrpc.ResolutionOutcome} value + * @return {!proto.lnrpc.Resolution} returns this + */ proto.lnrpc.Resolution.prototype.setOutcome = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -12909,20 +17069,27 @@ proto.lnrpc.Resolution.prototype.getOutpoint = function() { }; -/** @param {?proto.lnrpc.OutPoint|undefined} value */ +/** + * @param {?proto.lnrpc.OutPoint|undefined} value + * @return {!proto.lnrpc.Resolution} returns this +*/ proto.lnrpc.Resolution.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Resolution} returns this + */ proto.lnrpc.Resolution.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Resolution.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 3) != null; @@ -12938,9 +17105,12 @@ proto.lnrpc.Resolution.prototype.getAmountSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Resolution} returns this + */ proto.lnrpc.Resolution.prototype.setAmountSat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -12953,41 +17123,29 @@ proto.lnrpc.Resolution.prototype.getSweepTxid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Resolution} returns this + */ proto.lnrpc.Resolution.prototype.setSweepTxid = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; -/** - * 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.lnrpc.ClosedChannelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ClosedChannelsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ClosedChannelsRequest.displayName = 'proto.lnrpc.ClosedChannelsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ClosedChannelsRequest.prototype.toObject = function(opt_includeInstance) { @@ -12997,8 +17155,8 @@ proto.lnrpc.ClosedChannelsRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ClosedChannelsRequest} msg The msg instance to transform. * @return {!Object} @@ -13006,12 +17164,12 @@ proto.lnrpc.ClosedChannelsRequest.prototype.toObject = function(opt_includeInsta */ proto.lnrpc.ClosedChannelsRequest.toObject = function(includeInstance, msg) { var f, obj = { - cooperative: jspb.Message.getFieldWithDefault(msg, 1, false), - localForce: jspb.Message.getFieldWithDefault(msg, 2, false), - remoteForce: jspb.Message.getFieldWithDefault(msg, 3, false), - breach: jspb.Message.getFieldWithDefault(msg, 4, false), - fundingCanceled: jspb.Message.getFieldWithDefault(msg, 5, false), - abandoned: jspb.Message.getFieldWithDefault(msg, 6, false) + cooperative: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + localForce: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + remoteForce: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + breach: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + fundingCanceled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + abandoned: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -13148,124 +17306,113 @@ proto.lnrpc.ClosedChannelsRequest.serializeBinaryToWriter = function(message, wr /** * optional bool cooperative = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getCooperative = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setCooperative = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool local_force = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getLocalForce = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setLocalForce = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * optional bool remote_force = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getRemoteForce = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setRemoteForce = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional bool breach = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getBreach = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setBreach = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional bool funding_canceled = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getFundingCanceled = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setFundingCanceled = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** * optional bool abandoned = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ClosedChannelsRequest.prototype.getAbandoned = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ClosedChannelsRequest} returns this + */ proto.lnrpc.ClosedChannelsRequest.prototype.setAbandoned = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; -/** - * 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.lnrpc.ClosedChannelsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ClosedChannelsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ClosedChannelsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ClosedChannelsResponse.displayName = 'proto.lnrpc.ClosedChannelsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -13277,13 +17424,15 @@ proto.lnrpc.ClosedChannelsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ClosedChannelsResponse.prototype.toObject = function(opt_includeInstance) { @@ -13293,8 +17442,8 @@ proto.lnrpc.ClosedChannelsResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ClosedChannelsResponse} msg The msg instance to transform. * @return {!Object} @@ -13395,9 +17544,12 @@ proto.lnrpc.ClosedChannelsResponse.prototype.getChannelsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ClosedChannelsResponse} returns this +*/ proto.lnrpc.ClosedChannelsResponse.prototype.setChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -13411,29 +17563,16 @@ proto.lnrpc.ClosedChannelsResponse.prototype.addChannels = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ClosedChannelsResponse} returns this + */ proto.lnrpc.ClosedChannelsResponse.prototype.clearChannelsList = function() { - this.setChannelsList([]); + return this.setChannelsList([]); }; -/** - * 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.lnrpc.Peer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Peer.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Peer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Peer.displayName = 'proto.lnrpc.Peer'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -13445,13 +17584,15 @@ proto.lnrpc.Peer.repeatedFields_ = [12]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Peer.prototype.toObject = function(opt_includeInstance) { @@ -13461,8 +17602,8 @@ proto.lnrpc.Peer.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Peer} msg The msg instance to transform. * @return {!Object} @@ -13476,7 +17617,7 @@ proto.lnrpc.Peer.toObject = function(includeInstance, msg) { bytesRecv: jspb.Message.getFieldWithDefault(msg, 5, "0"), satSent: jspb.Message.getFieldWithDefault(msg, 6, "0"), satRecv: jspb.Message.getFieldWithDefault(msg, 7, "0"), - inbound: jspb.Message.getFieldWithDefault(msg, 8, false), + inbound: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), pingTime: jspb.Message.getFieldWithDefault(msg, 9, "0"), syncType: jspb.Message.getFieldWithDefault(msg, 10, 0), featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.lnrpc.Feature.toObject) : [], @@ -13560,7 +17701,7 @@ proto.lnrpc.Peer.deserializeBinaryFromReader = function(msg, reader) { case 11: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; case 12: @@ -13727,9 +17868,12 @@ proto.lnrpc.Peer.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -13742,9 +17886,12 @@ proto.lnrpc.Peer.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -13757,9 +17904,12 @@ proto.lnrpc.Peer.prototype.getBytesSent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setBytesSent = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -13772,9 +17922,12 @@ proto.lnrpc.Peer.prototype.getBytesRecv = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setBytesRecv = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -13787,9 +17940,12 @@ proto.lnrpc.Peer.prototype.getSatSent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setSatSent = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -13802,26 +17958,30 @@ proto.lnrpc.Peer.prototype.getSatRecv = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setSatRecv = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; /** * optional bool inbound = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Peer.prototype.getInbound = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setInbound = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; @@ -13834,9 +17994,12 @@ proto.lnrpc.Peer.prototype.getPingTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setPingTime = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -13849,9 +18012,12 @@ proto.lnrpc.Peer.prototype.getSyncType = function() { }; -/** @param {!proto.lnrpc.Peer.SyncType} value */ +/** + * @param {!proto.lnrpc.Peer.SyncType} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setSyncType = function(value) { - jspb.Message.setProto3EnumField(this, 10, value); + return jspb.Message.setProto3EnumField(this, 10, value); }; @@ -13868,9 +18034,13 @@ proto.lnrpc.Peer.prototype.getFeaturesMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; /** @@ -13883,9 +18053,12 @@ proto.lnrpc.Peer.prototype.getErrorsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Peer} returns this +*/ proto.lnrpc.Peer.prototype.setErrorsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 12, value); + return jspb.Message.setRepeatedWrapperField(this, 12, value); }; @@ -13899,8 +18072,12 @@ proto.lnrpc.Peer.prototype.addErrors = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.clearErrorsList = function() { - this.setErrorsList([]); + return this.setErrorsList([]); }; @@ -13913,9 +18090,12 @@ proto.lnrpc.Peer.prototype.getFlapCount = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setFlapCount = function(value) { - jspb.Message.setProto3IntField(this, 13, value); + return jspb.Message.setProto3IntField(this, 13, value); }; @@ -13928,9 +18108,12 @@ proto.lnrpc.Peer.prototype.getLastFlapNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setLastFlapNs = function(value) { - jspb.Message.setProto3StringIntField(this, 14, value); + return jspb.Message.setProto3StringIntField(this, 14, value); }; @@ -13967,41 +18150,29 @@ proto.lnrpc.Peer.prototype.getLastPingPayload_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Peer} returns this + */ proto.lnrpc.Peer.prototype.setLastPingPayload = function(value) { - jspb.Message.setProto3BytesField(this, 15, value); + return jspb.Message.setProto3BytesField(this, 15, value); }; -/** - * 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.lnrpc.TimestampedError = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.TimestampedError, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.TimestampedError.displayName = 'proto.lnrpc.TimestampedError'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.TimestampedError.prototype.toObject = function(opt_includeInstance) { @@ -14011,8 +18182,8 @@ proto.lnrpc.TimestampedError.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.TimestampedError} msg The msg instance to transform. * @return {!Object} @@ -14121,9 +18292,12 @@ proto.lnrpc.TimestampedError.prototype.getTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.TimestampedError} returns this + */ proto.lnrpc.TimestampedError.prototype.setTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -14136,41 +18310,29 @@ proto.lnrpc.TimestampedError.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.TimestampedError} returns this + */ proto.lnrpc.TimestampedError.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.ListPeersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListPeersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPeersRequest.displayName = 'proto.lnrpc.ListPeersRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPeersRequest.prototype.toObject = function(opt_includeInstance) { @@ -14180,8 +18342,8 @@ proto.lnrpc.ListPeersRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPeersRequest} msg The msg instance to transform. * @return {!Object} @@ -14189,7 +18351,7 @@ proto.lnrpc.ListPeersRequest.prototype.toObject = function(opt_includeInstance) */ proto.lnrpc.ListPeersRequest.toObject = function(includeInstance, msg) { var f, obj = { - latestError: jspb.Message.getFieldWithDefault(msg, 1, false) + latestError: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -14271,39 +18433,23 @@ proto.lnrpc.ListPeersRequest.serializeBinaryToWriter = function(message, writer) /** * optional bool latest_error = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListPeersRequest.prototype.getLatestError = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListPeersRequest} returns this + */ proto.lnrpc.ListPeersRequest.prototype.setLatestError = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * 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.lnrpc.ListPeersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListPeersResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListPeersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPeersResponse.displayName = 'proto.lnrpc.ListPeersResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -14315,13 +18461,15 @@ proto.lnrpc.ListPeersResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPeersResponse.prototype.toObject = function(opt_includeInstance) { @@ -14331,8 +18479,8 @@ proto.lnrpc.ListPeersResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPeersResponse} msg The msg instance to transform. * @return {!Object} @@ -14433,9 +18581,12 @@ proto.lnrpc.ListPeersResponse.prototype.getPeersList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListPeersResponse} returns this +*/ proto.lnrpc.ListPeersResponse.prototype.setPeersList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -14449,40 +18600,29 @@ proto.lnrpc.ListPeersResponse.prototype.addPeers = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListPeersResponse} returns this + */ proto.lnrpc.ListPeersResponse.prototype.clearPeersList = function() { - this.setPeersList([]); + return this.setPeersList([]); }; -/** - * 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.lnrpc.PeerEventSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PeerEventSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PeerEventSubscription.displayName = 'proto.lnrpc.PeerEventSubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PeerEventSubscription.prototype.toObject = function(opt_includeInstance) { @@ -14492,8 +18632,8 @@ proto.lnrpc.PeerEventSubscription.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PeerEventSubscription} msg The msg instance to transform. * @return {!Object} @@ -14571,34 +18711,19 @@ proto.lnrpc.PeerEventSubscription.serializeBinaryToWriter = function(message, wr -/** - * 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.lnrpc.PeerEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PeerEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PeerEvent.displayName = 'proto.lnrpc.PeerEvent'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PeerEvent.prototype.toObject = function(opt_includeInstance) { @@ -14608,8 +18733,8 @@ proto.lnrpc.PeerEvent.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PeerEvent} msg The msg instance to transform. * @return {!Object} @@ -14726,9 +18851,12 @@ proto.lnrpc.PeerEvent.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PeerEvent} returns this + */ proto.lnrpc.PeerEvent.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -14741,41 +18869,29 @@ proto.lnrpc.PeerEvent.prototype.getType = function() { }; -/** @param {!proto.lnrpc.PeerEvent.EventType} value */ +/** + * @param {!proto.lnrpc.PeerEvent.EventType} value + * @return {!proto.lnrpc.PeerEvent} returns this + */ proto.lnrpc.PeerEvent.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.lnrpc.GetInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GetInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetInfoRequest.displayName = 'proto.lnrpc.GetInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -14785,8 +18901,8 @@ proto.lnrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GetInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -14864,23 +18980,6 @@ proto.lnrpc.GetInfoRequest.serializeBinaryToWriter = function(message, writer) { -/** - * 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.lnrpc.GetInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GetInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.GetInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetInfoResponse.displayName = 'proto.lnrpc.GetInfoResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -14892,13 +18991,15 @@ proto.lnrpc.GetInfoResponse.repeatedFields_ = [16,12]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -14908,8 +19009,8 @@ proto.lnrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GetInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -14929,15 +19030,15 @@ proto.lnrpc.GetInfoResponse.toObject = function(includeInstance, msg) { blockHeight: jspb.Message.getFieldWithDefault(msg, 6, 0), blockHash: jspb.Message.getFieldWithDefault(msg, 8, ""), bestHeaderTimestamp: jspb.Message.getFieldWithDefault(msg, 13, "0"), - syncedToChain: jspb.Message.getFieldWithDefault(msg, 9, false), - syncedToGraph: jspb.Message.getFieldWithDefault(msg, 18, false), - testnet: jspb.Message.getFieldWithDefault(msg, 10, false), + syncedToChain: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + syncedToGraph: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + testnet: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), chainsList: jspb.Message.toObjectList(msg.getChainsList(), proto.lnrpc.Chain.toObject, includeInstance), - urisList: jspb.Message.getRepeatedField(msg, 12), + urisList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f, featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.lnrpc.Feature.toObject) : [], - requireHtlcInterceptor: jspb.Message.getFieldWithDefault(msg, 21, false), - storeFinalHtlcResolutions: jspb.Message.getFieldWithDefault(msg, 22, false) + requireHtlcInterceptor: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + storeFinalHtlcResolutions: jspb.Message.getBooleanFieldWithDefault(msg, 22, false) }; if (includeInstance) { @@ -15046,7 +19147,7 @@ proto.lnrpc.GetInfoResponse.deserializeBinaryFromReader = function(msg, reader) case 19: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; case 21: @@ -15236,9 +19337,12 @@ proto.lnrpc.GetInfoResponse.prototype.getVersion = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3StringField(this, 14, value); + return jspb.Message.setProto3StringField(this, 14, value); }; @@ -15251,9 +19355,12 @@ proto.lnrpc.GetInfoResponse.prototype.getCommitHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setCommitHash = function(value) { - jspb.Message.setProto3StringField(this, 20, value); + return jspb.Message.setProto3StringField(this, 20, value); }; @@ -15266,9 +19373,12 @@ proto.lnrpc.GetInfoResponse.prototype.getIdentityPubkey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setIdentityPubkey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -15281,9 +19391,12 @@ proto.lnrpc.GetInfoResponse.prototype.getAlias = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setAlias = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -15296,9 +19409,12 @@ proto.lnrpc.GetInfoResponse.prototype.getColor = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setColor = function(value) { - jspb.Message.setProto3StringField(this, 17, value); + return jspb.Message.setProto3StringField(this, 17, value); }; @@ -15311,9 +19427,12 @@ proto.lnrpc.GetInfoResponse.prototype.getNumPendingChannels = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setNumPendingChannels = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -15326,9 +19445,12 @@ proto.lnrpc.GetInfoResponse.prototype.getNumActiveChannels = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setNumActiveChannels = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -15341,9 +19463,12 @@ proto.lnrpc.GetInfoResponse.prototype.getNumInactiveChannels = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setNumInactiveChannels = function(value) { - jspb.Message.setProto3IntField(this, 15, value); + return jspb.Message.setProto3IntField(this, 15, value); }; @@ -15356,9 +19481,12 @@ proto.lnrpc.GetInfoResponse.prototype.getNumPeers = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setNumPeers = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -15371,9 +19499,12 @@ proto.lnrpc.GetInfoResponse.prototype.getBlockHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setBlockHeight = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -15386,9 +19517,12 @@ proto.lnrpc.GetInfoResponse.prototype.getBlockHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setBlockHash = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -15401,60 +19535,66 @@ proto.lnrpc.GetInfoResponse.prototype.getBestHeaderTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setBestHeaderTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; /** * optional bool synced_to_chain = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetInfoResponse.prototype.getSyncedToChain = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setSyncedToChain = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; /** * optional bool synced_to_graph = 18; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetInfoResponse.prototype.getSyncedToGraph = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 18, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setSyncedToGraph = function(value) { - jspb.Message.setProto3BooleanField(this, 18, value); + return jspb.Message.setProto3BooleanField(this, 18, value); }; /** * optional bool testnet = 10; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetInfoResponse.prototype.getTestnet = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setTestnet = function(value) { - jspb.Message.setProto3BooleanField(this, 10, value); + return jspb.Message.setProto3BooleanField(this, 10, value); }; @@ -15468,9 +19608,12 @@ proto.lnrpc.GetInfoResponse.prototype.getChainsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GetInfoResponse} returns this +*/ proto.lnrpc.GetInfoResponse.prototype.setChainsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 16, value); + return jspb.Message.setRepeatedWrapperField(this, 16, value); }; @@ -15484,8 +19627,12 @@ proto.lnrpc.GetInfoResponse.prototype.addChains = function(opt_value, opt_index) }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.clearChainsList = function() { - this.setChainsList([]); + return this.setChainsList([]); }; @@ -15498,23 +19645,31 @@ proto.lnrpc.GetInfoResponse.prototype.getUrisList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setUrisList = function(value) { - jspb.Message.setField(this, 12, value || []); + return jspb.Message.setField(this, 12, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.GetInfoResponse} returns this */ proto.lnrpc.GetInfoResponse.prototype.addUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 12, value, opt_index); + return jspb.Message.addToRepeatedField(this, 12, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.clearUrisList = function() { - this.setUrisList([]); + return this.setUrisList([]); }; @@ -15531,74 +19686,65 @@ proto.lnrpc.GetInfoResponse.prototype.getFeaturesMap = function(opt_noLazyCreate }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; /** * optional bool require_htlc_interceptor = 21; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetInfoResponse.prototype.getRequireHtlcInterceptor = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 21, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setRequireHtlcInterceptor = function(value) { - jspb.Message.setProto3BooleanField(this, 21, value); + return jspb.Message.setProto3BooleanField(this, 21, value); }; /** * optional bool store_final_htlc_resolutions = 22; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetInfoResponse.prototype.getStoreFinalHtlcResolutions = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 22, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetInfoResponse} returns this + */ proto.lnrpc.GetInfoResponse.prototype.setStoreFinalHtlcResolutions = function(value) { - jspb.Message.setProto3BooleanField(this, 22, value); + return jspb.Message.setProto3BooleanField(this, 22, value); }; -/** - * 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.lnrpc.GetRecoveryInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GetRecoveryInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetRecoveryInfoRequest.displayName = 'proto.lnrpc.GetRecoveryInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GetRecoveryInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -15608,8 +19754,8 @@ proto.lnrpc.GetRecoveryInfoRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GetRecoveryInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -15687,34 +19833,19 @@ proto.lnrpc.GetRecoveryInfoRequest.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.GetRecoveryInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GetRecoveryInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetRecoveryInfoResponse.displayName = 'proto.lnrpc.GetRecoveryInfoResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GetRecoveryInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -15724,8 +19855,8 @@ proto.lnrpc.GetRecoveryInfoResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GetRecoveryInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -15733,9 +19864,9 @@ proto.lnrpc.GetRecoveryInfoResponse.prototype.toObject = function(opt_includeIns */ proto.lnrpc.GetRecoveryInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { - recoveryMode: jspb.Message.getFieldWithDefault(msg, 1, false), - recoveryFinished: jspb.Message.getFieldWithDefault(msg, 2, false), - progress: +jspb.Message.getFieldWithDefault(msg, 3, 0.0) + recoveryMode: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + recoveryFinished: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + progress: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) }; if (includeInstance) { @@ -15839,35 +19970,37 @@ proto.lnrpc.GetRecoveryInfoResponse.serializeBinaryToWriter = function(message, /** * optional bool recovery_mode = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetRecoveryInfoResponse.prototype.getRecoveryMode = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetRecoveryInfoResponse} returns this + */ proto.lnrpc.GetRecoveryInfoResponse.prototype.setRecoveryMode = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool recovery_finished = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.GetRecoveryInfoResponse.prototype.getRecoveryFinished = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.GetRecoveryInfoResponse} returns this + */ proto.lnrpc.GetRecoveryInfoResponse.prototype.setRecoveryFinished = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -15876,45 +20009,33 @@ proto.lnrpc.GetRecoveryInfoResponse.prototype.setRecoveryFinished = function(val * @return {number} */ proto.lnrpc.GetRecoveryInfoResponse.prototype.getProgress = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.GetRecoveryInfoResponse} returns this + */ proto.lnrpc.GetRecoveryInfoResponse.prototype.setProgress = function(value) { - jspb.Message.setProto3FloatField(this, 3, value); + return jspb.Message.setProto3FloatField(this, 3, value); }; -/** - * 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.lnrpc.Chain = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Chain, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Chain.displayName = 'proto.lnrpc.Chain'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Chain.prototype.toObject = function(opt_includeInstance) { @@ -15924,8 +20045,8 @@ proto.lnrpc.Chain.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Chain} msg The msg instance to transform. * @return {!Object} @@ -16034,9 +20155,12 @@ proto.lnrpc.Chain.prototype.getChain = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Chain} returns this + */ proto.lnrpc.Chain.prototype.setChain = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -16049,41 +20173,29 @@ proto.lnrpc.Chain.prototype.getNetwork = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Chain} returns this + */ proto.lnrpc.Chain.prototype.setNetwork = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.ConfirmationUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ConfirmationUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ConfirmationUpdate.displayName = 'proto.lnrpc.ConfirmationUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ConfirmationUpdate.prototype.toObject = function(opt_includeInstance) { @@ -16093,8 +20205,8 @@ proto.lnrpc.ConfirmationUpdate.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ConfirmationUpdate} msg The msg instance to transform. * @return {!Object} @@ -16239,9 +20351,12 @@ proto.lnrpc.ConfirmationUpdate.prototype.getBlockSha_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ConfirmationUpdate} returns this + */ proto.lnrpc.ConfirmationUpdate.prototype.setBlockSha = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -16254,9 +20369,12 @@ proto.lnrpc.ConfirmationUpdate.prototype.getBlockHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ConfirmationUpdate} returns this + */ proto.lnrpc.ConfirmationUpdate.prototype.setBlockHeight = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -16269,41 +20387,29 @@ proto.lnrpc.ConfirmationUpdate.prototype.getNumConfsLeft = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ConfirmationUpdate} returns this + */ proto.lnrpc.ConfirmationUpdate.prototype.setNumConfsLeft = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * 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.lnrpc.ChannelOpenUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelOpenUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelOpenUpdate.displayName = 'proto.lnrpc.ChannelOpenUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelOpenUpdate.prototype.toObject = function(opt_includeInstance) { @@ -16313,8 +20419,8 @@ proto.lnrpc.ChannelOpenUpdate.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelOpenUpdate} msg The msg instance to transform. * @return {!Object} @@ -16414,20 +20520,27 @@ proto.lnrpc.ChannelOpenUpdate.prototype.getChannelPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelOpenUpdate} returns this +*/ proto.lnrpc.ChannelOpenUpdate.prototype.setChannelPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelOpenUpdate} returns this + */ proto.lnrpc.ChannelOpenUpdate.prototype.clearChannelPoint = function() { - this.setChannelPoint(undefined); + return this.setChannelPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelOpenUpdate.prototype.hasChannelPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -16435,34 +20548,19 @@ proto.lnrpc.ChannelOpenUpdate.prototype.hasChannelPoint = function() { -/** - * 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.lnrpc.ChannelCloseUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelCloseUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelCloseUpdate.displayName = 'proto.lnrpc.ChannelCloseUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelCloseUpdate.prototype.toObject = function(opt_includeInstance) { @@ -16472,8 +20570,8 @@ proto.lnrpc.ChannelCloseUpdate.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelCloseUpdate} msg The msg instance to transform. * @return {!Object} @@ -16482,7 +20580,7 @@ proto.lnrpc.ChannelCloseUpdate.prototype.toObject = function(opt_includeInstance proto.lnrpc.ChannelCloseUpdate.toObject = function(includeInstance, msg) { var f, obj = { closingTxid: msg.getClosingTxid_asB64(), - success: jspb.Message.getFieldWithDefault(msg, 2, false) + success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -16606,58 +20704,47 @@ proto.lnrpc.ChannelCloseUpdate.prototype.getClosingTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelCloseUpdate} returns this + */ proto.lnrpc.ChannelCloseUpdate.prototype.setClosingTxid = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional bool success = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelCloseUpdate.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelCloseUpdate} returns this + */ proto.lnrpc.ChannelCloseUpdate.prototype.setSuccess = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.CloseChannelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.CloseChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.CloseChannelRequest.displayName = 'proto.lnrpc.CloseChannelRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.CloseChannelRequest.prototype.toObject = function(opt_includeInstance) { @@ -16667,8 +20754,8 @@ proto.lnrpc.CloseChannelRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.CloseChannelRequest} msg The msg instance to transform. * @return {!Object} @@ -16677,7 +20764,7 @@ proto.lnrpc.CloseChannelRequest.prototype.toObject = function(opt_includeInstanc proto.lnrpc.CloseChannelRequest.toObject = function(includeInstance, msg) { var f, obj = { channelPoint: (f = msg.getChannelPoint()) && proto.lnrpc.ChannelPoint.toObject(includeInstance, f), - force: jspb.Message.getFieldWithDefault(msg, 2, false), + force: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), targetConf: jspb.Message.getFieldWithDefault(msg, 3, 0), satPerByte: jspb.Message.getFieldWithDefault(msg, 4, "0"), deliveryAddress: jspb.Message.getFieldWithDefault(msg, 5, ""), @@ -16840,20 +20927,27 @@ proto.lnrpc.CloseChannelRequest.prototype.getChannelPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this +*/ proto.lnrpc.CloseChannelRequest.prototype.setChannelPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.clearChannelPoint = function() { - this.setChannelPoint(undefined); + return this.setChannelPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.CloseChannelRequest.prototype.hasChannelPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -16862,18 +20956,19 @@ proto.lnrpc.CloseChannelRequest.prototype.hasChannelPoint = function() { /** * optional bool force = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.CloseChannelRequest.prototype.getForce = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setForce = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -16886,9 +20981,12 @@ proto.lnrpc.CloseChannelRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -16901,9 +20999,12 @@ proto.lnrpc.CloseChannelRequest.prototype.getSatPerByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setSatPerByte = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -16916,9 +21017,12 @@ proto.lnrpc.CloseChannelRequest.prototype.getDeliveryAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setDeliveryAddress = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -16931,9 +21035,12 @@ proto.lnrpc.CloseChannelRequest.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -16946,30 +21053,16 @@ proto.lnrpc.CloseChannelRequest.prototype.getMaxFeePerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setMaxFeePerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; -/** - * 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.lnrpc.CloseStatusUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.CloseStatusUpdate.oneofGroups_); -}; -goog.inherits(proto.lnrpc.CloseStatusUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.CloseStatusUpdate.displayName = 'proto.lnrpc.CloseStatusUpdate'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -17000,13 +21093,15 @@ proto.lnrpc.CloseStatusUpdate.prototype.getUpdateCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.CloseStatusUpdate.prototype.toObject = function(opt_includeInstance) { @@ -17016,8 +21111,8 @@ proto.lnrpc.CloseStatusUpdate.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.CloseStatusUpdate} msg The msg instance to transform. * @return {!Object} @@ -17131,20 +21226,27 @@ proto.lnrpc.CloseStatusUpdate.prototype.getClosePending = function() { }; -/** @param {?proto.lnrpc.PendingUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.PendingUpdate|undefined} value + * @return {!proto.lnrpc.CloseStatusUpdate} returns this +*/ proto.lnrpc.CloseStatusUpdate.prototype.setClosePending = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.CloseStatusUpdate} returns this + */ proto.lnrpc.CloseStatusUpdate.prototype.clearClosePending = function() { - this.setClosePending(undefined); + return this.setClosePending(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.CloseStatusUpdate.prototype.hasClosePending = function() { return jspb.Message.getField(this, 1) != null; @@ -17161,20 +21263,27 @@ proto.lnrpc.CloseStatusUpdate.prototype.getChanClose = function() { }; -/** @param {?proto.lnrpc.ChannelCloseUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelCloseUpdate|undefined} value + * @return {!proto.lnrpc.CloseStatusUpdate} returns this +*/ proto.lnrpc.CloseStatusUpdate.prototype.setChanClose = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.CloseStatusUpdate} returns this + */ proto.lnrpc.CloseStatusUpdate.prototype.clearChanClose = function() { - this.setChanClose(undefined); + return this.setChanClose(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.CloseStatusUpdate.prototype.hasChanClose = function() { return jspb.Message.getField(this, 3) != null; @@ -17182,34 +21291,19 @@ proto.lnrpc.CloseStatusUpdate.prototype.hasChanClose = function() { -/** - * 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.lnrpc.PendingUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingUpdate.displayName = 'proto.lnrpc.PendingUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingUpdate.prototype.toObject = function(opt_includeInstance) { @@ -17219,8 +21313,8 @@ proto.lnrpc.PendingUpdate.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingUpdate} msg The msg instance to transform. * @return {!Object} @@ -17353,9 +21447,12 @@ proto.lnrpc.PendingUpdate.prototype.getTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.PendingUpdate} returns this + */ proto.lnrpc.PendingUpdate.prototype.setTxid = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -17368,41 +21465,29 @@ proto.lnrpc.PendingUpdate.prototype.getOutputIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingUpdate} returns this + */ proto.lnrpc.PendingUpdate.prototype.setOutputIndex = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.lnrpc.ReadyForPsbtFunding = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ReadyForPsbtFunding, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ReadyForPsbtFunding.displayName = 'proto.lnrpc.ReadyForPsbtFunding'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ReadyForPsbtFunding.prototype.toObject = function(opt_includeInstance) { @@ -17412,8 +21497,8 @@ proto.lnrpc.ReadyForPsbtFunding.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ReadyForPsbtFunding} msg The msg instance to transform. * @return {!Object} @@ -17534,9 +21619,12 @@ proto.lnrpc.ReadyForPsbtFunding.prototype.getFundingAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ReadyForPsbtFunding} returns this + */ proto.lnrpc.ReadyForPsbtFunding.prototype.setFundingAddress = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -17549,9 +21637,12 @@ proto.lnrpc.ReadyForPsbtFunding.prototype.getFundingAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ReadyForPsbtFunding} returns this + */ proto.lnrpc.ReadyForPsbtFunding.prototype.setFundingAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -17588,30 +21679,16 @@ proto.lnrpc.ReadyForPsbtFunding.prototype.getPsbt_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ReadyForPsbtFunding} returns this + */ proto.lnrpc.ReadyForPsbtFunding.prototype.setPsbt = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.lnrpc.BatchOpenChannelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BatchOpenChannelRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.BatchOpenChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BatchOpenChannelRequest.displayName = 'proto.lnrpc.BatchOpenChannelRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -17623,13 +21700,15 @@ proto.lnrpc.BatchOpenChannelRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.BatchOpenChannelRequest.prototype.toObject = function(opt_includeInstance) { @@ -17639,8 +21718,8 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.BatchOpenChannelRequest} msg The msg instance to transform. * @return {!Object} @@ -17653,7 +21732,7 @@ proto.lnrpc.BatchOpenChannelRequest.toObject = function(includeInstance, msg) { targetConf: jspb.Message.getFieldWithDefault(msg, 2, 0), satPerVbyte: jspb.Message.getFieldWithDefault(msg, 3, "0"), minConfs: jspb.Message.getFieldWithDefault(msg, 4, 0), - spendUnconfirmed: jspb.Message.getFieldWithDefault(msg, 5, false), + spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), label: jspb.Message.getFieldWithDefault(msg, 6, "") }; @@ -17801,9 +21880,12 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getChannelsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this +*/ proto.lnrpc.BatchOpenChannelRequest.prototype.setChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -17817,8 +21899,12 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.addChannels = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.clearChannelsList = function() { - this.setChannelsList([]); + return this.setChannelsList([]); }; @@ -17831,9 +21917,12 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -17846,9 +21935,12 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -17861,26 +21953,30 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional bool spend_unconfirmed = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.BatchOpenChannelRequest.prototype.getSpendUnconfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setSpendUnconfirmed = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -17893,41 +21989,29 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * 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.lnrpc.BatchOpenChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.BatchOpenChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BatchOpenChannel.displayName = 'proto.lnrpc.BatchOpenChannel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.BatchOpenChannel.prototype.toObject = function(opt_includeInstance) { @@ -17937,8 +22021,8 @@ proto.lnrpc.BatchOpenChannel.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.BatchOpenChannel} msg The msg instance to transform. * @return {!Object} @@ -17949,7 +22033,7 @@ proto.lnrpc.BatchOpenChannel.toObject = function(includeInstance, msg) { nodePubkey: msg.getNodePubkey_asB64(), localFundingAmount: jspb.Message.getFieldWithDefault(msg, 2, "0"), pushSat: jspb.Message.getFieldWithDefault(msg, 3, "0"), - pb_private: jspb.Message.getFieldWithDefault(msg, 4, false), + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), minHtlcMsat: jspb.Message.getFieldWithDefault(msg, 5, "0"), remoteCsvDelay: jspb.Message.getFieldWithDefault(msg, 6, 0), closeAddress: jspb.Message.getFieldWithDefault(msg, 7, ""), @@ -18155,9 +22239,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getNodePubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setNodePubkey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -18170,9 +22257,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getLocalFundingAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setLocalFundingAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -18185,26 +22275,30 @@ proto.lnrpc.BatchOpenChannel.prototype.getPushSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setPushSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** * optional bool private = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.BatchOpenChannel.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -18217,9 +22311,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getMinHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setMinHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -18232,9 +22329,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getRemoteCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setRemoteCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -18247,9 +22347,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getCloseAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setCloseAddress = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -18286,9 +22389,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; @@ -18301,30 +22407,16 @@ proto.lnrpc.BatchOpenChannel.prototype.getCommitmentType = function() { }; -/** @param {!proto.lnrpc.CommitmentType} value */ +/** + * @param {!proto.lnrpc.CommitmentType} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setCommitmentType = function(value) { - jspb.Message.setProto3EnumField(this, 9, value); + return jspb.Message.setProto3EnumField(this, 9, value); }; -/** - * 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.lnrpc.BatchOpenChannelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BatchOpenChannelResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.BatchOpenChannelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BatchOpenChannelResponse.displayName = 'proto.lnrpc.BatchOpenChannelResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -18336,13 +22428,15 @@ proto.lnrpc.BatchOpenChannelResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.BatchOpenChannelResponse.prototype.toObject = function(opt_includeInstance) { @@ -18352,8 +22446,8 @@ proto.lnrpc.BatchOpenChannelResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.BatchOpenChannelResponse} msg The msg instance to transform. * @return {!Object} @@ -18454,9 +22548,12 @@ proto.lnrpc.BatchOpenChannelResponse.prototype.getPendingChannelsList = function }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.BatchOpenChannelResponse} returns this +*/ proto.lnrpc.BatchOpenChannelResponse.prototype.setPendingChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -18470,40 +22567,29 @@ proto.lnrpc.BatchOpenChannelResponse.prototype.addPendingChannels = function(opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BatchOpenChannelResponse} returns this + */ proto.lnrpc.BatchOpenChannelResponse.prototype.clearPendingChannelsList = function() { - this.setPendingChannelsList([]); + return this.setPendingChannelsList([]); }; -/** - * 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.lnrpc.OpenChannelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.OpenChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.OpenChannelRequest.displayName = 'proto.lnrpc.OpenChannelRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.OpenChannelRequest.prototype.toObject = function(opt_includeInstance) { @@ -18513,8 +22599,8 @@ proto.lnrpc.OpenChannelRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.OpenChannelRequest} msg The msg instance to transform. * @return {!Object} @@ -18529,23 +22615,23 @@ proto.lnrpc.OpenChannelRequest.toObject = function(includeInstance, msg) { pushSat: jspb.Message.getFieldWithDefault(msg, 5, "0"), targetConf: jspb.Message.getFieldWithDefault(msg, 6, 0), satPerByte: jspb.Message.getFieldWithDefault(msg, 7, "0"), - pb_private: jspb.Message.getFieldWithDefault(msg, 8, false), + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), minHtlcMsat: jspb.Message.getFieldWithDefault(msg, 9, "0"), remoteCsvDelay: jspb.Message.getFieldWithDefault(msg, 10, 0), minConfs: jspb.Message.getFieldWithDefault(msg, 11, 0), - spendUnconfirmed: jspb.Message.getFieldWithDefault(msg, 12, false), + spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), closeAddress: jspb.Message.getFieldWithDefault(msg, 13, ""), fundingShim: (f = msg.getFundingShim()) && proto.lnrpc.FundingShim.toObject(includeInstance, f), remoteMaxValueInFlightMsat: jspb.Message.getFieldWithDefault(msg, 15, "0"), remoteMaxHtlcs: jspb.Message.getFieldWithDefault(msg, 16, 0), maxLocalCsv: jspb.Message.getFieldWithDefault(msg, 17, 0), commitmentType: jspb.Message.getFieldWithDefault(msg, 18, 0), - zeroConf: jspb.Message.getFieldWithDefault(msg, 19, false), - scidAlias: jspb.Message.getFieldWithDefault(msg, 20, false), + zeroConf: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + scidAlias: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), baseFee: jspb.Message.getFieldWithDefault(msg, 21, "0"), feeRate: jspb.Message.getFieldWithDefault(msg, 22, "0"), - useBaseFee: jspb.Message.getFieldWithDefault(msg, 23, false), - useFeeRate: jspb.Message.getFieldWithDefault(msg, 24, false), + useBaseFee: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), + useFeeRate: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), remoteChanReserveSat: jspb.Message.getFieldWithDefault(msg, 25, "0") }; @@ -18901,9 +22987,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getSatPerVbyte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -18940,9 +23029,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getNodePubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setNodePubkey = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -18955,9 +23047,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getNodePubkeyString = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setNodePubkeyString = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -18970,9 +23065,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getLocalFundingAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setLocalFundingAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -18985,9 +23083,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getPushSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setPushSat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -19000,9 +23101,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getTargetConf = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setTargetConf = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -19015,26 +23119,30 @@ proto.lnrpc.OpenChannelRequest.prototype.getSatPerByte = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setSatPerByte = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; /** * optional bool private = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; @@ -19047,9 +23155,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getMinHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setMinHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -19062,9 +23173,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getRemoteCsvDelay = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setRemoteCsvDelay = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 10, value); }; @@ -19077,26 +23191,30 @@ proto.lnrpc.OpenChannelRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setMinConfs = function(value) { - jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 11, value); }; /** * optional bool spend_unconfirmed = 12; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getSpendUnconfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 12, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setSpendUnconfirmed = function(value) { - jspb.Message.setProto3BooleanField(this, 12, value); + return jspb.Message.setProto3BooleanField(this, 12, value); }; @@ -19109,9 +23227,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getCloseAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setCloseAddress = function(value) { - jspb.Message.setProto3StringField(this, 13, value); + return jspb.Message.setProto3StringField(this, 13, value); }; @@ -19125,20 +23246,27 @@ proto.lnrpc.OpenChannelRequest.prototype.getFundingShim = function() { }; -/** @param {?proto.lnrpc.FundingShim|undefined} value */ +/** + * @param {?proto.lnrpc.FundingShim|undefined} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this +*/ proto.lnrpc.OpenChannelRequest.prototype.setFundingShim = function(value) { - jspb.Message.setWrapperField(this, 14, value); + return jspb.Message.setWrapperField(this, 14, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.clearFundingShim = function() { - this.setFundingShim(undefined); + return this.setFundingShim(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.hasFundingShim = function() { return jspb.Message.getField(this, 14) != null; @@ -19154,9 +23282,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getRemoteMaxValueInFlightMsat = functio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setRemoteMaxValueInFlightMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 15, value); + return jspb.Message.setProto3StringIntField(this, 15, value); }; @@ -19169,9 +23300,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getRemoteMaxHtlcs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setRemoteMaxHtlcs = function(value) { - jspb.Message.setProto3IntField(this, 16, value); + return jspb.Message.setProto3IntField(this, 16, value); }; @@ -19184,9 +23318,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getMaxLocalCsv = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setMaxLocalCsv = function(value) { - jspb.Message.setProto3IntField(this, 17, value); + return jspb.Message.setProto3IntField(this, 17, value); }; @@ -19199,43 +23336,48 @@ proto.lnrpc.OpenChannelRequest.prototype.getCommitmentType = function() { }; -/** @param {!proto.lnrpc.CommitmentType} value */ +/** + * @param {!proto.lnrpc.CommitmentType} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setCommitmentType = function(value) { - jspb.Message.setProto3EnumField(this, 18, value); + return jspb.Message.setProto3EnumField(this, 18, value); }; /** * optional bool zero_conf = 19; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getZeroConf = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 19, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setZeroConf = function(value) { - jspb.Message.setProto3BooleanField(this, 19, value); + return jspb.Message.setProto3BooleanField(this, 19, value); }; /** * optional bool scid_alias = 20; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getScidAlias = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 20, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setScidAlias = function(value) { - jspb.Message.setProto3BooleanField(this, 20, value); + return jspb.Message.setProto3BooleanField(this, 20, value); }; @@ -19248,9 +23390,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getBaseFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setBaseFee = function(value) { - jspb.Message.setProto3StringIntField(this, 21, value); + return jspb.Message.setProto3StringIntField(this, 21, value); }; @@ -19263,43 +23408,48 @@ proto.lnrpc.OpenChannelRequest.prototype.getFeeRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setFeeRate = function(value) { - jspb.Message.setProto3StringIntField(this, 22, value); + return jspb.Message.setProto3StringIntField(this, 22, value); }; /** * optional bool use_base_fee = 23; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getUseBaseFee = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 23, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setUseBaseFee = function(value) { - jspb.Message.setProto3BooleanField(this, 23, value); + return jspb.Message.setProto3BooleanField(this, 23, value); }; /** * optional bool use_fee_rate = 24; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.OpenChannelRequest.prototype.getUseFeeRate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 24, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setUseFeeRate = function(value) { - jspb.Message.setProto3BooleanField(this, 24, value); + return jspb.Message.setProto3BooleanField(this, 24, value); }; @@ -19312,30 +23462,16 @@ proto.lnrpc.OpenChannelRequest.prototype.getRemoteChanReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setRemoteChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 25, value); + return jspb.Message.setProto3StringIntField(this, 25, value); }; -/** - * 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.lnrpc.OpenStatusUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.OpenStatusUpdate.oneofGroups_); -}; -goog.inherits(proto.lnrpc.OpenStatusUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.OpenStatusUpdate.displayName = 'proto.lnrpc.OpenStatusUpdate'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -19367,13 +23503,15 @@ proto.lnrpc.OpenStatusUpdate.prototype.getUpdateCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.OpenStatusUpdate.prototype.toObject = function(opt_includeInstance) { @@ -19383,8 +23521,8 @@ proto.lnrpc.OpenStatusUpdate.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.OpenStatusUpdate} msg The msg instance to transform. * @return {!Object} @@ -19524,20 +23662,27 @@ proto.lnrpc.OpenStatusUpdate.prototype.getChanPending = function() { }; -/** @param {?proto.lnrpc.PendingUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.PendingUpdate|undefined} value + * @return {!proto.lnrpc.OpenStatusUpdate} returns this +*/ proto.lnrpc.OpenStatusUpdate.prototype.setChanPending = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.OpenStatusUpdate} returns this + */ proto.lnrpc.OpenStatusUpdate.prototype.clearChanPending = function() { - this.setChanPending(undefined); + return this.setChanPending(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.OpenStatusUpdate.prototype.hasChanPending = function() { return jspb.Message.getField(this, 1) != null; @@ -19554,20 +23699,27 @@ proto.lnrpc.OpenStatusUpdate.prototype.getChanOpen = function() { }; -/** @param {?proto.lnrpc.ChannelOpenUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelOpenUpdate|undefined} value + * @return {!proto.lnrpc.OpenStatusUpdate} returns this +*/ proto.lnrpc.OpenStatusUpdate.prototype.setChanOpen = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.OpenStatusUpdate} returns this + */ proto.lnrpc.OpenStatusUpdate.prototype.clearChanOpen = function() { - this.setChanOpen(undefined); + return this.setChanOpen(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.OpenStatusUpdate.prototype.hasChanOpen = function() { return jspb.Message.getField(this, 3) != null; @@ -19584,20 +23736,27 @@ proto.lnrpc.OpenStatusUpdate.prototype.getPsbtFund = function() { }; -/** @param {?proto.lnrpc.ReadyForPsbtFunding|undefined} value */ +/** + * @param {?proto.lnrpc.ReadyForPsbtFunding|undefined} value + * @return {!proto.lnrpc.OpenStatusUpdate} returns this +*/ proto.lnrpc.OpenStatusUpdate.prototype.setPsbtFund = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.lnrpc.OpenStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.OpenStatusUpdate} returns this + */ proto.lnrpc.OpenStatusUpdate.prototype.clearPsbtFund = function() { - this.setPsbtFund(undefined); + return this.setPsbtFund(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.OpenStatusUpdate.prototype.hasPsbtFund = function() { return jspb.Message.getField(this, 5) != null; @@ -19637,41 +23796,29 @@ proto.lnrpc.OpenStatusUpdate.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.OpenStatusUpdate} returns this + */ proto.lnrpc.OpenStatusUpdate.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; -/** - * 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.lnrpc.KeyLocator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.KeyLocator, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.KeyLocator.displayName = 'proto.lnrpc.KeyLocator'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.KeyLocator.prototype.toObject = function(opt_includeInstance) { @@ -19681,8 +23828,8 @@ proto.lnrpc.KeyLocator.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.KeyLocator} msg The msg instance to transform. * @return {!Object} @@ -19791,9 +23938,12 @@ proto.lnrpc.KeyLocator.prototype.getKeyFamily = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.KeyLocator} returns this + */ proto.lnrpc.KeyLocator.prototype.setKeyFamily = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -19806,41 +23956,29 @@ proto.lnrpc.KeyLocator.prototype.getKeyIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.KeyLocator} returns this + */ proto.lnrpc.KeyLocator.prototype.setKeyIndex = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.lnrpc.KeyDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.KeyDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.KeyDescriptor.displayName = 'proto.lnrpc.KeyDescriptor'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.KeyDescriptor.prototype.toObject = function(opt_includeInstance) { @@ -19850,8 +23988,8 @@ proto.lnrpc.KeyDescriptor.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.KeyDescriptor} msg The msg instance to transform. * @return {!Object} @@ -19986,9 +24124,12 @@ proto.lnrpc.KeyDescriptor.prototype.getRawKeyBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.KeyDescriptor} returns this + */ proto.lnrpc.KeyDescriptor.prototype.setRawKeyBytes = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -20002,20 +24143,27 @@ proto.lnrpc.KeyDescriptor.prototype.getKeyLoc = function() { }; -/** @param {?proto.lnrpc.KeyLocator|undefined} value */ +/** + * @param {?proto.lnrpc.KeyLocator|undefined} value + * @return {!proto.lnrpc.KeyDescriptor} returns this +*/ proto.lnrpc.KeyDescriptor.prototype.setKeyLoc = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.KeyDescriptor} returns this + */ proto.lnrpc.KeyDescriptor.prototype.clearKeyLoc = function() { - this.setKeyLoc(undefined); + return this.setKeyLoc(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.KeyDescriptor.prototype.hasKeyLoc = function() { return jspb.Message.getField(this, 2) != null; @@ -20023,34 +24171,19 @@ proto.lnrpc.KeyDescriptor.prototype.hasKeyLoc = function() { -/** - * 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.lnrpc.ChanPointShim = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChanPointShim, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChanPointShim.displayName = 'proto.lnrpc.ChanPointShim'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChanPointShim.prototype.toObject = function(opt_includeInstance) { @@ -20060,8 +24193,8 @@ proto.lnrpc.ChanPointShim.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChanPointShim} msg The msg instance to transform. * @return {!Object} @@ -20222,9 +24355,12 @@ proto.lnrpc.ChanPointShim.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -20238,20 +24374,27 @@ proto.lnrpc.ChanPointShim.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChanPointShim} returns this +*/ proto.lnrpc.ChanPointShim.prototype.setChanPoint = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChanPointShim.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 2) != null; @@ -20268,20 +24411,27 @@ proto.lnrpc.ChanPointShim.prototype.getLocalKey = function() { }; -/** @param {?proto.lnrpc.KeyDescriptor|undefined} value */ +/** + * @param {?proto.lnrpc.KeyDescriptor|undefined} value + * @return {!proto.lnrpc.ChanPointShim} returns this +*/ proto.lnrpc.ChanPointShim.prototype.setLocalKey = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.clearLocalKey = function() { - this.setLocalKey(undefined); + return this.setLocalKey(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChanPointShim.prototype.hasLocalKey = function() { return jspb.Message.getField(this, 3) != null; @@ -20321,9 +24471,12 @@ proto.lnrpc.ChanPointShim.prototype.getRemoteKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.setRemoteKey = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -20360,9 +24513,12 @@ proto.lnrpc.ChanPointShim.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -20375,41 +24531,29 @@ proto.lnrpc.ChanPointShim.prototype.getThawHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.setThawHeight = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.lnrpc.PsbtShim = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PsbtShim, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PsbtShim.displayName = 'proto.lnrpc.PsbtShim'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PsbtShim.prototype.toObject = function(opt_includeInstance) { @@ -20419,8 +24563,8 @@ proto.lnrpc.PsbtShim.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PsbtShim} msg The msg instance to transform. * @return {!Object} @@ -20430,7 +24574,7 @@ proto.lnrpc.PsbtShim.toObject = function(includeInstance, msg) { var f, obj = { pendingChanId: msg.getPendingChanId_asB64(), basePsbt: msg.getBasePsbt_asB64(), - noPublish: jspb.Message.getFieldWithDefault(msg, 3, false) + noPublish: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -20565,9 +24709,12 @@ proto.lnrpc.PsbtShim.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.PsbtShim} returns this + */ proto.lnrpc.PsbtShim.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -20604,47 +24751,34 @@ proto.lnrpc.PsbtShim.prototype.getBasePsbt_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.PsbtShim} returns this + */ proto.lnrpc.PsbtShim.prototype.setBasePsbt = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; /** * optional bool no_publish = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PsbtShim.prototype.getNoPublish = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PsbtShim} returns this + */ proto.lnrpc.PsbtShim.prototype.setNoPublish = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; -/** - * 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.lnrpc.FundingShim = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FundingShim.oneofGroups_); -}; -goog.inherits(proto.lnrpc.FundingShim, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingShim.displayName = 'proto.lnrpc.FundingShim'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -20675,13 +24809,15 @@ proto.lnrpc.FundingShim.prototype.getShimCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingShim.prototype.toObject = function(opt_includeInstance) { @@ -20691,8 +24827,8 @@ proto.lnrpc.FundingShim.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingShim} msg The msg instance to transform. * @return {!Object} @@ -20806,20 +24942,27 @@ proto.lnrpc.FundingShim.prototype.getChanPointShim = function() { }; -/** @param {?proto.lnrpc.ChanPointShim|undefined} value */ +/** + * @param {?proto.lnrpc.ChanPointShim|undefined} value + * @return {!proto.lnrpc.FundingShim} returns this +*/ proto.lnrpc.FundingShim.prototype.setChanPointShim = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.FundingShim.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.FundingShim.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingShim} returns this + */ proto.lnrpc.FundingShim.prototype.clearChanPointShim = function() { - this.setChanPointShim(undefined); + return this.setChanPointShim(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingShim.prototype.hasChanPointShim = function() { return jspb.Message.getField(this, 1) != null; @@ -20836,20 +24979,27 @@ proto.lnrpc.FundingShim.prototype.getPsbtShim = function() { }; -/** @param {?proto.lnrpc.PsbtShim|undefined} value */ +/** + * @param {?proto.lnrpc.PsbtShim|undefined} value + * @return {!proto.lnrpc.FundingShim} returns this +*/ proto.lnrpc.FundingShim.prototype.setPsbtShim = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.FundingShim.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.FundingShim.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingShim} returns this + */ proto.lnrpc.FundingShim.prototype.clearPsbtShim = function() { - this.setPsbtShim(undefined); + return this.setPsbtShim(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingShim.prototype.hasPsbtShim = function() { return jspb.Message.getField(this, 2) != null; @@ -20857,34 +25007,19 @@ proto.lnrpc.FundingShim.prototype.hasPsbtShim = function() { -/** - * 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.lnrpc.FundingShimCancel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FundingShimCancel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingShimCancel.displayName = 'proto.lnrpc.FundingShimCancel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingShimCancel.prototype.toObject = function(opt_includeInstance) { @@ -20894,8 +25029,8 @@ proto.lnrpc.FundingShimCancel.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingShimCancel} msg The msg instance to transform. * @return {!Object} @@ -21016,41 +25151,29 @@ proto.lnrpc.FundingShimCancel.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingShimCancel} returns this + */ proto.lnrpc.FundingShimCancel.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.lnrpc.FundingPsbtVerify = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FundingPsbtVerify, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingPsbtVerify.displayName = 'proto.lnrpc.FundingPsbtVerify'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingPsbtVerify.prototype.toObject = function(opt_includeInstance) { @@ -21060,8 +25183,8 @@ proto.lnrpc.FundingPsbtVerify.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingPsbtVerify} msg The msg instance to transform. * @return {!Object} @@ -21071,7 +25194,7 @@ proto.lnrpc.FundingPsbtVerify.toObject = function(includeInstance, msg) { var f, obj = { fundedPsbt: msg.getFundedPsbt_asB64(), pendingChanId: msg.getPendingChanId_asB64(), - skipFinalize: jspb.Message.getFieldWithDefault(msg, 3, false) + skipFinalize: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -21206,9 +25329,12 @@ proto.lnrpc.FundingPsbtVerify.prototype.getFundedPsbt_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingPsbtVerify} returns this + */ proto.lnrpc.FundingPsbtVerify.prototype.setFundedPsbt = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -21245,58 +25371,47 @@ proto.lnrpc.FundingPsbtVerify.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingPsbtVerify} returns this + */ proto.lnrpc.FundingPsbtVerify.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; /** * optional bool skip_finalize = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.FundingPsbtVerify.prototype.getSkipFinalize = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.FundingPsbtVerify} returns this + */ proto.lnrpc.FundingPsbtVerify.prototype.setSkipFinalize = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; -/** - * 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.lnrpc.FundingPsbtFinalize = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FundingPsbtFinalize, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingPsbtFinalize.displayName = 'proto.lnrpc.FundingPsbtFinalize'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingPsbtFinalize.prototype.toObject = function(opt_includeInstance) { @@ -21306,8 +25421,8 @@ proto.lnrpc.FundingPsbtFinalize.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingPsbtFinalize} msg The msg instance to transform. * @return {!Object} @@ -21452,9 +25567,12 @@ proto.lnrpc.FundingPsbtFinalize.prototype.getSignedPsbt_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingPsbtFinalize} returns this + */ proto.lnrpc.FundingPsbtFinalize.prototype.setSignedPsbt = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -21491,9 +25609,12 @@ proto.lnrpc.FundingPsbtFinalize.prototype.getPendingChanId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingPsbtFinalize} returns this + */ proto.lnrpc.FundingPsbtFinalize.prototype.setPendingChanId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -21530,30 +25651,16 @@ proto.lnrpc.FundingPsbtFinalize.prototype.getFinalRawTx_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.FundingPsbtFinalize} returns this + */ proto.lnrpc.FundingPsbtFinalize.prototype.setFinalRawTx = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.lnrpc.FundingTransitionMsg = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.FundingTransitionMsg.oneofGroups_); -}; -goog.inherits(proto.lnrpc.FundingTransitionMsg, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingTransitionMsg.displayName = 'proto.lnrpc.FundingTransitionMsg'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -21586,13 +25693,15 @@ proto.lnrpc.FundingTransitionMsg.prototype.getTriggerCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingTransitionMsg.prototype.toObject = function(opt_includeInstance) { @@ -21602,8 +25711,8 @@ proto.lnrpc.FundingTransitionMsg.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingTransitionMsg} msg The msg instance to transform. * @return {!Object} @@ -21745,20 +25854,27 @@ proto.lnrpc.FundingTransitionMsg.prototype.getShimRegister = function() { }; -/** @param {?proto.lnrpc.FundingShim|undefined} value */ +/** + * @param {?proto.lnrpc.FundingShim|undefined} value + * @return {!proto.lnrpc.FundingTransitionMsg} returns this +*/ proto.lnrpc.FundingTransitionMsg.prototype.setShimRegister = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingTransitionMsg} returns this + */ proto.lnrpc.FundingTransitionMsg.prototype.clearShimRegister = function() { - this.setShimRegister(undefined); + return this.setShimRegister(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingTransitionMsg.prototype.hasShimRegister = function() { return jspb.Message.getField(this, 1) != null; @@ -21775,20 +25891,27 @@ proto.lnrpc.FundingTransitionMsg.prototype.getShimCancel = function() { }; -/** @param {?proto.lnrpc.FundingShimCancel|undefined} value */ +/** + * @param {?proto.lnrpc.FundingShimCancel|undefined} value + * @return {!proto.lnrpc.FundingTransitionMsg} returns this +*/ proto.lnrpc.FundingTransitionMsg.prototype.setShimCancel = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingTransitionMsg} returns this + */ proto.lnrpc.FundingTransitionMsg.prototype.clearShimCancel = function() { - this.setShimCancel(undefined); + return this.setShimCancel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingTransitionMsg.prototype.hasShimCancel = function() { return jspb.Message.getField(this, 2) != null; @@ -21805,20 +25928,27 @@ proto.lnrpc.FundingTransitionMsg.prototype.getPsbtVerify = function() { }; -/** @param {?proto.lnrpc.FundingPsbtVerify|undefined} value */ +/** + * @param {?proto.lnrpc.FundingPsbtVerify|undefined} value + * @return {!proto.lnrpc.FundingTransitionMsg} returns this +*/ proto.lnrpc.FundingTransitionMsg.prototype.setPsbtVerify = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingTransitionMsg} returns this + */ proto.lnrpc.FundingTransitionMsg.prototype.clearPsbtVerify = function() { - this.setPsbtVerify(undefined); + return this.setPsbtVerify(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingTransitionMsg.prototype.hasPsbtVerify = function() { return jspb.Message.getField(this, 3) != null; @@ -21835,20 +25965,27 @@ proto.lnrpc.FundingTransitionMsg.prototype.getPsbtFinalize = function() { }; -/** @param {?proto.lnrpc.FundingPsbtFinalize|undefined} value */ +/** + * @param {?proto.lnrpc.FundingPsbtFinalize|undefined} value + * @return {!proto.lnrpc.FundingTransitionMsg} returns this +*/ proto.lnrpc.FundingTransitionMsg.prototype.setPsbtFinalize = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.FundingTransitionMsg.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FundingTransitionMsg} returns this + */ proto.lnrpc.FundingTransitionMsg.prototype.clearPsbtFinalize = function() { - this.setPsbtFinalize(undefined); + return this.setPsbtFinalize(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FundingTransitionMsg.prototype.hasPsbtFinalize = function() { return jspb.Message.getField(this, 4) != null; @@ -21856,34 +25993,19 @@ proto.lnrpc.FundingTransitionMsg.prototype.hasPsbtFinalize = function() { -/** - * 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.lnrpc.FundingStateStepResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FundingStateStepResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FundingStateStepResp.displayName = 'proto.lnrpc.FundingStateStepResp'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FundingStateStepResp.prototype.toObject = function(opt_includeInstance) { @@ -21893,8 +26015,8 @@ proto.lnrpc.FundingStateStepResp.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FundingStateStepResp} msg The msg instance to transform. * @return {!Object} @@ -21972,34 +26094,19 @@ proto.lnrpc.FundingStateStepResp.serializeBinaryToWriter = function(message, wri -/** - * 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.lnrpc.PendingHTLC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingHTLC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingHTLC.displayName = 'proto.lnrpc.PendingHTLC'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingHTLC.prototype.toObject = function(opt_includeInstance) { @@ -22009,8 +26116,8 @@ proto.lnrpc.PendingHTLC.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingHTLC} msg The msg instance to transform. * @return {!Object} @@ -22018,7 +26125,7 @@ proto.lnrpc.PendingHTLC.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.PendingHTLC.toObject = function(includeInstance, msg) { var f, obj = { - incoming: jspb.Message.getFieldWithDefault(msg, 1, false), + incoming: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), amount: jspb.Message.getFieldWithDefault(msg, 2, "0"), outpoint: jspb.Message.getFieldWithDefault(msg, 3, ""), maturityHeight: jspb.Message.getFieldWithDefault(msg, 4, 0), @@ -22160,18 +26267,19 @@ proto.lnrpc.PendingHTLC.serializeBinaryToWriter = function(message, writer) { /** * optional bool incoming = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PendingHTLC.prototype.getIncoming = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setIncoming = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -22184,9 +26292,12 @@ proto.lnrpc.PendingHTLC.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -22199,9 +26310,12 @@ proto.lnrpc.PendingHTLC.prototype.getOutpoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setOutpoint = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -22214,9 +26328,12 @@ proto.lnrpc.PendingHTLC.prototype.getMaturityHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setMaturityHeight = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -22229,9 +26346,12 @@ proto.lnrpc.PendingHTLC.prototype.getBlocksTilMaturity = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setBlocksTilMaturity = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -22244,41 +26364,29 @@ proto.lnrpc.PendingHTLC.prototype.getStage = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingHTLC} returns this + */ proto.lnrpc.PendingHTLC.prototype.setStage = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.lnrpc.PendingChannelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsRequest.displayName = 'proto.lnrpc.PendingChannelsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsRequest.prototype.toObject = function(opt_includeInstance) { @@ -22288,8 +26396,8 @@ proto.lnrpc.PendingChannelsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsRequest} msg The msg instance to transform. * @return {!Object} @@ -22367,23 +26475,6 @@ proto.lnrpc.PendingChannelsRequest.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.PendingChannelsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PendingChannelsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.displayName = 'proto.lnrpc.PendingChannelsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -22395,13 +26486,15 @@ proto.lnrpc.PendingChannelsResponse.repeatedFields_ = [2,3,4,5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.prototype.toObject = function(opt_includeInstance) { @@ -22411,8 +26504,8 @@ proto.lnrpc.PendingChannelsResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse} msg The msg instance to transform. * @return {!Object} @@ -22561,34 +26654,19 @@ proto.lnrpc.PendingChannelsResponse.serializeBinaryToWriter = function(message, -/** - * 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.lnrpc.PendingChannelsResponse.PendingChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.PendingChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.PendingChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.PendingChannel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.PendingChannel.prototype.toObject = function(opt_includeInstance) { @@ -22598,8 +26676,8 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.PendingChannel} msg The msg instance to transform. * @return {!Object} @@ -22618,7 +26696,7 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject = function(includeIn commitmentType: jspb.Message.getFieldWithDefault(msg, 9, 0), numForwardingPackages: jspb.Message.getFieldWithDefault(msg, 10, "0"), chanStatusFlags: jspb.Message.getFieldWithDefault(msg, 11, ""), - pb_private: jspb.Message.getFieldWithDefault(msg, 12, false) + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 12, false) }; if (includeInstance) { @@ -22828,9 +26906,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteNodePub = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteNodePub = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -22843,9 +26924,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getChannelPoint = f }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setChannelPoint = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -22858,9 +26942,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCapacity = funct }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -22873,9 +26960,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getLocalBalance = f }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setLocalBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -22888,9 +26978,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteBalance = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -22903,9 +26996,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getLocalChanReserve }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setLocalChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -22918,9 +27014,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getRemoteChanReserv }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setRemoteChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -22933,9 +27032,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getInitiator = func }; -/** @param {!proto.lnrpc.Initiator} value */ +/** + * @param {!proto.lnrpc.Initiator} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setInitiator = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); + return jspb.Message.setProto3EnumField(this, 8, value); }; @@ -22948,9 +27050,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCommitmentType = }; -/** @param {!proto.lnrpc.CommitmentType} value */ +/** + * @param {!proto.lnrpc.CommitmentType} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setCommitmentType = function(value) { - jspb.Message.setProto3EnumField(this, 9, value); + return jspb.Message.setProto3EnumField(this, 9, value); }; @@ -22963,9 +27068,12 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getNumForwardingPac }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setNumForwardingPackages = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -22978,58 +27086,47 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getChanStatusFlags }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setChanStatusFlags = function(value) { - jspb.Message.setProto3StringField(this, 11, value); + return jspb.Message.setProto3StringField(this, 11, value); }; /** * optional bool private = 12; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 12, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 12, value); + return jspb.Message.setProto3BooleanField(this, 12, value); }; -/** - * 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.lnrpc.PendingChannelsResponse.PendingOpenChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.PendingOpenChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.PendingOpenChannel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.toObject = function(opt_includeInstance) { @@ -23039,8 +27136,8 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} msg The msg instance to transform. * @return {!Object} @@ -23176,20 +27273,27 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getChannel = fu }; -/** @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value */ +/** + * @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setChannel = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.clearChannel = function() { - this.setChannel(undefined); + return this.setChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.hasChannel = function() { return jspb.Message.getField(this, 1) != null; @@ -23205,9 +27309,12 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getCommitFee = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setCommitFee = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -23220,9 +27327,12 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getCommitWeight }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setCommitWeight = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -23235,41 +27345,29 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getFeePerKw = f }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setFeePerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; -/** - * 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.lnrpc.PendingChannelsResponse.WaitingCloseChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.toObject = function(opt_includeInstance) { @@ -23279,8 +27377,8 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.toObject = fun /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} msg The msg instance to transform. * @return {!Object} @@ -23418,20 +27516,27 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getChannel = f }; -/** @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value */ +/** + * @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setChannel = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.clearChannel = function() { - this.setChannel(undefined); + return this.setChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.hasChannel = function() { return jspb.Message.getField(this, 1) != null; @@ -23447,9 +27552,12 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getLimboBalanc }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setLimboBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -23463,20 +27571,27 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getCommitments }; -/** @param {?proto.lnrpc.PendingChannelsResponse.Commitments|undefined} value */ +/** + * @param {?proto.lnrpc.PendingChannelsResponse.Commitments|undefined} value + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setCommitments = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.clearCommitments = function() { - this.setCommitments(undefined); + return this.setCommitments(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.hasCommitments = function() { return jspb.Message.getField(this, 3) != null; @@ -23492,41 +27607,29 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getClosingTxid }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setClosingTxid = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * 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.lnrpc.PendingChannelsResponse.Commitments = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.Commitments, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.Commitments.displayName = 'proto.lnrpc.PendingChannelsResponse.Commitments'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.Commitments.prototype.toObject = function(opt_includeInstance) { @@ -23536,8 +27639,8 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.Commitments} msg The msg instance to transform. * @return {!Object} @@ -23694,9 +27797,12 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getLocalTxid = functio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setLocalTxid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -23709,9 +27815,12 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemoteTxid = functi }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemoteTxid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -23724,9 +27833,12 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemotePendingTxid = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemotePendingTxid = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -23739,9 +27851,12 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getLocalCommitFeeSat = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setLocalCommitFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -23754,9 +27869,12 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemoteCommitFeeSat }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemoteCommitFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -23769,41 +27887,29 @@ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.getRemotePendingCommit }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.Commitments} returns this + */ proto.lnrpc.PendingChannelsResponse.Commitments.prototype.setRemotePendingCommitFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; -/** - * 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.lnrpc.PendingChannelsResponse.ClosedChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.ClosedChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.ClosedChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.ClosedChannel'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.toObject = function(opt_includeInstance) { @@ -23813,8 +27919,8 @@ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.ClosedChannel} msg The msg instance to transform. * @return {!Object} @@ -23926,20 +28032,27 @@ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.getChannel = functio }; -/** @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value */ +/** + * @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value + * @return {!proto.lnrpc.PendingChannelsResponse.ClosedChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.setChannel = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PendingChannelsResponse.ClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.clearChannel = function() { - this.setChannel(undefined); + return this.setChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.hasChannel = function() { return jspb.Message.getField(this, 1) != null; @@ -23955,30 +28068,16 @@ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.getClosingTxid = fun }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.ClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ClosedChannel.prototype.setClosingTxid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.PendingChannelsResponse.ForceClosedChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.PendingChannelsResponse.ForceClosedChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.displayName = 'proto.lnrpc.PendingChannelsResponse.ForceClosedChannel'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -23990,13 +28089,15 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.repeatedFields_ = [8]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.toObject = function(opt_includeInstance) { @@ -24006,8 +28107,8 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} msg The msg instance to transform. * @return {!Object} @@ -24203,20 +28304,27 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getChannel = fu }; -/** @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value */ +/** + * @param {?proto.lnrpc.PendingChannelsResponse.PendingChannel|undefined} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setChannel = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.clearChannel = function() { - this.setChannel(undefined); + return this.setChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.hasChannel = function() { return jspb.Message.getField(this, 1) != null; @@ -24232,9 +28340,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getClosingTxid }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setClosingTxid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -24247,9 +28358,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getLimboBalance }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setLimboBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -24262,9 +28376,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getMaturityHeig }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setMaturityHeight = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -24277,9 +28394,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getBlocksTilMat }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setBlocksTilMaturity = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -24292,9 +28412,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getRecoveredBal }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setRecoveredBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -24308,9 +28431,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getPendingHtlcs }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this +*/ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setPendingHtlcsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 8, value); + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; @@ -24324,8 +28450,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.addPendingHtlcs }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.clearPendingHtlcsList = function() { - this.setPendingHtlcsList([]); + return this.setPendingHtlcsList([]); }; @@ -24338,9 +28468,12 @@ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.getAnchor = fun }; -/** @param {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState} value */ +/** + * @param {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState} value + * @return {!proto.lnrpc.PendingChannelsResponse.ForceClosedChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.ForceClosedChannel.prototype.setAnchor = function(value) { - jspb.Message.setProto3EnumField(this, 9, value); + return jspb.Message.setProto3EnumField(this, 9, value); }; @@ -24353,9 +28486,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.getTotalLimboBalance = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse} returns this + */ proto.lnrpc.PendingChannelsResponse.prototype.setTotalLimboBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -24369,9 +28505,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.getPendingOpenChannelsList = funct }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PendingChannelsResponse} returns this +*/ proto.lnrpc.PendingChannelsResponse.prototype.setPendingOpenChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -24385,8 +28524,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.addPendingOpenChannels = function( }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PendingChannelsResponse} returns this + */ proto.lnrpc.PendingChannelsResponse.prototype.clearPendingOpenChannelsList = function() { - this.setPendingOpenChannelsList([]); + return this.setPendingOpenChannelsList([]); }; @@ -24400,9 +28543,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.getPendingClosingChannelsList = fu }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PendingChannelsResponse} returns this +*/ proto.lnrpc.PendingChannelsResponse.prototype.setPendingClosingChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -24416,8 +28562,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.addPendingClosingChannels = functi }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PendingChannelsResponse} returns this + */ proto.lnrpc.PendingChannelsResponse.prototype.clearPendingClosingChannelsList = function() { - this.setPendingClosingChannelsList([]); + return this.setPendingClosingChannelsList([]); }; @@ -24431,9 +28581,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.getPendingForceClosingChannelsList }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PendingChannelsResponse} returns this +*/ proto.lnrpc.PendingChannelsResponse.prototype.setPendingForceClosingChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -24447,8 +28600,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.addPendingForceClosingChannels = f }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PendingChannelsResponse} returns this + */ proto.lnrpc.PendingChannelsResponse.prototype.clearPendingForceClosingChannelsList = function() { - this.setPendingForceClosingChannelsList([]); + return this.setPendingForceClosingChannelsList([]); }; @@ -24462,9 +28619,12 @@ proto.lnrpc.PendingChannelsResponse.prototype.getWaitingCloseChannelsList = func }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PendingChannelsResponse} returns this +*/ proto.lnrpc.PendingChannelsResponse.prototype.setWaitingCloseChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -24478,40 +28638,29 @@ proto.lnrpc.PendingChannelsResponse.prototype.addWaitingCloseChannels = function }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PendingChannelsResponse} returns this + */ proto.lnrpc.PendingChannelsResponse.prototype.clearWaitingCloseChannelsList = function() { - this.setWaitingCloseChannelsList([]); + return this.setWaitingCloseChannelsList([]); }; -/** - * 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.lnrpc.ChannelEventSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelEventSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelEventSubscription.displayName = 'proto.lnrpc.ChannelEventSubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelEventSubscription.prototype.toObject = function(opt_includeInstance) { @@ -24521,8 +28670,8 @@ proto.lnrpc.ChannelEventSubscription.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelEventSubscription} msg The msg instance to transform. * @return {!Object} @@ -24600,23 +28749,6 @@ proto.lnrpc.ChannelEventSubscription.serializeBinaryToWriter = function(message, -/** - * 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.lnrpc.ChannelEventUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.ChannelEventUpdate.oneofGroups_); -}; -goog.inherits(proto.lnrpc.ChannelEventUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelEventUpdate.displayName = 'proto.lnrpc.ChannelEventUpdate'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -24651,13 +28783,15 @@ proto.lnrpc.ChannelEventUpdate.prototype.getChannelCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelEventUpdate.prototype.toObject = function(opt_includeInstance) { @@ -24667,8 +28801,8 @@ proto.lnrpc.ChannelEventUpdate.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelEventUpdate} msg The msg instance to transform. * @return {!Object} @@ -24862,20 +28996,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getOpenChannel = function() { }; -/** @param {?proto.lnrpc.Channel|undefined} value */ +/** + * @param {?proto.lnrpc.Channel|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setOpenChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearOpenChannel = function() { - this.setOpenChannel(undefined); + return this.setOpenChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasOpenChannel = function() { return jspb.Message.getField(this, 1) != null; @@ -24892,20 +29033,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getClosedChannel = function() { }; -/** @param {?proto.lnrpc.ChannelCloseSummary|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelCloseSummary|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setClosedChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearClosedChannel = function() { - this.setClosedChannel(undefined); + return this.setClosedChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasClosedChannel = function() { return jspb.Message.getField(this, 2) != null; @@ -24922,20 +29070,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getActiveChannel = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setActiveChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearActiveChannel = function() { - this.setActiveChannel(undefined); + return this.setActiveChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasActiveChannel = function() { return jspb.Message.getField(this, 3) != null; @@ -24952,20 +29107,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getInactiveChannel = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setInactiveChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearInactiveChannel = function() { - this.setInactiveChannel(undefined); + return this.setInactiveChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasInactiveChannel = function() { return jspb.Message.getField(this, 4) != null; @@ -24982,20 +29144,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getPendingOpenChannel = function() { }; -/** @param {?proto.lnrpc.PendingUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.PendingUpdate|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setPendingOpenChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 6, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearPendingOpenChannel = function() { - this.setPendingOpenChannel(undefined); + return this.setPendingOpenChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasPendingOpenChannel = function() { return jspb.Message.getField(this, 6) != null; @@ -25012,20 +29181,27 @@ proto.lnrpc.ChannelEventUpdate.prototype.getFullyResolvedChannel = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this +*/ proto.lnrpc.ChannelEventUpdate.prototype.setFullyResolvedChannel = function(value) { - jspb.Message.setOneofWrapperField(this, 7, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 7, proto.lnrpc.ChannelEventUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.clearFullyResolvedChannel = function() { - this.setFullyResolvedChannel(undefined); + return this.setFullyResolvedChannel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEventUpdate.prototype.hasFullyResolvedChannel = function() { return jspb.Message.getField(this, 7) != null; @@ -25041,41 +29217,29 @@ proto.lnrpc.ChannelEventUpdate.prototype.getType = function() { }; -/** @param {!proto.lnrpc.ChannelEventUpdate.UpdateType} value */ +/** + * @param {!proto.lnrpc.ChannelEventUpdate.UpdateType} value + * @return {!proto.lnrpc.ChannelEventUpdate} returns this + */ proto.lnrpc.ChannelEventUpdate.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); + return jspb.Message.setProto3EnumField(this, 5, value); }; -/** - * 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.lnrpc.WalletAccountBalance = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.WalletAccountBalance, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.WalletAccountBalance.displayName = 'proto.lnrpc.WalletAccountBalance'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.WalletAccountBalance.prototype.toObject = function(opt_includeInstance) { @@ -25085,8 +29249,8 @@ proto.lnrpc.WalletAccountBalance.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.WalletAccountBalance} msg The msg instance to transform. * @return {!Object} @@ -25195,9 +29359,12 @@ proto.lnrpc.WalletAccountBalance.prototype.getConfirmedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletAccountBalance} returns this + */ proto.lnrpc.WalletAccountBalance.prototype.setConfirmedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -25210,41 +29377,29 @@ proto.lnrpc.WalletAccountBalance.prototype.getUnconfirmedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletAccountBalance} returns this + */ proto.lnrpc.WalletAccountBalance.prototype.setUnconfirmedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.lnrpc.WalletBalanceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.WalletBalanceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.WalletBalanceRequest.displayName = 'proto.lnrpc.WalletBalanceRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.WalletBalanceRequest.prototype.toObject = function(opt_includeInstance) { @@ -25254,8 +29409,8 @@ proto.lnrpc.WalletBalanceRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.WalletBalanceRequest} msg The msg instance to transform. * @return {!Object} @@ -25333,34 +29488,19 @@ proto.lnrpc.WalletBalanceRequest.serializeBinaryToWriter = function(message, wri -/** - * 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.lnrpc.WalletBalanceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.WalletBalanceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.WalletBalanceResponse.displayName = 'proto.lnrpc.WalletBalanceResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.WalletBalanceResponse.prototype.toObject = function(opt_includeInstance) { @@ -25370,8 +29510,8 @@ proto.lnrpc.WalletBalanceResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.WalletBalanceResponse} msg The msg instance to transform. * @return {!Object} @@ -25444,7 +29584,7 @@ proto.lnrpc.WalletBalanceResponse.deserializeBinaryFromReader = function(msg, re case 4: var value = msg.getAccountBalanceMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.WalletAccountBalance.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.WalletAccountBalance.deserializeBinaryFromReader, "", new proto.lnrpc.WalletAccountBalance()); }); break; default: @@ -25527,9 +29667,12 @@ proto.lnrpc.WalletBalanceResponse.prototype.getTotalBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.setTotalBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -25542,9 +29685,12 @@ proto.lnrpc.WalletBalanceResponse.prototype.getConfirmedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.setConfirmedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -25557,9 +29703,12 @@ proto.lnrpc.WalletBalanceResponse.prototype.getUnconfirmedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.setUnconfirmedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -25572,9 +29721,12 @@ proto.lnrpc.WalletBalanceResponse.prototype.getLockedBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.setLockedBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -25587,9 +29739,12 @@ proto.lnrpc.WalletBalanceResponse.prototype.getReservedBalanceAnchorChan = funct }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.setReservedBalanceAnchorChan = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -25606,40 +29761,29 @@ proto.lnrpc.WalletBalanceResponse.prototype.getAccountBalanceMap = function(opt_ }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.WalletBalanceResponse} returns this + */ proto.lnrpc.WalletBalanceResponse.prototype.clearAccountBalanceMap = function() { this.getAccountBalanceMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.Amount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Amount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Amount.displayName = 'proto.lnrpc.Amount'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Amount.prototype.toObject = function(opt_includeInstance) { @@ -25649,8 +29793,8 @@ proto.lnrpc.Amount.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Amount} msg The msg instance to transform. * @return {!Object} @@ -25759,9 +29903,12 @@ proto.lnrpc.Amount.prototype.getSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Amount} returns this + */ proto.lnrpc.Amount.prototype.setSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -25774,41 +29921,29 @@ proto.lnrpc.Amount.prototype.getMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Amount} returns this + */ proto.lnrpc.Amount.prototype.setMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.lnrpc.ChannelBalanceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelBalanceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelBalanceRequest.displayName = 'proto.lnrpc.ChannelBalanceRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelBalanceRequest.prototype.toObject = function(opt_includeInstance) { @@ -25818,8 +29953,8 @@ proto.lnrpc.ChannelBalanceRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelBalanceRequest} msg The msg instance to transform. * @return {!Object} @@ -25897,34 +30032,19 @@ proto.lnrpc.ChannelBalanceRequest.serializeBinaryToWriter = function(message, wr -/** - * 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.lnrpc.ChannelBalanceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelBalanceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelBalanceResponse.displayName = 'proto.lnrpc.ChannelBalanceResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelBalanceResponse.prototype.toObject = function(opt_includeInstance) { @@ -25934,8 +30054,8 @@ proto.lnrpc.ChannelBalanceResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelBalanceResponse} msg The msg instance to transform. * @return {!Object} @@ -26128,9 +30248,12 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.setBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -26143,9 +30266,12 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenBalance = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -26159,20 +30285,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getLocalBalance = function() { }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setLocalBalance = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearLocalBalance = function() { - this.setLocalBalance(undefined); + return this.setLocalBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasLocalBalance = function() { return jspb.Message.getField(this, 3) != null; @@ -26189,20 +30322,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getRemoteBalance = function() { }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setRemoteBalance = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearRemoteBalance = function() { - this.setRemoteBalance(undefined); + return this.setRemoteBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasRemoteBalance = function() { return jspb.Message.getField(this, 4) != null; @@ -26219,20 +30359,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getUnsettledLocalBalance = function }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setUnsettledLocalBalance = function(value) { - jspb.Message.setWrapperField(this, 5, value); + return jspb.Message.setWrapperField(this, 5, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearUnsettledLocalBalance = function() { - this.setUnsettledLocalBalance(undefined); + return this.setUnsettledLocalBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasUnsettledLocalBalance = function() { return jspb.Message.getField(this, 5) != null; @@ -26249,20 +30396,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getUnsettledRemoteBalance = functio }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setUnsettledRemoteBalance = function(value) { - jspb.Message.setWrapperField(this, 6, value); + return jspb.Message.setWrapperField(this, 6, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearUnsettledRemoteBalance = function() { - this.setUnsettledRemoteBalance(undefined); + return this.setUnsettledRemoteBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasUnsettledRemoteBalance = function() { return jspb.Message.getField(this, 6) != null; @@ -26279,20 +30433,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenLocalBalance = functi }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenLocalBalance = function(value) { - jspb.Message.setWrapperField(this, 7, value); + return jspb.Message.setWrapperField(this, 7, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearPendingOpenLocalBalance = function() { - this.setPendingOpenLocalBalance(undefined); + return this.setPendingOpenLocalBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenLocalBalance = function() { return jspb.Message.getField(this, 7) != null; @@ -26309,20 +30470,27 @@ proto.lnrpc.ChannelBalanceResponse.prototype.getPendingOpenRemoteBalance = funct }; -/** @param {?proto.lnrpc.Amount|undefined} value */ +/** + * @param {?proto.lnrpc.Amount|undefined} value + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this +*/ proto.lnrpc.ChannelBalanceResponse.prototype.setPendingOpenRemoteBalance = function(value) { - jspb.Message.setWrapperField(this, 8, value); + return jspb.Message.setWrapperField(this, 8, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBalanceResponse} returns this + */ proto.lnrpc.ChannelBalanceResponse.prototype.clearPendingOpenRemoteBalance = function() { - this.setPendingOpenRemoteBalance(undefined); + return this.setPendingOpenRemoteBalance(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenRemoteBalance = function() { return jspb.Message.getField(this, 8) != null; @@ -26330,23 +30498,6 @@ proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenRemoteBalance = funct -/** - * 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.lnrpc.QueryRoutesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.QueryRoutesRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.QueryRoutesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.QueryRoutesRequest.displayName = 'proto.lnrpc.QueryRoutesRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -26358,13 +30509,15 @@ proto.lnrpc.QueryRoutesRequest.repeatedFields_ = [6,7,10,16,17]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.QueryRoutesRequest.prototype.toObject = function(opt_includeInstance) { @@ -26374,8 +30527,8 @@ proto.lnrpc.QueryRoutesRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.QueryRoutesRequest} msg The msg instance to transform. * @return {!Object} @@ -26392,7 +30545,7 @@ proto.lnrpc.QueryRoutesRequest.toObject = function(includeInstance, msg) { ignoredEdgesList: jspb.Message.toObjectList(msg.getIgnoredEdgesList(), proto.lnrpc.EdgeLocator.toObject, includeInstance), sourcePubKey: jspb.Message.getFieldWithDefault(msg, 8, ""), - useMissionControl: jspb.Message.getFieldWithDefault(msg, 9, false), + useMissionControl: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), ignoredPairsList: jspb.Message.toObjectList(msg.getIgnoredPairsList(), proto.lnrpc.NodePair.toObject, includeInstance), cltvLimit: jspb.Message.getFieldWithDefault(msg, 11, 0), @@ -26401,8 +30554,8 @@ proto.lnrpc.QueryRoutesRequest.toObject = function(includeInstance, msg) { lastHopPubkey: msg.getLastHopPubkey_asB64(), routeHintsList: jspb.Message.toObjectList(msg.getRouteHintsList(), proto.lnrpc.RouteHint.toObject, includeInstance), - destFeaturesList: jspb.Message.getRepeatedField(msg, 17), - timePref: +jspb.Message.getFieldWithDefault(msg, 18, 0.0) + destFeaturesList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, + timePref: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0) }; if (includeInstance) { @@ -26489,7 +30642,7 @@ proto.lnrpc.QueryRoutesRequest.deserializeBinaryFromReader = function(msg, reade case 13: var value = msg.getDestCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; case 14: @@ -26506,8 +30659,10 @@ proto.lnrpc.QueryRoutesRequest.deserializeBinaryFromReader = function(msg, reade msg.addRouteHints(value); break; case 17: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setDestFeaturesList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addDestFeatures(values[i]); + } break; case 18: var value = /** @type {number} */ (reader.readDouble()); @@ -26674,9 +30829,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -26689,9 +30847,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -26704,9 +30865,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -26719,9 +30883,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getFinalCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setFinalCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -26735,20 +30902,27 @@ proto.lnrpc.QueryRoutesRequest.prototype.getFeeLimit = function() { }; -/** @param {?proto.lnrpc.FeeLimit|undefined} value */ +/** + * @param {?proto.lnrpc.FeeLimit|undefined} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this +*/ proto.lnrpc.QueryRoutesRequest.prototype.setFeeLimit = function(value) { - jspb.Message.setWrapperField(this, 5, value); + return jspb.Message.setWrapperField(this, 5, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearFeeLimit = function() { - this.setFeeLimit(undefined); + return this.setFeeLimit(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.QueryRoutesRequest.prototype.hasFeeLimit = function() { return jspb.Message.getField(this, 5) != null; @@ -26788,23 +30962,31 @@ proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredNodesList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredNodesList = function(value) { - jspb.Message.setField(this, 6, value || []); + return jspb.Message.setField(this, 6, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.lnrpc.QueryRoutesRequest} returns this */ proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredNodes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 6, value, opt_index); + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredNodesList = function() { - this.setIgnoredNodesList([]); + return this.setIgnoredNodesList([]); }; @@ -26818,9 +31000,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredEdgesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this +*/ proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredEdgesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 7, value); + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; @@ -26834,8 +31019,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredEdges = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredEdgesList = function() { - this.setIgnoredEdgesList([]); + return this.setIgnoredEdgesList([]); }; @@ -26848,26 +31037,30 @@ proto.lnrpc.QueryRoutesRequest.prototype.getSourcePubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setSourcePubKey = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** * optional bool use_mission_control = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.QueryRoutesRequest.prototype.getUseMissionControl = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setUseMissionControl = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -26881,9 +31074,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getIgnoredPairsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this +*/ proto.lnrpc.QueryRoutesRequest.prototype.setIgnoredPairsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 10, value); + return jspb.Message.setRepeatedWrapperField(this, 10, value); }; @@ -26897,8 +31093,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.addIgnoredPairs = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearIgnoredPairsList = function() { - this.setIgnoredPairsList([]); + return this.setIgnoredPairsList([]); }; @@ -26911,9 +31111,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getCltvLimit = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setCltvLimit = function(value) { - jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 11, value); }; @@ -26930,9 +31133,13 @@ proto.lnrpc.QueryRoutesRequest.prototype.getDestCustomRecordsMap = function(opt_ }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearDestCustomRecordsMap = function() { this.getDestCustomRecordsMap().clear(); -}; + return this;}; /** @@ -26944,9 +31151,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getOutgoingChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setOutgoingChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 14, value); + return jspb.Message.setProto3StringIntField(this, 14, value); }; @@ -26983,9 +31193,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getLastHopPubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setLastHopPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 15, value); + return jspb.Message.setProto3BytesField(this, 15, value); }; @@ -26999,9 +31212,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this +*/ proto.lnrpc.QueryRoutesRequest.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 16, value); + return jspb.Message.setRepeatedWrapperField(this, 16, value); }; @@ -27015,8 +31231,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.addRouteHints = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; @@ -27029,23 +31249,31 @@ proto.lnrpc.QueryRoutesRequest.prototype.getDestFeaturesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setDestFeaturesList = function(value) { - jspb.Message.setField(this, 17, value || []); + return jspb.Message.setField(this, 17, value || []); }; /** * @param {!proto.lnrpc.FeatureBit} value * @param {number=} opt_index + * @return {!proto.lnrpc.QueryRoutesRequest} returns this */ proto.lnrpc.QueryRoutesRequest.prototype.addDestFeatures = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 17, value, opt_index); + return jspb.Message.addToRepeatedField(this, 17, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearDestFeaturesList = function() { - this.setDestFeaturesList([]); + return this.setDestFeaturesList([]); }; @@ -27054,45 +31282,33 @@ proto.lnrpc.QueryRoutesRequest.prototype.clearDestFeaturesList = function() { * @return {number} */ proto.lnrpc.QueryRoutesRequest.prototype.getTimePref = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 18, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 18, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.setTimePref = function(value) { - jspb.Message.setProto3FloatField(this, 18, value); + return jspb.Message.setProto3FloatField(this, 18, value); }; -/** - * 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.lnrpc.NodePair = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NodePair, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodePair.displayName = 'proto.lnrpc.NodePair'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodePair.prototype.toObject = function(opt_includeInstance) { @@ -27102,8 +31318,8 @@ proto.lnrpc.NodePair.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodePair} msg The msg instance to transform. * @return {!Object} @@ -27236,9 +31452,12 @@ proto.lnrpc.NodePair.prototype.getFrom_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.NodePair} returns this + */ proto.lnrpc.NodePair.prototype.setFrom = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -27275,41 +31494,29 @@ proto.lnrpc.NodePair.prototype.getTo_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.NodePair} returns this + */ proto.lnrpc.NodePair.prototype.setTo = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.lnrpc.EdgeLocator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.EdgeLocator, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.EdgeLocator.displayName = 'proto.lnrpc.EdgeLocator'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.EdgeLocator.prototype.toObject = function(opt_includeInstance) { @@ -27319,8 +31526,8 @@ proto.lnrpc.EdgeLocator.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.EdgeLocator} msg The msg instance to transform. * @return {!Object} @@ -27329,7 +31536,7 @@ proto.lnrpc.EdgeLocator.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.EdgeLocator.toObject = function(includeInstance, msg) { var f, obj = { channelId: jspb.Message.getFieldWithDefault(msg, 1, "0"), - directionReverse: jspb.Message.getFieldWithDefault(msg, 2, false) + directionReverse: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -27429,47 +31636,34 @@ proto.lnrpc.EdgeLocator.prototype.getChannelId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.EdgeLocator} returns this + */ proto.lnrpc.EdgeLocator.prototype.setChannelId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** * optional bool direction_reverse = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.EdgeLocator.prototype.getDirectionReverse = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.EdgeLocator} returns this + */ proto.lnrpc.EdgeLocator.prototype.setDirectionReverse = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.QueryRoutesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.QueryRoutesResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.QueryRoutesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.QueryRoutesResponse.displayName = 'proto.lnrpc.QueryRoutesResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -27481,13 +31675,15 @@ proto.lnrpc.QueryRoutesResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.QueryRoutesResponse.prototype.toObject = function(opt_includeInstance) { @@ -27497,8 +31693,8 @@ proto.lnrpc.QueryRoutesResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.QueryRoutesResponse} msg The msg instance to transform. * @return {!Object} @@ -27508,7 +31704,7 @@ proto.lnrpc.QueryRoutesResponse.toObject = function(includeInstance, msg) { var f, obj = { routesList: jspb.Message.toObjectList(msg.getRoutesList(), proto.lnrpc.Route.toObject, includeInstance), - successProb: +jspb.Message.getFieldWithDefault(msg, 2, 0.0) + successProb: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) }; if (includeInstance) { @@ -27611,9 +31807,12 @@ proto.lnrpc.QueryRoutesResponse.prototype.getRoutesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesResponse} returns this +*/ proto.lnrpc.QueryRoutesResponse.prototype.setRoutesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -27627,8 +31826,12 @@ proto.lnrpc.QueryRoutesResponse.prototype.addRoutes = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesResponse} returns this + */ proto.lnrpc.QueryRoutesResponse.prototype.clearRoutesList = function() { - this.setRoutesList([]); + return this.setRoutesList([]); }; @@ -27637,45 +31840,33 @@ proto.lnrpc.QueryRoutesResponse.prototype.clearRoutesList = function() { * @return {number} */ proto.lnrpc.QueryRoutesResponse.prototype.getSuccessProb = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.QueryRoutesResponse} returns this + */ proto.lnrpc.QueryRoutesResponse.prototype.setSuccessProb = function(value) { - jspb.Message.setProto3FloatField(this, 2, value); + return jspb.Message.setProto3FloatField(this, 2, value); }; -/** - * 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.lnrpc.Hop = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Hop, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Hop.displayName = 'proto.lnrpc.Hop'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Hop.prototype.toObject = function(opt_includeInstance) { @@ -27685,8 +31876,8 @@ proto.lnrpc.Hop.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Hop} msg The msg instance to transform. * @return {!Object} @@ -27702,7 +31893,7 @@ proto.lnrpc.Hop.toObject = function(includeInstance, msg) { amtToForwardMsat: jspb.Message.getFieldWithDefault(msg, 6, "0"), feeMsat: jspb.Message.getFieldWithDefault(msg, 7, "0"), pubKey: jspb.Message.getFieldWithDefault(msg, 8, ""), - tlvPayload: jspb.Message.getFieldWithDefault(msg, 9, false), + tlvPayload: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), mppRecord: (f = msg.getMppRecord()) && proto.lnrpc.MPPRecord.toObject(includeInstance, f), ampRecord: (f = msg.getAmpRecord()) && proto.lnrpc.AMPRecord.toObject(includeInstance, f), customRecordsMap: (f = msg.getCustomRecordsMap()) ? f.toObject(includeInstance, undefined) : [], @@ -27792,7 +31983,7 @@ proto.lnrpc.Hop.deserializeBinaryFromReader = function(msg, reader) { case 11: var value = msg.getCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; case 13: @@ -27930,9 +32121,12 @@ proto.lnrpc.Hop.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -27945,9 +32139,12 @@ proto.lnrpc.Hop.prototype.getChanCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setChanCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -27960,9 +32157,12 @@ proto.lnrpc.Hop.prototype.getAmtToForward = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setAmtToForward = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -27975,9 +32175,12 @@ proto.lnrpc.Hop.prototype.getFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setFee = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -27990,9 +32193,12 @@ proto.lnrpc.Hop.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -28005,9 +32211,12 @@ proto.lnrpc.Hop.prototype.getAmtToForwardMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setAmtToForwardMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -28020,9 +32229,12 @@ proto.lnrpc.Hop.prototype.getFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -28035,26 +32247,30 @@ proto.lnrpc.Hop.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; /** * optional bool tlv_payload = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Hop.prototype.getTlvPayload = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setTlvPayload = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -28068,20 +32284,27 @@ proto.lnrpc.Hop.prototype.getMppRecord = function() { }; -/** @param {?proto.lnrpc.MPPRecord|undefined} value */ +/** + * @param {?proto.lnrpc.MPPRecord|undefined} value + * @return {!proto.lnrpc.Hop} returns this +*/ proto.lnrpc.Hop.prototype.setMppRecord = function(value) { - jspb.Message.setWrapperField(this, 10, value); + return jspb.Message.setWrapperField(this, 10, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.clearMppRecord = function() { - this.setMppRecord(undefined); + return this.setMppRecord(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Hop.prototype.hasMppRecord = function() { return jspb.Message.getField(this, 10) != null; @@ -28098,20 +32321,27 @@ proto.lnrpc.Hop.prototype.getAmpRecord = function() { }; -/** @param {?proto.lnrpc.AMPRecord|undefined} value */ +/** + * @param {?proto.lnrpc.AMPRecord|undefined} value + * @return {!proto.lnrpc.Hop} returns this +*/ proto.lnrpc.Hop.prototype.setAmpRecord = function(value) { - jspb.Message.setWrapperField(this, 12, value); + return jspb.Message.setWrapperField(this, 12, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.clearAmpRecord = function() { - this.setAmpRecord(undefined); + return this.setAmpRecord(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Hop.prototype.hasAmpRecord = function() { return jspb.Message.getField(this, 12) != null; @@ -28131,9 +32361,13 @@ proto.lnrpc.Hop.prototype.getCustomRecordsMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.clearCustomRecordsMap = function() { this.getCustomRecordsMap().clear(); -}; + return this;}; /** @@ -28169,41 +32403,29 @@ proto.lnrpc.Hop.prototype.getMetadata_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setMetadata = function(value) { - jspb.Message.setProto3BytesField(this, 13, value); + return jspb.Message.setProto3BytesField(this, 13, value); }; -/** - * 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.lnrpc.MPPRecord = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.MPPRecord, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MPPRecord.displayName = 'proto.lnrpc.MPPRecord'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MPPRecord.prototype.toObject = function(opt_includeInstance) { @@ -28213,8 +32435,8 @@ proto.lnrpc.MPPRecord.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MPPRecord} msg The msg instance to transform. * @return {!Object} @@ -28347,9 +32569,12 @@ proto.lnrpc.MPPRecord.prototype.getPaymentAddr_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.MPPRecord} returns this + */ proto.lnrpc.MPPRecord.prototype.setPaymentAddr = function(value) { - jspb.Message.setProto3BytesField(this, 11, value); + return jspb.Message.setProto3BytesField(this, 11, value); }; @@ -28362,41 +32587,29 @@ proto.lnrpc.MPPRecord.prototype.getTotalAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.MPPRecord} returns this + */ proto.lnrpc.MPPRecord.prototype.setTotalAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; -/** - * 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.lnrpc.AMPRecord = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AMPRecord, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AMPRecord.displayName = 'proto.lnrpc.AMPRecord'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AMPRecord.prototype.toObject = function(opt_includeInstance) { @@ -28406,8 +32619,8 @@ proto.lnrpc.AMPRecord.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AMPRecord} msg The msg instance to transform. * @return {!Object} @@ -28552,9 +32765,12 @@ proto.lnrpc.AMPRecord.prototype.getRootShare_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMPRecord} returns this + */ proto.lnrpc.AMPRecord.prototype.setRootShare = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -28591,9 +32807,12 @@ proto.lnrpc.AMPRecord.prototype.getSetId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMPRecord} returns this + */ proto.lnrpc.AMPRecord.prototype.setSetId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -28606,30 +32825,16 @@ proto.lnrpc.AMPRecord.prototype.getChildIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.AMPRecord} returns this + */ proto.lnrpc.AMPRecord.prototype.setChildIndex = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * 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.lnrpc.Route = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Route.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Route, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Route.displayName = 'proto.lnrpc.Route'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -28641,13 +32846,15 @@ proto.lnrpc.Route.repeatedFields_ = [4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Route.prototype.toObject = function(opt_includeInstance) { @@ -28657,8 +32864,8 @@ proto.lnrpc.Route.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Route} msg The msg instance to transform. * @return {!Object} @@ -28818,9 +33025,12 @@ proto.lnrpc.Route.prototype.getTotalTimeLock = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.setTotalTimeLock = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -28833,9 +33043,12 @@ proto.lnrpc.Route.prototype.getTotalFees = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.setTotalFees = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -28848,9 +33061,12 @@ proto.lnrpc.Route.prototype.getTotalAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.setTotalAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -28864,9 +33080,12 @@ proto.lnrpc.Route.prototype.getHopsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Route} returns this +*/ proto.lnrpc.Route.prototype.setHopsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -28880,8 +33099,12 @@ proto.lnrpc.Route.prototype.addHops = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.clearHopsList = function() { - this.setHopsList([]); + return this.setHopsList([]); }; @@ -28894,9 +33117,12 @@ proto.lnrpc.Route.prototype.getTotalFeesMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.setTotalFeesMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -28909,41 +33135,29 @@ proto.lnrpc.Route.prototype.getTotalAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Route} returns this + */ proto.lnrpc.Route.prototype.setTotalAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; -/** - * 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.lnrpc.NodeInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NodeInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeInfoRequest.displayName = 'proto.lnrpc.NodeInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -28953,8 +33167,8 @@ proto.lnrpc.NodeInfoRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -28963,7 +33177,7 @@ proto.lnrpc.NodeInfoRequest.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.NodeInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { pubKey: jspb.Message.getFieldWithDefault(msg, 1, ""), - includeChannels: jspb.Message.getFieldWithDefault(msg, 2, false) + includeChannels: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -29063,47 +33277,34 @@ proto.lnrpc.NodeInfoRequest.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeInfoRequest} returns this + */ proto.lnrpc.NodeInfoRequest.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool include_channels = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.NodeInfoRequest.prototype.getIncludeChannels = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.NodeInfoRequest} returns this + */ proto.lnrpc.NodeInfoRequest.prototype.setIncludeChannels = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.NodeInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeInfo.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.NodeInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeInfo.displayName = 'proto.lnrpc.NodeInfo'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -29115,13 +33316,15 @@ proto.lnrpc.NodeInfo.repeatedFields_ = [4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeInfo.prototype.toObject = function(opt_includeInstance) { @@ -29131,8 +33334,8 @@ proto.lnrpc.NodeInfo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeInfo} msg The msg instance to transform. * @return {!Object} @@ -29271,20 +33474,27 @@ proto.lnrpc.NodeInfo.prototype.getNode = function() { }; -/** @param {?proto.lnrpc.LightningNode|undefined} value */ +/** + * @param {?proto.lnrpc.LightningNode|undefined} value + * @return {!proto.lnrpc.NodeInfo} returns this +*/ proto.lnrpc.NodeInfo.prototype.setNode = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.NodeInfo} returns this + */ proto.lnrpc.NodeInfo.prototype.clearNode = function() { - this.setNode(undefined); + return this.setNode(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.NodeInfo.prototype.hasNode = function() { return jspb.Message.getField(this, 1) != null; @@ -29300,9 +33510,12 @@ proto.lnrpc.NodeInfo.prototype.getNumChannels = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NodeInfo} returns this + */ proto.lnrpc.NodeInfo.prototype.setNumChannels = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -29315,9 +33528,12 @@ proto.lnrpc.NodeInfo.prototype.getTotalCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeInfo} returns this + */ proto.lnrpc.NodeInfo.prototype.setTotalCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -29331,9 +33547,12 @@ proto.lnrpc.NodeInfo.prototype.getChannelsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.NodeInfo} returns this +*/ proto.lnrpc.NodeInfo.prototype.setChannelsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -29347,29 +33566,16 @@ proto.lnrpc.NodeInfo.prototype.addChannels = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.NodeInfo} returns this + */ proto.lnrpc.NodeInfo.prototype.clearChannelsList = function() { - this.setChannelsList([]); + return this.setChannelsList([]); }; -/** - * 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.lnrpc.LightningNode = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.LightningNode.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.LightningNode, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.LightningNode.displayName = 'proto.lnrpc.LightningNode'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -29381,13 +33587,15 @@ proto.lnrpc.LightningNode.repeatedFields_ = [4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.LightningNode.prototype.toObject = function(opt_includeInstance) { @@ -29397,8 +33605,8 @@ proto.lnrpc.LightningNode.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.LightningNode} msg The msg instance to transform. * @return {!Object} @@ -29474,13 +33682,13 @@ proto.lnrpc.LightningNode.deserializeBinaryFromReader = function(msg, reader) { case 6: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; case 7: var value = msg.getCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; default: @@ -29568,9 +33776,12 @@ proto.lnrpc.LightningNode.prototype.getLastUpdate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.setLastUpdate = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -29583,9 +33794,12 @@ proto.lnrpc.LightningNode.prototype.getPubKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.setPubKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -29598,9 +33812,12 @@ proto.lnrpc.LightningNode.prototype.getAlias = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.setAlias = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -29614,9 +33831,12 @@ proto.lnrpc.LightningNode.prototype.getAddressesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.LightningNode} returns this +*/ proto.lnrpc.LightningNode.prototype.setAddressesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; @@ -29630,8 +33850,12 @@ proto.lnrpc.LightningNode.prototype.addAddresses = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.clearAddressesList = function() { - this.setAddressesList([]); + return this.setAddressesList([]); }; @@ -29644,9 +33868,12 @@ proto.lnrpc.LightningNode.prototype.getColor = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.setColor = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -29663,9 +33890,13 @@ proto.lnrpc.LightningNode.prototype.getFeaturesMap = function(opt_noLazyCreate) }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; /** @@ -29681,40 +33912,29 @@ proto.lnrpc.LightningNode.prototype.getCustomRecordsMap = function(opt_noLazyCre }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.LightningNode} returns this + */ proto.lnrpc.LightningNode.prototype.clearCustomRecordsMap = function() { this.getCustomRecordsMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.NodeAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NodeAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeAddress.displayName = 'proto.lnrpc.NodeAddress'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeAddress.prototype.toObject = function(opt_includeInstance) { @@ -29724,8 +33944,8 @@ proto.lnrpc.NodeAddress.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeAddress} msg The msg instance to transform. * @return {!Object} @@ -29834,9 +34054,12 @@ proto.lnrpc.NodeAddress.prototype.getNetwork = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeAddress} returns this + */ proto.lnrpc.NodeAddress.prototype.setNetwork = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -29849,41 +34072,29 @@ proto.lnrpc.NodeAddress.prototype.getAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeAddress} returns this + */ proto.lnrpc.NodeAddress.prototype.setAddr = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.RoutingPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.RoutingPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RoutingPolicy.displayName = 'proto.lnrpc.RoutingPolicy'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RoutingPolicy.prototype.toObject = function(opt_includeInstance) { @@ -29893,8 +34104,8 @@ proto.lnrpc.RoutingPolicy.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RoutingPolicy} msg The msg instance to transform. * @return {!Object} @@ -29906,7 +34117,7 @@ proto.lnrpc.RoutingPolicy.toObject = function(includeInstance, msg) { minHtlc: jspb.Message.getFieldWithDefault(msg, 2, "0"), feeBaseMsat: jspb.Message.getFieldWithDefault(msg, 3, "0"), feeRateMilliMsat: jspb.Message.getFieldWithDefault(msg, 4, "0"), - disabled: jspb.Message.getFieldWithDefault(msg, 5, false), + disabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), maxHtlcMsat: jspb.Message.getFieldWithDefault(msg, 6, "0"), lastUpdate: jspb.Message.getFieldWithDefault(msg, 7, 0), customRecordsMap: (f = msg.getCustomRecordsMap()) ? f.toObject(includeInstance, undefined) : [] @@ -29977,7 +34188,7 @@ proto.lnrpc.RoutingPolicy.deserializeBinaryFromReader = function(msg, reader) { case 8: var value = msg.getCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; default: @@ -30074,9 +34285,12 @@ proto.lnrpc.RoutingPolicy.prototype.getTimeLockDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setTimeLockDelta = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -30089,9 +34303,12 @@ proto.lnrpc.RoutingPolicy.prototype.getMinHtlc = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setMinHtlc = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -30104,9 +34321,12 @@ proto.lnrpc.RoutingPolicy.prototype.getFeeBaseMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setFeeBaseMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -30119,26 +34339,30 @@ proto.lnrpc.RoutingPolicy.prototype.getFeeRateMilliMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setFeeRateMilliMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; /** * optional bool disabled = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.RoutingPolicy.prototype.getDisabled = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setDisabled = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -30151,9 +34375,12 @@ proto.lnrpc.RoutingPolicy.prototype.getMaxHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setMaxHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -30166,9 +34393,12 @@ proto.lnrpc.RoutingPolicy.prototype.getLastUpdate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setLastUpdate = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -30185,40 +34415,29 @@ proto.lnrpc.RoutingPolicy.prototype.getCustomRecordsMap = function(opt_noLazyCre }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.clearCustomRecordsMap = function() { this.getCustomRecordsMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.ChannelEdge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelEdge, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelEdge.displayName = 'proto.lnrpc.ChannelEdge'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelEdge.prototype.toObject = function(opt_includeInstance) { @@ -30228,8 +34447,8 @@ proto.lnrpc.ChannelEdge.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelEdge} msg The msg instance to transform. * @return {!Object} @@ -30319,7 +34538,7 @@ proto.lnrpc.ChannelEdge.deserializeBinaryFromReader = function(msg, reader) { case 9: var value = msg.getCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; default: @@ -30425,9 +34644,12 @@ proto.lnrpc.ChannelEdge.prototype.getChannelId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setChannelId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -30440,9 +34662,12 @@ proto.lnrpc.ChannelEdge.prototype.getChanPoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setChanPoint = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -30455,9 +34680,12 @@ proto.lnrpc.ChannelEdge.prototype.getLastUpdate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setLastUpdate = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -30470,9 +34698,12 @@ proto.lnrpc.ChannelEdge.prototype.getNode1Pub = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setNode1Pub = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -30485,9 +34716,12 @@ proto.lnrpc.ChannelEdge.prototype.getNode2Pub = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setNode2Pub = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -30500,9 +34734,12 @@ proto.lnrpc.ChannelEdge.prototype.getCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -30516,20 +34753,27 @@ proto.lnrpc.ChannelEdge.prototype.getNode1Policy = function() { }; -/** @param {?proto.lnrpc.RoutingPolicy|undefined} value */ +/** + * @param {?proto.lnrpc.RoutingPolicy|undefined} value + * @return {!proto.lnrpc.ChannelEdge} returns this +*/ proto.lnrpc.ChannelEdge.prototype.setNode1Policy = function(value) { - jspb.Message.setWrapperField(this, 7, value); + return jspb.Message.setWrapperField(this, 7, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.clearNode1Policy = function() { - this.setNode1Policy(undefined); + return this.setNode1Policy(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEdge.prototype.hasNode1Policy = function() { return jspb.Message.getField(this, 7) != null; @@ -30546,20 +34790,27 @@ proto.lnrpc.ChannelEdge.prototype.getNode2Policy = function() { }; -/** @param {?proto.lnrpc.RoutingPolicy|undefined} value */ +/** + * @param {?proto.lnrpc.RoutingPolicy|undefined} value + * @return {!proto.lnrpc.ChannelEdge} returns this +*/ proto.lnrpc.ChannelEdge.prototype.setNode2Policy = function(value) { - jspb.Message.setWrapperField(this, 8, value); + return jspb.Message.setWrapperField(this, 8, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.clearNode2Policy = function() { - this.setNode2Policy(undefined); + return this.setNode2Policy(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEdge.prototype.hasNode2Policy = function() { return jspb.Message.getField(this, 8) != null; @@ -30579,40 +34830,29 @@ proto.lnrpc.ChannelEdge.prototype.getCustomRecordsMap = function(opt_noLazyCreat }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.ChannelEdge} returns this + */ proto.lnrpc.ChannelEdge.prototype.clearCustomRecordsMap = function() { this.getCustomRecordsMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.ChannelGraphRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelGraphRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelGraphRequest.displayName = 'proto.lnrpc.ChannelGraphRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelGraphRequest.prototype.toObject = function(opt_includeInstance) { @@ -30622,8 +34862,8 @@ proto.lnrpc.ChannelGraphRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelGraphRequest} msg The msg instance to transform. * @return {!Object} @@ -30631,7 +34871,7 @@ proto.lnrpc.ChannelGraphRequest.prototype.toObject = function(opt_includeInstanc */ proto.lnrpc.ChannelGraphRequest.toObject = function(includeInstance, msg) { var f, obj = { - includeUnannounced: jspb.Message.getFieldWithDefault(msg, 1, false) + includeUnannounced: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -30713,39 +34953,23 @@ proto.lnrpc.ChannelGraphRequest.serializeBinaryToWriter = function(message, writ /** * optional bool include_unannounced = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ChannelGraphRequest.prototype.getIncludeUnannounced = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ChannelGraphRequest} returns this + */ proto.lnrpc.ChannelGraphRequest.prototype.setIncludeUnannounced = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * 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.lnrpc.ChannelGraph = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelGraph.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ChannelGraph, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelGraph.displayName = 'proto.lnrpc.ChannelGraph'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -30757,13 +34981,15 @@ proto.lnrpc.ChannelGraph.repeatedFields_ = [1,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelGraph.prototype.toObject = function(opt_includeInstance) { @@ -30773,8 +34999,8 @@ proto.lnrpc.ChannelGraph.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelGraph} msg The msg instance to transform. * @return {!Object} @@ -30890,9 +35116,12 @@ proto.lnrpc.ChannelGraph.prototype.getNodesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ChannelGraph} returns this +*/ proto.lnrpc.ChannelGraph.prototype.setNodesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -30906,8 +35135,12 @@ proto.lnrpc.ChannelGraph.prototype.addNodes = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ChannelGraph} returns this + */ proto.lnrpc.ChannelGraph.prototype.clearNodesList = function() { - this.setNodesList([]); + return this.setNodesList([]); }; @@ -30921,9 +35154,12 @@ proto.lnrpc.ChannelGraph.prototype.getEdgesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ChannelGraph} returns this +*/ proto.lnrpc.ChannelGraph.prototype.setEdgesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -30937,29 +35173,16 @@ proto.lnrpc.ChannelGraph.prototype.addEdges = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ChannelGraph} returns this + */ proto.lnrpc.ChannelGraph.prototype.clearEdgesList = function() { - this.setEdgesList([]); + return this.setEdgesList([]); }; -/** - * 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.lnrpc.NodeMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeMetricsRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.NodeMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeMetricsRequest.displayName = 'proto.lnrpc.NodeMetricsRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -30971,13 +35194,15 @@ proto.lnrpc.NodeMetricsRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeMetricsRequest.prototype.toObject = function(opt_includeInstance) { @@ -30987,8 +35212,8 @@ proto.lnrpc.NodeMetricsRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeMetricsRequest} msg The msg instance to transform. * @return {!Object} @@ -30996,7 +35221,7 @@ proto.lnrpc.NodeMetricsRequest.prototype.toObject = function(opt_includeInstance */ proto.lnrpc.NodeMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { - typesList: jspb.Message.getRepeatedField(msg, 1) + typesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -31034,8 +35259,10 @@ proto.lnrpc.NodeMetricsRequest.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setTypesList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addTypes(values[i]); + } break; default: reader.skipField(); @@ -31085,55 +35312,48 @@ proto.lnrpc.NodeMetricsRequest.prototype.getTypesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.NodeMetricsRequest} returns this + */ proto.lnrpc.NodeMetricsRequest.prototype.setTypesList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** * @param {!proto.lnrpc.NodeMetricType} value * @param {number=} opt_index + * @return {!proto.lnrpc.NodeMetricsRequest} returns this */ proto.lnrpc.NodeMetricsRequest.prototype.addTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.NodeMetricsRequest} returns this + */ proto.lnrpc.NodeMetricsRequest.prototype.clearTypesList = function() { - this.setTypesList([]); + return this.setTypesList([]); }; -/** - * 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.lnrpc.NodeMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NodeMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeMetricsResponse.displayName = 'proto.lnrpc.NodeMetricsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeMetricsResponse.prototype.toObject = function(opt_includeInstance) { @@ -31143,8 +35363,8 @@ proto.lnrpc.NodeMetricsResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeMetricsResponse} msg The msg instance to transform. * @return {!Object} @@ -31192,7 +35412,7 @@ proto.lnrpc.NodeMetricsResponse.deserializeBinaryFromReader = function(msg, read case 1: var value = msg.getBetweennessCentralityMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.FloatMetric.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.FloatMetric.deserializeBinaryFromReader, "", new proto.lnrpc.FloatMetric()); }); break; default: @@ -31244,40 +35464,29 @@ proto.lnrpc.NodeMetricsResponse.prototype.getBetweennessCentralityMap = function }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.NodeMetricsResponse} returns this + */ proto.lnrpc.NodeMetricsResponse.prototype.clearBetweennessCentralityMap = function() { this.getBetweennessCentralityMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.FloatMetric = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FloatMetric, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FloatMetric.displayName = 'proto.lnrpc.FloatMetric'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FloatMetric.prototype.toObject = function(opt_includeInstance) { @@ -31287,8 +35496,8 @@ proto.lnrpc.FloatMetric.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FloatMetric} msg The msg instance to transform. * @return {!Object} @@ -31296,8 +35505,8 @@ proto.lnrpc.FloatMetric.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.FloatMetric.toObject = function(includeInstance, msg) { var f, obj = { - value: +jspb.Message.getFieldWithDefault(msg, 1, 0.0), - normalizedValue: +jspb.Message.getFieldWithDefault(msg, 2, 0.0) + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + normalizedValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) }; if (includeInstance) { @@ -31393,13 +35602,16 @@ proto.lnrpc.FloatMetric.serializeBinaryToWriter = function(message, writer) { * @return {number} */ proto.lnrpc.FloatMetric.prototype.getValue = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.FloatMetric} returns this + */ proto.lnrpc.FloatMetric.prototype.setValue = function(value) { - jspb.Message.setProto3FloatField(this, 1, value); + return jspb.Message.setProto3FloatField(this, 1, value); }; @@ -31408,45 +35620,33 @@ proto.lnrpc.FloatMetric.prototype.setValue = function(value) { * @return {number} */ proto.lnrpc.FloatMetric.prototype.getNormalizedValue = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.FloatMetric} returns this + */ proto.lnrpc.FloatMetric.prototype.setNormalizedValue = function(value) { - jspb.Message.setProto3FloatField(this, 2, value); + return jspb.Message.setProto3FloatField(this, 2, value); }; -/** - * 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.lnrpc.ChanInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChanInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChanInfoRequest.displayName = 'proto.lnrpc.ChanInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChanInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -31456,8 +35656,8 @@ proto.lnrpc.ChanInfoRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChanInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -31554,41 +35754,29 @@ proto.lnrpc.ChanInfoRequest.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChanInfoRequest} returns this + */ proto.lnrpc.ChanInfoRequest.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; -/** - * 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.lnrpc.NetworkInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NetworkInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NetworkInfoRequest.displayName = 'proto.lnrpc.NetworkInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NetworkInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -31598,8 +35786,8 @@ proto.lnrpc.NetworkInfoRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NetworkInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -31677,34 +35865,19 @@ proto.lnrpc.NetworkInfoRequest.serializeBinaryToWriter = function(message, write -/** - * 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.lnrpc.NetworkInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.NetworkInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NetworkInfo.displayName = 'proto.lnrpc.NetworkInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NetworkInfo.prototype.toObject = function(opt_includeInstance) { @@ -31714,8 +35887,8 @@ proto.lnrpc.NetworkInfo.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NetworkInfo} msg The msg instance to transform. * @return {!Object} @@ -31724,12 +35897,12 @@ proto.lnrpc.NetworkInfo.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.NetworkInfo.toObject = function(includeInstance, msg) { var f, obj = { graphDiameter: jspb.Message.getFieldWithDefault(msg, 1, 0), - avgOutDegree: +jspb.Message.getFieldWithDefault(msg, 2, 0.0), + avgOutDegree: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), maxOutDegree: jspb.Message.getFieldWithDefault(msg, 3, 0), numNodes: jspb.Message.getFieldWithDefault(msg, 4, 0), numChannels: jspb.Message.getFieldWithDefault(msg, 5, 0), totalNetworkCapacity: jspb.Message.getFieldWithDefault(msg, 6, "0"), - avgChannelSize: +jspb.Message.getFieldWithDefault(msg, 7, 0.0), + avgChannelSize: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), minChannelSize: jspb.Message.getFieldWithDefault(msg, 8, "0"), maxChannelSize: jspb.Message.getFieldWithDefault(msg, 9, "0"), medianChannelSizeSat: jspb.Message.getFieldWithDefault(msg, 10, "0"), @@ -31932,9 +36105,12 @@ proto.lnrpc.NetworkInfo.prototype.getGraphDiameter = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setGraphDiameter = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -31943,13 +36119,16 @@ proto.lnrpc.NetworkInfo.prototype.setGraphDiameter = function(value) { * @return {number} */ proto.lnrpc.NetworkInfo.prototype.getAvgOutDegree = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setAvgOutDegree = function(value) { - jspb.Message.setProto3FloatField(this, 2, value); + return jspb.Message.setProto3FloatField(this, 2, value); }; @@ -31962,9 +36141,12 @@ proto.lnrpc.NetworkInfo.prototype.getMaxOutDegree = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setMaxOutDegree = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -31977,9 +36159,12 @@ proto.lnrpc.NetworkInfo.prototype.getNumNodes = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setNumNodes = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -31992,9 +36177,12 @@ proto.lnrpc.NetworkInfo.prototype.getNumChannels = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setNumChannels = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -32007,9 +36195,12 @@ proto.lnrpc.NetworkInfo.prototype.getTotalNetworkCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setTotalNetworkCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -32018,13 +36209,16 @@ proto.lnrpc.NetworkInfo.prototype.setTotalNetworkCapacity = function(value) { * @return {number} */ proto.lnrpc.NetworkInfo.prototype.getAvgChannelSize = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 7, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setAvgChannelSize = function(value) { - jspb.Message.setProto3FloatField(this, 7, value); + return jspb.Message.setProto3FloatField(this, 7, value); }; @@ -32037,9 +36231,12 @@ proto.lnrpc.NetworkInfo.prototype.getMinChannelSize = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setMinChannelSize = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -32052,9 +36249,12 @@ proto.lnrpc.NetworkInfo.prototype.getMaxChannelSize = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setMaxChannelSize = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -32067,9 +36267,12 @@ proto.lnrpc.NetworkInfo.prototype.getMedianChannelSizeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setMedianChannelSizeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -32082,41 +36285,29 @@ proto.lnrpc.NetworkInfo.prototype.getNumZombieChans = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NetworkInfo} returns this + */ proto.lnrpc.NetworkInfo.prototype.setNumZombieChans = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; -/** - * 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.lnrpc.StopRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.StopRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.StopRequest.displayName = 'proto.lnrpc.StopRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.StopRequest.prototype.toObject = function(opt_includeInstance) { @@ -32126,8 +36317,8 @@ proto.lnrpc.StopRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.StopRequest} msg The msg instance to transform. * @return {!Object} @@ -32205,34 +36396,19 @@ proto.lnrpc.StopRequest.serializeBinaryToWriter = function(message, writer) { -/** - * 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.lnrpc.StopResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.StopResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.StopResponse.displayName = 'proto.lnrpc.StopResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.StopResponse.prototype.toObject = function(opt_includeInstance) { @@ -32242,8 +36418,8 @@ proto.lnrpc.StopResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.StopResponse} msg The msg instance to transform. * @return {!Object} @@ -32321,34 +36497,19 @@ proto.lnrpc.StopResponse.serializeBinaryToWriter = function(message, writer) { -/** - * 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.lnrpc.GraphTopologySubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GraphTopologySubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GraphTopologySubscription.displayName = 'proto.lnrpc.GraphTopologySubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GraphTopologySubscription.prototype.toObject = function(opt_includeInstance) { @@ -32358,8 +36519,8 @@ proto.lnrpc.GraphTopologySubscription.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GraphTopologySubscription} msg The msg instance to transform. * @return {!Object} @@ -32437,23 +36598,6 @@ proto.lnrpc.GraphTopologySubscription.serializeBinaryToWriter = function(message -/** - * 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.lnrpc.GraphTopologyUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GraphTopologyUpdate.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.GraphTopologyUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GraphTopologyUpdate.displayName = 'proto.lnrpc.GraphTopologyUpdate'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -32465,13 +36609,15 @@ proto.lnrpc.GraphTopologyUpdate.repeatedFields_ = [1,2,3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.GraphTopologyUpdate.prototype.toObject = function(opt_includeInstance) { @@ -32481,8 +36627,8 @@ proto.lnrpc.GraphTopologyUpdate.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.GraphTopologyUpdate} msg The msg instance to transform. * @return {!Object} @@ -32613,9 +36759,12 @@ proto.lnrpc.GraphTopologyUpdate.prototype.getNodeUpdatesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this +*/ proto.lnrpc.GraphTopologyUpdate.prototype.setNodeUpdatesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -32629,8 +36778,12 @@ proto.lnrpc.GraphTopologyUpdate.prototype.addNodeUpdates = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this + */ proto.lnrpc.GraphTopologyUpdate.prototype.clearNodeUpdatesList = function() { - this.setNodeUpdatesList([]); + return this.setNodeUpdatesList([]); }; @@ -32644,9 +36797,12 @@ proto.lnrpc.GraphTopologyUpdate.prototype.getChannelUpdatesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this +*/ proto.lnrpc.GraphTopologyUpdate.prototype.setChannelUpdatesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -32660,8 +36816,12 @@ proto.lnrpc.GraphTopologyUpdate.prototype.addChannelUpdates = function(opt_value }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this + */ proto.lnrpc.GraphTopologyUpdate.prototype.clearChannelUpdatesList = function() { - this.setChannelUpdatesList([]); + return this.setChannelUpdatesList([]); }; @@ -32675,9 +36835,12 @@ proto.lnrpc.GraphTopologyUpdate.prototype.getClosedChansList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this +*/ proto.lnrpc.GraphTopologyUpdate.prototype.setClosedChansList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -32691,29 +36854,16 @@ proto.lnrpc.GraphTopologyUpdate.prototype.addClosedChans = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.GraphTopologyUpdate} returns this + */ proto.lnrpc.GraphTopologyUpdate.prototype.clearClosedChansList = function() { - this.setClosedChansList([]); + return this.setClosedChansList([]); }; -/** - * 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.lnrpc.NodeUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.NodeUpdate.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.NodeUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.NodeUpdate.displayName = 'proto.lnrpc.NodeUpdate'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -32725,13 +36875,15 @@ proto.lnrpc.NodeUpdate.repeatedFields_ = [1,7]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.NodeUpdate.prototype.toObject = function(opt_includeInstance) { @@ -32741,8 +36893,8 @@ proto.lnrpc.NodeUpdate.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.NodeUpdate} msg The msg instance to transform. * @return {!Object} @@ -32750,7 +36902,7 @@ proto.lnrpc.NodeUpdate.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.NodeUpdate.toObject = function(includeInstance, msg) { var f, obj = { - addressesList: jspb.Message.getRepeatedField(msg, 1), + addressesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, identityKey: jspb.Message.getFieldWithDefault(msg, 2, ""), globalFeatures: msg.getGlobalFeatures_asB64(), alias: jspb.Message.getFieldWithDefault(msg, 4, ""), @@ -32822,7 +36974,7 @@ proto.lnrpc.NodeUpdate.deserializeBinaryFromReader = function(msg, reader) { case 6: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; default: @@ -32913,23 +37065,31 @@ proto.lnrpc.NodeUpdate.prototype.getAddressesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.setAddressesList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.NodeUpdate} returns this */ proto.lnrpc.NodeUpdate.prototype.addAddresses = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.clearAddressesList = function() { - this.setAddressesList([]); + return this.setAddressesList([]); }; @@ -32942,9 +37102,12 @@ proto.lnrpc.NodeUpdate.prototype.getIdentityKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.setIdentityKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -32981,9 +37144,12 @@ proto.lnrpc.NodeUpdate.prototype.getGlobalFeatures_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.setGlobalFeatures = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -32996,9 +37162,12 @@ proto.lnrpc.NodeUpdate.prototype.getAlias = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.setAlias = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -33011,9 +37180,12 @@ proto.lnrpc.NodeUpdate.prototype.getColor = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.setColor = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -33027,9 +37199,12 @@ proto.lnrpc.NodeUpdate.prototype.getNodeAddressesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.NodeUpdate} returns this +*/ proto.lnrpc.NodeUpdate.prototype.setNodeAddressesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 7, value); + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; @@ -33043,8 +37218,12 @@ proto.lnrpc.NodeUpdate.prototype.addNodeAddresses = function(opt_value, opt_inde }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.clearNodeAddressesList = function() { - this.setNodeAddressesList([]); + return this.setNodeAddressesList([]); }; @@ -33061,40 +37240,29 @@ proto.lnrpc.NodeUpdate.prototype.getFeaturesMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.NodeUpdate} returns this + */ proto.lnrpc.NodeUpdate.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.ChannelEdgeUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelEdgeUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelEdgeUpdate.displayName = 'proto.lnrpc.ChannelEdgeUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelEdgeUpdate.prototype.toObject = function(opt_includeInstance) { @@ -33104,8 +37272,8 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelEdgeUpdate} msg The msg instance to transform. * @return {!Object} @@ -33266,9 +37434,12 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -33282,20 +37453,27 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this +*/ proto.lnrpc.ChannelEdgeUpdate.prototype.setChanPoint = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEdgeUpdate.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 2) != null; @@ -33311,9 +37489,12 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -33327,20 +37508,27 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getRoutingPolicy = function() { }; -/** @param {?proto.lnrpc.RoutingPolicy|undefined} value */ +/** + * @param {?proto.lnrpc.RoutingPolicy|undefined} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this +*/ proto.lnrpc.ChannelEdgeUpdate.prototype.setRoutingPolicy = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.clearRoutingPolicy = function() { - this.setRoutingPolicy(undefined); + return this.setRoutingPolicy(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelEdgeUpdate.prototype.hasRoutingPolicy = function() { return jspb.Message.getField(this, 4) != null; @@ -33356,9 +37544,12 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getAdvertisingNode = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.setAdvertisingNode = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -33371,41 +37562,29 @@ proto.lnrpc.ChannelEdgeUpdate.prototype.getConnectingNode = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelEdgeUpdate} returns this + */ proto.lnrpc.ChannelEdgeUpdate.prototype.setConnectingNode = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * 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.lnrpc.ClosedChannelUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ClosedChannelUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ClosedChannelUpdate.displayName = 'proto.lnrpc.ClosedChannelUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ClosedChannelUpdate.prototype.toObject = function(opt_includeInstance) { @@ -33415,8 +37594,8 @@ proto.lnrpc.ClosedChannelUpdate.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ClosedChannelUpdate} msg The msg instance to transform. * @return {!Object} @@ -33551,9 +37730,12 @@ proto.lnrpc.ClosedChannelUpdate.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ClosedChannelUpdate} returns this + */ proto.lnrpc.ClosedChannelUpdate.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -33566,9 +37748,12 @@ proto.lnrpc.ClosedChannelUpdate.prototype.getCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ClosedChannelUpdate} returns this + */ proto.lnrpc.ClosedChannelUpdate.prototype.setCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -33581,9 +37766,12 @@ proto.lnrpc.ClosedChannelUpdate.prototype.getClosedHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ClosedChannelUpdate} returns this + */ proto.lnrpc.ClosedChannelUpdate.prototype.setClosedHeight = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -33597,20 +37785,27 @@ proto.lnrpc.ClosedChannelUpdate.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ClosedChannelUpdate} returns this +*/ proto.lnrpc.ClosedChannelUpdate.prototype.setChanPoint = function(value) { - jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 4, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ClosedChannelUpdate} returns this + */ proto.lnrpc.ClosedChannelUpdate.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ClosedChannelUpdate.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 4) != null; @@ -33618,34 +37813,19 @@ proto.lnrpc.ClosedChannelUpdate.prototype.hasChanPoint = function() { -/** - * 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.lnrpc.HopHint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.HopHint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.HopHint.displayName = 'proto.lnrpc.HopHint'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.HopHint.prototype.toObject = function(opt_includeInstance) { @@ -33655,8 +37835,8 @@ proto.lnrpc.HopHint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.HopHint} msg The msg instance to transform. * @return {!Object} @@ -33801,9 +37981,12 @@ proto.lnrpc.HopHint.prototype.getNodeId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HopHint} returns this + */ proto.lnrpc.HopHint.prototype.setNodeId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -33816,9 +37999,12 @@ proto.lnrpc.HopHint.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HopHint} returns this + */ proto.lnrpc.HopHint.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -33831,9 +38017,12 @@ proto.lnrpc.HopHint.prototype.getFeeBaseMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.HopHint} returns this + */ proto.lnrpc.HopHint.prototype.setFeeBaseMsat = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -33846,9 +38035,12 @@ proto.lnrpc.HopHint.prototype.getFeeProportionalMillionths = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.HopHint} returns this + */ proto.lnrpc.HopHint.prototype.setFeeProportionalMillionths = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -33861,41 +38053,29 @@ proto.lnrpc.HopHint.prototype.getCltvExpiryDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.HopHint} returns this + */ proto.lnrpc.HopHint.prototype.setCltvExpiryDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * 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.lnrpc.SetID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.SetID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.SetID.displayName = 'proto.lnrpc.SetID'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.SetID.prototype.toObject = function(opt_includeInstance) { @@ -33905,8 +38085,8 @@ proto.lnrpc.SetID.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.SetID} msg The msg instance to transform. * @return {!Object} @@ -34027,30 +38207,16 @@ proto.lnrpc.SetID.prototype.getSetId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.SetID} returns this + */ proto.lnrpc.SetID.prototype.setSetId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.lnrpc.RouteHint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.RouteHint.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.RouteHint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RouteHint.displayName = 'proto.lnrpc.RouteHint'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -34062,13 +38228,15 @@ proto.lnrpc.RouteHint.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RouteHint.prototype.toObject = function(opt_includeInstance) { @@ -34078,8 +38246,8 @@ proto.lnrpc.RouteHint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RouteHint} msg The msg instance to transform. * @return {!Object} @@ -34180,9 +38348,12 @@ proto.lnrpc.RouteHint.prototype.getHopHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.RouteHint} returns this +*/ proto.lnrpc.RouteHint.prototype.setHopHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -34196,40 +38367,29 @@ proto.lnrpc.RouteHint.prototype.addHopHints = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.RouteHint} returns this + */ proto.lnrpc.RouteHint.prototype.clearHopHintsList = function() { - this.setHopHintsList([]); + return this.setHopHintsList([]); }; -/** - * 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.lnrpc.AMPInvoiceState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AMPInvoiceState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AMPInvoiceState.displayName = 'proto.lnrpc.AMPInvoiceState'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AMPInvoiceState.prototype.toObject = function(opt_includeInstance) { @@ -34239,8 +38399,8 @@ proto.lnrpc.AMPInvoiceState.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AMPInvoiceState} msg The msg instance to transform. * @return {!Object} @@ -34373,9 +38533,12 @@ proto.lnrpc.AMPInvoiceState.prototype.getState = function() { }; -/** @param {!proto.lnrpc.InvoiceHTLCState} value */ +/** + * @param {!proto.lnrpc.InvoiceHTLCState} value + * @return {!proto.lnrpc.AMPInvoiceState} returns this + */ proto.lnrpc.AMPInvoiceState.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -34388,9 +38551,12 @@ proto.lnrpc.AMPInvoiceState.prototype.getSettleIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AMPInvoiceState} returns this + */ proto.lnrpc.AMPInvoiceState.prototype.setSettleIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -34403,9 +38569,12 @@ proto.lnrpc.AMPInvoiceState.prototype.getSettleTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AMPInvoiceState} returns this + */ proto.lnrpc.AMPInvoiceState.prototype.setSettleTime = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -34418,30 +38587,16 @@ proto.lnrpc.AMPInvoiceState.prototype.getAmtPaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AMPInvoiceState} returns this + */ proto.lnrpc.AMPInvoiceState.prototype.setAmtPaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; -/** - * 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.lnrpc.Invoice = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Invoice.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Invoice, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Invoice.displayName = 'proto.lnrpc.Invoice'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -34453,13 +38608,15 @@ proto.lnrpc.Invoice.repeatedFields_ = [14,22]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Invoice.prototype.toObject = function(opt_includeInstance) { @@ -34469,8 +38626,8 @@ proto.lnrpc.Invoice.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Invoice} msg The msg instance to transform. * @return {!Object} @@ -34483,7 +38640,7 @@ proto.lnrpc.Invoice.toObject = function(includeInstance, msg) { rHash: msg.getRHash_asB64(), value: jspb.Message.getFieldWithDefault(msg, 5, "0"), valueMsat: jspb.Message.getFieldWithDefault(msg, 23, "0"), - settled: jspb.Message.getFieldWithDefault(msg, 6, false), + settled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), creationDate: jspb.Message.getFieldWithDefault(msg, 7, "0"), settleDate: jspb.Message.getFieldWithDefault(msg, 8, "0"), paymentRequest: jspb.Message.getFieldWithDefault(msg, 9, ""), @@ -34493,7 +38650,7 @@ proto.lnrpc.Invoice.toObject = function(includeInstance, msg) { cltvExpiry: jspb.Message.getFieldWithDefault(msg, 13, "0"), routeHintsList: jspb.Message.toObjectList(msg.getRouteHintsList(), proto.lnrpc.RouteHint.toObject, includeInstance), - pb_private: jspb.Message.getFieldWithDefault(msg, 15, false), + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), addIndex: jspb.Message.getFieldWithDefault(msg, 16, "0"), settleIndex: jspb.Message.getFieldWithDefault(msg, 17, "0"), amtPaid: jspb.Message.getFieldWithDefault(msg, 18, "0"), @@ -34503,9 +38660,9 @@ proto.lnrpc.Invoice.toObject = function(includeInstance, msg) { htlcsList: jspb.Message.toObjectList(msg.getHtlcsList(), proto.lnrpc.InvoiceHTLC.toObject, includeInstance), featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.lnrpc.Feature.toObject) : [], - isKeysend: jspb.Message.getFieldWithDefault(msg, 25, false), + isKeysend: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), paymentAddr: msg.getPaymentAddr_asB64(), - isAmp: jspb.Message.getFieldWithDefault(msg, 27, false), + isAmp: jspb.Message.getBooleanFieldWithDefault(msg, 27, false), ampInvoiceStateMap: (f = msg.getAmpInvoiceStateMap()) ? f.toObject(includeInstance, proto.lnrpc.AMPInvoiceState.toObject) : [] }; @@ -34636,7 +38793,7 @@ proto.lnrpc.Invoice.deserializeBinaryFromReader = function(msg, reader) { case 24: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; case 25: @@ -34654,7 +38811,7 @@ proto.lnrpc.Invoice.deserializeBinaryFromReader = function(msg, reader) { case 28: var value = msg.getAmpInvoiceStateMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.AMPInvoiceState.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.AMPInvoiceState.deserializeBinaryFromReader, "", new proto.lnrpc.AMPInvoiceState()); }); break; default: @@ -34893,9 +39050,12 @@ proto.lnrpc.Invoice.prototype.getMemo = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setMemo = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -34932,9 +39092,12 @@ proto.lnrpc.Invoice.prototype.getRPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setRPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -34971,9 +39134,12 @@ proto.lnrpc.Invoice.prototype.getRHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setRHash = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -34986,9 +39152,12 @@ proto.lnrpc.Invoice.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -35001,26 +39170,30 @@ proto.lnrpc.Invoice.prototype.getValueMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setValueMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 23, value); + return jspb.Message.setProto3StringIntField(this, 23, value); }; /** * optional bool settled = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Invoice.prototype.getSettled = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setSettled = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; @@ -35033,9 +39206,12 @@ proto.lnrpc.Invoice.prototype.getCreationDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setCreationDate = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -35048,9 +39224,12 @@ proto.lnrpc.Invoice.prototype.getSettleDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setSettleDate = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -35063,9 +39242,12 @@ proto.lnrpc.Invoice.prototype.getPaymentRequest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setPaymentRequest = function(value) { - jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 9, value); }; @@ -35102,9 +39284,12 @@ proto.lnrpc.Invoice.prototype.getDescriptionHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setDescriptionHash = function(value) { - jspb.Message.setProto3BytesField(this, 10, value); + return jspb.Message.setProto3BytesField(this, 10, value); }; @@ -35117,9 +39302,12 @@ proto.lnrpc.Invoice.prototype.getExpiry = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setExpiry = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -35132,9 +39320,12 @@ proto.lnrpc.Invoice.prototype.getFallbackAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setFallbackAddr = function(value) { - jspb.Message.setProto3StringField(this, 12, value); + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -35147,9 +39338,12 @@ proto.lnrpc.Invoice.prototype.getCltvExpiry = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setCltvExpiry = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; @@ -35163,9 +39357,12 @@ proto.lnrpc.Invoice.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Invoice} returns this +*/ proto.lnrpc.Invoice.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 14, value); + return jspb.Message.setRepeatedWrapperField(this, 14, value); }; @@ -35179,25 +39376,30 @@ proto.lnrpc.Invoice.prototype.addRouteHints = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; /** * optional bool private = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Invoice.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); + return jspb.Message.setProto3BooleanField(this, 15, value); }; @@ -35210,9 +39412,12 @@ proto.lnrpc.Invoice.prototype.getAddIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setAddIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 16, value); + return jspb.Message.setProto3StringIntField(this, 16, value); }; @@ -35225,9 +39430,12 @@ proto.lnrpc.Invoice.prototype.getSettleIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setSettleIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 17, value); + return jspb.Message.setProto3StringIntField(this, 17, value); }; @@ -35240,9 +39448,12 @@ proto.lnrpc.Invoice.prototype.getAmtPaid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setAmtPaid = function(value) { - jspb.Message.setProto3StringIntField(this, 18, value); + return jspb.Message.setProto3StringIntField(this, 18, value); }; @@ -35255,9 +39466,12 @@ proto.lnrpc.Invoice.prototype.getAmtPaidSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setAmtPaidSat = function(value) { - jspb.Message.setProto3StringIntField(this, 19, value); + return jspb.Message.setProto3StringIntField(this, 19, value); }; @@ -35270,9 +39484,12 @@ proto.lnrpc.Invoice.prototype.getAmtPaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setAmtPaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 20, value); + return jspb.Message.setProto3StringIntField(this, 20, value); }; @@ -35285,9 +39502,12 @@ proto.lnrpc.Invoice.prototype.getState = function() { }; -/** @param {!proto.lnrpc.Invoice.InvoiceState} value */ +/** + * @param {!proto.lnrpc.Invoice.InvoiceState} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 21, value); + return jspb.Message.setProto3EnumField(this, 21, value); }; @@ -35301,9 +39521,12 @@ proto.lnrpc.Invoice.prototype.getHtlcsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Invoice} returns this +*/ proto.lnrpc.Invoice.prototype.setHtlcsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 22, value); + return jspb.Message.setRepeatedWrapperField(this, 22, value); }; @@ -35317,8 +39540,12 @@ proto.lnrpc.Invoice.prototype.addHtlcs = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.clearHtlcsList = function() { - this.setHtlcsList([]); + return this.setHtlcsList([]); }; @@ -35335,25 +39562,30 @@ proto.lnrpc.Invoice.prototype.getFeaturesMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; /** * optional bool is_keysend = 25; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Invoice.prototype.getIsKeysend = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 25, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setIsKeysend = function(value) { - jspb.Message.setProto3BooleanField(this, 25, value); + return jspb.Message.setProto3BooleanField(this, 25, value); }; @@ -35390,26 +39622,30 @@ proto.lnrpc.Invoice.prototype.getPaymentAddr_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setPaymentAddr = function(value) { - jspb.Message.setProto3BytesField(this, 26, value); + return jspb.Message.setProto3BytesField(this, 26, value); }; /** * optional bool is_amp = 27; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Invoice.prototype.getIsAmp = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 27, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.setIsAmp = function(value) { - jspb.Message.setProto3BooleanField(this, 27, value); + return jspb.Message.setProto3BooleanField(this, 27, value); }; @@ -35426,40 +39662,29 @@ proto.lnrpc.Invoice.prototype.getAmpInvoiceStateMap = function(opt_noLazyCreate) }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.Invoice} returns this + */ proto.lnrpc.Invoice.prototype.clearAmpInvoiceStateMap = function() { this.getAmpInvoiceStateMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.InvoiceHTLC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.InvoiceHTLC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.InvoiceHTLC.displayName = 'proto.lnrpc.InvoiceHTLC'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.InvoiceHTLC.prototype.toObject = function(opt_includeInstance) { @@ -35469,8 +39694,8 @@ proto.lnrpc.InvoiceHTLC.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.InvoiceHTLC} msg The msg instance to transform. * @return {!Object} @@ -35560,7 +39785,7 @@ proto.lnrpc.InvoiceHTLC.deserializeBinaryFromReader = function(msg, reader) { case 9: var value = msg.getCustomRecordsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, ""); }); break; case 10: @@ -35688,9 +39913,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -35703,9 +39931,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getHtlcIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setHtlcIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -35718,9 +39949,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -35733,9 +39967,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getAcceptHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setAcceptHeight = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -35748,9 +39985,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getAcceptTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setAcceptTime = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -35763,9 +40003,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getResolveTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setResolveTime = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -35778,9 +40021,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getExpiryHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setExpiryHeight = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -35793,9 +40039,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getState = function() { }; -/** @param {!proto.lnrpc.InvoiceHTLCState} value */ +/** + * @param {!proto.lnrpc.InvoiceHTLCState} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); + return jspb.Message.setProto3EnumField(this, 8, value); }; @@ -35812,9 +40061,13 @@ proto.lnrpc.InvoiceHTLC.prototype.getCustomRecordsMap = function(opt_noLazyCreat }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.clearCustomRecordsMap = function() { this.getCustomRecordsMap().clear(); -}; + return this;}; /** @@ -35826,9 +40079,12 @@ proto.lnrpc.InvoiceHTLC.prototype.getMppTotalAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.setMppTotalAmtMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -35842,20 +40098,27 @@ proto.lnrpc.InvoiceHTLC.prototype.getAmp = function() { }; -/** @param {?proto.lnrpc.AMP|undefined} value */ +/** + * @param {?proto.lnrpc.AMP|undefined} value + * @return {!proto.lnrpc.InvoiceHTLC} returns this +*/ proto.lnrpc.InvoiceHTLC.prototype.setAmp = function(value) { - jspb.Message.setWrapperField(this, 11, value); + return jspb.Message.setWrapperField(this, 11, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.InvoiceHTLC} returns this + */ proto.lnrpc.InvoiceHTLC.prototype.clearAmp = function() { - this.setAmp(undefined); + return this.setAmp(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.InvoiceHTLC.prototype.hasAmp = function() { return jspb.Message.getField(this, 11) != null; @@ -35863,34 +40126,19 @@ proto.lnrpc.InvoiceHTLC.prototype.hasAmp = function() { -/** - * 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.lnrpc.AMP = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AMP, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AMP.displayName = 'proto.lnrpc.AMP'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AMP.prototype.toObject = function(opt_includeInstance) { @@ -35900,8 +40148,8 @@ proto.lnrpc.AMP.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AMP} msg The msg instance to transform. * @return {!Object} @@ -36070,9 +40318,12 @@ proto.lnrpc.AMP.prototype.getRootShare_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMP} returns this + */ proto.lnrpc.AMP.prototype.setRootShare = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -36109,9 +40360,12 @@ proto.lnrpc.AMP.prototype.getSetId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMP} returns this + */ proto.lnrpc.AMP.prototype.setSetId = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -36124,9 +40378,12 @@ proto.lnrpc.AMP.prototype.getChildIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.AMP} returns this + */ proto.lnrpc.AMP.prototype.setChildIndex = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -36163,9 +40420,12 @@ proto.lnrpc.AMP.prototype.getHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMP} returns this + */ proto.lnrpc.AMP.prototype.setHash = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -36202,41 +40462,29 @@ proto.lnrpc.AMP.prototype.getPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AMP} returns this + */ proto.lnrpc.AMP.prototype.setPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; -/** - * 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.lnrpc.AddInvoiceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AddInvoiceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AddInvoiceResponse.displayName = 'proto.lnrpc.AddInvoiceResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AddInvoiceResponse.prototype.toObject = function(opt_includeInstance) { @@ -36246,8 +40494,8 @@ proto.lnrpc.AddInvoiceResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AddInvoiceResponse} msg The msg instance to transform. * @return {!Object} @@ -36404,9 +40652,12 @@ proto.lnrpc.AddInvoiceResponse.prototype.getRHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AddInvoiceResponse} returns this + */ proto.lnrpc.AddInvoiceResponse.prototype.setRHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -36419,9 +40670,12 @@ proto.lnrpc.AddInvoiceResponse.prototype.getPaymentRequest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AddInvoiceResponse} returns this + */ proto.lnrpc.AddInvoiceResponse.prototype.setPaymentRequest = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -36434,9 +40688,12 @@ proto.lnrpc.AddInvoiceResponse.prototype.getAddIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.AddInvoiceResponse} returns this + */ proto.lnrpc.AddInvoiceResponse.prototype.setAddIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 16, value); + return jspb.Message.setProto3StringIntField(this, 16, value); }; @@ -36473,41 +40730,29 @@ proto.lnrpc.AddInvoiceResponse.prototype.getPaymentAddr_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.AddInvoiceResponse} returns this + */ proto.lnrpc.AddInvoiceResponse.prototype.setPaymentAddr = function(value) { - jspb.Message.setProto3BytesField(this, 17, value); + return jspb.Message.setProto3BytesField(this, 17, value); }; -/** - * 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.lnrpc.PaymentHash = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PaymentHash, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PaymentHash.displayName = 'proto.lnrpc.PaymentHash'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PaymentHash.prototype.toObject = function(opt_includeInstance) { @@ -36517,8 +40762,8 @@ proto.lnrpc.PaymentHash.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PaymentHash} msg The msg instance to transform. * @return {!Object} @@ -36627,9 +40872,12 @@ proto.lnrpc.PaymentHash.prototype.getRHashStr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PaymentHash} returns this + */ proto.lnrpc.PaymentHash.prototype.setRHashStr = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -36666,41 +40914,29 @@ proto.lnrpc.PaymentHash.prototype.getRHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.PaymentHash} returns this + */ proto.lnrpc.PaymentHash.prototype.setRHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.lnrpc.ListInvoiceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListInvoiceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListInvoiceRequest.displayName = 'proto.lnrpc.ListInvoiceRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListInvoiceRequest.prototype.toObject = function(opt_includeInstance) { @@ -36710,8 +40946,8 @@ proto.lnrpc.ListInvoiceRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListInvoiceRequest} msg The msg instance to transform. * @return {!Object} @@ -36719,10 +40955,10 @@ proto.lnrpc.ListInvoiceRequest.prototype.toObject = function(opt_includeInstance */ proto.lnrpc.ListInvoiceRequest.toObject = function(includeInstance, msg) { var f, obj = { - pendingOnly: jspb.Message.getFieldWithDefault(msg, 1, false), + pendingOnly: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), indexOffset: jspb.Message.getFieldWithDefault(msg, 4, "0"), numMaxInvoices: jspb.Message.getFieldWithDefault(msg, 5, "0"), - reversed: jspb.Message.getFieldWithDefault(msg, 6, false), + reversed: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), creationDateStart: jspb.Message.getFieldWithDefault(msg, 7, "0"), creationDateEnd: jspb.Message.getFieldWithDefault(msg, 8, "0") }; @@ -36861,18 +41097,19 @@ proto.lnrpc.ListInvoiceRequest.serializeBinaryToWriter = function(message, write /** * optional bool pending_only = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListInvoiceRequest.prototype.getPendingOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setPendingOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -36885,9 +41122,12 @@ proto.lnrpc.ListInvoiceRequest.prototype.getIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -36900,26 +41140,30 @@ proto.lnrpc.ListInvoiceRequest.prototype.getNumMaxInvoices = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setNumMaxInvoices = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** * optional bool reversed = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListInvoiceRequest.prototype.getReversed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setReversed = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); + return jspb.Message.setProto3BooleanField(this, 6, value); }; @@ -36932,9 +41176,12 @@ proto.lnrpc.ListInvoiceRequest.prototype.getCreationDateStart = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setCreationDateStart = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -36947,30 +41194,16 @@ proto.lnrpc.ListInvoiceRequest.prototype.getCreationDateEnd = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceRequest} returns this + */ proto.lnrpc.ListInvoiceRequest.prototype.setCreationDateEnd = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; -/** - * 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.lnrpc.ListInvoiceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListInvoiceResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListInvoiceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListInvoiceResponse.displayName = 'proto.lnrpc.ListInvoiceResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -36982,13 +41215,15 @@ proto.lnrpc.ListInvoiceResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListInvoiceResponse.prototype.toObject = function(opt_includeInstance) { @@ -36998,8 +41233,8 @@ proto.lnrpc.ListInvoiceResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListInvoiceResponse} msg The msg instance to transform. * @return {!Object} @@ -37124,9 +41359,12 @@ proto.lnrpc.ListInvoiceResponse.prototype.getInvoicesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListInvoiceResponse} returns this +*/ proto.lnrpc.ListInvoiceResponse.prototype.setInvoicesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -37140,8 +41378,12 @@ proto.lnrpc.ListInvoiceResponse.prototype.addInvoices = function(opt_value, opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListInvoiceResponse} returns this + */ proto.lnrpc.ListInvoiceResponse.prototype.clearInvoicesList = function() { - this.setInvoicesList([]); + return this.setInvoicesList([]); }; @@ -37154,9 +41396,12 @@ proto.lnrpc.ListInvoiceResponse.prototype.getLastIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceResponse} returns this + */ proto.lnrpc.ListInvoiceResponse.prototype.setLastIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -37169,41 +41414,29 @@ proto.lnrpc.ListInvoiceResponse.prototype.getFirstIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListInvoiceResponse} returns this + */ proto.lnrpc.ListInvoiceResponse.prototype.setFirstIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.lnrpc.InvoiceSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.InvoiceSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.InvoiceSubscription.displayName = 'proto.lnrpc.InvoiceSubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.InvoiceSubscription.prototype.toObject = function(opt_includeInstance) { @@ -37213,8 +41446,8 @@ proto.lnrpc.InvoiceSubscription.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.InvoiceSubscription} msg The msg instance to transform. * @return {!Object} @@ -37323,9 +41556,12 @@ proto.lnrpc.InvoiceSubscription.prototype.getAddIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceSubscription} returns this + */ proto.lnrpc.InvoiceSubscription.prototype.setAddIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -37338,30 +41574,16 @@ proto.lnrpc.InvoiceSubscription.prototype.getSettleIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InvoiceSubscription} returns this + */ proto.lnrpc.InvoiceSubscription.prototype.setSettleIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.lnrpc.Payment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Payment.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Payment, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Payment.displayName = 'proto.lnrpc.Payment'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -37373,13 +41595,15 @@ proto.lnrpc.Payment.repeatedFields_ = [14]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Payment.prototype.toObject = function(opt_includeInstance) { @@ -37389,8 +41613,8 @@ proto.lnrpc.Payment.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Payment} msg The msg instance to transform. * @return {!Object} @@ -37668,9 +41892,12 @@ proto.lnrpc.Payment.prototype.getPaymentHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -37683,9 +41910,12 @@ proto.lnrpc.Payment.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -37698,9 +41928,12 @@ proto.lnrpc.Payment.prototype.getCreationDate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setCreationDate = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -37713,9 +41946,12 @@ proto.lnrpc.Payment.prototype.getFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setFee = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -37728,9 +41964,12 @@ proto.lnrpc.Payment.prototype.getPaymentPreimage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setPaymentPreimage = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -37743,9 +41982,12 @@ proto.lnrpc.Payment.prototype.getValueSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setValueSat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -37758,9 +42000,12 @@ proto.lnrpc.Payment.prototype.getValueMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setValueMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -37773,9 +42018,12 @@ proto.lnrpc.Payment.prototype.getPaymentRequest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setPaymentRequest = function(value) { - jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 9, value); }; @@ -37788,9 +42036,12 @@ proto.lnrpc.Payment.prototype.getStatus = function() { }; -/** @param {!proto.lnrpc.Payment.PaymentStatus} value */ +/** + * @param {!proto.lnrpc.Payment.PaymentStatus} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setStatus = function(value) { - jspb.Message.setProto3EnumField(this, 10, value); + return jspb.Message.setProto3EnumField(this, 10, value); }; @@ -37803,9 +42054,12 @@ proto.lnrpc.Payment.prototype.getFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -37818,9 +42072,12 @@ proto.lnrpc.Payment.prototype.getFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -37833,9 +42090,12 @@ proto.lnrpc.Payment.prototype.getCreationTimeNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setCreationTimeNs = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; @@ -37849,9 +42109,12 @@ proto.lnrpc.Payment.prototype.getHtlcsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Payment} returns this +*/ proto.lnrpc.Payment.prototype.setHtlcsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 14, value); + return jspb.Message.setRepeatedWrapperField(this, 14, value); }; @@ -37865,8 +42128,12 @@ proto.lnrpc.Payment.prototype.addHtlcs = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.clearHtlcsList = function() { - this.setHtlcsList([]); + return this.setHtlcsList([]); }; @@ -37879,9 +42146,12 @@ proto.lnrpc.Payment.prototype.getPaymentIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setPaymentIndex = function(value) { - jspb.Message.setProto3StringIntField(this, 15, value); + return jspb.Message.setProto3StringIntField(this, 15, value); }; @@ -37894,41 +42164,29 @@ proto.lnrpc.Payment.prototype.getFailureReason = function() { }; -/** @param {!proto.lnrpc.PaymentFailureReason} value */ +/** + * @param {!proto.lnrpc.PaymentFailureReason} value + * @return {!proto.lnrpc.Payment} returns this + */ proto.lnrpc.Payment.prototype.setFailureReason = function(value) { - jspb.Message.setProto3EnumField(this, 16, value); + return jspb.Message.setProto3EnumField(this, 16, value); }; -/** - * 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.lnrpc.HTLCAttempt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.HTLCAttempt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.HTLCAttempt.displayName = 'proto.lnrpc.HTLCAttempt'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.HTLCAttempt.prototype.toObject = function(opt_includeInstance) { @@ -37938,8 +42196,8 @@ proto.lnrpc.HTLCAttempt.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.HTLCAttempt} msg The msg instance to transform. * @return {!Object} @@ -38121,9 +42379,12 @@ proto.lnrpc.HTLCAttempt.prototype.getAttemptId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.setAttemptId = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -38136,9 +42397,12 @@ proto.lnrpc.HTLCAttempt.prototype.getStatus = function() { }; -/** @param {!proto.lnrpc.HTLCAttempt.HTLCStatus} value */ +/** + * @param {!proto.lnrpc.HTLCAttempt.HTLCStatus} value + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.setStatus = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -38152,20 +42416,27 @@ proto.lnrpc.HTLCAttempt.prototype.getRoute = function() { }; -/** @param {?proto.lnrpc.Route|undefined} value */ +/** + * @param {?proto.lnrpc.Route|undefined} value + * @return {!proto.lnrpc.HTLCAttempt} returns this +*/ proto.lnrpc.HTLCAttempt.prototype.setRoute = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.clearRoute = function() { - this.setRoute(undefined); + return this.setRoute(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.HTLCAttempt.prototype.hasRoute = function() { return jspb.Message.getField(this, 2) != null; @@ -38181,9 +42452,12 @@ proto.lnrpc.HTLCAttempt.prototype.getAttemptTimeNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.setAttemptTimeNs = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -38196,9 +42470,12 @@ proto.lnrpc.HTLCAttempt.prototype.getResolveTimeNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.setResolveTimeNs = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -38212,20 +42489,27 @@ proto.lnrpc.HTLCAttempt.prototype.getFailure = function() { }; -/** @param {?proto.lnrpc.Failure|undefined} value */ +/** + * @param {?proto.lnrpc.Failure|undefined} value + * @return {!proto.lnrpc.HTLCAttempt} returns this +*/ proto.lnrpc.HTLCAttempt.prototype.setFailure = function(value) { - jspb.Message.setWrapperField(this, 5, value); + return jspb.Message.setWrapperField(this, 5, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.clearFailure = function() { - this.setFailure(undefined); + return this.setFailure(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.HTLCAttempt.prototype.hasFailure = function() { return jspb.Message.getField(this, 5) != null; @@ -38265,41 +42549,29 @@ proto.lnrpc.HTLCAttempt.prototype.getPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.HTLCAttempt} returns this + */ proto.lnrpc.HTLCAttempt.prototype.setPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 6, value); + return jspb.Message.setProto3BytesField(this, 6, value); }; -/** - * 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.lnrpc.ListPaymentsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListPaymentsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPaymentsRequest.displayName = 'proto.lnrpc.ListPaymentsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPaymentsRequest.prototype.toObject = function(opt_includeInstance) { @@ -38309,8 +42581,8 @@ proto.lnrpc.ListPaymentsRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPaymentsRequest} msg The msg instance to transform. * @return {!Object} @@ -38318,11 +42590,11 @@ proto.lnrpc.ListPaymentsRequest.prototype.toObject = function(opt_includeInstanc */ proto.lnrpc.ListPaymentsRequest.toObject = function(includeInstance, msg) { var f, obj = { - includeIncomplete: jspb.Message.getFieldWithDefault(msg, 1, false), + includeIncomplete: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), indexOffset: jspb.Message.getFieldWithDefault(msg, 2, "0"), maxPayments: jspb.Message.getFieldWithDefault(msg, 3, "0"), - reversed: jspb.Message.getFieldWithDefault(msg, 4, false), - countTotalPayments: jspb.Message.getFieldWithDefault(msg, 5, false), + reversed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + countTotalPayments: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), creationDateStart: jspb.Message.getFieldWithDefault(msg, 6, "0"), creationDateEnd: jspb.Message.getFieldWithDefault(msg, 7, "0") }; @@ -38472,18 +42744,19 @@ proto.lnrpc.ListPaymentsRequest.serializeBinaryToWriter = function(message, writ /** * optional bool include_incomplete = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListPaymentsRequest.prototype.getIncludeIncomplete = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setIncludeIncomplete = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -38496,9 +42769,12 @@ proto.lnrpc.ListPaymentsRequest.prototype.getIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -38511,43 +42787,48 @@ proto.lnrpc.ListPaymentsRequest.prototype.getMaxPayments = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setMaxPayments = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** * optional bool reversed = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListPaymentsRequest.prototype.getReversed = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setReversed = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional bool count_total_payments = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ListPaymentsRequest.prototype.getCountTotalPayments = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setCountTotalPayments = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -38560,9 +42841,12 @@ proto.lnrpc.ListPaymentsRequest.prototype.getCreationDateStart = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setCreationDateStart = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -38575,30 +42859,16 @@ proto.lnrpc.ListPaymentsRequest.prototype.getCreationDateEnd = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsRequest} returns this + */ proto.lnrpc.ListPaymentsRequest.prototype.setCreationDateEnd = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; -/** - * 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.lnrpc.ListPaymentsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListPaymentsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListPaymentsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPaymentsResponse.displayName = 'proto.lnrpc.ListPaymentsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -38610,13 +42880,15 @@ proto.lnrpc.ListPaymentsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPaymentsResponse.prototype.toObject = function(opt_includeInstance) { @@ -38626,8 +42898,8 @@ proto.lnrpc.ListPaymentsResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPaymentsResponse} msg The msg instance to transform. * @return {!Object} @@ -38764,9 +43036,12 @@ proto.lnrpc.ListPaymentsResponse.prototype.getPaymentsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListPaymentsResponse} returns this +*/ proto.lnrpc.ListPaymentsResponse.prototype.setPaymentsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -38780,8 +43055,12 @@ proto.lnrpc.ListPaymentsResponse.prototype.addPayments = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListPaymentsResponse} returns this + */ proto.lnrpc.ListPaymentsResponse.prototype.clearPaymentsList = function() { - this.setPaymentsList([]); + return this.setPaymentsList([]); }; @@ -38794,9 +43073,12 @@ proto.lnrpc.ListPaymentsResponse.prototype.getFirstIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsResponse} returns this + */ proto.lnrpc.ListPaymentsResponse.prototype.setFirstIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -38809,9 +43091,12 @@ proto.lnrpc.ListPaymentsResponse.prototype.getLastIndexOffset = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsResponse} returns this + */ proto.lnrpc.ListPaymentsResponse.prototype.setLastIndexOffset = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -38824,41 +43109,29 @@ proto.lnrpc.ListPaymentsResponse.prototype.getTotalNumPayments = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ListPaymentsResponse} returns this + */ proto.lnrpc.ListPaymentsResponse.prototype.setTotalNumPayments = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; -/** - * 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.lnrpc.DeletePaymentRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeletePaymentRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeletePaymentRequest.displayName = 'proto.lnrpc.DeletePaymentRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeletePaymentRequest.prototype.toObject = function(opt_includeInstance) { @@ -38868,8 +43141,8 @@ proto.lnrpc.DeletePaymentRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeletePaymentRequest} msg The msg instance to transform. * @return {!Object} @@ -38878,7 +43151,7 @@ proto.lnrpc.DeletePaymentRequest.prototype.toObject = function(opt_includeInstan proto.lnrpc.DeletePaymentRequest.toObject = function(includeInstance, msg) { var f, obj = { paymentHash: msg.getPaymentHash_asB64(), - failedHtlcsOnly: jspb.Message.getFieldWithDefault(msg, 2, false) + failedHtlcsOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -39002,58 +43275,47 @@ proto.lnrpc.DeletePaymentRequest.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.DeletePaymentRequest} returns this + */ proto.lnrpc.DeletePaymentRequest.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional bool failed_htlcs_only = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.DeletePaymentRequest.prototype.getFailedHtlcsOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.DeletePaymentRequest} returns this + */ proto.lnrpc.DeletePaymentRequest.prototype.setFailedHtlcsOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.DeleteAllPaymentsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeleteAllPaymentsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeleteAllPaymentsRequest.displayName = 'proto.lnrpc.DeleteAllPaymentsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeleteAllPaymentsRequest.prototype.toObject = function(opt_includeInstance) { @@ -39063,8 +43325,8 @@ proto.lnrpc.DeleteAllPaymentsRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeleteAllPaymentsRequest} msg The msg instance to transform. * @return {!Object} @@ -39072,8 +43334,8 @@ proto.lnrpc.DeleteAllPaymentsRequest.prototype.toObject = function(opt_includeIn */ proto.lnrpc.DeleteAllPaymentsRequest.toObject = function(includeInstance, msg) { var f, obj = { - failedPaymentsOnly: jspb.Message.getFieldWithDefault(msg, 1, false), - failedHtlcsOnly: jspb.Message.getFieldWithDefault(msg, 2, false) + failedPaymentsOnly: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + failedHtlcsOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -39166,67 +43428,54 @@ proto.lnrpc.DeleteAllPaymentsRequest.serializeBinaryToWriter = function(message, /** * optional bool failed_payments_only = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.DeleteAllPaymentsRequest.prototype.getFailedPaymentsOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.DeleteAllPaymentsRequest} returns this + */ proto.lnrpc.DeleteAllPaymentsRequest.prototype.setFailedPaymentsOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool failed_htlcs_only = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.DeleteAllPaymentsRequest.prototype.getFailedHtlcsOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.DeleteAllPaymentsRequest} returns this + */ proto.lnrpc.DeleteAllPaymentsRequest.prototype.setFailedHtlcsOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.lnrpc.DeletePaymentResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeletePaymentResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeletePaymentResponse.displayName = 'proto.lnrpc.DeletePaymentResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeletePaymentResponse.prototype.toObject = function(opt_includeInstance) { @@ -39236,8 +43485,8 @@ proto.lnrpc.DeletePaymentResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeletePaymentResponse} msg The msg instance to transform. * @return {!Object} @@ -39315,34 +43564,19 @@ proto.lnrpc.DeletePaymentResponse.serializeBinaryToWriter = function(message, wr -/** - * 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.lnrpc.DeleteAllPaymentsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeleteAllPaymentsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeleteAllPaymentsResponse.displayName = 'proto.lnrpc.DeleteAllPaymentsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeleteAllPaymentsResponse.prototype.toObject = function(opt_includeInstance) { @@ -39352,8 +43586,8 @@ proto.lnrpc.DeleteAllPaymentsResponse.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeleteAllPaymentsResponse} msg The msg instance to transform. * @return {!Object} @@ -39431,34 +43665,19 @@ proto.lnrpc.DeleteAllPaymentsResponse.serializeBinaryToWriter = function(message -/** - * 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.lnrpc.AbandonChannelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AbandonChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AbandonChannelRequest.displayName = 'proto.lnrpc.AbandonChannelRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AbandonChannelRequest.prototype.toObject = function(opt_includeInstance) { @@ -39468,8 +43687,8 @@ proto.lnrpc.AbandonChannelRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AbandonChannelRequest} msg The msg instance to transform. * @return {!Object} @@ -39478,8 +43697,8 @@ proto.lnrpc.AbandonChannelRequest.prototype.toObject = function(opt_includeInsta proto.lnrpc.AbandonChannelRequest.toObject = function(includeInstance, msg) { var f, obj = { channelPoint: (f = msg.getChannelPoint()) && proto.lnrpc.ChannelPoint.toObject(includeInstance, f), - pendingFundingShimOnly: jspb.Message.getFieldWithDefault(msg, 2, false), - iKnowWhatIAmDoing: jspb.Message.getFieldWithDefault(msg, 3, false) + pendingFundingShimOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + iKnowWhatIAmDoing: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -39593,20 +43812,27 @@ proto.lnrpc.AbandonChannelRequest.prototype.getChannelPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.AbandonChannelRequest} returns this +*/ proto.lnrpc.AbandonChannelRequest.prototype.setChannelPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.AbandonChannelRequest} returns this + */ proto.lnrpc.AbandonChannelRequest.prototype.clearChannelPoint = function() { - this.setChannelPoint(undefined); + return this.setChannelPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.AbandonChannelRequest.prototype.hasChannelPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -39615,67 +43841,54 @@ proto.lnrpc.AbandonChannelRequest.prototype.hasChannelPoint = function() { /** * optional bool pending_funding_shim_only = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.AbandonChannelRequest.prototype.getPendingFundingShimOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.AbandonChannelRequest} returns this + */ proto.lnrpc.AbandonChannelRequest.prototype.setPendingFundingShimOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * optional bool i_know_what_i_am_doing = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.AbandonChannelRequest.prototype.getIKnowWhatIAmDoing = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.AbandonChannelRequest} returns this + */ proto.lnrpc.AbandonChannelRequest.prototype.setIKnowWhatIAmDoing = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; -/** - * 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.lnrpc.AbandonChannelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.AbandonChannelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.AbandonChannelResponse.displayName = 'proto.lnrpc.AbandonChannelResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.AbandonChannelResponse.prototype.toObject = function(opt_includeInstance) { @@ -39685,8 +43898,8 @@ proto.lnrpc.AbandonChannelResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.AbandonChannelResponse} msg The msg instance to transform. * @return {!Object} @@ -39764,34 +43977,19 @@ proto.lnrpc.AbandonChannelResponse.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.DebugLevelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DebugLevelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DebugLevelRequest.displayName = 'proto.lnrpc.DebugLevelRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DebugLevelRequest.prototype.toObject = function(opt_includeInstance) { @@ -39801,8 +43999,8 @@ proto.lnrpc.DebugLevelRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DebugLevelRequest} msg The msg instance to transform. * @return {!Object} @@ -39810,7 +44008,7 @@ proto.lnrpc.DebugLevelRequest.prototype.toObject = function(opt_includeInstance) */ proto.lnrpc.DebugLevelRequest.toObject = function(includeInstance, msg) { var f, obj = { - show: jspb.Message.getFieldWithDefault(msg, 1, false), + show: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), levelSpec: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -39904,18 +44102,19 @@ proto.lnrpc.DebugLevelRequest.serializeBinaryToWriter = function(message, writer /** * optional bool show = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.DebugLevelRequest.prototype.getShow = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.DebugLevelRequest} returns this + */ proto.lnrpc.DebugLevelRequest.prototype.setShow = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -39928,41 +44127,29 @@ proto.lnrpc.DebugLevelRequest.prototype.getLevelSpec = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.DebugLevelRequest} returns this + */ proto.lnrpc.DebugLevelRequest.prototype.setLevelSpec = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.DebugLevelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DebugLevelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DebugLevelResponse.displayName = 'proto.lnrpc.DebugLevelResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DebugLevelResponse.prototype.toObject = function(opt_includeInstance) { @@ -39972,8 +44159,8 @@ proto.lnrpc.DebugLevelResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DebugLevelResponse} msg The msg instance to transform. * @return {!Object} @@ -40070,41 +44257,29 @@ proto.lnrpc.DebugLevelResponse.prototype.getSubSystems = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.DebugLevelResponse} returns this + */ proto.lnrpc.DebugLevelResponse.prototype.setSubSystems = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.PayReqString = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.PayReqString, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PayReqString.displayName = 'proto.lnrpc.PayReqString'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PayReqString.prototype.toObject = function(opt_includeInstance) { @@ -40114,8 +44289,8 @@ proto.lnrpc.PayReqString.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PayReqString} msg The msg instance to transform. * @return {!Object} @@ -40212,30 +44387,16 @@ proto.lnrpc.PayReqString.prototype.getPayReq = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReqString} returns this + */ proto.lnrpc.PayReqString.prototype.setPayReq = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.PayReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PayReq.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.PayReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PayReq.displayName = 'proto.lnrpc.PayReq'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -40247,13 +44408,15 @@ proto.lnrpc.PayReq.repeatedFields_ = [10]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PayReq.prototype.toObject = function(opt_includeInstance) { @@ -40263,8 +44426,8 @@ proto.lnrpc.PayReq.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PayReq} msg The msg instance to transform. * @return {!Object} @@ -40374,7 +44537,7 @@ proto.lnrpc.PayReq.deserializeBinaryFromReader = function(msg, reader) { case 13: var value = msg.getFeaturesMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; default: @@ -40507,9 +44670,12 @@ proto.lnrpc.PayReq.prototype.getDestination = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setDestination = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -40522,9 +44688,12 @@ proto.lnrpc.PayReq.prototype.getPaymentHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -40537,9 +44706,12 @@ proto.lnrpc.PayReq.prototype.getNumSatoshis = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setNumSatoshis = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -40552,9 +44724,12 @@ proto.lnrpc.PayReq.prototype.getTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -40567,9 +44742,12 @@ proto.lnrpc.PayReq.prototype.getExpiry = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setExpiry = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -40582,9 +44760,12 @@ proto.lnrpc.PayReq.prototype.getDescription = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -40597,9 +44778,12 @@ proto.lnrpc.PayReq.prototype.getDescriptionHash = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setDescriptionHash = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -40612,9 +44796,12 @@ proto.lnrpc.PayReq.prototype.getFallbackAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setFallbackAddr = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -40627,9 +44814,12 @@ proto.lnrpc.PayReq.prototype.getCltvExpiry = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setCltvExpiry = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -40643,9 +44833,12 @@ proto.lnrpc.PayReq.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PayReq} returns this +*/ proto.lnrpc.PayReq.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 10, value); + return jspb.Message.setRepeatedWrapperField(this, 10, value); }; @@ -40659,8 +44852,12 @@ proto.lnrpc.PayReq.prototype.addRouteHints = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; @@ -40697,9 +44894,12 @@ proto.lnrpc.PayReq.prototype.getPaymentAddr_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setPaymentAddr = function(value) { - jspb.Message.setProto3BytesField(this, 11, value); + return jspb.Message.setProto3BytesField(this, 11, value); }; @@ -40712,9 +44912,12 @@ proto.lnrpc.PayReq.prototype.getNumMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.setNumMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -40731,40 +44934,29 @@ proto.lnrpc.PayReq.prototype.getFeaturesMap = function(opt_noLazyCreate) { }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.PayReq} returns this + */ proto.lnrpc.PayReq.prototype.clearFeaturesMap = function() { this.getFeaturesMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.Feature = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Feature, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Feature.displayName = 'proto.lnrpc.Feature'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Feature.prototype.toObject = function(opt_includeInstance) { @@ -40774,8 +44966,8 @@ proto.lnrpc.Feature.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Feature} msg The msg instance to transform. * @return {!Object} @@ -40784,8 +44976,8 @@ proto.lnrpc.Feature.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.Feature.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 2, ""), - isRequired: jspb.Message.getFieldWithDefault(msg, 3, false), - isKnown: jspb.Message.getFieldWithDefault(msg, 4, false) + isRequired: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + isKnown: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -40896,75 +45088,65 @@ proto.lnrpc.Feature.prototype.getName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Feature} returns this + */ proto.lnrpc.Feature.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional bool is_required = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Feature.prototype.getIsRequired = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Feature} returns this + */ proto.lnrpc.Feature.prototype.setIsRequired = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional bool is_known = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.Feature.prototype.getIsKnown = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.Feature} returns this + */ proto.lnrpc.Feature.prototype.setIsKnown = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; -/** - * 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.lnrpc.FeeReportRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FeeReportRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FeeReportRequest.displayName = 'proto.lnrpc.FeeReportRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FeeReportRequest.prototype.toObject = function(opt_includeInstance) { @@ -40974,8 +45156,8 @@ proto.lnrpc.FeeReportRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FeeReportRequest} msg The msg instance to transform. * @return {!Object} @@ -41053,34 +45235,19 @@ proto.lnrpc.FeeReportRequest.serializeBinaryToWriter = function(message, writer) -/** - * 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.lnrpc.ChannelFeeReport = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelFeeReport, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelFeeReport.displayName = 'proto.lnrpc.ChannelFeeReport'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelFeeReport.prototype.toObject = function(opt_includeInstance) { @@ -41090,8 +45257,8 @@ proto.lnrpc.ChannelFeeReport.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelFeeReport} msg The msg instance to transform. * @return {!Object} @@ -41103,7 +45270,7 @@ proto.lnrpc.ChannelFeeReport.toObject = function(includeInstance, msg) { channelPoint: jspb.Message.getFieldWithDefault(msg, 1, ""), baseFeeMsat: jspb.Message.getFieldWithDefault(msg, 2, "0"), feePerMil: jspb.Message.getFieldWithDefault(msg, 3, "0"), - feeRate: +jspb.Message.getFieldWithDefault(msg, 4, 0.0) + feeRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -41236,9 +45403,12 @@ proto.lnrpc.ChannelFeeReport.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -41251,9 +45421,12 @@ proto.lnrpc.ChannelFeeReport.prototype.getChannelPoint = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setChannelPoint = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -41266,9 +45439,12 @@ proto.lnrpc.ChannelFeeReport.prototype.getBaseFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setBaseFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -41281,9 +45457,12 @@ proto.lnrpc.ChannelFeeReport.prototype.getFeePerMil = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setFeePerMil = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -41292,34 +45471,20 @@ proto.lnrpc.ChannelFeeReport.prototype.setFeePerMil = function(value) { * @return {number} */ proto.lnrpc.ChannelFeeReport.prototype.getFeeRate = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setFeeRate = function(value) { - jspb.Message.setProto3FloatField(this, 4, value); + return jspb.Message.setProto3FloatField(this, 4, value); }; -/** - * 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.lnrpc.FeeReportResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.FeeReportResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.FeeReportResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FeeReportResponse.displayName = 'proto.lnrpc.FeeReportResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -41331,13 +45496,15 @@ proto.lnrpc.FeeReportResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FeeReportResponse.prototype.toObject = function(opt_includeInstance) { @@ -41347,8 +45514,8 @@ proto.lnrpc.FeeReportResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FeeReportResponse} msg The msg instance to transform. * @return {!Object} @@ -41485,9 +45652,12 @@ proto.lnrpc.FeeReportResponse.prototype.getChannelFeesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.FeeReportResponse} returns this +*/ proto.lnrpc.FeeReportResponse.prototype.setChannelFeesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -41501,8 +45671,12 @@ proto.lnrpc.FeeReportResponse.prototype.addChannelFees = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.FeeReportResponse} returns this + */ proto.lnrpc.FeeReportResponse.prototype.clearChannelFeesList = function() { - this.setChannelFeesList([]); + return this.setChannelFeesList([]); }; @@ -41515,9 +45689,12 @@ proto.lnrpc.FeeReportResponse.prototype.getDayFeeSum = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeReportResponse} returns this + */ proto.lnrpc.FeeReportResponse.prototype.setDayFeeSum = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -41530,9 +45707,12 @@ proto.lnrpc.FeeReportResponse.prototype.getWeekFeeSum = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeReportResponse} returns this + */ proto.lnrpc.FeeReportResponse.prototype.setWeekFeeSum = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -41545,30 +45725,16 @@ proto.lnrpc.FeeReportResponse.prototype.getMonthFeeSum = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FeeReportResponse} returns this + */ proto.lnrpc.FeeReportResponse.prototype.setMonthFeeSum = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; -/** - * 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.lnrpc.PolicyUpdateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.PolicyUpdateRequest.oneofGroups_); -}; -goog.inherits(proto.lnrpc.PolicyUpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PolicyUpdateRequest.displayName = 'proto.lnrpc.PolicyUpdateRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -41599,13 +45765,15 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getScopeCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PolicyUpdateRequest.prototype.toObject = function(opt_includeInstance) { @@ -41615,8 +45783,8 @@ proto.lnrpc.PolicyUpdateRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PolicyUpdateRequest} msg The msg instance to transform. * @return {!Object} @@ -41624,15 +45792,15 @@ proto.lnrpc.PolicyUpdateRequest.prototype.toObject = function(opt_includeInstanc */ proto.lnrpc.PolicyUpdateRequest.toObject = function(includeInstance, msg) { var f, obj = { - global: jspb.Message.getFieldWithDefault(msg, 1, false), + global: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), chanPoint: (f = msg.getChanPoint()) && proto.lnrpc.ChannelPoint.toObject(includeInstance, f), baseFeeMsat: jspb.Message.getFieldWithDefault(msg, 3, "0"), - feeRate: +jspb.Message.getFieldWithDefault(msg, 4, 0.0), + feeRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), feeRatePpm: jspb.Message.getFieldWithDefault(msg, 9, 0), timeLockDelta: jspb.Message.getFieldWithDefault(msg, 5, 0), maxHtlcMsat: jspb.Message.getFieldWithDefault(msg, 6, "0"), minHtlcMsat: jspb.Message.getFieldWithDefault(msg, 7, "0"), - minHtlcMsatSpecified: jspb.Message.getFieldWithDefault(msg, 8, false) + minHtlcMsatSpecified: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) }; if (includeInstance) { @@ -41804,29 +45972,34 @@ proto.lnrpc.PolicyUpdateRequest.serializeBinaryToWriter = function(message, writ /** * optional bool global = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PolicyUpdateRequest.prototype.getGlobal = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setGlobal = function(value) { - jspb.Message.setOneofField(this, 1, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.clearGlobal = function() { - jspb.Message.setOneofField(this, 1, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 1, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PolicyUpdateRequest.prototype.hasGlobal = function() { return jspb.Message.getField(this, 1) != null; @@ -41843,20 +46016,27 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this +*/ proto.lnrpc.PolicyUpdateRequest.prototype.setChanPoint = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.PolicyUpdateRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PolicyUpdateRequest.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 2) != null; @@ -41872,9 +46052,12 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getBaseFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setBaseFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -41883,13 +46066,16 @@ proto.lnrpc.PolicyUpdateRequest.prototype.setBaseFeeMsat = function(value) { * @return {number} */ proto.lnrpc.PolicyUpdateRequest.prototype.getFeeRate = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setFeeRate = function(value) { - jspb.Message.setProto3FloatField(this, 4, value); + return jspb.Message.setProto3FloatField(this, 4, value); }; @@ -41902,9 +46088,12 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getFeeRatePpm = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setFeeRatePpm = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -41917,9 +46106,12 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getTimeLockDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setTimeLockDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -41932,9 +46124,12 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getMaxHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setMaxHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -41947,58 +46142,47 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getMinHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setMinHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; /** * optional bool min_htlc_msat_specified = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.PolicyUpdateRequest.prototype.getMinHtlcMsatSpecified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.setMinHtlcMsatSpecified = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; -/** - * 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.lnrpc.FailedUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.FailedUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.FailedUpdate.displayName = 'proto.lnrpc.FailedUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.FailedUpdate.prototype.toObject = function(opt_includeInstance) { @@ -42008,8 +46192,8 @@ proto.lnrpc.FailedUpdate.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.FailedUpdate} msg The msg instance to transform. * @return {!Object} @@ -42133,20 +46317,27 @@ proto.lnrpc.FailedUpdate.prototype.getOutpoint = function() { }; -/** @param {?proto.lnrpc.OutPoint|undefined} value */ +/** + * @param {?proto.lnrpc.OutPoint|undefined} value + * @return {!proto.lnrpc.FailedUpdate} returns this +*/ proto.lnrpc.FailedUpdate.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.FailedUpdate} returns this + */ proto.lnrpc.FailedUpdate.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.FailedUpdate.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 1) != null; @@ -42162,9 +46353,12 @@ proto.lnrpc.FailedUpdate.prototype.getReason = function() { }; -/** @param {!proto.lnrpc.UpdateFailure} value */ +/** + * @param {!proto.lnrpc.UpdateFailure} value + * @return {!proto.lnrpc.FailedUpdate} returns this + */ proto.lnrpc.FailedUpdate.prototype.setReason = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -42177,30 +46371,16 @@ proto.lnrpc.FailedUpdate.prototype.getUpdateError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.FailedUpdate} returns this + */ proto.lnrpc.FailedUpdate.prototype.setUpdateError = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.lnrpc.PolicyUpdateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.PolicyUpdateResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.PolicyUpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.PolicyUpdateResponse.displayName = 'proto.lnrpc.PolicyUpdateResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -42212,13 +46392,15 @@ proto.lnrpc.PolicyUpdateResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.PolicyUpdateResponse.prototype.toObject = function(opt_includeInstance) { @@ -42228,8 +46410,8 @@ proto.lnrpc.PolicyUpdateResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.PolicyUpdateResponse} msg The msg instance to transform. * @return {!Object} @@ -42330,9 +46512,12 @@ proto.lnrpc.PolicyUpdateResponse.prototype.getFailedUpdatesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.PolicyUpdateResponse} returns this +*/ proto.lnrpc.PolicyUpdateResponse.prototype.setFailedUpdatesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -42346,40 +46531,29 @@ proto.lnrpc.PolicyUpdateResponse.prototype.addFailedUpdates = function(opt_value }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PolicyUpdateResponse} returns this + */ proto.lnrpc.PolicyUpdateResponse.prototype.clearFailedUpdatesList = function() { - this.setFailedUpdatesList([]); + return this.setFailedUpdatesList([]); }; -/** - * 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.lnrpc.ForwardingHistoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ForwardingHistoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ForwardingHistoryRequest.displayName = 'proto.lnrpc.ForwardingHistoryRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ForwardingHistoryRequest.prototype.toObject = function(opt_includeInstance) { @@ -42389,8 +46563,8 @@ proto.lnrpc.ForwardingHistoryRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ForwardingHistoryRequest} msg The msg instance to transform. * @return {!Object} @@ -42402,7 +46576,7 @@ proto.lnrpc.ForwardingHistoryRequest.toObject = function(includeInstance, msg) { endTime: jspb.Message.getFieldWithDefault(msg, 2, "0"), indexOffset: jspb.Message.getFieldWithDefault(msg, 3, 0), numMaxEvents: jspb.Message.getFieldWithDefault(msg, 4, 0), - peerAliasLookup: jspb.Message.getFieldWithDefault(msg, 5, false) + peerAliasLookup: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) }; if (includeInstance) { @@ -42535,9 +46709,12 @@ proto.lnrpc.ForwardingHistoryRequest.prototype.getStartTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingHistoryRequest} returns this + */ proto.lnrpc.ForwardingHistoryRequest.prototype.setStartTime = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -42550,9 +46727,12 @@ proto.lnrpc.ForwardingHistoryRequest.prototype.getEndTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingHistoryRequest} returns this + */ proto.lnrpc.ForwardingHistoryRequest.prototype.setEndTime = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -42565,9 +46745,12 @@ proto.lnrpc.ForwardingHistoryRequest.prototype.getIndexOffset = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ForwardingHistoryRequest} returns this + */ proto.lnrpc.ForwardingHistoryRequest.prototype.setIndexOffset = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -42580,58 +46763,47 @@ proto.lnrpc.ForwardingHistoryRequest.prototype.getNumMaxEvents = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ForwardingHistoryRequest} returns this + */ proto.lnrpc.ForwardingHistoryRequest.prototype.setNumMaxEvents = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional bool peer_alias_lookup = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.ForwardingHistoryRequest.prototype.getPeerAliasLookup = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.ForwardingHistoryRequest} returns this + */ proto.lnrpc.ForwardingHistoryRequest.prototype.setPeerAliasLookup = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; -/** - * 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.lnrpc.ForwardingEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ForwardingEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ForwardingEvent.displayName = 'proto.lnrpc.ForwardingEvent'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ForwardingEvent.prototype.toObject = function(opt_includeInstance) { @@ -42641,8 +46813,8 @@ proto.lnrpc.ForwardingEvent.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ForwardingEvent} msg The msg instance to transform. * @return {!Object} @@ -42871,9 +47043,12 @@ proto.lnrpc.ForwardingEvent.prototype.getTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -42886,9 +47061,12 @@ proto.lnrpc.ForwardingEvent.prototype.getChanIdIn = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setChanIdIn = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -42901,9 +47079,12 @@ proto.lnrpc.ForwardingEvent.prototype.getChanIdOut = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setChanIdOut = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -42916,9 +47097,12 @@ proto.lnrpc.ForwardingEvent.prototype.getAmtIn = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setAmtIn = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -42931,9 +47115,12 @@ proto.lnrpc.ForwardingEvent.prototype.getAmtOut = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setAmtOut = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -42946,9 +47133,12 @@ proto.lnrpc.ForwardingEvent.prototype.getFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setFee = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -42961,9 +47151,12 @@ proto.lnrpc.ForwardingEvent.prototype.getFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -42976,9 +47169,12 @@ proto.lnrpc.ForwardingEvent.prototype.getAmtInMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setAmtInMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -42991,9 +47187,12 @@ proto.lnrpc.ForwardingEvent.prototype.getAmtOutMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setAmtOutMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -43006,9 +47205,12 @@ proto.lnrpc.ForwardingEvent.prototype.getTimestampNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -43021,9 +47223,12 @@ proto.lnrpc.ForwardingEvent.prototype.getPeerAliasIn = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setPeerAliasIn = function(value) { - jspb.Message.setProto3StringField(this, 12, value); + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -43036,30 +47241,16 @@ proto.lnrpc.ForwardingEvent.prototype.getPeerAliasOut = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ForwardingEvent} returns this + */ proto.lnrpc.ForwardingEvent.prototype.setPeerAliasOut = function(value) { - jspb.Message.setProto3StringField(this, 13, value); + return jspb.Message.setProto3StringField(this, 13, value); }; -/** - * 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.lnrpc.ForwardingHistoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ForwardingHistoryResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ForwardingHistoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ForwardingHistoryResponse.displayName = 'proto.lnrpc.ForwardingHistoryResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -43071,13 +47262,15 @@ proto.lnrpc.ForwardingHistoryResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ForwardingHistoryResponse.prototype.toObject = function(opt_includeInstance) { @@ -43087,8 +47280,8 @@ proto.lnrpc.ForwardingHistoryResponse.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ForwardingHistoryResponse} msg The msg instance to transform. * @return {!Object} @@ -43201,9 +47394,12 @@ proto.lnrpc.ForwardingHistoryResponse.prototype.getForwardingEventsList = functi }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ForwardingHistoryResponse} returns this +*/ proto.lnrpc.ForwardingHistoryResponse.prototype.setForwardingEventsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -43217,8 +47413,12 @@ proto.lnrpc.ForwardingHistoryResponse.prototype.addForwardingEvents = function(o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ForwardingHistoryResponse} returns this + */ proto.lnrpc.ForwardingHistoryResponse.prototype.clearForwardingEventsList = function() { - this.setForwardingEventsList([]); + return this.setForwardingEventsList([]); }; @@ -43231,41 +47431,29 @@ proto.lnrpc.ForwardingHistoryResponse.prototype.getLastOffsetIndex = function() }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ForwardingHistoryResponse} returns this + */ proto.lnrpc.ForwardingHistoryResponse.prototype.setLastOffsetIndex = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * 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.lnrpc.ExportChannelBackupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ExportChannelBackupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ExportChannelBackupRequest.displayName = 'proto.lnrpc.ExportChannelBackupRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ExportChannelBackupRequest.prototype.toObject = function(opt_includeInstance) { @@ -43275,8 +47463,8 @@ proto.lnrpc.ExportChannelBackupRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ExportChannelBackupRequest} msg The msg instance to transform. * @return {!Object} @@ -43376,20 +47564,27 @@ proto.lnrpc.ExportChannelBackupRequest.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ExportChannelBackupRequest} returns this +*/ proto.lnrpc.ExportChannelBackupRequest.prototype.setChanPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ExportChannelBackupRequest} returns this + */ proto.lnrpc.ExportChannelBackupRequest.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ExportChannelBackupRequest.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -43397,34 +47592,19 @@ proto.lnrpc.ExportChannelBackupRequest.prototype.hasChanPoint = function() { -/** - * 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.lnrpc.ChannelBackup = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelBackup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelBackup.displayName = 'proto.lnrpc.ChannelBackup'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelBackup.prototype.toObject = function(opt_includeInstance) { @@ -43434,8 +47614,8 @@ proto.lnrpc.ChannelBackup.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelBackup} msg The msg instance to transform. * @return {!Object} @@ -43547,20 +47727,27 @@ proto.lnrpc.ChannelBackup.prototype.getChanPoint = function() { }; -/** @param {?proto.lnrpc.ChannelPoint|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelPoint|undefined} value + * @return {!proto.lnrpc.ChannelBackup} returns this +*/ proto.lnrpc.ChannelBackup.prototype.setChanPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChannelBackup} returns this + */ proto.lnrpc.ChannelBackup.prototype.clearChanPoint = function() { - this.setChanPoint(undefined); + return this.setChanPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChannelBackup.prototype.hasChanPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -43600,30 +47787,16 @@ proto.lnrpc.ChannelBackup.prototype.getChanBackup_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelBackup} returns this + */ proto.lnrpc.ChannelBackup.prototype.setChanBackup = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.lnrpc.MultiChanBackup = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MultiChanBackup.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.MultiChanBackup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MultiChanBackup.displayName = 'proto.lnrpc.MultiChanBackup'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -43635,13 +47808,15 @@ proto.lnrpc.MultiChanBackup.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MultiChanBackup.prototype.toObject = function(opt_includeInstance) { @@ -43651,8 +47826,8 @@ proto.lnrpc.MultiChanBackup.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MultiChanBackup} msg The msg instance to transform. * @return {!Object} @@ -43765,9 +47940,12 @@ proto.lnrpc.MultiChanBackup.prototype.getChanPointsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.MultiChanBackup} returns this +*/ proto.lnrpc.MultiChanBackup.prototype.setChanPointsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -43781,8 +47959,12 @@ proto.lnrpc.MultiChanBackup.prototype.addChanPoints = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.MultiChanBackup} returns this + */ proto.lnrpc.MultiChanBackup.prototype.clearChanPointsList = function() { - this.setChanPointsList([]); + return this.setChanPointsList([]); }; @@ -43819,41 +48001,29 @@ proto.lnrpc.MultiChanBackup.prototype.getMultiChanBackup_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.MultiChanBackup} returns this + */ proto.lnrpc.MultiChanBackup.prototype.setMultiChanBackup = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.lnrpc.ChanBackupExportRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChanBackupExportRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChanBackupExportRequest.displayName = 'proto.lnrpc.ChanBackupExportRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChanBackupExportRequest.prototype.toObject = function(opt_includeInstance) { @@ -43863,8 +48033,8 @@ proto.lnrpc.ChanBackupExportRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChanBackupExportRequest} msg The msg instance to transform. * @return {!Object} @@ -43942,34 +48112,19 @@ proto.lnrpc.ChanBackupExportRequest.serializeBinaryToWriter = function(message, -/** - * 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.lnrpc.ChanBackupSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChanBackupSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChanBackupSnapshot.displayName = 'proto.lnrpc.ChanBackupSnapshot'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChanBackupSnapshot.prototype.toObject = function(opt_includeInstance) { @@ -43979,8 +48134,8 @@ proto.lnrpc.ChanBackupSnapshot.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChanBackupSnapshot} msg The msg instance to transform. * @return {!Object} @@ -44094,20 +48249,27 @@ proto.lnrpc.ChanBackupSnapshot.prototype.getSingleChanBackups = function() { }; -/** @param {?proto.lnrpc.ChannelBackups|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelBackups|undefined} value + * @return {!proto.lnrpc.ChanBackupSnapshot} returns this +*/ proto.lnrpc.ChanBackupSnapshot.prototype.setSingleChanBackups = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChanBackupSnapshot} returns this + */ proto.lnrpc.ChanBackupSnapshot.prototype.clearSingleChanBackups = function() { - this.setSingleChanBackups(undefined); + return this.setSingleChanBackups(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChanBackupSnapshot.prototype.hasSingleChanBackups = function() { return jspb.Message.getField(this, 1) != null; @@ -44124,20 +48286,27 @@ proto.lnrpc.ChanBackupSnapshot.prototype.getMultiChanBackup = function() { }; -/** @param {?proto.lnrpc.MultiChanBackup|undefined} value */ +/** + * @param {?proto.lnrpc.MultiChanBackup|undefined} value + * @return {!proto.lnrpc.ChanBackupSnapshot} returns this +*/ proto.lnrpc.ChanBackupSnapshot.prototype.setMultiChanBackup = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.ChanBackupSnapshot} returns this + */ proto.lnrpc.ChanBackupSnapshot.prototype.clearMultiChanBackup = function() { - this.setMultiChanBackup(undefined); + return this.setMultiChanBackup(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.ChanBackupSnapshot.prototype.hasMultiChanBackup = function() { return jspb.Message.getField(this, 2) != null; @@ -44145,23 +48314,6 @@ proto.lnrpc.ChanBackupSnapshot.prototype.hasMultiChanBackup = function() { -/** - * 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.lnrpc.ChannelBackups = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelBackups.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ChannelBackups, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelBackups.displayName = 'proto.lnrpc.ChannelBackups'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -44173,13 +48325,15 @@ proto.lnrpc.ChannelBackups.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelBackups.prototype.toObject = function(opt_includeInstance) { @@ -44189,8 +48343,8 @@ proto.lnrpc.ChannelBackups.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelBackups} msg The msg instance to transform. * @return {!Object} @@ -44291,9 +48445,12 @@ proto.lnrpc.ChannelBackups.prototype.getChanBackupsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ChannelBackups} returns this +*/ proto.lnrpc.ChannelBackups.prototype.setChanBackupsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -44307,29 +48464,16 @@ proto.lnrpc.ChannelBackups.prototype.addChanBackups = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ChannelBackups} returns this + */ proto.lnrpc.ChannelBackups.prototype.clearChanBackupsList = function() { - this.setChanBackupsList([]); + return this.setChanBackupsList([]); }; -/** - * 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.lnrpc.RestoreChanBackupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_); -}; -goog.inherits(proto.lnrpc.RestoreChanBackupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RestoreChanBackupRequest.displayName = 'proto.lnrpc.RestoreChanBackupRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -44360,13 +48504,15 @@ proto.lnrpc.RestoreChanBackupRequest.prototype.getBackupCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RestoreChanBackupRequest.prototype.toObject = function(opt_includeInstance) { @@ -44376,8 +48522,8 @@ proto.lnrpc.RestoreChanBackupRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RestoreChanBackupRequest} msg The msg instance to transform. * @return {!Object} @@ -44489,20 +48635,27 @@ proto.lnrpc.RestoreChanBackupRequest.prototype.getChanBackups = function() { }; -/** @param {?proto.lnrpc.ChannelBackups|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelBackups|undefined} value + * @return {!proto.lnrpc.RestoreChanBackupRequest} returns this +*/ proto.lnrpc.RestoreChanBackupRequest.prototype.setChanBackups = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RestoreChanBackupRequest} returns this + */ proto.lnrpc.RestoreChanBackupRequest.prototype.clearChanBackups = function() { - this.setChanBackups(undefined); + return this.setChanBackups(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RestoreChanBackupRequest.prototype.hasChanBackups = function() { return jspb.Message.getField(this, 1) != null; @@ -44542,20 +48695,27 @@ proto.lnrpc.RestoreChanBackupRequest.prototype.getMultiChanBackup_asU8 = functio }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.RestoreChanBackupRequest} returns this + */ proto.lnrpc.RestoreChanBackupRequest.prototype.setMultiChanBackup = function(value) { - jspb.Message.setOneofField(this, 2, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.RestoreChanBackupRequest} returns this + */ proto.lnrpc.RestoreChanBackupRequest.prototype.clearMultiChanBackup = function() { - jspb.Message.setOneofField(this, 2, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.lnrpc.RestoreChanBackupRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RestoreChanBackupRequest.prototype.hasMultiChanBackup = function() { return jspb.Message.getField(this, 2) != null; @@ -44563,34 +48723,19 @@ proto.lnrpc.RestoreChanBackupRequest.prototype.hasMultiChanBackup = function() { -/** - * 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.lnrpc.RestoreBackupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.RestoreBackupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RestoreBackupResponse.displayName = 'proto.lnrpc.RestoreBackupResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RestoreBackupResponse.prototype.toObject = function(opt_includeInstance) { @@ -44600,8 +48745,8 @@ proto.lnrpc.RestoreBackupResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RestoreBackupResponse} msg The msg instance to transform. * @return {!Object} @@ -44679,34 +48824,19 @@ proto.lnrpc.RestoreBackupResponse.serializeBinaryToWriter = function(message, wr -/** - * 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.lnrpc.ChannelBackupSubscription = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelBackupSubscription, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelBackupSubscription.displayName = 'proto.lnrpc.ChannelBackupSubscription'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelBackupSubscription.prototype.toObject = function(opt_includeInstance) { @@ -44716,8 +48846,8 @@ proto.lnrpc.ChannelBackupSubscription.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelBackupSubscription} msg The msg instance to transform. * @return {!Object} @@ -44795,34 +48925,19 @@ proto.lnrpc.ChannelBackupSubscription.serializeBinaryToWriter = function(message -/** - * 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.lnrpc.VerifyChanBackupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.VerifyChanBackupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.VerifyChanBackupResponse.displayName = 'proto.lnrpc.VerifyChanBackupResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.VerifyChanBackupResponse.prototype.toObject = function(opt_includeInstance) { @@ -44832,8 +48947,8 @@ proto.lnrpc.VerifyChanBackupResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.VerifyChanBackupResponse} msg The msg instance to transform. * @return {!Object} @@ -44911,34 +49026,19 @@ proto.lnrpc.VerifyChanBackupResponse.serializeBinaryToWriter = function(message, -/** - * 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.lnrpc.MacaroonPermission = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.MacaroonPermission, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MacaroonPermission.displayName = 'proto.lnrpc.MacaroonPermission'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MacaroonPermission.prototype.toObject = function(opt_includeInstance) { @@ -44948,8 +49048,8 @@ proto.lnrpc.MacaroonPermission.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MacaroonPermission} msg The msg instance to transform. * @return {!Object} @@ -45058,9 +49158,12 @@ proto.lnrpc.MacaroonPermission.prototype.getEntity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.MacaroonPermission} returns this + */ proto.lnrpc.MacaroonPermission.prototype.setEntity = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -45073,30 +49176,16 @@ proto.lnrpc.MacaroonPermission.prototype.getAction = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.MacaroonPermission} returns this + */ proto.lnrpc.MacaroonPermission.prototype.setAction = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.lnrpc.BakeMacaroonRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BakeMacaroonRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.BakeMacaroonRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BakeMacaroonRequest.displayName = 'proto.lnrpc.BakeMacaroonRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -45108,13 +49197,15 @@ proto.lnrpc.BakeMacaroonRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.BakeMacaroonRequest.prototype.toObject = function(opt_includeInstance) { @@ -45124,8 +49215,8 @@ proto.lnrpc.BakeMacaroonRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.BakeMacaroonRequest} msg The msg instance to transform. * @return {!Object} @@ -45136,7 +49227,7 @@ proto.lnrpc.BakeMacaroonRequest.toObject = function(includeInstance, msg) { permissionsList: jspb.Message.toObjectList(msg.getPermissionsList(), proto.lnrpc.MacaroonPermission.toObject, includeInstance), rootKeyId: jspb.Message.getFieldWithDefault(msg, 2, "0"), - allowExternalPermissions: jspb.Message.getFieldWithDefault(msg, 3, false) + allowExternalPermissions: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -45250,9 +49341,12 @@ proto.lnrpc.BakeMacaroonRequest.prototype.getPermissionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.BakeMacaroonRequest} returns this +*/ proto.lnrpc.BakeMacaroonRequest.prototype.setPermissionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -45266,8 +49360,12 @@ proto.lnrpc.BakeMacaroonRequest.prototype.addPermissions = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BakeMacaroonRequest} returns this + */ proto.lnrpc.BakeMacaroonRequest.prototype.clearPermissionsList = function() { - this.setPermissionsList([]); + return this.setPermissionsList([]); }; @@ -45280,58 +49378,47 @@ proto.lnrpc.BakeMacaroonRequest.prototype.getRootKeyId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BakeMacaroonRequest} returns this + */ proto.lnrpc.BakeMacaroonRequest.prototype.setRootKeyId = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; /** * optional bool allow_external_permissions = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.BakeMacaroonRequest.prototype.getAllowExternalPermissions = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.BakeMacaroonRequest} returns this + */ proto.lnrpc.BakeMacaroonRequest.prototype.setAllowExternalPermissions = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; -/** - * 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.lnrpc.BakeMacaroonResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.BakeMacaroonResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BakeMacaroonResponse.displayName = 'proto.lnrpc.BakeMacaroonResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.BakeMacaroonResponse.prototype.toObject = function(opt_includeInstance) { @@ -45341,8 +49428,8 @@ proto.lnrpc.BakeMacaroonResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.BakeMacaroonResponse} msg The msg instance to transform. * @return {!Object} @@ -45439,41 +49526,29 @@ proto.lnrpc.BakeMacaroonResponse.prototype.getMacaroon = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BakeMacaroonResponse} returns this + */ proto.lnrpc.BakeMacaroonResponse.prototype.setMacaroon = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.ListMacaroonIDsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListMacaroonIDsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListMacaroonIDsRequest.displayName = 'proto.lnrpc.ListMacaroonIDsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListMacaroonIDsRequest.prototype.toObject = function(opt_includeInstance) { @@ -45483,8 +49558,8 @@ proto.lnrpc.ListMacaroonIDsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListMacaroonIDsRequest} msg The msg instance to transform. * @return {!Object} @@ -45562,23 +49637,6 @@ proto.lnrpc.ListMacaroonIDsRequest.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.ListMacaroonIDsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ListMacaroonIDsResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.ListMacaroonIDsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListMacaroonIDsResponse.displayName = 'proto.lnrpc.ListMacaroonIDsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -45590,13 +49648,15 @@ proto.lnrpc.ListMacaroonIDsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListMacaroonIDsResponse.prototype.toObject = function(opt_includeInstance) { @@ -45606,8 +49666,8 @@ proto.lnrpc.ListMacaroonIDsResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListMacaroonIDsResponse} msg The msg instance to transform. * @return {!Object} @@ -45615,7 +49675,7 @@ proto.lnrpc.ListMacaroonIDsResponse.prototype.toObject = function(opt_includeIns */ proto.lnrpc.ListMacaroonIDsResponse.toObject = function(includeInstance, msg) { var f, obj = { - rootKeyIdsList: jspb.Message.getRepeatedField(msg, 1) + rootKeyIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -45653,8 +49713,10 @@ proto.lnrpc.ListMacaroonIDsResponse.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setRootKeyIdsList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addRootKeyIds(values[i]); + } break; default: reader.skipField(); @@ -45704,55 +49766,48 @@ proto.lnrpc.ListMacaroonIDsResponse.prototype.getRootKeyIdsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.ListMacaroonIDsResponse} returns this + */ proto.lnrpc.ListMacaroonIDsResponse.prototype.setRootKeyIdsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.ListMacaroonIDsResponse} returns this */ proto.lnrpc.ListMacaroonIDsResponse.prototype.addRootKeyIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.ListMacaroonIDsResponse} returns this + */ proto.lnrpc.ListMacaroonIDsResponse.prototype.clearRootKeyIdsList = function() { - this.setRootKeyIdsList([]); + return this.setRootKeyIdsList([]); }; -/** - * 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.lnrpc.DeleteMacaroonIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeleteMacaroonIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeleteMacaroonIDRequest.displayName = 'proto.lnrpc.DeleteMacaroonIDRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeleteMacaroonIDRequest.prototype.toObject = function(opt_includeInstance) { @@ -45762,8 +49817,8 @@ proto.lnrpc.DeleteMacaroonIDRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeleteMacaroonIDRequest} msg The msg instance to transform. * @return {!Object} @@ -45860,41 +49915,29 @@ proto.lnrpc.DeleteMacaroonIDRequest.prototype.getRootKeyId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.DeleteMacaroonIDRequest} returns this + */ proto.lnrpc.DeleteMacaroonIDRequest.prototype.setRootKeyId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; -/** - * 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.lnrpc.DeleteMacaroonIDResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.DeleteMacaroonIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.DeleteMacaroonIDResponse.displayName = 'proto.lnrpc.DeleteMacaroonIDResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.DeleteMacaroonIDResponse.prototype.toObject = function(opt_includeInstance) { @@ -45904,8 +49947,8 @@ proto.lnrpc.DeleteMacaroonIDResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.DeleteMacaroonIDResponse} msg The msg instance to transform. * @return {!Object} @@ -45913,7 +49956,7 @@ proto.lnrpc.DeleteMacaroonIDResponse.prototype.toObject = function(opt_includeIn */ proto.lnrpc.DeleteMacaroonIDResponse.toObject = function(includeInstance, msg) { var f, obj = { - deleted: jspb.Message.getFieldWithDefault(msg, 1, false) + deleted: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -45995,39 +50038,23 @@ proto.lnrpc.DeleteMacaroonIDResponse.serializeBinaryToWriter = function(message, /** * optional bool deleted = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.DeleteMacaroonIDResponse.prototype.getDeleted = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.DeleteMacaroonIDResponse} returns this + */ proto.lnrpc.DeleteMacaroonIDResponse.prototype.setDeleted = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * 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.lnrpc.MacaroonPermissionList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MacaroonPermissionList.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.MacaroonPermissionList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MacaroonPermissionList.displayName = 'proto.lnrpc.MacaroonPermissionList'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -46039,13 +50066,15 @@ proto.lnrpc.MacaroonPermissionList.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MacaroonPermissionList.prototype.toObject = function(opt_includeInstance) { @@ -46055,8 +50084,8 @@ proto.lnrpc.MacaroonPermissionList.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MacaroonPermissionList} msg The msg instance to transform. * @return {!Object} @@ -46157,9 +50186,12 @@ proto.lnrpc.MacaroonPermissionList.prototype.getPermissionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.MacaroonPermissionList} returns this +*/ proto.lnrpc.MacaroonPermissionList.prototype.setPermissionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -46173,40 +50205,29 @@ proto.lnrpc.MacaroonPermissionList.prototype.addPermissions = function(opt_value }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.MacaroonPermissionList} returns this + */ proto.lnrpc.MacaroonPermissionList.prototype.clearPermissionsList = function() { - this.setPermissionsList([]); + return this.setPermissionsList([]); }; -/** - * 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.lnrpc.ListPermissionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListPermissionsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPermissionsRequest.displayName = 'proto.lnrpc.ListPermissionsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPermissionsRequest.prototype.toObject = function(opt_includeInstance) { @@ -46216,8 +50237,8 @@ proto.lnrpc.ListPermissionsRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPermissionsRequest} msg The msg instance to transform. * @return {!Object} @@ -46295,34 +50316,19 @@ proto.lnrpc.ListPermissionsRequest.serializeBinaryToWriter = function(message, w -/** - * 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.lnrpc.ListPermissionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ListPermissionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ListPermissionsResponse.displayName = 'proto.lnrpc.ListPermissionsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ListPermissionsResponse.prototype.toObject = function(opt_includeInstance) { @@ -46332,8 +50338,8 @@ proto.lnrpc.ListPermissionsResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ListPermissionsResponse} msg The msg instance to transform. * @return {!Object} @@ -46381,7 +50387,7 @@ proto.lnrpc.ListPermissionsResponse.deserializeBinaryFromReader = function(msg, case 1: var value = msg.getMethodPermissionsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.MacaroonPermissionList.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.MacaroonPermissionList.deserializeBinaryFromReader, "", new proto.lnrpc.MacaroonPermissionList()); }); break; default: @@ -46433,40 +50439,29 @@ proto.lnrpc.ListPermissionsResponse.prototype.getMethodPermissionsMap = function }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.ListPermissionsResponse} returns this + */ proto.lnrpc.ListPermissionsResponse.prototype.clearMethodPermissionsMap = function() { this.getMethodPermissionsMap().clear(); -}; + return this;}; -/** - * 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.lnrpc.Failure = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.Failure, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Failure.displayName = 'proto.lnrpc.Failure'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Failure.prototype.toObject = function(opt_includeInstance) { @@ -46476,8 +50471,8 @@ proto.lnrpc.Failure.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Failure} msg The msg instance to transform. * @return {!Object} @@ -46694,9 +50689,12 @@ proto.lnrpc.Failure.prototype.getCode = function() { }; -/** @param {!proto.lnrpc.Failure.FailureCode} value */ +/** + * @param {!proto.lnrpc.Failure.FailureCode} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setCode = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -46710,20 +50708,27 @@ proto.lnrpc.Failure.prototype.getChannelUpdate = function() { }; -/** @param {?proto.lnrpc.ChannelUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.ChannelUpdate|undefined} value + * @return {!proto.lnrpc.Failure} returns this +*/ proto.lnrpc.Failure.prototype.setChannelUpdate = function(value) { - jspb.Message.setWrapperField(this, 3, value); + return jspb.Message.setWrapperField(this, 3, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.clearChannelUpdate = function() { - this.setChannelUpdate(undefined); + return this.setChannelUpdate(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.Failure.prototype.hasChannelUpdate = function() { return jspb.Message.getField(this, 3) != null; @@ -46739,9 +50744,12 @@ proto.lnrpc.Failure.prototype.getHtlcMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setHtlcMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -46778,9 +50786,12 @@ proto.lnrpc.Failure.prototype.getOnionSha256_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setOnionSha256 = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -46793,9 +50804,12 @@ proto.lnrpc.Failure.prototype.getCltvExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setCltvExpiry = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -46808,9 +50822,12 @@ proto.lnrpc.Failure.prototype.getFlags = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setFlags = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -46823,9 +50840,12 @@ proto.lnrpc.Failure.prototype.getFailureSourceIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setFailureSourceIndex = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -46838,41 +50858,29 @@ proto.lnrpc.Failure.prototype.getHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.Failure} returns this + */ proto.lnrpc.Failure.prototype.setHeight = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; -/** - * 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.lnrpc.ChannelUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.ChannelUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.ChannelUpdate.displayName = 'proto.lnrpc.ChannelUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.ChannelUpdate.prototype.toObject = function(opt_includeInstance) { @@ -46882,8 +50890,8 @@ proto.lnrpc.ChannelUpdate.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.ChannelUpdate} msg The msg instance to transform. * @return {!Object} @@ -47136,9 +51144,12 @@ proto.lnrpc.ChannelUpdate.prototype.getSignature_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setSignature = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -47175,9 +51186,12 @@ proto.lnrpc.ChannelUpdate.prototype.getChainHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setChainHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -47190,9 +51204,12 @@ proto.lnrpc.ChannelUpdate.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -47205,9 +51222,12 @@ proto.lnrpc.ChannelUpdate.prototype.getTimestamp = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setTimestamp = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -47220,9 +51240,12 @@ proto.lnrpc.ChannelUpdate.prototype.getMessageFlags = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setMessageFlags = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 10, value); }; @@ -47235,9 +51258,12 @@ proto.lnrpc.ChannelUpdate.prototype.getChannelFlags = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setChannelFlags = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -47250,9 +51276,12 @@ proto.lnrpc.ChannelUpdate.prototype.getTimeLockDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setTimeLockDelta = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -47265,9 +51294,12 @@ proto.lnrpc.ChannelUpdate.prototype.getHtlcMinimumMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setHtlcMinimumMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -47280,9 +51312,12 @@ proto.lnrpc.ChannelUpdate.prototype.getBaseFee = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setBaseFee = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -47295,9 +51330,12 @@ proto.lnrpc.ChannelUpdate.prototype.getFeeRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setFeeRate = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -47310,9 +51348,12 @@ proto.lnrpc.ChannelUpdate.prototype.getHtlcMaximumMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setHtlcMaximumMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -47349,30 +51390,16 @@ proto.lnrpc.ChannelUpdate.prototype.getExtraOpaqueData_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.ChannelUpdate} returns this + */ proto.lnrpc.ChannelUpdate.prototype.setExtraOpaqueData = function(value) { - jspb.Message.setProto3BytesField(this, 12, value); + return jspb.Message.setProto3BytesField(this, 12, value); }; -/** - * 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.lnrpc.MacaroonId = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.MacaroonId.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.MacaroonId, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MacaroonId.displayName = 'proto.lnrpc.MacaroonId'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -47384,13 +51411,15 @@ proto.lnrpc.MacaroonId.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MacaroonId.prototype.toObject = function(opt_includeInstance) { @@ -47400,8 +51429,8 @@ proto.lnrpc.MacaroonId.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MacaroonId} msg The msg instance to transform. * @return {!Object} @@ -47549,9 +51578,12 @@ proto.lnrpc.MacaroonId.prototype.getNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.MacaroonId} returns this + */ proto.lnrpc.MacaroonId.prototype.setNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -47588,9 +51620,12 @@ proto.lnrpc.MacaroonId.prototype.getStorageid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.MacaroonId} returns this + */ proto.lnrpc.MacaroonId.prototype.setStorageid = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -47604,9 +51639,12 @@ proto.lnrpc.MacaroonId.prototype.getOpsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.MacaroonId} returns this +*/ proto.lnrpc.MacaroonId.prototype.setOpsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -47620,29 +51658,16 @@ proto.lnrpc.MacaroonId.prototype.addOps = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.MacaroonId} returns this + */ proto.lnrpc.MacaroonId.prototype.clearOpsList = function() { - this.setOpsList([]); + return this.setOpsList([]); }; -/** - * 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.lnrpc.Op = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.Op.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.Op, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.Op.displayName = 'proto.lnrpc.Op'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -47654,13 +51679,15 @@ proto.lnrpc.Op.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.Op.prototype.toObject = function(opt_includeInstance) { @@ -47670,8 +51697,8 @@ proto.lnrpc.Op.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.Op} msg The msg instance to transform. * @return {!Object} @@ -47680,7 +51707,7 @@ proto.lnrpc.Op.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.Op.toObject = function(includeInstance, msg) { var f, obj = { entity: jspb.Message.getFieldWithDefault(msg, 1, ""), - actionsList: jspb.Message.getRepeatedField(msg, 2) + actionsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -47780,9 +51807,12 @@ proto.lnrpc.Op.prototype.getEntity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Op} returns this + */ proto.lnrpc.Op.prototype.setEntity = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -47795,44 +51825,35 @@ proto.lnrpc.Op.prototype.getActionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.Op} returns this + */ proto.lnrpc.Op.prototype.setActionsList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.lnrpc.Op} returns this */ proto.lnrpc.Op.prototype.addActions = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.Op} returns this + */ proto.lnrpc.Op.prototype.clearActionsList = function() { - this.setActionsList([]); + return this.setActionsList([]); }; -/** - * 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.lnrpc.CheckMacPermRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.CheckMacPermRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.CheckMacPermRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.CheckMacPermRequest.displayName = 'proto.lnrpc.CheckMacPermRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -47844,13 +51865,15 @@ proto.lnrpc.CheckMacPermRequest.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.CheckMacPermRequest.prototype.toObject = function(opt_includeInstance) { @@ -47860,8 +51883,8 @@ proto.lnrpc.CheckMacPermRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.CheckMacPermRequest} msg The msg instance to transform. * @return {!Object} @@ -48009,9 +52032,12 @@ proto.lnrpc.CheckMacPermRequest.prototype.getMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.CheckMacPermRequest} returns this + */ proto.lnrpc.CheckMacPermRequest.prototype.setMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -48025,9 +52051,12 @@ proto.lnrpc.CheckMacPermRequest.prototype.getPermissionsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.CheckMacPermRequest} returns this +*/ proto.lnrpc.CheckMacPermRequest.prototype.setPermissionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -48041,8 +52070,12 @@ proto.lnrpc.CheckMacPermRequest.prototype.addPermissions = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.CheckMacPermRequest} returns this + */ proto.lnrpc.CheckMacPermRequest.prototype.clearPermissionsList = function() { - this.setPermissionsList([]); + return this.setPermissionsList([]); }; @@ -48055,41 +52088,29 @@ proto.lnrpc.CheckMacPermRequest.prototype.getFullmethod = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.CheckMacPermRequest} returns this + */ proto.lnrpc.CheckMacPermRequest.prototype.setFullmethod = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.lnrpc.CheckMacPermResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.CheckMacPermResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.CheckMacPermResponse.displayName = 'proto.lnrpc.CheckMacPermResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.CheckMacPermResponse.prototype.toObject = function(opt_includeInstance) { @@ -48099,8 +52120,8 @@ proto.lnrpc.CheckMacPermResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.CheckMacPermResponse} msg The msg instance to transform. * @return {!Object} @@ -48108,7 +52129,7 @@ proto.lnrpc.CheckMacPermResponse.prototype.toObject = function(opt_includeInstan */ proto.lnrpc.CheckMacPermResponse.toObject = function(includeInstance, msg) { var f, obj = { - valid: jspb.Message.getFieldWithDefault(msg, 1, false) + valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -48190,39 +52211,23 @@ proto.lnrpc.CheckMacPermResponse.serializeBinaryToWriter = function(message, wri /** * optional bool valid = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.CheckMacPermResponse.prototype.getValid = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.CheckMacPermResponse} returns this + */ proto.lnrpc.CheckMacPermResponse.prototype.setValid = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * 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.lnrpc.RPCMiddlewareRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_); -}; -goog.inherits(proto.lnrpc.RPCMiddlewareRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RPCMiddlewareRequest.displayName = 'proto.lnrpc.RPCMiddlewareRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -48255,13 +52260,15 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getInterceptTypeCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RPCMiddlewareRequest.prototype.toObject = function(opt_includeInstance) { @@ -48271,8 +52278,8 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RPCMiddlewareRequest} msg The msg instance to transform. * @return {!Object} @@ -48286,7 +52293,7 @@ proto.lnrpc.RPCMiddlewareRequest.toObject = function(includeInstance, msg) { streamAuth: (f = msg.getStreamAuth()) && proto.lnrpc.StreamAuth.toObject(includeInstance, f), request: (f = msg.getRequest()) && proto.lnrpc.RPCMessage.toObject(includeInstance, f), response: (f = msg.getResponse()) && proto.lnrpc.RPCMessage.toObject(includeInstance, f), - regComplete: jspb.Message.getFieldWithDefault(msg, 8, false), + regComplete: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), msgId: jspb.Message.getFieldWithDefault(msg, 7, "0") }; @@ -48459,9 +52466,12 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getRequestId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.setRequestId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -48498,9 +52508,12 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getRawMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.setRawMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -48513,9 +52526,12 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getCustomCaveatCondition = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.setCustomCaveatCondition = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -48529,20 +52545,27 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getStreamAuth = function() { }; -/** @param {?proto.lnrpc.StreamAuth|undefined} value */ +/** + * @param {?proto.lnrpc.StreamAuth|undefined} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this +*/ proto.lnrpc.RPCMiddlewareRequest.prototype.setStreamAuth = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.clearStreamAuth = function() { - this.setStreamAuth(undefined); + return this.setStreamAuth(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareRequest.prototype.hasStreamAuth = function() { return jspb.Message.getField(this, 4) != null; @@ -48559,20 +52582,27 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getRequest = function() { }; -/** @param {?proto.lnrpc.RPCMessage|undefined} value */ +/** + * @param {?proto.lnrpc.RPCMessage|undefined} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this +*/ proto.lnrpc.RPCMiddlewareRequest.prototype.setRequest = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.clearRequest = function() { - this.setRequest(undefined); + return this.setRequest(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareRequest.prototype.hasRequest = function() { return jspb.Message.getField(this, 5) != null; @@ -48589,20 +52619,27 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getResponse = function() { }; -/** @param {?proto.lnrpc.RPCMessage|undefined} value */ +/** + * @param {?proto.lnrpc.RPCMessage|undefined} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this +*/ proto.lnrpc.RPCMiddlewareRequest.prototype.setResponse = function(value) { - jspb.Message.setOneofWrapperField(this, 6, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 6, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.clearResponse = function() { - this.setResponse(undefined); + return this.setResponse(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareRequest.prototype.hasResponse = function() { return jspb.Message.getField(this, 6) != null; @@ -48611,29 +52648,34 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.hasResponse = function() { /** * optional bool reg_complete = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.RPCMiddlewareRequest.prototype.getRegComplete = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.setRegComplete = function(value) { - jspb.Message.setOneofField(this, 8, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 8, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.clearRegComplete = function() { - jspb.Message.setOneofField(this, 8, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 8, proto.lnrpc.RPCMiddlewareRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareRequest.prototype.hasRegComplete = function() { return jspb.Message.getField(this, 8) != null; @@ -48649,41 +52691,29 @@ proto.lnrpc.RPCMiddlewareRequest.prototype.getMsgId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMiddlewareRequest} returns this + */ proto.lnrpc.RPCMiddlewareRequest.prototype.setMsgId = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; -/** - * 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.lnrpc.StreamAuth = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.StreamAuth, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.StreamAuth.displayName = 'proto.lnrpc.StreamAuth'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.StreamAuth.prototype.toObject = function(opt_includeInstance) { @@ -48693,8 +52723,8 @@ proto.lnrpc.StreamAuth.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.StreamAuth} msg The msg instance to transform. * @return {!Object} @@ -48791,41 +52821,29 @@ proto.lnrpc.StreamAuth.prototype.getMethodFullUri = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.StreamAuth} returns this + */ proto.lnrpc.StreamAuth.prototype.setMethodFullUri = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.lnrpc.RPCMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.RPCMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RPCMessage.displayName = 'proto.lnrpc.RPCMessage'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RPCMessage.prototype.toObject = function(opt_includeInstance) { @@ -48835,8 +52853,8 @@ proto.lnrpc.RPCMessage.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RPCMessage} msg The msg instance to transform. * @return {!Object} @@ -48845,10 +52863,10 @@ proto.lnrpc.RPCMessage.prototype.toObject = function(opt_includeInstance) { proto.lnrpc.RPCMessage.toObject = function(includeInstance, msg) { var f, obj = { methodFullUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - streamRpc: jspb.Message.getFieldWithDefault(msg, 2, false), + streamRpc: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), typeName: jspb.Message.getFieldWithDefault(msg, 3, ""), serialized: msg.getSerialized_asB64(), - isError: jspb.Message.getFieldWithDefault(msg, 5, false) + isError: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) }; if (includeInstance) { @@ -48981,26 +52999,30 @@ proto.lnrpc.RPCMessage.prototype.getMethodFullUri = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMessage} returns this + */ proto.lnrpc.RPCMessage.prototype.setMethodFullUri = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool stream_rpc = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.RPCMessage.prototype.getStreamRpc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.RPCMessage} returns this + */ proto.lnrpc.RPCMessage.prototype.setStreamRpc = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -49013,9 +53035,12 @@ proto.lnrpc.RPCMessage.prototype.getTypeName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMessage} returns this + */ proto.lnrpc.RPCMessage.prototype.setTypeName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -49052,47 +53077,34 @@ proto.lnrpc.RPCMessage.prototype.getSerialized_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.RPCMessage} returns this + */ proto.lnrpc.RPCMessage.prototype.setSerialized = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; /** * optional bool is_error = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.RPCMessage.prototype.getIsError = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.RPCMessage} returns this + */ proto.lnrpc.RPCMessage.prototype.setIsError = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; -/** - * 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.lnrpc.RPCMiddlewareResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_); -}; -goog.inherits(proto.lnrpc.RPCMiddlewareResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.RPCMiddlewareResponse.displayName = 'proto.lnrpc.RPCMiddlewareResponse'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -49123,13 +53135,15 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.getMiddlewareMessageCase = function( if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.RPCMiddlewareResponse.prototype.toObject = function(opt_includeInstance) { @@ -49139,8 +53153,8 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.RPCMiddlewareResponse} msg The msg instance to transform. * @return {!Object} @@ -49265,9 +53279,12 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.getRefMsgId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.RPCMiddlewareResponse} returns this + */ proto.lnrpc.RPCMiddlewareResponse.prototype.setRefMsgId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -49281,20 +53298,27 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.getRegister = function() { }; -/** @param {?proto.lnrpc.MiddlewareRegistration|undefined} value */ +/** + * @param {?proto.lnrpc.MiddlewareRegistration|undefined} value + * @return {!proto.lnrpc.RPCMiddlewareResponse} returns this +*/ proto.lnrpc.RPCMiddlewareResponse.prototype.setRegister = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareResponse} returns this + */ proto.lnrpc.RPCMiddlewareResponse.prototype.clearRegister = function() { - this.setRegister(undefined); + return this.setRegister(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareResponse.prototype.hasRegister = function() { return jspb.Message.getField(this, 2) != null; @@ -49311,20 +53335,27 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.getFeedback = function() { }; -/** @param {?proto.lnrpc.InterceptFeedback|undefined} value */ +/** + * @param {?proto.lnrpc.InterceptFeedback|undefined} value + * @return {!proto.lnrpc.RPCMiddlewareResponse} returns this +*/ proto.lnrpc.RPCMiddlewareResponse.prototype.setFeedback = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.lnrpc.RPCMiddlewareResponse.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.RPCMiddlewareResponse} returns this + */ proto.lnrpc.RPCMiddlewareResponse.prototype.clearFeedback = function() { - this.setFeedback(undefined); + return this.setFeedback(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.RPCMiddlewareResponse.prototype.hasFeedback = function() { return jspb.Message.getField(this, 3) != null; @@ -49332,34 +53363,19 @@ proto.lnrpc.RPCMiddlewareResponse.prototype.hasFeedback = function() { -/** - * 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.lnrpc.MiddlewareRegistration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.MiddlewareRegistration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.MiddlewareRegistration.displayName = 'proto.lnrpc.MiddlewareRegistration'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.MiddlewareRegistration.prototype.toObject = function(opt_includeInstance) { @@ -49369,8 +53385,8 @@ proto.lnrpc.MiddlewareRegistration.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.MiddlewareRegistration} msg The msg instance to transform. * @return {!Object} @@ -49380,7 +53396,7 @@ proto.lnrpc.MiddlewareRegistration.toObject = function(includeInstance, msg) { var f, obj = { middlewareName: jspb.Message.getFieldWithDefault(msg, 1, ""), customMacaroonCaveatName: jspb.Message.getFieldWithDefault(msg, 2, ""), - readOnlyMode: jspb.Message.getFieldWithDefault(msg, 3, false) + readOnlyMode: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -49491,9 +53507,12 @@ proto.lnrpc.MiddlewareRegistration.prototype.getMiddlewareName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.MiddlewareRegistration} returns this + */ proto.lnrpc.MiddlewareRegistration.prototype.setMiddlewareName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -49506,58 +53525,47 @@ proto.lnrpc.MiddlewareRegistration.prototype.getCustomMacaroonCaveatName = funct }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.MiddlewareRegistration} returns this + */ proto.lnrpc.MiddlewareRegistration.prototype.setCustomMacaroonCaveatName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional bool read_only_mode = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.MiddlewareRegistration.prototype.getReadOnlyMode = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.MiddlewareRegistration} returns this + */ proto.lnrpc.MiddlewareRegistration.prototype.setReadOnlyMode = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; -/** - * 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.lnrpc.InterceptFeedback = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.InterceptFeedback, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.InterceptFeedback.displayName = 'proto.lnrpc.InterceptFeedback'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.lnrpc.InterceptFeedback.prototype.toObject = function(opt_includeInstance) { @@ -49567,8 +53575,8 @@ proto.lnrpc.InterceptFeedback.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.lnrpc.InterceptFeedback} msg The msg instance to transform. * @return {!Object} @@ -49577,7 +53585,7 @@ proto.lnrpc.InterceptFeedback.prototype.toObject = function(opt_includeInstance) proto.lnrpc.InterceptFeedback.toObject = function(includeInstance, msg) { var f, obj = { error: jspb.Message.getFieldWithDefault(msg, 1, ""), - replaceResponse: jspb.Message.getFieldWithDefault(msg, 2, false), + replaceResponse: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), replacementSerialized: msg.getReplacementSerialized_asB64() }; @@ -49689,26 +53697,30 @@ proto.lnrpc.InterceptFeedback.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.InterceptFeedback} returns this + */ proto.lnrpc.InterceptFeedback.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool replace_response = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.lnrpc.InterceptFeedback.prototype.getReplaceResponse = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.InterceptFeedback} returns this + */ proto.lnrpc.InterceptFeedback.prototype.setReplaceResponse = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -49745,9 +53757,12 @@ proto.lnrpc.InterceptFeedback.prototype.getReplacementSerialized_asU8 = function }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.InterceptFeedback} returns this + */ proto.lnrpc.InterceptFeedback.prototype.setReplacementSerialized = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; diff --git a/app/src/types/generated/loop_pb.js b/app/src/types/generated/loop_pb.js index b51357e04..2d1150424 100644 --- a/app/src/types/generated/loop_pb.js +++ b/app/src/types/generated/loop_pb.js @@ -1,20 +1,31 @@ /* eslint-disable */ var proto = { looprpc: {} }; +// source: loop.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); var swapserverrpc_common_pb = require('./swapserverrpc/common_pb.js'); +goog.object.extend(proto, swapserverrpc_common_pb); goog.exportSymbol('proto.looprpc.AutoReason', null, global); goog.exportSymbol('proto.looprpc.Disqualified', null, global); goog.exportSymbol('proto.looprpc.FailureReason', null, global); @@ -47,7 +58,6 @@ goog.exportSymbol('proto.looprpc.SwapType', null, global); goog.exportSymbol('proto.looprpc.TermsRequest', null, global); goog.exportSymbol('proto.looprpc.TokensRequest', null, global); goog.exportSymbol('proto.looprpc.TokensResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -58,13 +68,564 @@ goog.exportSymbol('proto.looprpc.TokensResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.looprpc.LoopOutRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LoopOutRequest.repeatedFields_, null); +proto.looprpc.LoopOutRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LoopOutRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.LoopOutRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LoopOutRequest.displayName = 'proto.looprpc.LoopOutRequest'; +} +/** + * 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.looprpc.LoopInRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LoopInRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.LoopInRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LoopInRequest.displayName = 'proto.looprpc.LoopInRequest'; +} +/** + * 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.looprpc.SwapResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SwapResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SwapResponse.displayName = 'proto.looprpc.SwapResponse'; +} +/** + * 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.looprpc.MonitorRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.MonitorRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.MonitorRequest.displayName = 'proto.looprpc.MonitorRequest'; +} +/** + * 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.looprpc.SwapStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.SwapStatus.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.SwapStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SwapStatus.displayName = 'proto.looprpc.SwapStatus'; +} +/** + * 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.looprpc.ListSwapsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ListSwapsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListSwapsRequest.displayName = 'proto.looprpc.ListSwapsRequest'; +} +/** + * 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.looprpc.ListSwapsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListSwapsResponse.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ListSwapsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListSwapsResponse.displayName = 'proto.looprpc.ListSwapsResponse'; +} +/** + * 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.looprpc.SwapInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SwapInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SwapInfoRequest.displayName = 'proto.looprpc.SwapInfoRequest'; +} +/** + * 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.looprpc.TermsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.TermsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.TermsRequest.displayName = 'proto.looprpc.TermsRequest'; +} +/** + * 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.looprpc.InTermsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.InTermsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InTermsResponse.displayName = 'proto.looprpc.InTermsResponse'; +} +/** + * 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.looprpc.OutTermsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.OutTermsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.OutTermsResponse.displayName = 'proto.looprpc.OutTermsResponse'; +} +/** + * 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.looprpc.QuoteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.QuoteRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.QuoteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.QuoteRequest.displayName = 'proto.looprpc.QuoteRequest'; +} +/** + * 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.looprpc.InQuoteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.InQuoteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InQuoteResponse.displayName = 'proto.looprpc.InQuoteResponse'; +} +/** + * 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.looprpc.OutQuoteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.OutQuoteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.OutQuoteResponse.displayName = 'proto.looprpc.OutQuoteResponse'; +} +/** + * 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.looprpc.ProbeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ProbeRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ProbeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ProbeRequest.displayName = 'proto.looprpc.ProbeRequest'; +} +/** + * 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.looprpc.ProbeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ProbeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ProbeResponse.displayName = 'proto.looprpc.ProbeResponse'; +} +/** + * 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.looprpc.TokensRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.TokensRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.TokensRequest.displayName = 'proto.looprpc.TokensRequest'; +} +/** + * 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.looprpc.TokensResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.TokensResponse.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.TokensResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.TokensResponse.displayName = 'proto.looprpc.TokensResponse'; +} +/** + * 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.looprpc.LsatToken = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.LsatToken, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LsatToken.displayName = 'proto.looprpc.LsatToken'; +} +/** + * 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.looprpc.GetLiquidityParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.GetLiquidityParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.GetLiquidityParamsRequest.displayName = 'proto.looprpc.GetLiquidityParamsRequest'; +} +/** + * 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.looprpc.LiquidityParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LiquidityParameters.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.LiquidityParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LiquidityParameters.displayName = 'proto.looprpc.LiquidityParameters'; +} +/** + * 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.looprpc.LiquidityRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.LiquidityRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LiquidityRule.displayName = 'proto.looprpc.LiquidityRule'; +} +/** + * 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.looprpc.SetLiquidityParamsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SetLiquidityParamsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SetLiquidityParamsRequest.displayName = 'proto.looprpc.SetLiquidityParamsRequest'; +} +/** + * 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.looprpc.SetLiquidityParamsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SetLiquidityParamsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SetLiquidityParamsResponse.displayName = 'proto.looprpc.SetLiquidityParamsResponse'; +} +/** + * 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.looprpc.SuggestSwapsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SuggestSwapsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SuggestSwapsRequest.displayName = 'proto.looprpc.SuggestSwapsRequest'; +} +/** + * 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.looprpc.Disqualified = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.looprpc.LoopOutRequest, jspb.Message); +goog.inherits(proto.looprpc.Disqualified, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.looprpc.LoopOutRequest.displayName = 'proto.looprpc.LoopOutRequest'; + /** + * @public + * @override + */ + proto.looprpc.Disqualified.displayName = 'proto.looprpc.Disqualified'; +} +/** + * 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.looprpc.SuggestSwapsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.SuggestSwapsResponse.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.SuggestSwapsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SuggestSwapsResponse.displayName = 'proto.looprpc.SuggestSwapsResponse'; } + /** * List of repeated fields within this message type. * @private {!Array} @@ -76,13 +637,15 @@ proto.looprpc.LoopOutRequest.repeatedFields_ = [11]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.LoopOutRequest.prototype.toObject = function(opt_includeInstance) { @@ -92,8 +655,8 @@ proto.looprpc.LoopOutRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.LoopOutRequest} msg The msg instance to transform. * @return {!Object} @@ -109,7 +672,7 @@ proto.looprpc.LoopOutRequest.toObject = function(includeInstance, msg) { maxPrepayAmt: jspb.Message.getFieldWithDefault(msg, 6, "0"), maxMinerFee: jspb.Message.getFieldWithDefault(msg, 7, "0"), loopOutChannel: jspb.Message.getFieldWithDefault(msg, 8, "0"), - outgoingChanSetList: jspb.Message.getRepeatedField(msg, 11), + outgoingChanSetList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, sweepConfTarget: jspb.Message.getFieldWithDefault(msg, 9, 0), htlcConfirmations: jspb.Message.getFieldWithDefault(msg, 13, 0), swapPublicationDeadline: jspb.Message.getFieldWithDefault(msg, 10, "0"), @@ -184,8 +747,10 @@ proto.looprpc.LoopOutRequest.deserializeBinaryFromReader = function(msg, reader) msg.setLoopOutChannel(value); break; case 11: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setOutgoingChanSetList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addOutgoingChanSet(values[i]); + } break; case 9: var value = /** @type {number} */ (reader.readInt32()); @@ -346,9 +911,12 @@ proto.looprpc.LoopOutRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -361,9 +929,12 @@ proto.looprpc.LoopOutRequest.prototype.getDest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setDest = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -376,9 +947,12 @@ proto.looprpc.LoopOutRequest.prototype.getMaxSwapRoutingFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setMaxSwapRoutingFee = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -391,9 +965,12 @@ proto.looprpc.LoopOutRequest.prototype.getMaxPrepayRoutingFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setMaxPrepayRoutingFee = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -406,9 +983,12 @@ proto.looprpc.LoopOutRequest.prototype.getMaxSwapFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setMaxSwapFee = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -421,9 +1001,12 @@ proto.looprpc.LoopOutRequest.prototype.getMaxPrepayAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setMaxPrepayAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -436,9 +1019,12 @@ proto.looprpc.LoopOutRequest.prototype.getMaxMinerFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setMaxMinerFee = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -451,9 +1037,12 @@ proto.looprpc.LoopOutRequest.prototype.getLoopOutChannel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setLoopOutChannel = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -466,23 +1055,31 @@ proto.looprpc.LoopOutRequest.prototype.getOutgoingChanSetList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setOutgoingChanSetList = function(value) { - jspb.Message.setField(this, 11, value || []); + return jspb.Message.setField(this, 11, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.looprpc.LoopOutRequest} returns this */ proto.looprpc.LoopOutRequest.prototype.addOutgoingChanSet = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 11, value, opt_index); + return jspb.Message.addToRepeatedField(this, 11, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.clearOutgoingChanSetList = function() { - this.setOutgoingChanSetList([]); + return this.setOutgoingChanSetList([]); }; @@ -495,9 +1092,12 @@ proto.looprpc.LoopOutRequest.prototype.getSweepConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setSweepConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -510,9 +1110,12 @@ proto.looprpc.LoopOutRequest.prototype.getHtlcConfirmations = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setHtlcConfirmations = function(value) { - jspb.Message.setProto3IntField(this, 13, value); + return jspb.Message.setProto3IntField(this, 13, value); }; @@ -525,9 +1128,12 @@ proto.looprpc.LoopOutRequest.prototype.getSwapPublicationDeadline = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setSwapPublicationDeadline = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -540,9 +1146,12 @@ proto.looprpc.LoopOutRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 12, value); + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -555,30 +1164,16 @@ proto.looprpc.LoopOutRequest.prototype.getInitiator = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setInitiator = function(value) { - jspb.Message.setProto3StringField(this, 14, value); + return jspb.Message.setProto3StringField(this, 14, value); }; -/** - * 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.looprpc.LoopInRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LoopInRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.LoopInRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.LoopInRequest.displayName = 'proto.looprpc.LoopInRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -590,13 +1185,15 @@ proto.looprpc.LoopInRequest.repeatedFields_ = [9]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.LoopInRequest.prototype.toObject = function(opt_includeInstance) { @@ -606,8 +1203,8 @@ proto.looprpc.LoopInRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.LoopInRequest} msg The msg instance to transform. * @return {!Object} @@ -619,13 +1216,13 @@ proto.looprpc.LoopInRequest.toObject = function(includeInstance, msg) { maxSwapFee: jspb.Message.getFieldWithDefault(msg, 2, "0"), maxMinerFee: jspb.Message.getFieldWithDefault(msg, 3, "0"), lastHop: msg.getLastHop_asB64(), - externalHtlc: jspb.Message.getFieldWithDefault(msg, 5, false), + externalHtlc: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), htlcConfTarget: jspb.Message.getFieldWithDefault(msg, 6, 0), label: jspb.Message.getFieldWithDefault(msg, 7, ""), initiator: jspb.Message.getFieldWithDefault(msg, 8, ""), routeHintsList: jspb.Message.toObjectList(msg.getRouteHintsList(), swapserverrpc_common_pb.RouteHint.toObject, includeInstance), - pb_private: jspb.Message.getFieldWithDefault(msg, 10, false) + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) }; if (includeInstance) { @@ -815,9 +1412,12 @@ proto.looprpc.LoopInRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -830,9 +1430,12 @@ proto.looprpc.LoopInRequest.prototype.getMaxSwapFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setMaxSwapFee = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -845,9 +1448,12 @@ proto.looprpc.LoopInRequest.prototype.getMaxMinerFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setMaxMinerFee = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -884,26 +1490,30 @@ proto.looprpc.LoopInRequest.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; /** * optional bool external_htlc = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.LoopInRequest.prototype.getExternalHtlc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setExternalHtlc = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -916,9 +1526,12 @@ proto.looprpc.LoopInRequest.prototype.getHtlcConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setHtlcConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -931,9 +1544,12 @@ proto.looprpc.LoopInRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -946,9 +1562,12 @@ proto.looprpc.LoopInRequest.prototype.getInitiator = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setInitiator = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -962,9 +1581,12 @@ proto.looprpc.LoopInRequest.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.LoopInRequest} returns this +*/ proto.looprpc.LoopInRequest.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 9, value); + return jspb.Message.setRepeatedWrapperField(this, 9, value); }; @@ -978,57 +1600,47 @@ proto.looprpc.LoopInRequest.prototype.addRouteHints = function(opt_value, opt_in }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; /** * optional bool private = 10; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.LoopInRequest.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.LoopInRequest} returns this + */ proto.looprpc.LoopInRequest.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 10, value); + return jspb.Message.setProto3BooleanField(this, 10, value); }; -/** - * 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.looprpc.SwapResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SwapResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SwapResponse.displayName = 'proto.looprpc.SwapResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SwapResponse.prototype.toObject = function(opt_includeInstance) { @@ -1038,8 +1650,8 @@ proto.looprpc.SwapResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SwapResponse} msg The msg instance to transform. * @return {!Object} @@ -1196,9 +1808,12 @@ proto.looprpc.SwapResponse.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1235,9 +1850,12 @@ proto.looprpc.SwapResponse.prototype.getIdBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setIdBytes = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -1250,9 +1868,12 @@ proto.looprpc.SwapResponse.prototype.getHtlcAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setHtlcAddress = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1265,9 +1886,12 @@ proto.looprpc.SwapResponse.prototype.getHtlcAddressP2wsh = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setHtlcAddressP2wsh = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -1280,9 +1904,12 @@ proto.looprpc.SwapResponse.prototype.getHtlcAddressP2tr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setHtlcAddressP2tr = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -1295,41 +1922,29 @@ proto.looprpc.SwapResponse.prototype.getServerMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapResponse} returns this + */ proto.looprpc.SwapResponse.prototype.setServerMessage = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * 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.looprpc.MonitorRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.MonitorRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.MonitorRequest.displayName = 'proto.looprpc.MonitorRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.MonitorRequest.prototype.toObject = function(opt_includeInstance) { @@ -1339,8 +1954,8 @@ proto.looprpc.MonitorRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.MonitorRequest} msg The msg instance to transform. * @return {!Object} @@ -1418,23 +2033,6 @@ proto.looprpc.MonitorRequest.serializeBinaryToWriter = function(message, writer) -/** - * 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.looprpc.SwapStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.SwapStatus.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.SwapStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SwapStatus.displayName = 'proto.looprpc.SwapStatus'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1446,13 +2044,15 @@ proto.looprpc.SwapStatus.repeatedFields_ = [17]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SwapStatus.prototype.toObject = function(opt_includeInstance) { @@ -1462,8 +2062,8 @@ proto.looprpc.SwapStatus.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SwapStatus} msg The msg instance to transform. * @return {!Object} @@ -1486,7 +2086,7 @@ proto.looprpc.SwapStatus.toObject = function(includeInstance, msg) { costOnchain: jspb.Message.getFieldWithDefault(msg, 9, "0"), costOffchain: jspb.Message.getFieldWithDefault(msg, 10, "0"), lastHop: msg.getLastHop_asB64(), - outgoingChanSetList: jspb.Message.getRepeatedField(msg, 17), + outgoingChanSetList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, label: jspb.Message.getFieldWithDefault(msg, 15, "") }; @@ -1585,8 +2185,10 @@ proto.looprpc.SwapStatus.deserializeBinaryFromReader = function(msg, reader) { msg.setLastHop(value); break; case 17: - var value = /** @type {!Array} */ (reader.readPackedUint64String()); - msg.setOutgoingChanSetList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64String() : [reader.readUint64String()]); + for (var i = 0; i < values.length; i++) { + msg.addOutgoingChanSet(values[i]); + } break; case 15: var value = /** @type {string} */ (reader.readString()); @@ -1752,9 +2354,12 @@ proto.looprpc.SwapStatus.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -1767,9 +2372,12 @@ proto.looprpc.SwapStatus.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -1806,9 +2414,12 @@ proto.looprpc.SwapStatus.prototype.getIdBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setIdBytes = function(value) { - jspb.Message.setProto3BytesField(this, 11, value); + return jspb.Message.setProto3BytesField(this, 11, value); }; @@ -1821,9 +2432,12 @@ proto.looprpc.SwapStatus.prototype.getType = function() { }; -/** @param {!proto.looprpc.SwapType} value */ +/** + * @param {!proto.looprpc.SwapType} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); + return jspb.Message.setProto3EnumField(this, 3, value); }; @@ -1836,9 +2450,12 @@ proto.looprpc.SwapStatus.prototype.getState = function() { }; -/** @param {!proto.looprpc.SwapState} value */ +/** + * @param {!proto.looprpc.SwapState} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -1851,9 +2468,12 @@ proto.looprpc.SwapStatus.prototype.getFailureReason = function() { }; -/** @param {!proto.looprpc.FailureReason} value */ +/** + * @param {!proto.looprpc.FailureReason} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setFailureReason = function(value) { - jspb.Message.setProto3EnumField(this, 14, value); + return jspb.Message.setProto3EnumField(this, 14, value); }; @@ -1866,9 +2486,12 @@ proto.looprpc.SwapStatus.prototype.getInitiationTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setInitiationTime = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -1881,9 +2504,12 @@ proto.looprpc.SwapStatus.prototype.getLastUpdateTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setLastUpdateTime = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -1896,9 +2522,12 @@ proto.looprpc.SwapStatus.prototype.getHtlcAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setHtlcAddress = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -1911,9 +2540,12 @@ proto.looprpc.SwapStatus.prototype.getHtlcAddressP2wsh = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setHtlcAddressP2wsh = function(value) { - jspb.Message.setProto3StringField(this, 12, value); + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -1926,9 +2558,12 @@ proto.looprpc.SwapStatus.prototype.getHtlcAddressP2tr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setHtlcAddressP2tr = function(value) { - jspb.Message.setProto3StringField(this, 18, value); + return jspb.Message.setProto3StringField(this, 18, value); }; @@ -1941,9 +2576,12 @@ proto.looprpc.SwapStatus.prototype.getCostServer = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setCostServer = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -1956,9 +2594,12 @@ proto.looprpc.SwapStatus.prototype.getCostOnchain = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setCostOnchain = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -1971,9 +2612,12 @@ proto.looprpc.SwapStatus.prototype.getCostOffchain = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setCostOffchain = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -2010,9 +2654,12 @@ proto.looprpc.SwapStatus.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 16, value); + return jspb.Message.setProto3BytesField(this, 16, value); }; @@ -2025,23 +2672,31 @@ proto.looprpc.SwapStatus.prototype.getOutgoingChanSetList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setOutgoingChanSetList = function(value) { - jspb.Message.setField(this, 17, value || []); + return jspb.Message.setField(this, 17, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.looprpc.SwapStatus} returns this */ proto.looprpc.SwapStatus.prototype.addOutgoingChanSet = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 17, value, opt_index); + return jspb.Message.addToRepeatedField(this, 17, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.clearOutgoingChanSetList = function() { - this.setOutgoingChanSetList([]); + return this.setOutgoingChanSetList([]); }; @@ -2054,41 +2709,29 @@ proto.looprpc.SwapStatus.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SwapStatus} returns this + */ proto.looprpc.SwapStatus.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 15, value); + return jspb.Message.setProto3StringField(this, 15, value); }; -/** - * 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.looprpc.ListSwapsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ListSwapsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListSwapsRequest.displayName = 'proto.looprpc.ListSwapsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ListSwapsRequest.prototype.toObject = function(opt_includeInstance) { @@ -2098,8 +2741,8 @@ proto.looprpc.ListSwapsRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ListSwapsRequest} msg The msg instance to transform. * @return {!Object} @@ -2177,23 +2820,6 @@ proto.looprpc.ListSwapsRequest.serializeBinaryToWriter = function(message, write -/** - * 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.looprpc.ListSwapsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListSwapsResponse.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ListSwapsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListSwapsResponse.displayName = 'proto.looprpc.ListSwapsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2205,13 +2831,15 @@ proto.looprpc.ListSwapsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ListSwapsResponse.prototype.toObject = function(opt_includeInstance) { @@ -2221,8 +2849,8 @@ proto.looprpc.ListSwapsResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ListSwapsResponse} msg The msg instance to transform. * @return {!Object} @@ -2323,9 +2951,12 @@ proto.looprpc.ListSwapsResponse.prototype.getSwapsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ListSwapsResponse} returns this +*/ proto.looprpc.ListSwapsResponse.prototype.setSwapsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -2339,40 +2970,29 @@ proto.looprpc.ListSwapsResponse.prototype.addSwaps = function(opt_value, opt_ind }; -proto.looprpc.ListSwapsResponse.prototype.clearSwapsList = function() { - this.setSwapsList([]); -}; - - - /** - * 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 + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ListSwapsResponse} returns this */ -proto.looprpc.SwapInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.looprpc.ListSwapsResponse.prototype.clearSwapsList = function() { + return this.setSwapsList([]); }; -goog.inherits(proto.looprpc.SwapInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SwapInfoRequest.displayName = 'proto.looprpc.SwapInfoRequest'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SwapInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -2382,8 +3002,8 @@ proto.looprpc.SwapInfoRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SwapInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -2504,41 +3124,29 @@ proto.looprpc.SwapInfoRequest.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.SwapInfoRequest} returns this + */ proto.looprpc.SwapInfoRequest.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.looprpc.TermsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.TermsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.TermsRequest.displayName = 'proto.looprpc.TermsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.TermsRequest.prototype.toObject = function(opt_includeInstance) { @@ -2548,8 +3156,8 @@ proto.looprpc.TermsRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.TermsRequest} msg The msg instance to transform. * @return {!Object} @@ -2627,34 +3235,19 @@ proto.looprpc.TermsRequest.serializeBinaryToWriter = function(message, writer) { -/** - * 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.looprpc.InTermsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.InTermsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InTermsResponse.displayName = 'proto.looprpc.InTermsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.InTermsResponse.prototype.toObject = function(opt_includeInstance) { @@ -2664,8 +3257,8 @@ proto.looprpc.InTermsResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.InTermsResponse} msg The msg instance to transform. * @return {!Object} @@ -2774,9 +3367,12 @@ proto.looprpc.InTermsResponse.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InTermsResponse} returns this + */ proto.looprpc.InTermsResponse.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -2789,41 +3385,29 @@ proto.looprpc.InTermsResponse.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InTermsResponse} returns this + */ proto.looprpc.InTermsResponse.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; -/** - * 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.looprpc.OutTermsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.OutTermsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.OutTermsResponse.displayName = 'proto.looprpc.OutTermsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.OutTermsResponse.prototype.toObject = function(opt_includeInstance) { @@ -2833,8 +3417,8 @@ proto.looprpc.OutTermsResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.OutTermsResponse} msg The msg instance to transform. * @return {!Object} @@ -2967,9 +3551,12 @@ proto.looprpc.OutTermsResponse.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.OutTermsResponse} returns this + */ proto.looprpc.OutTermsResponse.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -2982,9 +3569,12 @@ proto.looprpc.OutTermsResponse.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.OutTermsResponse} returns this + */ proto.looprpc.OutTermsResponse.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -2997,9 +3587,12 @@ proto.looprpc.OutTermsResponse.prototype.getMinCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.OutTermsResponse} returns this + */ proto.looprpc.OutTermsResponse.prototype.setMinCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -3012,30 +3605,16 @@ proto.looprpc.OutTermsResponse.prototype.getMaxCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.OutTermsResponse} returns this + */ proto.looprpc.OutTermsResponse.prototype.setMaxCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; -/** - * 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.looprpc.QuoteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.QuoteRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.QuoteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.QuoteRequest.displayName = 'proto.looprpc.QuoteRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -3047,13 +3626,15 @@ proto.looprpc.QuoteRequest.repeatedFields_ = [6]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.QuoteRequest.prototype.toObject = function(opt_includeInstance) { @@ -3063,8 +3644,8 @@ proto.looprpc.QuoteRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.QuoteRequest} msg The msg instance to transform. * @return {!Object} @@ -3074,12 +3655,12 @@ proto.looprpc.QuoteRequest.toObject = function(includeInstance, msg) { var f, obj = { amt: jspb.Message.getFieldWithDefault(msg, 1, "0"), confTarget: jspb.Message.getFieldWithDefault(msg, 2, 0), - externalHtlc: jspb.Message.getFieldWithDefault(msg, 3, false), + externalHtlc: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), swapPublicationDeadline: jspb.Message.getFieldWithDefault(msg, 4, "0"), loopInLastHop: msg.getLoopInLastHop_asB64(), loopInRouteHintsList: jspb.Message.toObjectList(msg.getLoopInRouteHintsList(), swapserverrpc_common_pb.RouteHint.toObject, includeInstance), - pb_private: jspb.Message.getFieldWithDefault(msg, 7, false) + pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -3236,9 +3817,12 @@ proto.looprpc.QuoteRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3251,26 +3835,30 @@ proto.looprpc.QuoteRequest.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional bool external_htlc = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.QuoteRequest.prototype.getExternalHtlc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setExternalHtlc = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -3283,9 +3871,12 @@ proto.looprpc.QuoteRequest.prototype.getSwapPublicationDeadline = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setSwapPublicationDeadline = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -3322,9 +3913,12 @@ proto.looprpc.QuoteRequest.prototype.getLoopInLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setLoopInLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -3338,9 +3932,12 @@ proto.looprpc.QuoteRequest.prototype.getLoopInRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.QuoteRequest} returns this +*/ proto.looprpc.QuoteRequest.prototype.setLoopInRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 6, value); + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -3354,57 +3951,47 @@ proto.looprpc.QuoteRequest.prototype.addLoopInRouteHints = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.clearLoopInRouteHintsList = function() { - this.setLoopInRouteHintsList([]); + return this.setLoopInRouteHintsList([]); }; /** * optional bool private = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.QuoteRequest.prototype.getPrivate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.QuoteRequest} returns this + */ proto.looprpc.QuoteRequest.prototype.setPrivate = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; -/** - * 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.looprpc.InQuoteResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.InQuoteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InQuoteResponse.displayName = 'proto.looprpc.InQuoteResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.InQuoteResponse.prototype.toObject = function(opt_includeInstance) { @@ -3414,8 +4001,8 @@ proto.looprpc.InQuoteResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.InQuoteResponse} msg The msg instance to transform. * @return {!Object} @@ -3548,9 +4135,12 @@ proto.looprpc.InQuoteResponse.prototype.getSwapFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InQuoteResponse} returns this + */ proto.looprpc.InQuoteResponse.prototype.setSwapFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3563,9 +4153,12 @@ proto.looprpc.InQuoteResponse.prototype.getHtlcPublishFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InQuoteResponse} returns this + */ proto.looprpc.InQuoteResponse.prototype.setHtlcPublishFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -3578,9 +4171,12 @@ proto.looprpc.InQuoteResponse.prototype.getCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.InQuoteResponse} returns this + */ proto.looprpc.InQuoteResponse.prototype.setCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -3593,41 +4189,29 @@ proto.looprpc.InQuoteResponse.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.InQuoteResponse} returns this + */ proto.looprpc.InQuoteResponse.prototype.setConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.looprpc.OutQuoteResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.OutQuoteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.OutQuoteResponse.displayName = 'proto.looprpc.OutQuoteResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.OutQuoteResponse.prototype.toObject = function(opt_includeInstance) { @@ -3637,8 +4221,8 @@ proto.looprpc.OutQuoteResponse.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.OutQuoteResponse} msg The msg instance to transform. * @return {!Object} @@ -3795,9 +4379,12 @@ proto.looprpc.OutQuoteResponse.prototype.getSwapFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setSwapFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3810,9 +4397,12 @@ proto.looprpc.OutQuoteResponse.prototype.getPrepayAmtSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setPrepayAmtSat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -3825,9 +4415,12 @@ proto.looprpc.OutQuoteResponse.prototype.getHtlcSweepFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setHtlcSweepFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -3864,9 +4457,12 @@ proto.looprpc.OutQuoteResponse.prototype.getSwapPaymentDest_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setSwapPaymentDest = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -3879,9 +4475,12 @@ proto.looprpc.OutQuoteResponse.prototype.getCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -3894,30 +4493,16 @@ proto.looprpc.OutQuoteResponse.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.OutQuoteResponse} returns this + */ proto.looprpc.OutQuoteResponse.prototype.setConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.looprpc.ProbeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ProbeRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ProbeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ProbeRequest.displayName = 'proto.looprpc.ProbeRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -3929,13 +4514,15 @@ proto.looprpc.ProbeRequest.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ProbeRequest.prototype.toObject = function(opt_includeInstance) { @@ -3945,8 +4532,8 @@ proto.looprpc.ProbeRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ProbeRequest} msg The msg instance to transform. * @return {!Object} @@ -4070,9 +4657,12 @@ proto.looprpc.ProbeRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ProbeRequest} returns this + */ proto.looprpc.ProbeRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -4109,9 +4699,12 @@ proto.looprpc.ProbeRequest.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ProbeRequest} returns this + */ proto.looprpc.ProbeRequest.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -4125,9 +4718,12 @@ proto.looprpc.ProbeRequest.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ProbeRequest} returns this +*/ proto.looprpc.ProbeRequest.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -4141,40 +4737,29 @@ proto.looprpc.ProbeRequest.prototype.addRouteHints = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ProbeRequest} returns this + */ proto.looprpc.ProbeRequest.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; -/** - * 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.looprpc.ProbeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ProbeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ProbeResponse.displayName = 'proto.looprpc.ProbeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ProbeResponse.prototype.toObject = function(opt_includeInstance) { @@ -4184,8 +4769,8 @@ proto.looprpc.ProbeResponse.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ProbeResponse} msg The msg instance to transform. * @return {!Object} @@ -4263,34 +4848,19 @@ proto.looprpc.ProbeResponse.serializeBinaryToWriter = function(message, writer) -/** - * 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.looprpc.TokensRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.TokensRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.TokensRequest.displayName = 'proto.looprpc.TokensRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.TokensRequest.prototype.toObject = function(opt_includeInstance) { @@ -4300,8 +4870,8 @@ proto.looprpc.TokensRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.TokensRequest} msg The msg instance to transform. * @return {!Object} @@ -4377,25 +4947,8 @@ proto.looprpc.TokensRequest.serializeBinaryToWriter = function(message, writer) var f = undefined; }; - - -/** - * 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.looprpc.TokensResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.TokensResponse.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.TokensResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.TokensResponse.displayName = 'proto.looprpc.TokensResponse'; -} + + /** * List of repeated fields within this message type. * @private {!Array} @@ -4407,13 +4960,15 @@ proto.looprpc.TokensResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.TokensResponse.prototype.toObject = function(opt_includeInstance) { @@ -4423,8 +4978,8 @@ proto.looprpc.TokensResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.TokensResponse} msg The msg instance to transform. * @return {!Object} @@ -4525,9 +5080,12 @@ proto.looprpc.TokensResponse.prototype.getTokensList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.TokensResponse} returns this +*/ proto.looprpc.TokensResponse.prototype.setTokensList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -4541,40 +5099,29 @@ proto.looprpc.TokensResponse.prototype.addTokens = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.TokensResponse} returns this + */ proto.looprpc.TokensResponse.prototype.clearTokensList = function() { - this.setTokensList([]); + return this.setTokensList([]); }; -/** - * 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.looprpc.LsatToken = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.LsatToken, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.LsatToken.displayName = 'proto.looprpc.LsatToken'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.LsatToken.prototype.toObject = function(opt_includeInstance) { @@ -4584,8 +5131,8 @@ proto.looprpc.LsatToken.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.LsatToken} msg The msg instance to transform. * @return {!Object} @@ -4599,7 +5146,7 @@ proto.looprpc.LsatToken.toObject = function(includeInstance, msg) { amountPaidMsat: jspb.Message.getFieldWithDefault(msg, 4, "0"), routingFeePaidMsat: jspb.Message.getFieldWithDefault(msg, 5, "0"), timeCreated: jspb.Message.getFieldWithDefault(msg, 6, "0"), - expired: jspb.Message.getFieldWithDefault(msg, 7, false), + expired: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), storageName: jspb.Message.getFieldWithDefault(msg, 8, "") }; @@ -4790,9 +5337,12 @@ proto.looprpc.LsatToken.prototype.getBaseMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setBaseMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4829,9 +5379,12 @@ proto.looprpc.LsatToken.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -4868,9 +5421,12 @@ proto.looprpc.LsatToken.prototype.getPaymentPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setPaymentPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -4883,9 +5439,12 @@ proto.looprpc.LsatToken.prototype.getAmountPaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setAmountPaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -4898,9 +5457,12 @@ proto.looprpc.LsatToken.prototype.getRoutingFeePaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setRoutingFeePaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -4913,26 +5475,30 @@ proto.looprpc.LsatToken.prototype.getTimeCreated = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setTimeCreated = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** * optional bool expired = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.LsatToken.prototype.getExpired = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setExpired = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -4945,41 +5511,29 @@ proto.looprpc.LsatToken.prototype.getStorageName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LsatToken} returns this + */ proto.looprpc.LsatToken.prototype.setStorageName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; -/** - * 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.looprpc.GetLiquidityParamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.GetLiquidityParamsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.GetLiquidityParamsRequest.displayName = 'proto.looprpc.GetLiquidityParamsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.GetLiquidityParamsRequest.prototype.toObject = function(opt_includeInstance) { @@ -4989,8 +5543,8 @@ proto.looprpc.GetLiquidityParamsRequest.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.GetLiquidityParamsRequest} msg The msg instance to transform. * @return {!Object} @@ -5068,23 +5622,6 @@ proto.looprpc.GetLiquidityParamsRequest.serializeBinaryToWriter = function(messa -/** - * 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.looprpc.LiquidityParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.LiquidityParameters.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.LiquidityParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.LiquidityParameters.displayName = 'proto.looprpc.LiquidityParameters'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -5096,13 +5633,15 @@ proto.looprpc.LiquidityParameters.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.LiquidityParameters.prototype.toObject = function(opt_includeInstance) { @@ -5112,8 +5651,8 @@ proto.looprpc.LiquidityParameters.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.LiquidityParameters} msg The msg instance to transform. * @return {!Object} @@ -5132,7 +5671,7 @@ proto.looprpc.LiquidityParameters.toObject = function(includeInstance, msg) { maxMinerFeeSat: jspb.Message.getFieldWithDefault(msg, 7, "0"), sweepConfTarget: jspb.Message.getFieldWithDefault(msg, 8, 0), failureBackoffSec: jspb.Message.getFieldWithDefault(msg, 9, "0"), - autoloop: jspb.Message.getFieldWithDefault(msg, 10, false), + autoloop: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), autoloopBudgetSat: jspb.Message.getFieldWithDefault(msg, 11, "0"), autoloopBudgetStartSec: jspb.Message.getFieldWithDefault(msg, 12, "0"), autoMaxInFlight: jspb.Message.getFieldWithDefault(msg, 13, "0"), @@ -5442,9 +5981,12 @@ proto.looprpc.LiquidityParameters.prototype.getRulesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.LiquidityParameters} returns this +*/ proto.looprpc.LiquidityParameters.prototype.setRulesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -5458,8 +6000,12 @@ proto.looprpc.LiquidityParameters.prototype.addRules = function(opt_value, opt_i }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.clearRulesList = function() { - this.setRulesList([]); + return this.setRulesList([]); }; @@ -5472,9 +6018,12 @@ proto.looprpc.LiquidityParameters.prototype.getFeePpm = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setFeePpm = function(value) { - jspb.Message.setProto3StringIntField(this, 16, value); + return jspb.Message.setProto3StringIntField(this, 16, value); }; @@ -5487,9 +6036,12 @@ proto.looprpc.LiquidityParameters.prototype.getSweepFeeRateSatPerVbyte = functio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setSweepFeeRateSatPerVbyte = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -5502,9 +6054,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxSwapFeePpm = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxSwapFeePpm = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -5517,9 +6072,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxRoutingFeePpm = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxRoutingFeePpm = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -5532,9 +6090,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxPrepayRoutingFeePpm = function }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxPrepayRoutingFeePpm = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -5547,9 +6108,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxPrepaySat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxPrepaySat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -5562,9 +6126,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxMinerFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxMinerFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -5577,9 +6144,12 @@ proto.looprpc.LiquidityParameters.prototype.getSweepConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setSweepConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -5592,26 +6162,30 @@ proto.looprpc.LiquidityParameters.prototype.getFailureBackoffSec = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setFailureBackoffSec = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; /** * optional bool autoloop = 10; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.LiquidityParameters.prototype.getAutoloop = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloop = function(value) { - jspb.Message.setProto3BooleanField(this, 10, value); + return jspb.Message.setProto3BooleanField(this, 10, value); }; @@ -5624,9 +6198,12 @@ proto.looprpc.LiquidityParameters.prototype.getAutoloopBudgetSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloopBudgetSat = function(value) { - jspb.Message.setProto3StringIntField(this, 11, value); + return jspb.Message.setProto3StringIntField(this, 11, value); }; @@ -5639,9 +6216,12 @@ proto.looprpc.LiquidityParameters.prototype.getAutoloopBudgetStartSec = function }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloopBudgetStartSec = function(value) { - jspb.Message.setProto3StringIntField(this, 12, value); + return jspb.Message.setProto3StringIntField(this, 12, value); }; @@ -5654,9 +6234,12 @@ proto.looprpc.LiquidityParameters.prototype.getAutoMaxInFlight = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoMaxInFlight = function(value) { - jspb.Message.setProto3StringIntField(this, 13, value); + return jspb.Message.setProto3StringIntField(this, 13, value); }; @@ -5669,9 +6252,12 @@ proto.looprpc.LiquidityParameters.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 14, value); + return jspb.Message.setProto3StringIntField(this, 14, value); }; @@ -5684,9 +6270,12 @@ proto.looprpc.LiquidityParameters.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 15, value); + return jspb.Message.setProto3StringIntField(this, 15, value); }; @@ -5699,9 +6288,12 @@ proto.looprpc.LiquidityParameters.prototype.getHtlcConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setHtlcConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 17, value); + return jspb.Message.setProto3IntField(this, 17, value); }; @@ -5714,9 +6306,12 @@ proto.looprpc.LiquidityParameters.prototype.getAutoloopDestAddress = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloopDestAddress = function(value) { - jspb.Message.setProto3StringField(this, 18, value); + return jspb.Message.setProto3StringField(this, 18, value); }; @@ -5729,9 +6324,12 @@ proto.looprpc.LiquidityParameters.prototype.getAutoloopBudgetRefreshPeriodSec = }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloopBudgetRefreshPeriodSec = function(value) { - jspb.Message.setProto3StringIntField(this, 19, value); + return jspb.Message.setProto3StringIntField(this, 19, value); }; @@ -5744,41 +6342,29 @@ proto.looprpc.LiquidityParameters.prototype.getAutoloopBudgetLastRefresh = funct }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAutoloopBudgetLastRefresh = function(value) { - jspb.Message.setProto3StringIntField(this, 20, value); + return jspb.Message.setProto3StringIntField(this, 20, value); }; -/** - * 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.looprpc.LiquidityRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.LiquidityRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.LiquidityRule.displayName = 'proto.looprpc.LiquidityRule'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.LiquidityRule.prototype.toObject = function(opt_includeInstance) { @@ -5788,8 +6374,8 @@ proto.looprpc.LiquidityRule.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.LiquidityRule} msg The msg instance to transform. * @return {!Object} @@ -5946,9 +6532,12 @@ proto.looprpc.LiquidityRule.prototype.getChannelId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setChannelId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -5961,9 +6550,12 @@ proto.looprpc.LiquidityRule.prototype.getSwapType = function() { }; -/** @param {!proto.looprpc.SwapType} value */ +/** + * @param {!proto.looprpc.SwapType} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setSwapType = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -6000,9 +6592,12 @@ proto.looprpc.LiquidityRule.prototype.getPubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -6015,9 +6610,12 @@ proto.looprpc.LiquidityRule.prototype.getType = function() { }; -/** @param {!proto.looprpc.LiquidityRuleType} value */ +/** + * @param {!proto.looprpc.LiquidityRuleType} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -6030,9 +6628,12 @@ proto.looprpc.LiquidityRule.prototype.getIncomingThreshold = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setIncomingThreshold = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -6045,41 +6646,29 @@ proto.looprpc.LiquidityRule.prototype.getOutgoingThreshold = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LiquidityRule} returns this + */ proto.looprpc.LiquidityRule.prototype.setOutgoingThreshold = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * 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.looprpc.SetLiquidityParamsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SetLiquidityParamsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SetLiquidityParamsRequest.displayName = 'proto.looprpc.SetLiquidityParamsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SetLiquidityParamsRequest.prototype.toObject = function(opt_includeInstance) { @@ -6089,8 +6678,8 @@ proto.looprpc.SetLiquidityParamsRequest.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SetLiquidityParamsRequest} msg The msg instance to transform. * @return {!Object} @@ -6190,20 +6779,27 @@ proto.looprpc.SetLiquidityParamsRequest.prototype.getParameters = function() { }; -/** @param {?proto.looprpc.LiquidityParameters|undefined} value */ +/** + * @param {?proto.looprpc.LiquidityParameters|undefined} value + * @return {!proto.looprpc.SetLiquidityParamsRequest} returns this +*/ proto.looprpc.SetLiquidityParamsRequest.prototype.setParameters = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.looprpc.SetLiquidityParamsRequest} returns this + */ proto.looprpc.SetLiquidityParamsRequest.prototype.clearParameters = function() { - this.setParameters(undefined); + return this.setParameters(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.looprpc.SetLiquidityParamsRequest.prototype.hasParameters = function() { return jspb.Message.getField(this, 1) != null; @@ -6211,34 +6807,19 @@ proto.looprpc.SetLiquidityParamsRequest.prototype.hasParameters = function() { -/** - * 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.looprpc.SetLiquidityParamsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SetLiquidityParamsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SetLiquidityParamsResponse.displayName = 'proto.looprpc.SetLiquidityParamsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SetLiquidityParamsResponse.prototype.toObject = function(opt_includeInstance) { @@ -6248,8 +6829,8 @@ proto.looprpc.SetLiquidityParamsResponse.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SetLiquidityParamsResponse} msg The msg instance to transform. * @return {!Object} @@ -6327,34 +6908,19 @@ proto.looprpc.SetLiquidityParamsResponse.serializeBinaryToWriter = function(mess -/** - * 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.looprpc.SuggestSwapsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SuggestSwapsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SuggestSwapsRequest.displayName = 'proto.looprpc.SuggestSwapsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SuggestSwapsRequest.prototype.toObject = function(opt_includeInstance) { @@ -6364,8 +6930,8 @@ proto.looprpc.SuggestSwapsRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SuggestSwapsRequest} msg The msg instance to transform. * @return {!Object} @@ -6443,34 +7009,19 @@ proto.looprpc.SuggestSwapsRequest.serializeBinaryToWriter = function(message, wr -/** - * 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.looprpc.Disqualified = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.Disqualified, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.Disqualified.displayName = 'proto.looprpc.Disqualified'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.Disqualified.prototype.toObject = function(opt_includeInstance) { @@ -6480,8 +7031,8 @@ proto.looprpc.Disqualified.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.Disqualified} msg The msg instance to transform. * @return {!Object} @@ -6602,9 +7153,12 @@ proto.looprpc.Disqualified.prototype.getChannelId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.Disqualified} returns this + */ proto.looprpc.Disqualified.prototype.setChannelId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -6641,9 +7195,12 @@ proto.looprpc.Disqualified.prototype.getPubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.Disqualified} returns this + */ proto.looprpc.Disqualified.prototype.setPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -6656,30 +7213,16 @@ proto.looprpc.Disqualified.prototype.getReason = function() { }; -/** @param {!proto.looprpc.AutoReason} value */ +/** + * @param {!proto.looprpc.AutoReason} value + * @return {!proto.looprpc.Disqualified} returns this + */ proto.looprpc.Disqualified.prototype.setReason = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.looprpc.SuggestSwapsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.SuggestSwapsResponse.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.SuggestSwapsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SuggestSwapsResponse.displayName = 'proto.looprpc.SuggestSwapsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -6691,13 +7234,15 @@ proto.looprpc.SuggestSwapsResponse.repeatedFields_ = [1,3,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SuggestSwapsResponse.prototype.toObject = function(opt_includeInstance) { @@ -6707,8 +7252,8 @@ proto.looprpc.SuggestSwapsResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SuggestSwapsResponse} msg The msg instance to transform. * @return {!Object} @@ -6839,9 +7384,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.getLoopOutList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.SuggestSwapsResponse} returns this +*/ proto.looprpc.SuggestSwapsResponse.prototype.setLoopOutList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -6855,8 +7403,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.addLoopOut = function(opt_value, op }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.SuggestSwapsResponse} returns this + */ proto.looprpc.SuggestSwapsResponse.prototype.clearLoopOutList = function() { - this.setLoopOutList([]); + return this.setLoopOutList([]); }; @@ -6870,9 +7422,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.getLoopInList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.SuggestSwapsResponse} returns this +*/ proto.looprpc.SuggestSwapsResponse.prototype.setLoopInList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -6886,8 +7441,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.addLoopIn = function(opt_value, opt }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.SuggestSwapsResponse} returns this + */ proto.looprpc.SuggestSwapsResponse.prototype.clearLoopInList = function() { - this.setLoopInList([]); + return this.setLoopInList([]); }; @@ -6901,9 +7460,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.getDisqualifiedList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.SuggestSwapsResponse} returns this +*/ proto.looprpc.SuggestSwapsResponse.prototype.setDisqualifiedList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -6917,8 +7479,12 @@ proto.looprpc.SuggestSwapsResponse.prototype.addDisqualified = function(opt_valu }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.SuggestSwapsResponse} returns this + */ proto.looprpc.SuggestSwapsResponse.prototype.clearDisqualifiedList = function() { - this.setDisqualifiedList([]); + return this.setDisqualifiedList([]); }; diff --git a/app/src/types/generated/proxy_pb.js b/app/src/types/generated/proxy_pb.js index 1aa1c6d25..f8fe19938 100644 --- a/app/src/types/generated/proxy_pb.js +++ b/app/src/types/generated/proxy_pb.js @@ -1,24 +1,33 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: proxy.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.litrpc.GetInfoRequest', null, global); goog.exportSymbol('proto.litrpc.GetInfoResponse', null, global); goog.exportSymbol('proto.litrpc.StopDaemonRequest', null, global); goog.exportSymbol('proto.litrpc.StopDaemonResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -34,19 +43,89 @@ proto.litrpc.StopDaemonRequest = function(opt_data) { }; goog.inherits(proto.litrpc.StopDaemonRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.StopDaemonRequest.displayName = 'proto.litrpc.StopDaemonRequest'; } +/** + * 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.litrpc.StopDaemonResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.StopDaemonResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.StopDaemonResponse.displayName = 'proto.litrpc.StopDaemonResponse'; +} +/** + * 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.litrpc.GetInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.GetInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.GetInfoRequest.displayName = 'proto.litrpc.GetInfoRequest'; +} +/** + * 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.litrpc.GetInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.GetInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.GetInfoResponse.displayName = 'proto.litrpc.GetInfoResponse'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.StopDaemonRequest.prototype.toObject = function(opt_includeInstance) { @@ -56,8 +135,8 @@ proto.litrpc.StopDaemonRequest.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.StopDaemonRequest} msg The msg instance to transform. * @return {!Object} @@ -135,34 +214,19 @@ proto.litrpc.StopDaemonRequest.serializeBinaryToWriter = function(message, write -/** - * 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.litrpc.StopDaemonResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.StopDaemonResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.StopDaemonResponse.displayName = 'proto.litrpc.StopDaemonResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.StopDaemonResponse.prototype.toObject = function(opt_includeInstance) { @@ -172,8 +236,8 @@ proto.litrpc.StopDaemonResponse.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.StopDaemonResponse} msg The msg instance to transform. * @return {!Object} @@ -251,34 +315,19 @@ proto.litrpc.StopDaemonResponse.serializeBinaryToWriter = function(message, writ -/** - * 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.litrpc.GetInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.GetInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.GetInfoRequest.displayName = 'proto.litrpc.GetInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -288,8 +337,8 @@ proto.litrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.GetInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -367,34 +416,19 @@ proto.litrpc.GetInfoRequest.serializeBinaryToWriter = function(message, writer) -/** - * 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.litrpc.GetInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.GetInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.GetInfoResponse.displayName = 'proto.litrpc.GetInfoResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.litrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -404,8 +438,8 @@ proto.litrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.litrpc.GetInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -502,9 +536,12 @@ proto.litrpc.GetInfoResponse.prototype.getVersion = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.GetInfoResponse} returns this + */ proto.litrpc.GetInfoResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; diff --git a/app/src/types/generated/swapserverrpc/common_pb.js b/app/src/types/generated/swapserverrpc/common_pb.js index 441ca111c..5a16aa0d2 100644 --- a/app/src/types/generated/swapserverrpc/common_pb.js +++ b/app/src/types/generated/swapserverrpc/common_pb.js @@ -1,22 +1,31 @@ /* eslint-disable */ var proto = { looprpc: {} }; +// source: swapserverrpc/common.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); goog.exportSymbol('proto.looprpc.HopHint', null, global); goog.exportSymbol('proto.looprpc.RouteHint', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -32,19 +41,47 @@ proto.looprpc.HopHint = function(opt_data) { }; goog.inherits(proto.looprpc.HopHint, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.looprpc.HopHint.displayName = 'proto.looprpc.HopHint'; } +/** + * 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.looprpc.RouteHint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.RouteHint.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.RouteHint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.RouteHint.displayName = 'proto.looprpc.RouteHint'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.HopHint.prototype.toObject = function(opt_includeInstance) { @@ -54,8 +91,8 @@ proto.looprpc.HopHint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.HopHint} msg The msg instance to transform. * @return {!Object} @@ -200,9 +237,12 @@ proto.looprpc.HopHint.prototype.getNodeId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.HopHint} returns this + */ proto.looprpc.HopHint.prototype.setNodeId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -215,9 +255,12 @@ proto.looprpc.HopHint.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.HopHint} returns this + */ proto.looprpc.HopHint.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -230,9 +273,12 @@ proto.looprpc.HopHint.prototype.getFeeBaseMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.HopHint} returns this + */ proto.looprpc.HopHint.prototype.setFeeBaseMsat = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -245,9 +291,12 @@ proto.looprpc.HopHint.prototype.getFeeProportionalMillionths = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.HopHint} returns this + */ proto.looprpc.HopHint.prototype.setFeeProportionalMillionths = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -260,30 +309,16 @@ proto.looprpc.HopHint.prototype.getCltvExpiryDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.HopHint} returns this + */ proto.looprpc.HopHint.prototype.setCltvExpiryDelta = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * 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.looprpc.RouteHint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.RouteHint.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.RouteHint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.RouteHint.displayName = 'proto.looprpc.RouteHint'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -295,13 +330,15 @@ proto.looprpc.RouteHint.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.RouteHint.prototype.toObject = function(opt_includeInstance) { @@ -311,8 +348,8 @@ proto.looprpc.RouteHint.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.RouteHint} msg The msg instance to transform. * @return {!Object} @@ -413,9 +450,12 @@ proto.looprpc.RouteHint.prototype.getHopHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.RouteHint} returns this +*/ proto.looprpc.RouteHint.prototype.setHopHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -429,8 +469,12 @@ proto.looprpc.RouteHint.prototype.addHopHints = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.RouteHint} returns this + */ proto.looprpc.RouteHint.prototype.clearHopHintsList = function() { - this.setHopHintsList([]); + return this.setHopHintsList([]); }; diff --git a/app/src/types/generated/swapserverrpc/server_pb.js b/app/src/types/generated/swapserverrpc/server_pb.js index 0deffb261..0080e8ad5 100644 --- a/app/src/types/generated/swapserverrpc/server_pb.js +++ b/app/src/types/generated/swapserverrpc/server_pb.js @@ -1,21 +1,33 @@ /* eslint-disable */ var proto = { looprpc: {} }; +// source: swapserverrpc/server.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); var swapserverrpc_common_pb = require('../swapserverrpc/common_pb.js'); +goog.object.extend(proto, swapserverrpc_common_pb); goog.exportSymbol('proto.looprpc.CancelLoopOutSwapRequest', null, global); +goog.exportSymbol('proto.looprpc.CancelLoopOutSwapRequest.CancelInfoCase', null, global); goog.exportSymbol('proto.looprpc.CancelLoopOutSwapResponse', null, global); goog.exportSymbol('proto.looprpc.HtlcAttempt', null, global); goog.exportSymbol('proto.looprpc.MuSig2SignSweepReq', null, global); @@ -51,7 +63,6 @@ goog.exportSymbol('proto.looprpc.ServerSwapState', null, global); goog.exportSymbol('proto.looprpc.SubscribeLoopInUpdatesResponse', null, global); goog.exportSymbol('proto.looprpc.SubscribeLoopOutUpdatesResponse', null, global); goog.exportSymbol('proto.looprpc.SubscribeUpdatesRequest', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -62,24 +73,661 @@ goog.exportSymbol('proto.looprpc.SubscribeUpdatesRequest', null, global); * @extends {jspb.Message} * @constructor */ -proto.looprpc.ServerLoopOutRequest = function(opt_data) { +proto.looprpc.ServerLoopOutRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutRequest.displayName = 'proto.looprpc.ServerLoopOutRequest'; +} +/** + * 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.looprpc.ServerLoopOutResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutResponse.displayName = 'proto.looprpc.ServerLoopOutResponse'; +} +/** + * 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.looprpc.ServerLoopOutQuoteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutQuoteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutQuoteRequest.displayName = 'proto.looprpc.ServerLoopOutQuoteRequest'; +} +/** + * 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.looprpc.ServerLoopOutQuote = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutQuote, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutQuote.displayName = 'proto.looprpc.ServerLoopOutQuote'; +} +/** + * 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.looprpc.ServerLoopOutTermsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutTermsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutTermsRequest.displayName = 'proto.looprpc.ServerLoopOutTermsRequest'; +} +/** + * 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.looprpc.ServerLoopOutTerms = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutTerms, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutTerms.displayName = 'proto.looprpc.ServerLoopOutTerms'; +} +/** + * 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.looprpc.ServerLoopInRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopInRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInRequest.displayName = 'proto.looprpc.ServerLoopInRequest'; +} +/** + * 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.looprpc.ServerLoopInResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopInResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInResponse.displayName = 'proto.looprpc.ServerLoopInResponse'; +} +/** + * 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.looprpc.ServerLoopInQuoteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ServerLoopInQuoteRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ServerLoopInQuoteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInQuoteRequest.displayName = 'proto.looprpc.ServerLoopInQuoteRequest'; +} +/** + * 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.looprpc.ServerLoopInQuoteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopInQuoteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInQuoteResponse.displayName = 'proto.looprpc.ServerLoopInQuoteResponse'; +} +/** + * 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.looprpc.ServerLoopInTermsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopInTermsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInTermsRequest.displayName = 'proto.looprpc.ServerLoopInTermsRequest'; +} +/** + * 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.looprpc.ServerLoopInTerms = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopInTerms, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopInTerms.displayName = 'proto.looprpc.ServerLoopInTerms'; +} +/** + * 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.looprpc.ServerLoopOutPushPreimageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutPushPreimageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutPushPreimageRequest.displayName = 'proto.looprpc.ServerLoopOutPushPreimageRequest'; +} +/** + * 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.looprpc.ServerLoopOutPushPreimageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerLoopOutPushPreimageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerLoopOutPushPreimageResponse.displayName = 'proto.looprpc.ServerLoopOutPushPreimageResponse'; +} +/** + * 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.looprpc.SubscribeUpdatesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SubscribeUpdatesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SubscribeUpdatesRequest.displayName = 'proto.looprpc.SubscribeUpdatesRequest'; +} +/** + * 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.looprpc.SubscribeLoopOutUpdatesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SubscribeLoopOutUpdatesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SubscribeLoopOutUpdatesResponse.displayName = 'proto.looprpc.SubscribeLoopOutUpdatesResponse'; +} +/** + * 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.looprpc.SubscribeLoopInUpdatesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.SubscribeLoopInUpdatesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.SubscribeLoopInUpdatesResponse.displayName = 'proto.looprpc.SubscribeLoopInUpdatesResponse'; +} +/** + * 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.looprpc.RouteCancel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.RouteCancel.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.RouteCancel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.RouteCancel.displayName = 'proto.looprpc.RouteCancel'; +} +/** + * 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.looprpc.HtlcAttempt = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.HtlcAttempt, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.HtlcAttempt.displayName = 'proto.looprpc.HtlcAttempt'; +} +/** + * 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.looprpc.CancelLoopOutSwapRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.looprpc.CancelLoopOutSwapRequest.oneofGroups_); +}; +goog.inherits(proto.looprpc.CancelLoopOutSwapRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.CancelLoopOutSwapRequest.displayName = 'proto.looprpc.CancelLoopOutSwapRequest'; +} +/** + * 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.looprpc.CancelLoopOutSwapResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.CancelLoopOutSwapResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.CancelLoopOutSwapResponse.displayName = 'proto.looprpc.CancelLoopOutSwapResponse'; +} +/** + * 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.looprpc.ServerProbeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ServerProbeRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ServerProbeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerProbeRequest.displayName = 'proto.looprpc.ServerProbeRequest'; +} +/** + * 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.looprpc.ServerProbeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerProbeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerProbeResponse.displayName = 'proto.looprpc.ServerProbeResponse'; +} +/** + * 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.looprpc.RecommendRoutingPluginReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.RecommendRoutingPluginReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.RecommendRoutingPluginReq.displayName = 'proto.looprpc.RecommendRoutingPluginReq'; +} +/** + * 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.looprpc.RecommendRoutingPluginRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.RecommendRoutingPluginRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.RecommendRoutingPluginRes.displayName = 'proto.looprpc.RecommendRoutingPluginRes'; +} +/** + * 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.looprpc.ReportRoutingResultReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ReportRoutingResultReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ReportRoutingResultReq.displayName = 'proto.looprpc.ReportRoutingResultReq'; +} +/** + * 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.looprpc.ReportRoutingResultRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ReportRoutingResultRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ReportRoutingResultRes.displayName = 'proto.looprpc.ReportRoutingResultRes'; +} +/** + * 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.looprpc.MuSig2SignSweepReq = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.MuSig2SignSweepReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.MuSig2SignSweepReq.displayName = 'proto.looprpc.MuSig2SignSweepReq'; +} +/** + * 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.looprpc.MuSig2SignSweepRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.MuSig2SignSweepRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.MuSig2SignSweepRes.displayName = 'proto.looprpc.MuSig2SignSweepRes'; +} +/** + * 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.looprpc.ServerPushKeyReq = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.looprpc.ServerLoopOutRequest, jspb.Message); +goog.inherits(proto.looprpc.ServerPushKeyReq, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutRequest.displayName = 'proto.looprpc.ServerLoopOutRequest'; + /** + * @public + * @override + */ + proto.looprpc.ServerPushKeyReq.displayName = 'proto.looprpc.ServerPushKeyReq'; +} +/** + * 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.looprpc.ServerPushKeyRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ServerPushKeyRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ServerPushKeyRes.displayName = 'proto.looprpc.ServerPushKeyRes'; } + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutRequest.prototype.toObject = function(opt_includeInstance) { @@ -89,8 +737,8 @@ proto.looprpc.ServerLoopOutRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutRequest} msg The msg instance to transform. * @return {!Object} @@ -283,9 +931,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getReceiverKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setReceiverKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -322,9 +973,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -337,9 +991,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -352,9 +1009,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getSwapPublicationDeadline = functi }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setSwapPublicationDeadline = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -367,9 +1027,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); + return jspb.Message.setProto3EnumField(this, 5, value); }; @@ -382,9 +1045,12 @@ proto.looprpc.ServerLoopOutRequest.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -397,41 +1063,29 @@ proto.looprpc.ServerLoopOutRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutRequest} returns this + */ proto.looprpc.ServerLoopOutRequest.prototype.setUserAgent = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; -/** - * 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.looprpc.ServerLoopOutResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutResponse.displayName = 'proto.looprpc.ServerLoopOutResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutResponse.prototype.toObject = function(opt_includeInstance) { @@ -441,8 +1095,8 @@ proto.looprpc.ServerLoopOutResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutResponse} msg The msg instance to transform. * @return {!Object} @@ -587,9 +1241,12 @@ proto.looprpc.ServerLoopOutResponse.prototype.getSwapInvoice = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this + */ proto.looprpc.ServerLoopOutResponse.prototype.setSwapInvoice = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -602,9 +1259,12 @@ proto.looprpc.ServerLoopOutResponse.prototype.getPrepayInvoice = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this + */ proto.looprpc.ServerLoopOutResponse.prototype.setPrepayInvoice = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -641,9 +1301,12 @@ proto.looprpc.ServerLoopOutResponse.prototype.getSenderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this + */ proto.looprpc.ServerLoopOutResponse.prototype.setSenderKey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -656,9 +1319,12 @@ proto.looprpc.ServerLoopOutResponse.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this + */ proto.looprpc.ServerLoopOutResponse.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -671,41 +1337,29 @@ proto.looprpc.ServerLoopOutResponse.prototype.getServerMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this + */ proto.looprpc.ServerLoopOutResponse.prototype.setServerMessage = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; -/** - * 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.looprpc.ServerLoopOutQuoteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutQuoteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutQuoteRequest.displayName = 'proto.looprpc.ServerLoopOutQuoteRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutQuoteRequest.prototype.toObject = function(opt_includeInstance) { @@ -715,8 +1369,8 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutQuoteRequest} msg The msg instance to transform. * @return {!Object} @@ -849,9 +1503,12 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuoteRequest} returns this + */ proto.looprpc.ServerLoopOutQuoteRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -864,9 +1521,12 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.getSwapPublicationDeadline = f }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuoteRequest} returns this + */ proto.looprpc.ServerLoopOutQuoteRequest.prototype.setSwapPublicationDeadline = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -879,9 +1539,12 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.getProtocolVersion = function( }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopOutQuoteRequest} returns this + */ proto.looprpc.ServerLoopOutQuoteRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); + return jspb.Message.setProto3EnumField(this, 3, value); }; @@ -894,41 +1557,29 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutQuoteRequest} returns this + */ proto.looprpc.ServerLoopOutQuoteRequest.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * 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.looprpc.ServerLoopOutQuote = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutQuote, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutQuote.displayName = 'proto.looprpc.ServerLoopOutQuote'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutQuote.prototype.toObject = function(opt_includeInstance) { @@ -938,8 +1589,8 @@ proto.looprpc.ServerLoopOutQuote.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutQuote} msg The msg instance to transform. * @return {!Object} @@ -1108,9 +1759,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getSwapPaymentDest = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setSwapPaymentDest = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1123,9 +1777,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getSwapFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setSwapFee = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -1138,9 +1795,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getSwapFeeRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setSwapFeeRate = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -1153,9 +1813,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getPrepayAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setPrepayAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -1168,9 +1831,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -1183,9 +1849,12 @@ proto.looprpc.ServerLoopOutQuote.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -1198,41 +1867,29 @@ proto.looprpc.ServerLoopOutQuote.prototype.getCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutQuote} returns this + */ proto.looprpc.ServerLoopOutQuote.prototype.setCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; -/** - * 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.looprpc.ServerLoopOutTermsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutTermsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutTermsRequest.displayName = 'proto.looprpc.ServerLoopOutTermsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutTermsRequest.prototype.toObject = function(opt_includeInstance) { @@ -1242,8 +1899,8 @@ proto.looprpc.ServerLoopOutTermsRequest.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutTermsRequest} msg The msg instance to transform. * @return {!Object} @@ -1340,41 +1997,29 @@ proto.looprpc.ServerLoopOutTermsRequest.prototype.getProtocolVersion = function( }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopOutTermsRequest} returns this + */ proto.looprpc.ServerLoopOutTermsRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; -/** - * 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.looprpc.ServerLoopOutTerms = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutTerms, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutTerms.displayName = 'proto.looprpc.ServerLoopOutTerms'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutTerms.prototype.toObject = function(opt_includeInstance) { @@ -1384,8 +2029,8 @@ proto.looprpc.ServerLoopOutTerms.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutTerms} msg The msg instance to transform. * @return {!Object} @@ -1518,9 +2163,12 @@ proto.looprpc.ServerLoopOutTerms.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutTerms} returns this + */ proto.looprpc.ServerLoopOutTerms.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -1533,9 +2181,12 @@ proto.looprpc.ServerLoopOutTerms.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutTerms} returns this + */ proto.looprpc.ServerLoopOutTerms.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -1548,9 +2199,12 @@ proto.looprpc.ServerLoopOutTerms.prototype.getMinCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutTerms} returns this + */ proto.looprpc.ServerLoopOutTerms.prototype.setMinCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -1563,41 +2217,29 @@ proto.looprpc.ServerLoopOutTerms.prototype.getMaxCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopOutTerms} returns this + */ proto.looprpc.ServerLoopOutTerms.prototype.setMaxCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * 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.looprpc.ServerLoopInRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopInRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInRequest.displayName = 'proto.looprpc.ServerLoopInRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInRequest.prototype.toObject = function(opt_includeInstance) { @@ -1607,8 +2249,8 @@ proto.looprpc.ServerLoopInRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInRequest} msg The msg instance to transform. * @return {!Object} @@ -1825,9 +2467,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getSenderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setSenderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -1864,9 +2509,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getSenderInternalPubkey_asU8 = funct }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setSenderInternalPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -1903,9 +2551,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -1918,9 +2569,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -1933,9 +2587,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getSwapInvoice = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setSwapInvoice = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -1972,9 +2629,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -1987,9 +2647,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -2002,9 +2665,12 @@ proto.looprpc.ServerLoopInRequest.prototype.getProbeInvoice = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setProbeInvoice = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -2017,41 +2683,29 @@ proto.looprpc.ServerLoopInRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInRequest} returns this + */ proto.looprpc.ServerLoopInRequest.prototype.setUserAgent = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; -/** - * 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.looprpc.ServerLoopInResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopInResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInResponse.displayName = 'proto.looprpc.ServerLoopInResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInResponse.prototype.toObject = function(opt_includeInstance) { @@ -2061,8 +2715,8 @@ proto.looprpc.ServerLoopInResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInResponse} msg The msg instance to transform. * @return {!Object} @@ -2219,9 +2873,12 @@ proto.looprpc.ServerLoopInResponse.prototype.getReceiverKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInResponse} returns this + */ proto.looprpc.ServerLoopInResponse.prototype.setReceiverKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -2258,9 +2915,12 @@ proto.looprpc.ServerLoopInResponse.prototype.getReceiverInternalPubkey_asU8 = fu }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInResponse} returns this + */ proto.looprpc.ServerLoopInResponse.prototype.setReceiverInternalPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 9, value); + return jspb.Message.setProto3BytesField(this, 9, value); }; @@ -2273,9 +2933,12 @@ proto.looprpc.ServerLoopInResponse.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopInResponse} returns this + */ proto.looprpc.ServerLoopInResponse.prototype.setExpiry = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -2288,30 +2951,16 @@ proto.looprpc.ServerLoopInResponse.prototype.getServerMessage = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInResponse} returns this + */ proto.looprpc.ServerLoopInResponse.prototype.setServerMessage = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.looprpc.ServerLoopInQuoteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ServerLoopInQuoteRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ServerLoopInQuoteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInQuoteRequest.displayName = 'proto.looprpc.ServerLoopInQuoteRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2323,13 +2972,15 @@ proto.looprpc.ServerLoopInQuoteRequest.repeatedFields_ = [5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInQuoteRequest.prototype.toObject = function(opt_includeInstance) { @@ -2339,8 +2990,8 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInQuoteRequest} msg The msg instance to transform. * @return {!Object} @@ -2488,9 +3139,12 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -2527,9 +3181,12 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getPubkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.setPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -2566,9 +3223,12 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -2582,9 +3242,12 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getRouteHintsList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this +*/ proto.looprpc.ServerLoopInQuoteRequest.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -2598,8 +3261,12 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.addRouteHints = function(opt_va }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; @@ -2612,41 +3279,29 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getProtocolVersion = function() }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.looprpc.ServerLoopInQuoteResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopInQuoteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInQuoteResponse.displayName = 'proto.looprpc.ServerLoopInQuoteResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInQuoteResponse.prototype.toObject = function(opt_includeInstance) { @@ -2656,8 +3311,8 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInQuoteResponse} msg The msg instance to transform. * @return {!Object} @@ -2802,9 +3457,12 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.getSwapFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteResponse} returns this + */ proto.looprpc.ServerLoopInQuoteResponse.prototype.setSwapFee = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -2817,9 +3475,12 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.getSwapFeeRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteResponse} returns this + */ proto.looprpc.ServerLoopInQuoteResponse.prototype.setSwapFeeRate = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -2832,9 +3493,12 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.getMinSwapAmount = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteResponse} returns this + */ proto.looprpc.ServerLoopInQuoteResponse.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -2847,9 +3511,12 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.getMaxSwapAmount = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteResponse} returns this + */ proto.looprpc.ServerLoopInQuoteResponse.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -2862,41 +3529,29 @@ proto.looprpc.ServerLoopInQuoteResponse.prototype.getCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ServerLoopInQuoteResponse} returns this + */ proto.looprpc.ServerLoopInQuoteResponse.prototype.setCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; -/** - * 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.looprpc.ServerLoopInTermsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopInTermsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInTermsRequest.displayName = 'proto.looprpc.ServerLoopInTermsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInTermsRequest.prototype.toObject = function(opt_includeInstance) { @@ -2906,8 +3561,8 @@ proto.looprpc.ServerLoopInTermsRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInTermsRequest} msg The msg instance to transform. * @return {!Object} @@ -3004,41 +3659,29 @@ proto.looprpc.ServerLoopInTermsRequest.prototype.getProtocolVersion = function() }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopInTermsRequest} returns this + */ proto.looprpc.ServerLoopInTermsRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; -/** - * 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.looprpc.ServerLoopInTerms = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopInTerms, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopInTerms.displayName = 'proto.looprpc.ServerLoopInTerms'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopInTerms.prototype.toObject = function(opt_includeInstance) { @@ -3048,8 +3691,8 @@ proto.looprpc.ServerLoopInTerms.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopInTerms} msg The msg instance to transform. * @return {!Object} @@ -3158,9 +3801,12 @@ proto.looprpc.ServerLoopInTerms.prototype.getMinSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInTerms} returns this + */ proto.looprpc.ServerLoopInTerms.prototype.setMinSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3173,41 +3819,29 @@ proto.looprpc.ServerLoopInTerms.prototype.getMaxSwapAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInTerms} returns this + */ proto.looprpc.ServerLoopInTerms.prototype.setMaxSwapAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.looprpc.ServerLoopOutPushPreimageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutPushPreimageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutPushPreimageRequest.displayName = 'proto.looprpc.ServerLoopOutPushPreimageRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutPushPreimageRequest.prototype.toObject = function(opt_includeInstance) { @@ -3217,8 +3851,8 @@ proto.looprpc.ServerLoopOutPushPreimageRequest.prototype.toObject = function(opt /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutPushPreimageRequest} msg The msg instance to transform. * @return {!Object} @@ -3327,9 +3961,12 @@ proto.looprpc.ServerLoopOutPushPreimageRequest.prototype.getProtocolVersion = fu }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerLoopOutPushPreimageRequest} returns this + */ proto.looprpc.ServerLoopOutPushPreimageRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -3366,41 +4003,29 @@ proto.looprpc.ServerLoopOutPushPreimageRequest.prototype.getPreimage_asU8 = func }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerLoopOutPushPreimageRequest} returns this + */ proto.looprpc.ServerLoopOutPushPreimageRequest.prototype.setPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.looprpc.ServerLoopOutPushPreimageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerLoopOutPushPreimageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutPushPreimageResponse.displayName = 'proto.looprpc.ServerLoopOutPushPreimageResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerLoopOutPushPreimageResponse.prototype.toObject = function(opt_includeInstance) { @@ -3410,8 +4035,8 @@ proto.looprpc.ServerLoopOutPushPreimageResponse.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerLoopOutPushPreimageResponse} msg The msg instance to transform. * @return {!Object} @@ -3489,34 +4114,19 @@ proto.looprpc.ServerLoopOutPushPreimageResponse.serializeBinaryToWriter = functi -/** - * 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.looprpc.SubscribeUpdatesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SubscribeUpdatesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SubscribeUpdatesRequest.displayName = 'proto.looprpc.SubscribeUpdatesRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SubscribeUpdatesRequest.prototype.toObject = function(opt_includeInstance) { @@ -3526,8 +4136,8 @@ proto.looprpc.SubscribeUpdatesRequest.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SubscribeUpdatesRequest} msg The msg instance to transform. * @return {!Object} @@ -3636,9 +4246,12 @@ proto.looprpc.SubscribeUpdatesRequest.prototype.getProtocolVersion = function() }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.SubscribeUpdatesRequest} returns this + */ proto.looprpc.SubscribeUpdatesRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -3675,41 +4288,29 @@ proto.looprpc.SubscribeUpdatesRequest.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.SubscribeUpdatesRequest} returns this + */ proto.looprpc.SubscribeUpdatesRequest.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.looprpc.SubscribeLoopOutUpdatesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SubscribeLoopOutUpdatesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SubscribeLoopOutUpdatesResponse.displayName = 'proto.looprpc.SubscribeLoopOutUpdatesResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SubscribeLoopOutUpdatesResponse.prototype.toObject = function(opt_includeInstance) { @@ -3719,8 +4320,8 @@ proto.looprpc.SubscribeLoopOutUpdatesResponse.prototype.toObject = function(opt_ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SubscribeLoopOutUpdatesResponse} msg The msg instance to transform. * @return {!Object} @@ -3829,9 +4430,12 @@ proto.looprpc.SubscribeLoopOutUpdatesResponse.prototype.getTimestampNs = functio }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SubscribeLoopOutUpdatesResponse} returns this + */ proto.looprpc.SubscribeLoopOutUpdatesResponse.prototype.setTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -3844,41 +4448,29 @@ proto.looprpc.SubscribeLoopOutUpdatesResponse.prototype.getState = function() { }; -/** @param {!proto.looprpc.ServerSwapState} value */ +/** + * @param {!proto.looprpc.ServerSwapState} value + * @return {!proto.looprpc.SubscribeLoopOutUpdatesResponse} returns this + */ proto.looprpc.SubscribeLoopOutUpdatesResponse.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.looprpc.SubscribeLoopInUpdatesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.SubscribeLoopInUpdatesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.SubscribeLoopInUpdatesResponse.displayName = 'proto.looprpc.SubscribeLoopInUpdatesResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.SubscribeLoopInUpdatesResponse.prototype.toObject = function(opt_includeInstance) { @@ -3888,8 +4480,8 @@ proto.looprpc.SubscribeLoopInUpdatesResponse.prototype.toObject = function(opt_i /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.SubscribeLoopInUpdatesResponse} msg The msg instance to transform. * @return {!Object} @@ -3998,9 +4590,12 @@ proto.looprpc.SubscribeLoopInUpdatesResponse.prototype.getTimestampNs = function }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.SubscribeLoopInUpdatesResponse} returns this + */ proto.looprpc.SubscribeLoopInUpdatesResponse.prototype.setTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -4013,30 +4608,16 @@ proto.looprpc.SubscribeLoopInUpdatesResponse.prototype.getState = function() { }; -/** @param {!proto.looprpc.ServerSwapState} value */ +/** + * @param {!proto.looprpc.ServerSwapState} value + * @return {!proto.looprpc.SubscribeLoopInUpdatesResponse} returns this + */ proto.looprpc.SubscribeLoopInUpdatesResponse.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; -/** - * 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.looprpc.RouteCancel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.RouteCancel.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.RouteCancel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.RouteCancel.displayName = 'proto.looprpc.RouteCancel'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -4048,13 +4629,15 @@ proto.looprpc.RouteCancel.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.RouteCancel.prototype.toObject = function(opt_includeInstance) { @@ -4064,8 +4647,8 @@ proto.looprpc.RouteCancel.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.RouteCancel} msg The msg instance to transform. * @return {!Object} @@ -4189,9 +4772,12 @@ proto.looprpc.RouteCancel.prototype.getRouteType = function() { }; -/** @param {!proto.looprpc.RoutePaymentType} value */ +/** + * @param {!proto.looprpc.RoutePaymentType} value + * @return {!proto.looprpc.RouteCancel} returns this + */ proto.looprpc.RouteCancel.prototype.setRouteType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -4205,9 +4791,12 @@ proto.looprpc.RouteCancel.prototype.getAttemptsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.RouteCancel} returns this +*/ proto.looprpc.RouteCancel.prototype.setAttemptsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -4221,8 +4810,12 @@ proto.looprpc.RouteCancel.prototype.addAttempts = function(opt_value, opt_index) }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.RouteCancel} returns this + */ proto.looprpc.RouteCancel.prototype.clearAttemptsList = function() { - this.setAttemptsList([]); + return this.setAttemptsList([]); }; @@ -4235,41 +4828,29 @@ proto.looprpc.RouteCancel.prototype.getFailure = function() { }; -/** @param {!proto.looprpc.PaymentFailureReason} value */ +/** + * @param {!proto.looprpc.PaymentFailureReason} value + * @return {!proto.looprpc.RouteCancel} returns this + */ proto.looprpc.RouteCancel.prototype.setFailure = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); + return jspb.Message.setProto3EnumField(this, 3, value); }; -/** - * 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.looprpc.HtlcAttempt = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.HtlcAttempt, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.HtlcAttempt.displayName = 'proto.looprpc.HtlcAttempt'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.HtlcAttempt.prototype.toObject = function(opt_includeInstance) { @@ -4279,8 +4860,8 @@ proto.looprpc.HtlcAttempt.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.HtlcAttempt} msg The msg instance to transform. * @return {!Object} @@ -4377,30 +4958,16 @@ proto.looprpc.HtlcAttempt.prototype.getRemainingHops = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.HtlcAttempt} returns this + */ proto.looprpc.HtlcAttempt.prototype.setRemainingHops = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; -/** - * 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.looprpc.CancelLoopOutSwapRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.looprpc.CancelLoopOutSwapRequest.oneofGroups_); -}; -goog.inherits(proto.looprpc.CancelLoopOutSwapRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.CancelLoopOutSwapRequest.displayName = 'proto.looprpc.CancelLoopOutSwapRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -4430,13 +4997,15 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.getCancelInfoCase = function() if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.CancelLoopOutSwapRequest.prototype.toObject = function(opt_includeInstance) { @@ -4446,8 +5015,8 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.toObject = function(opt_include /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.CancelLoopOutSwapRequest} msg The msg instance to transform. * @return {!Object} @@ -4582,9 +5151,12 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.getProtocolVersion = function() }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.CancelLoopOutSwapRequest} returns this + */ proto.looprpc.CancelLoopOutSwapRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -4621,9 +5193,12 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.CancelLoopOutSwapRequest} returns this + */ proto.looprpc.CancelLoopOutSwapRequest.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -4660,9 +5235,12 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.getPaymentAddress_asU8 = functi }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.CancelLoopOutSwapRequest} returns this + */ proto.looprpc.CancelLoopOutSwapRequest.prototype.setPaymentAddress = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -4676,20 +5254,27 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.getRouteCancel = function() { }; -/** @param {?proto.looprpc.RouteCancel|undefined} value */ +/** + * @param {?proto.looprpc.RouteCancel|undefined} value + * @return {!proto.looprpc.CancelLoopOutSwapRequest} returns this +*/ proto.looprpc.CancelLoopOutSwapRequest.prototype.setRouteCancel = function(value) { - jspb.Message.setOneofWrapperField(this, 5, proto.looprpc.CancelLoopOutSwapRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 5, proto.looprpc.CancelLoopOutSwapRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.looprpc.CancelLoopOutSwapRequest} returns this + */ proto.looprpc.CancelLoopOutSwapRequest.prototype.clearRouteCancel = function() { - this.setRouteCancel(undefined); + return this.setRouteCancel(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.looprpc.CancelLoopOutSwapRequest.prototype.hasRouteCancel = function() { return jspb.Message.getField(this, 5) != null; @@ -4697,34 +5282,19 @@ proto.looprpc.CancelLoopOutSwapRequest.prototype.hasRouteCancel = function() { -/** - * 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.looprpc.CancelLoopOutSwapResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.CancelLoopOutSwapResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.CancelLoopOutSwapResponse.displayName = 'proto.looprpc.CancelLoopOutSwapResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.CancelLoopOutSwapResponse.prototype.toObject = function(opt_includeInstance) { @@ -4734,8 +5304,8 @@ proto.looprpc.CancelLoopOutSwapResponse.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.CancelLoopOutSwapResponse} msg The msg instance to transform. * @return {!Object} @@ -4813,23 +5383,6 @@ proto.looprpc.CancelLoopOutSwapResponse.serializeBinaryToWriter = function(messa -/** - * 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.looprpc.ServerProbeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ServerProbeRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ServerProbeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerProbeRequest.displayName = 'proto.looprpc.ServerProbeRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -4841,13 +5394,15 @@ proto.looprpc.ServerProbeRequest.repeatedFields_ = [5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerProbeRequest.prototype.toObject = function(opt_includeInstance) { @@ -4857,8 +5412,8 @@ proto.looprpc.ServerProbeRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerProbeRequest} msg The msg instance to transform. * @return {!Object} @@ -5006,9 +5561,12 @@ proto.looprpc.ServerProbeRequest.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerProbeRequest} returns this + */ proto.looprpc.ServerProbeRequest.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -5021,9 +5579,12 @@ proto.looprpc.ServerProbeRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerProbeRequest} returns this + */ proto.looprpc.ServerProbeRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -5060,9 +5621,12 @@ proto.looprpc.ServerProbeRequest.prototype.getTarget_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerProbeRequest} returns this + */ proto.looprpc.ServerProbeRequest.prototype.setTarget = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -5099,9 +5663,12 @@ proto.looprpc.ServerProbeRequest.prototype.getLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerProbeRequest} returns this + */ proto.looprpc.ServerProbeRequest.prototype.setLastHop = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -5115,9 +5682,12 @@ proto.looprpc.ServerProbeRequest.prototype.getRouteHintsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ServerProbeRequest} returns this +*/ proto.looprpc.ServerProbeRequest.prototype.setRouteHintsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -5131,40 +5701,29 @@ proto.looprpc.ServerProbeRequest.prototype.addRouteHints = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ServerProbeRequest} returns this + */ proto.looprpc.ServerProbeRequest.prototype.clearRouteHintsList = function() { - this.setRouteHintsList([]); + return this.setRouteHintsList([]); }; -/** - * 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.looprpc.ServerProbeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerProbeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerProbeResponse.displayName = 'proto.looprpc.ServerProbeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerProbeResponse.prototype.toObject = function(opt_includeInstance) { @@ -5174,8 +5733,8 @@ proto.looprpc.ServerProbeResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerProbeResponse} msg The msg instance to transform. * @return {!Object} @@ -5253,34 +5812,19 @@ proto.looprpc.ServerProbeResponse.serializeBinaryToWriter = function(message, wr -/** - * 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.looprpc.RecommendRoutingPluginReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.RecommendRoutingPluginReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.RecommendRoutingPluginReq.displayName = 'proto.looprpc.RecommendRoutingPluginReq'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.RecommendRoutingPluginReq.prototype.toObject = function(opt_includeInstance) { @@ -5290,8 +5834,8 @@ proto.looprpc.RecommendRoutingPluginReq.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.RecommendRoutingPluginReq} msg The msg instance to transform. * @return {!Object} @@ -5412,9 +5956,12 @@ proto.looprpc.RecommendRoutingPluginReq.prototype.getProtocolVersion = function( }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.RecommendRoutingPluginReq} returns this + */ proto.looprpc.RecommendRoutingPluginReq.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -5451,9 +5998,12 @@ proto.looprpc.RecommendRoutingPluginReq.prototype.getSwapHash_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.RecommendRoutingPluginReq} returns this + */ proto.looprpc.RecommendRoutingPluginReq.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -5490,41 +6040,29 @@ proto.looprpc.RecommendRoutingPluginReq.prototype.getPaymentAddress_asU8 = funct }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.RecommendRoutingPluginReq} returns this + */ proto.looprpc.RecommendRoutingPluginReq.prototype.setPaymentAddress = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.looprpc.RecommendRoutingPluginRes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.RecommendRoutingPluginRes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.RecommendRoutingPluginRes.displayName = 'proto.looprpc.RecommendRoutingPluginRes'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.RecommendRoutingPluginRes.prototype.toObject = function(opt_includeInstance) { @@ -5534,8 +6072,8 @@ proto.looprpc.RecommendRoutingPluginRes.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.RecommendRoutingPluginRes} msg The msg instance to transform. * @return {!Object} @@ -5632,41 +6170,29 @@ proto.looprpc.RecommendRoutingPluginRes.prototype.getPlugin = function() { }; -/** @param {!proto.looprpc.RoutingPlugin} value */ +/** + * @param {!proto.looprpc.RoutingPlugin} value + * @return {!proto.looprpc.RecommendRoutingPluginRes} returns this + */ proto.looprpc.RecommendRoutingPluginRes.prototype.setPlugin = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; -/** - * 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.looprpc.ReportRoutingResultReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ReportRoutingResultReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ReportRoutingResultReq.displayName = 'proto.looprpc.ReportRoutingResultReq'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ReportRoutingResultReq.prototype.toObject = function(opt_includeInstance) { @@ -5676,8 +6202,8 @@ proto.looprpc.ReportRoutingResultReq.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ReportRoutingResultReq} msg The msg instance to transform. * @return {!Object} @@ -5689,7 +6215,7 @@ proto.looprpc.ReportRoutingResultReq.toObject = function(includeInstance, msg) { swapHash: msg.getSwapHash_asB64(), paymentAddress: msg.getPaymentAddress_asB64(), plugin: jspb.Message.getFieldWithDefault(msg, 4, 0), - success: jspb.Message.getFieldWithDefault(msg, 5, false), + success: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), attempts: jspb.Message.getFieldWithDefault(msg, 6, 0), totalTime: jspb.Message.getFieldWithDefault(msg, 7, "0") }; @@ -5846,9 +6372,12 @@ proto.looprpc.ReportRoutingResultReq.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -5885,9 +6414,12 @@ proto.looprpc.ReportRoutingResultReq.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -5924,9 +6456,12 @@ proto.looprpc.ReportRoutingResultReq.prototype.getPaymentAddress_asU8 = function }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setPaymentAddress = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -5939,26 +6474,30 @@ proto.looprpc.ReportRoutingResultReq.prototype.getPlugin = function() { }; -/** @param {!proto.looprpc.RoutingPlugin} value */ +/** + * @param {!proto.looprpc.RoutingPlugin} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setPlugin = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; /** * optional bool success = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.looprpc.ReportRoutingResultReq.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setSuccess = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -5971,9 +6510,12 @@ proto.looprpc.ReportRoutingResultReq.prototype.getAttempts = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setAttempts = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -5986,41 +6528,29 @@ proto.looprpc.ReportRoutingResultReq.prototype.getTotalTime = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ReportRoutingResultReq} returns this + */ proto.looprpc.ReportRoutingResultReq.prototype.setTotalTime = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; -/** - * 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.looprpc.ReportRoutingResultRes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ReportRoutingResultRes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ReportRoutingResultRes.displayName = 'proto.looprpc.ReportRoutingResultRes'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ReportRoutingResultRes.prototype.toObject = function(opt_includeInstance) { @@ -6030,8 +6560,8 @@ proto.looprpc.ReportRoutingResultRes.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ReportRoutingResultRes} msg The msg instance to transform. * @return {!Object} @@ -6109,34 +6639,19 @@ proto.looprpc.ReportRoutingResultRes.serializeBinaryToWriter = function(message, -/** - * 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.looprpc.MuSig2SignSweepReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.MuSig2SignSweepReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.MuSig2SignSweepReq.displayName = 'proto.looprpc.MuSig2SignSweepReq'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.MuSig2SignSweepReq.prototype.toObject = function(opt_includeInstance) { @@ -6146,8 +6661,8 @@ proto.looprpc.MuSig2SignSweepReq.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.MuSig2SignSweepReq} msg The msg instance to transform. * @return {!Object} @@ -6292,9 +6807,12 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -6331,9 +6849,12 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -6370,9 +6891,12 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getPaymentAddress_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.setPaymentAddress = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -6409,9 +6933,12 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.setNonce = function(value) { - jspb.Message.setProto3BytesField(this, 4, value); + return jspb.Message.setProto3BytesField(this, 4, value); }; @@ -6448,41 +6975,29 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getSweepTxPsbt_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.setSweepTxPsbt = function(value) { - jspb.Message.setProto3BytesField(this, 6, value); + return jspb.Message.setProto3BytesField(this, 6, value); }; -/** - * 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.looprpc.MuSig2SignSweepRes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.MuSig2SignSweepRes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.MuSig2SignSweepRes.displayName = 'proto.looprpc.MuSig2SignSweepRes'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.MuSig2SignSweepRes.prototype.toObject = function(opt_includeInstance) { @@ -6492,8 +7007,8 @@ proto.looprpc.MuSig2SignSweepRes.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.MuSig2SignSweepRes} msg The msg instance to transform. * @return {!Object} @@ -6626,9 +7141,12 @@ proto.looprpc.MuSig2SignSweepRes.prototype.getNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepRes} returns this + */ proto.looprpc.MuSig2SignSweepRes.prototype.setNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6665,41 +7183,29 @@ proto.looprpc.MuSig2SignSweepRes.prototype.getPartialSignature_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.MuSig2SignSweepRes} returns this + */ proto.looprpc.MuSig2SignSweepRes.prototype.setPartialSignature = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.looprpc.ServerPushKeyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerPushKeyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerPushKeyReq.displayName = 'proto.looprpc.ServerPushKeyReq'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerPushKeyReq.prototype.toObject = function(opt_includeInstance) { @@ -6709,8 +7215,8 @@ proto.looprpc.ServerPushKeyReq.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerPushKeyReq} msg The msg instance to transform. * @return {!Object} @@ -6831,9 +7337,12 @@ proto.looprpc.ServerPushKeyReq.prototype.getProtocolVersion = function() { }; -/** @param {!proto.looprpc.ProtocolVersion} value */ +/** + * @param {!proto.looprpc.ProtocolVersion} value + * @return {!proto.looprpc.ServerPushKeyReq} returns this + */ proto.looprpc.ServerPushKeyReq.prototype.setProtocolVersion = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -6870,9 +7379,12 @@ proto.looprpc.ServerPushKeyReq.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerPushKeyReq} returns this + */ proto.looprpc.ServerPushKeyReq.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -6909,41 +7421,29 @@ proto.looprpc.ServerPushKeyReq.prototype.getInternalPrivkey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ServerPushKeyReq} returns this + */ proto.looprpc.ServerPushKeyReq.prototype.setInternalPrivkey = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * 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.looprpc.ServerPushKeyRes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ServerPushKeyRes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerPushKeyRes.displayName = 'proto.looprpc.ServerPushKeyRes'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.looprpc.ServerPushKeyRes.prototype.toObject = function(opt_includeInstance) { @@ -6953,8 +7453,8 @@ proto.looprpc.ServerPushKeyRes.prototype.toObject = function(opt_includeInstance /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.looprpc.ServerPushKeyRes} msg The msg instance to transform. * @return {!Object} diff --git a/app/src/types/generated/trader_pb.js b/app/src/types/generated/trader_pb.js index fbf03abc6..9af821f2c 100644 --- a/app/src/types/generated/trader_pb.js +++ b/app/src/types/generated/trader_pb.js @@ -1,22 +1,34 @@ /* eslint-disable */ var proto = { poolrpc: {} }; +// source: trader.proto /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = (function() { + if (this) { return this; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + if (typeof self !== 'undefined') { return self; } + return Function('return this')(); +}.call(null)); var auctioneerrpc_auctioneer_pb = require('./auctioneerrpc/auctioneer_pb.js'); +goog.object.extend(proto, auctioneerrpc_auctioneer_pb); goog.exportSymbol('proto.poolrpc.Account', null, global); goog.exportSymbol('proto.poolrpc.AccountModificationFee', null, global); +goog.exportSymbol('proto.poolrpc.AccountModificationFee.FeeCase', null, global); goog.exportSymbol('proto.poolrpc.AccountModificationFeesRequest', null, global); goog.exportSymbol('proto.poolrpc.AccountModificationFeesResponse', null, global); goog.exportSymbol('proto.poolrpc.AccountState', null, global); @@ -32,15 +44,19 @@ goog.exportSymbol('proto.poolrpc.CancelOrderResponse', null, global); goog.exportSymbol('proto.poolrpc.CancelSidecarRequest', null, global); goog.exportSymbol('proto.poolrpc.CancelSidecarResponse', null, global); goog.exportSymbol('proto.poolrpc.CloseAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.CloseAccountRequest.FundsDestinationCase', null, global); goog.exportSymbol('proto.poolrpc.CloseAccountResponse', null, global); goog.exportSymbol('proto.poolrpc.DecodedSidecarTicket', null, global); goog.exportSymbol('proto.poolrpc.DepositAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.DepositAccountRequest.AccountExpiryCase', null, global); goog.exportSymbol('proto.poolrpc.DepositAccountResponse', null, global); goog.exportSymbol('proto.poolrpc.ExpectSidecarChannelRequest', null, global); goog.exportSymbol('proto.poolrpc.ExpectSidecarChannelResponse', null, global); goog.exportSymbol('proto.poolrpc.GetInfoRequest', null, global); goog.exportSymbol('proto.poolrpc.GetInfoResponse', null, global); goog.exportSymbol('proto.poolrpc.InitAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.InitAccountRequest.AccountExpiryCase', null, global); +goog.exportSymbol('proto.poolrpc.InitAccountRequest.FeesCase', null, global); goog.exportSymbol('proto.poolrpc.Lease', null, global); goog.exportSymbol('proto.poolrpc.LeaseDurationRequest', null, global); goog.exportSymbol('proto.poolrpc.LeaseDurationResponse', null, global); @@ -64,10 +80,13 @@ goog.exportSymbol('proto.poolrpc.NodeRatingResponse', null, global); goog.exportSymbol('proto.poolrpc.OfferSidecarRequest', null, global); goog.exportSymbol('proto.poolrpc.Order', null, global); goog.exportSymbol('proto.poolrpc.OrderEvent', null, global); +goog.exportSymbol('proto.poolrpc.OrderEvent.EventCase', null, global); goog.exportSymbol('proto.poolrpc.Output', null, global); goog.exportSymbol('proto.poolrpc.OutputWithFee', null, global); +goog.exportSymbol('proto.poolrpc.OutputWithFee.FeesCase', null, global); goog.exportSymbol('proto.poolrpc.OutputsWithImplicitFee', null, global); goog.exportSymbol('proto.poolrpc.QuoteAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.QuoteAccountRequest.FeesCase', null, global); goog.exportSymbol('proto.poolrpc.QuoteAccountResponse', null, global); goog.exportSymbol('proto.poolrpc.QuoteOrderRequest', null, global); goog.exportSymbol('proto.poolrpc.QuoteOrderResponse', null, global); @@ -75,18 +94,21 @@ goog.exportSymbol('proto.poolrpc.RecoverAccountsRequest', null, global); goog.exportSymbol('proto.poolrpc.RecoverAccountsResponse', null, global); goog.exportSymbol('proto.poolrpc.RegisterSidecarRequest', null, global); goog.exportSymbol('proto.poolrpc.RenewAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.RenewAccountRequest.AccountExpiryCase', null, global); goog.exportSymbol('proto.poolrpc.RenewAccountResponse', null, global); goog.exportSymbol('proto.poolrpc.SidecarTicket', null, global); goog.exportSymbol('proto.poolrpc.StopDaemonRequest', null, global); goog.exportSymbol('proto.poolrpc.StopDaemonResponse', null, global); goog.exportSymbol('proto.poolrpc.SubmitOrderRequest', null, global); +goog.exportSymbol('proto.poolrpc.SubmitOrderRequest.DetailsCase', null, global); goog.exportSymbol('proto.poolrpc.SubmitOrderResponse', null, global); +goog.exportSymbol('proto.poolrpc.SubmitOrderResponse.DetailsCase', null, global); goog.exportSymbol('proto.poolrpc.TokensRequest', null, global); goog.exportSymbol('proto.poolrpc.TokensResponse', null, global); goog.exportSymbol('proto.poolrpc.UpdatedEvent', null, global); goog.exportSymbol('proto.poolrpc.WithdrawAccountRequest', null, global); +goog.exportSymbol('proto.poolrpc.WithdrawAccountRequest.AccountExpiryCase', null, global); goog.exportSymbol('proto.poolrpc.WithdrawAccountResponse', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -97,13 +119,1404 @@ goog.exportSymbol('proto.poolrpc.WithdrawAccountResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.poolrpc.InitAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.InitAccountRequest.oneofGroups_); +proto.poolrpc.InitAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.InitAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.InitAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.InitAccountRequest.displayName = 'proto.poolrpc.InitAccountRequest'; +} +/** + * 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.poolrpc.QuoteAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.QuoteAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.QuoteAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.QuoteAccountRequest.displayName = 'proto.poolrpc.QuoteAccountRequest'; +} +/** + * 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.poolrpc.QuoteAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.QuoteAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.QuoteAccountResponse.displayName = 'proto.poolrpc.QuoteAccountResponse'; +} +/** + * 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.poolrpc.ListAccountsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ListAccountsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListAccountsRequest.displayName = 'proto.poolrpc.ListAccountsRequest'; +} +/** + * 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.poolrpc.ListAccountsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListAccountsResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ListAccountsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListAccountsResponse.displayName = 'proto.poolrpc.ListAccountsResponse'; +} +/** + * 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.poolrpc.Output = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.Output, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Output.displayName = 'proto.poolrpc.Output'; +} +/** + * 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.poolrpc.OutputWithFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.OutputWithFee.oneofGroups_); +}; +goog.inherits(proto.poolrpc.OutputWithFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OutputWithFee.displayName = 'proto.poolrpc.OutputWithFee'; +} +/** + * 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.poolrpc.OutputsWithImplicitFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OutputsWithImplicitFee.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.OutputsWithImplicitFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OutputsWithImplicitFee.displayName = 'proto.poolrpc.OutputsWithImplicitFee'; +} +/** + * 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.poolrpc.CloseAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.CloseAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.CloseAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CloseAccountRequest.displayName = 'proto.poolrpc.CloseAccountRequest'; +} +/** + * 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.poolrpc.CloseAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CloseAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CloseAccountResponse.displayName = 'proto.poolrpc.CloseAccountResponse'; +} +/** + * 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.poolrpc.WithdrawAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.WithdrawAccountRequest.repeatedFields_, proto.poolrpc.WithdrawAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.WithdrawAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.WithdrawAccountRequest.displayName = 'proto.poolrpc.WithdrawAccountRequest'; +} +/** + * 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.poolrpc.WithdrawAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.WithdrawAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.WithdrawAccountResponse.displayName = 'proto.poolrpc.WithdrawAccountResponse'; +} +/** + * 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.poolrpc.DepositAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.DepositAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.DepositAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.DepositAccountRequest.displayName = 'proto.poolrpc.DepositAccountRequest'; +} +/** + * 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.poolrpc.DepositAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.DepositAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.DepositAccountResponse.displayName = 'proto.poolrpc.DepositAccountResponse'; +} +/** + * 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.poolrpc.RenewAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.RenewAccountRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.RenewAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RenewAccountRequest.displayName = 'proto.poolrpc.RenewAccountRequest'; +} +/** + * 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.poolrpc.RenewAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.RenewAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RenewAccountResponse.displayName = 'proto.poolrpc.RenewAccountResponse'; +} +/** + * 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.poolrpc.BumpAccountFeeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.BumpAccountFeeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BumpAccountFeeRequest.displayName = 'proto.poolrpc.BumpAccountFeeRequest'; +} +/** + * 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.poolrpc.BumpAccountFeeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.BumpAccountFeeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.BumpAccountFeeResponse.displayName = 'proto.poolrpc.BumpAccountFeeResponse'; +} +/** + * 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.poolrpc.Account = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.Account, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Account.displayName = 'proto.poolrpc.Account'; +} +/** + * 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.poolrpc.SubmitOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.SubmitOrderRequest.oneofGroups_); +}; +goog.inherits(proto.poolrpc.SubmitOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.SubmitOrderRequest.displayName = 'proto.poolrpc.SubmitOrderRequest'; +} +/** + * 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.poolrpc.SubmitOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.SubmitOrderResponse.oneofGroups_); +}; +goog.inherits(proto.poolrpc.SubmitOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.SubmitOrderResponse.displayName = 'proto.poolrpc.SubmitOrderResponse'; +} +/** + * 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.poolrpc.ListOrdersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ListOrdersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListOrdersRequest.displayName = 'proto.poolrpc.ListOrdersRequest'; +} +/** + * 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.poolrpc.ListOrdersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListOrdersResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ListOrdersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListOrdersResponse.displayName = 'proto.poolrpc.ListOrdersResponse'; +} +/** + * 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.poolrpc.CancelOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CancelOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CancelOrderRequest.displayName = 'proto.poolrpc.CancelOrderRequest'; +} +/** + * 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.poolrpc.CancelOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CancelOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CancelOrderResponse.displayName = 'proto.poolrpc.CancelOrderResponse'; +} +/** + * 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.poolrpc.Order = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.Order.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.Order, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Order.displayName = 'proto.poolrpc.Order'; +} +/** + * 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.poolrpc.Bid = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.Bid, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Bid.displayName = 'proto.poolrpc.Bid'; +} +/** + * 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.poolrpc.Ask = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.Ask, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Ask.displayName = 'proto.poolrpc.Ask'; +} +/** + * 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.poolrpc.QuoteOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.QuoteOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.QuoteOrderRequest.displayName = 'proto.poolrpc.QuoteOrderRequest'; +} +/** + * 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.poolrpc.QuoteOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.QuoteOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.QuoteOrderResponse.displayName = 'proto.poolrpc.QuoteOrderResponse'; +} +/** + * 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.poolrpc.OrderEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.OrderEvent.oneofGroups_); +}; +goog.inherits(proto.poolrpc.OrderEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OrderEvent.displayName = 'proto.poolrpc.OrderEvent'; +} +/** + * 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.poolrpc.UpdatedEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.UpdatedEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.UpdatedEvent.displayName = 'proto.poolrpc.UpdatedEvent'; +} +/** + * 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.poolrpc.MatchEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.MatchEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.MatchEvent.displayName = 'proto.poolrpc.MatchEvent'; +} +/** + * 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.poolrpc.RecoverAccountsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.RecoverAccountsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RecoverAccountsRequest.displayName = 'proto.poolrpc.RecoverAccountsRequest'; +} +/** + * 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.poolrpc.RecoverAccountsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.RecoverAccountsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RecoverAccountsResponse.displayName = 'proto.poolrpc.RecoverAccountsResponse'; +} +/** + * 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.poolrpc.AccountModificationFeesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountModificationFeesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountModificationFeesRequest.displayName = 'proto.poolrpc.AccountModificationFeesRequest'; +} +/** + * 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.poolrpc.AccountModificationFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.AccountModificationFee.oneofGroups_); +}; +goog.inherits(proto.poolrpc.AccountModificationFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountModificationFee.displayName = 'proto.poolrpc.AccountModificationFee'; +} +/** + * 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.poolrpc.ListOfAccountModificationFees = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListOfAccountModificationFees.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ListOfAccountModificationFees, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListOfAccountModificationFees.displayName = 'proto.poolrpc.ListOfAccountModificationFees'; +} +/** + * 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.poolrpc.AccountModificationFeesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AccountModificationFeesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AccountModificationFeesResponse.displayName = 'proto.poolrpc.AccountModificationFeesResponse'; +} +/** + * 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.poolrpc.AuctionFeeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AuctionFeeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AuctionFeeRequest.displayName = 'proto.poolrpc.AuctionFeeRequest'; +} +/** + * 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.poolrpc.AuctionFeeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.AuctionFeeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.AuctionFeeResponse.displayName = 'proto.poolrpc.AuctionFeeResponse'; +} +/** + * 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.poolrpc.Lease = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.Lease, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.Lease.displayName = 'proto.poolrpc.Lease'; +} +/** + * 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.poolrpc.LeasesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.LeasesRequest.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.LeasesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.LeasesRequest.displayName = 'proto.poolrpc.LeasesRequest'; +} +/** + * 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.poolrpc.LeasesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.LeasesResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.LeasesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.LeasesResponse.displayName = 'proto.poolrpc.LeasesResponse'; +} +/** + * 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.poolrpc.TokensRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.TokensRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.TokensRequest.displayName = 'proto.poolrpc.TokensRequest'; +} +/** + * 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.poolrpc.TokensResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.TokensResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.TokensResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.TokensResponse.displayName = 'proto.poolrpc.TokensResponse'; +} +/** + * 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.poolrpc.LsatToken = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.LsatToken, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.LsatToken.displayName = 'proto.poolrpc.LsatToken'; +} +/** + * 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.poolrpc.LeaseDurationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.LeaseDurationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.LeaseDurationRequest.displayName = 'proto.poolrpc.LeaseDurationRequest'; +} +/** + * 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.poolrpc.LeaseDurationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.LeaseDurationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.LeaseDurationResponse.displayName = 'proto.poolrpc.LeaseDurationResponse'; +} +/** + * 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.poolrpc.NextBatchInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.NextBatchInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.NextBatchInfoRequest.displayName = 'proto.poolrpc.NextBatchInfoRequest'; +} +/** + * 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.poolrpc.NextBatchInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.NextBatchInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.NextBatchInfoResponse.displayName = 'proto.poolrpc.NextBatchInfoResponse'; +} +/** + * 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.poolrpc.NodeRatingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.NodeRatingRequest.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.NodeRatingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.NodeRatingRequest.displayName = 'proto.poolrpc.NodeRatingRequest'; +} +/** + * 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.poolrpc.NodeRatingResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.NodeRatingResponse.repeatedFields_, null); }; -goog.inherits(proto.poolrpc.InitAccountRequest, jspb.Message); +goog.inherits(proto.poolrpc.NodeRatingResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.poolrpc.InitAccountRequest.displayName = 'proto.poolrpc.InitAccountRequest'; + /** + * @public + * @override + */ + proto.poolrpc.NodeRatingResponse.displayName = 'proto.poolrpc.NodeRatingResponse'; +} +/** + * 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.poolrpc.GetInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.GetInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.GetInfoRequest.displayName = 'proto.poolrpc.GetInfoRequest'; +} +/** + * 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.poolrpc.GetInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.GetInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.GetInfoResponse.displayName = 'proto.poolrpc.GetInfoResponse'; +} +/** + * 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.poolrpc.StopDaemonRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.StopDaemonRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.StopDaemonRequest.displayName = 'proto.poolrpc.StopDaemonRequest'; +} +/** + * 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.poolrpc.StopDaemonResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.StopDaemonResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.StopDaemonResponse.displayName = 'proto.poolrpc.StopDaemonResponse'; +} +/** + * 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.poolrpc.OfferSidecarRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.OfferSidecarRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.OfferSidecarRequest.displayName = 'proto.poolrpc.OfferSidecarRequest'; +} +/** + * 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.poolrpc.SidecarTicket = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.SidecarTicket, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.SidecarTicket.displayName = 'proto.poolrpc.SidecarTicket'; +} +/** + * 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.poolrpc.DecodedSidecarTicket = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.DecodedSidecarTicket, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.DecodedSidecarTicket.displayName = 'proto.poolrpc.DecodedSidecarTicket'; +} +/** + * 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.poolrpc.RegisterSidecarRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.RegisterSidecarRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.RegisterSidecarRequest.displayName = 'proto.poolrpc.RegisterSidecarRequest'; +} +/** + * 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.poolrpc.ExpectSidecarChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ExpectSidecarChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ExpectSidecarChannelRequest.displayName = 'proto.poolrpc.ExpectSidecarChannelRequest'; +} +/** + * 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.poolrpc.ExpectSidecarChannelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ExpectSidecarChannelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ExpectSidecarChannelResponse.displayName = 'proto.poolrpc.ExpectSidecarChannelResponse'; +} +/** + * 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.poolrpc.ListSidecarsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.ListSidecarsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListSidecarsRequest.displayName = 'proto.poolrpc.ListSidecarsRequest'; +} +/** + * 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.poolrpc.ListSidecarsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListSidecarsResponse.repeatedFields_, null); +}; +goog.inherits(proto.poolrpc.ListSidecarsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.ListSidecarsResponse.displayName = 'proto.poolrpc.ListSidecarsResponse'; +} +/** + * 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.poolrpc.CancelSidecarRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CancelSidecarRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CancelSidecarRequest.displayName = 'proto.poolrpc.CancelSidecarRequest'; +} +/** + * 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.poolrpc.CancelSidecarResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.poolrpc.CancelSidecarResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.poolrpc.CancelSidecarResponse.displayName = 'proto.poolrpc.CancelSidecarResponse'; } + /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -150,13 +1563,15 @@ proto.poolrpc.InitAccountRequest.prototype.getFeesCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.InitAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -166,8 +1581,8 @@ proto.poolrpc.InitAccountRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.InitAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -336,9 +1751,12 @@ proto.poolrpc.InitAccountRequest.prototype.getAccountValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setAccountValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -351,20 +1769,27 @@ proto.poolrpc.InitAccountRequest.prototype.getAbsoluteHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setAbsoluteHeight = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.InitAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.InitAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.clearAbsoluteHeight = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.InitAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.InitAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.InitAccountRequest.prototype.hasAbsoluteHeight = function() { return jspb.Message.getField(this, 2) != null; @@ -380,20 +1805,27 @@ proto.poolrpc.InitAccountRequest.prototype.getRelativeHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setRelativeHeight = function(value) { - jspb.Message.setOneofField(this, 3, proto.poolrpc.InitAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.InitAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.clearRelativeHeight = function() { - jspb.Message.setOneofField(this, 3, proto.poolrpc.InitAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.InitAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.InitAccountRequest.prototype.hasRelativeHeight = function() { return jspb.Message.getField(this, 3) != null; @@ -409,20 +1841,27 @@ proto.poolrpc.InitAccountRequest.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setConfTarget = function(value) { - jspb.Message.setOneofField(this, 4, proto.poolrpc.InitAccountRequest.oneofGroups_[1], value); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.InitAccountRequest.oneofGroups_[1], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.clearConfTarget = function() { - jspb.Message.setOneofField(this, 4, proto.poolrpc.InitAccountRequest.oneofGroups_[1], undefined); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.InitAccountRequest.oneofGroups_[1], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.InitAccountRequest.prototype.hasConfTarget = function() { return jspb.Message.getField(this, 4) != null; @@ -438,20 +1877,27 @@ proto.poolrpc.InitAccountRequest.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setOneofField(this, 6, proto.poolrpc.InitAccountRequest.oneofGroups_[1], value); + return jspb.Message.setOneofField(this, 6, proto.poolrpc.InitAccountRequest.oneofGroups_[1], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.clearFeeRateSatPerKw = function() { - jspb.Message.setOneofField(this, 6, proto.poolrpc.InitAccountRequest.oneofGroups_[1], undefined); + return jspb.Message.setOneofField(this, 6, proto.poolrpc.InitAccountRequest.oneofGroups_[1], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.InitAccountRequest.prototype.hasFeeRateSatPerKw = function() { return jspb.Message.getField(this, 6) != null; @@ -467,9 +1913,12 @@ proto.poolrpc.InitAccountRequest.prototype.getInitiator = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setInitiator = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -482,30 +1931,16 @@ proto.poolrpc.InitAccountRequest.prototype.getVersion = function() { }; -/** @param {!proto.poolrpc.AccountVersion} value */ +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.InitAccountRequest} returns this + */ proto.poolrpc.InitAccountRequest.prototype.setVersion = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); + return jspb.Message.setProto3EnumField(this, 7, value); }; -/** - * 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.poolrpc.QuoteAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.QuoteAccountRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.QuoteAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.QuoteAccountRequest.displayName = 'proto.poolrpc.QuoteAccountRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -535,13 +1970,15 @@ proto.poolrpc.QuoteAccountRequest.prototype.getFeesCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.QuoteAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -551,8 +1988,8 @@ proto.poolrpc.QuoteAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.QuoteAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -661,9 +2098,12 @@ proto.poolrpc.QuoteAccountRequest.prototype.getAccountValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteAccountRequest} returns this + */ proto.poolrpc.QuoteAccountRequest.prototype.setAccountValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -676,20 +2116,27 @@ proto.poolrpc.QuoteAccountRequest.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteAccountRequest} returns this + */ proto.poolrpc.QuoteAccountRequest.prototype.setConfTarget = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.QuoteAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.QuoteAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.QuoteAccountRequest} returns this + */ proto.poolrpc.QuoteAccountRequest.prototype.clearConfTarget = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.QuoteAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.QuoteAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.QuoteAccountRequest.prototype.hasConfTarget = function() { return jspb.Message.getField(this, 2) != null; @@ -697,34 +2144,19 @@ proto.poolrpc.QuoteAccountRequest.prototype.hasConfTarget = function() { -/** - * 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.poolrpc.QuoteAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.QuoteAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.QuoteAccountResponse.displayName = 'proto.poolrpc.QuoteAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.QuoteAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -734,8 +2166,8 @@ proto.poolrpc.QuoteAccountResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.QuoteAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -844,9 +2276,12 @@ proto.poolrpc.QuoteAccountResponse.prototype.getMinerFeeRateSatPerKw = function( }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteAccountResponse} returns this + */ proto.poolrpc.QuoteAccountResponse.prototype.setMinerFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -859,41 +2294,29 @@ proto.poolrpc.QuoteAccountResponse.prototype.getMinerFeeTotal = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteAccountResponse} returns this + */ proto.poolrpc.QuoteAccountResponse.prototype.setMinerFeeTotal = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.poolrpc.ListAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ListAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListAccountsRequest.displayName = 'proto.poolrpc.ListAccountsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListAccountsRequest.prototype.toObject = function(opt_includeInstance) { @@ -903,8 +2326,8 @@ proto.poolrpc.ListAccountsRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListAccountsRequest} msg The msg instance to transform. * @return {!Object} @@ -912,7 +2335,7 @@ proto.poolrpc.ListAccountsRequest.prototype.toObject = function(opt_includeInsta */ proto.poolrpc.ListAccountsRequest.toObject = function(includeInstance, msg) { var f, obj = { - activeOnly: jspb.Message.getFieldWithDefault(msg, 1, false) + activeOnly: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -994,39 +2417,23 @@ proto.poolrpc.ListAccountsRequest.serializeBinaryToWriter = function(message, wr /** * optional bool active_only = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ListAccountsRequest.prototype.getActiveOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ListAccountsRequest} returns this + */ proto.poolrpc.ListAccountsRequest.prototype.setActiveOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; -/** - * 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.poolrpc.ListAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListAccountsResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ListAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListAccountsResponse.displayName = 'proto.poolrpc.ListAccountsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1038,13 +2445,15 @@ proto.poolrpc.ListAccountsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListAccountsResponse.prototype.toObject = function(opt_includeInstance) { @@ -1054,8 +2463,8 @@ proto.poolrpc.ListAccountsResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListAccountsResponse} msg The msg instance to transform. * @return {!Object} @@ -1156,9 +2565,12 @@ proto.poolrpc.ListAccountsResponse.prototype.getAccountsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ListAccountsResponse} returns this +*/ proto.poolrpc.ListAccountsResponse.prototype.setAccountsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1172,40 +2584,29 @@ proto.poolrpc.ListAccountsResponse.prototype.addAccounts = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ListAccountsResponse} returns this + */ proto.poolrpc.ListAccountsResponse.prototype.clearAccountsList = function() { - this.setAccountsList([]); + return this.setAccountsList([]); }; -/** - * 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.poolrpc.Output = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.Output, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Output.displayName = 'proto.poolrpc.Output'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Output.prototype.toObject = function(opt_includeInstance) { @@ -1215,8 +2616,8 @@ proto.poolrpc.Output.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Output} msg The msg instance to transform. * @return {!Object} @@ -1325,9 +2726,12 @@ proto.poolrpc.Output.prototype.getValueSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Output} returns this + */ proto.poolrpc.Output.prototype.setValueSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -1340,30 +2744,16 @@ proto.poolrpc.Output.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Output} returns this + */ proto.poolrpc.Output.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * 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.poolrpc.OutputWithFee = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.OutputWithFee.oneofGroups_); -}; -goog.inherits(proto.poolrpc.OutputWithFee, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OutputWithFee.displayName = 'proto.poolrpc.OutputWithFee'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -1394,13 +2784,15 @@ proto.poolrpc.OutputWithFee.prototype.getFeesCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OutputWithFee.prototype.toObject = function(opt_includeInstance) { @@ -1410,8 +2802,8 @@ proto.poolrpc.OutputWithFee.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OutputWithFee} msg The msg instance to transform. * @return {!Object} @@ -1532,9 +2924,12 @@ proto.poolrpc.OutputWithFee.prototype.getAddress = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OutputWithFee} returns this + */ proto.poolrpc.OutputWithFee.prototype.setAddress = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1547,20 +2942,27 @@ proto.poolrpc.OutputWithFee.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.OutputWithFee} returns this + */ proto.poolrpc.OutputWithFee.prototype.setConfTarget = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.OutputWithFee.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.OutputWithFee.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.OutputWithFee} returns this + */ proto.poolrpc.OutputWithFee.prototype.clearConfTarget = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.OutputWithFee.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.OutputWithFee.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OutputWithFee.prototype.hasConfTarget = function() { return jspb.Message.getField(this, 2) != null; @@ -1576,20 +2978,27 @@ proto.poolrpc.OutputWithFee.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OutputWithFee} returns this + */ proto.poolrpc.OutputWithFee.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setOneofField(this, 3, proto.poolrpc.OutputWithFee.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.OutputWithFee.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.OutputWithFee} returns this + */ proto.poolrpc.OutputWithFee.prototype.clearFeeRateSatPerKw = function() { - jspb.Message.setOneofField(this, 3, proto.poolrpc.OutputWithFee.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.OutputWithFee.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OutputWithFee.prototype.hasFeeRateSatPerKw = function() { return jspb.Message.getField(this, 3) != null; @@ -1597,23 +3006,6 @@ proto.poolrpc.OutputWithFee.prototype.hasFeeRateSatPerKw = function() { -/** - * 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.poolrpc.OutputsWithImplicitFee = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.OutputsWithImplicitFee.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.OutputsWithImplicitFee, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OutputsWithImplicitFee.displayName = 'proto.poolrpc.OutputsWithImplicitFee'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -1625,13 +3017,15 @@ proto.poolrpc.OutputsWithImplicitFee.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OutputsWithImplicitFee.prototype.toObject = function(opt_includeInstance) { @@ -1641,8 +3035,8 @@ proto.poolrpc.OutputsWithImplicitFee.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OutputsWithImplicitFee} msg The msg instance to transform. * @return {!Object} @@ -1743,9 +3137,12 @@ proto.poolrpc.OutputsWithImplicitFee.prototype.getOutputsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.OutputsWithImplicitFee} returns this +*/ proto.poolrpc.OutputsWithImplicitFee.prototype.setOutputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1759,29 +3156,16 @@ proto.poolrpc.OutputsWithImplicitFee.prototype.addOutputs = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.OutputsWithImplicitFee} returns this + */ proto.poolrpc.OutputsWithImplicitFee.prototype.clearOutputsList = function() { - this.setOutputsList([]); + return this.setOutputsList([]); }; -/** - * 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.poolrpc.CloseAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.CloseAccountRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.CloseAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CloseAccountRequest.displayName = 'proto.poolrpc.CloseAccountRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -1812,13 +3196,15 @@ proto.poolrpc.CloseAccountRequest.prototype.getFundsDestinationCase = function() if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CloseAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -1828,8 +3214,8 @@ proto.poolrpc.CloseAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CloseAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -1978,9 +3364,12 @@ proto.poolrpc.CloseAccountRequest.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CloseAccountRequest} returns this + */ proto.poolrpc.CloseAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -1994,20 +3383,27 @@ proto.poolrpc.CloseAccountRequest.prototype.getOutputWithFee = function() { }; -/** @param {?proto.poolrpc.OutputWithFee|undefined} value */ +/** + * @param {?proto.poolrpc.OutputWithFee|undefined} value + * @return {!proto.poolrpc.CloseAccountRequest} returns this +*/ proto.poolrpc.CloseAccountRequest.prototype.setOutputWithFee = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.CloseAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.CloseAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.CloseAccountRequest} returns this + */ proto.poolrpc.CloseAccountRequest.prototype.clearOutputWithFee = function() { - this.setOutputWithFee(undefined); + return this.setOutputWithFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.CloseAccountRequest.prototype.hasOutputWithFee = function() { return jspb.Message.getField(this, 2) != null; @@ -2024,20 +3420,27 @@ proto.poolrpc.CloseAccountRequest.prototype.getOutputs = function() { }; -/** @param {?proto.poolrpc.OutputsWithImplicitFee|undefined} value */ +/** + * @param {?proto.poolrpc.OutputsWithImplicitFee|undefined} value + * @return {!proto.poolrpc.CloseAccountRequest} returns this +*/ proto.poolrpc.CloseAccountRequest.prototype.setOutputs = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.CloseAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.CloseAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.CloseAccountRequest} returns this + */ proto.poolrpc.CloseAccountRequest.prototype.clearOutputs = function() { - this.setOutputs(undefined); + return this.setOutputs(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.CloseAccountRequest.prototype.hasOutputs = function() { return jspb.Message.getField(this, 3) != null; @@ -2045,34 +3448,19 @@ proto.poolrpc.CloseAccountRequest.prototype.hasOutputs = function() { -/** - * 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.poolrpc.CloseAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CloseAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CloseAccountResponse.displayName = 'proto.poolrpc.CloseAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CloseAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -2082,8 +3470,8 @@ proto.poolrpc.CloseAccountResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CloseAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -2204,30 +3592,16 @@ proto.poolrpc.CloseAccountResponse.prototype.getCloseTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CloseAccountResponse} returns this + */ proto.poolrpc.CloseAccountResponse.prototype.setCloseTxid = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.WithdrawAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.WithdrawAccountRequest.repeatedFields_, proto.poolrpc.WithdrawAccountRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.WithdrawAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.WithdrawAccountRequest.displayName = 'proto.poolrpc.WithdrawAccountRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2265,13 +3639,15 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getAccountExpiryCase = function() if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.WithdrawAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -2281,8 +3657,8 @@ proto.poolrpc.WithdrawAccountRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.WithdrawAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -2466,9 +3842,12 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -2482,9 +3861,12 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getOutputsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this +*/ proto.poolrpc.WithdrawAccountRequest.prototype.setOutputsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -2498,8 +3880,12 @@ proto.poolrpc.WithdrawAccountRequest.prototype.addOutputs = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.clearOutputsList = function() { - this.setOutputsList([]); + return this.setOutputsList([]); }; @@ -2512,9 +3898,12 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -2527,20 +3916,27 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getAbsoluteExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.setAbsoluteExpiry = function(value) { - jspb.Message.setOneofField(this, 4, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.clearAbsoluteExpiry = function() { - jspb.Message.setOneofField(this, 4, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.WithdrawAccountRequest.prototype.hasAbsoluteExpiry = function() { return jspb.Message.getField(this, 4) != null; @@ -2556,20 +3952,27 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getRelativeExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.setRelativeExpiry = function(value) { - jspb.Message.setOneofField(this, 5, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 5, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.clearRelativeExpiry = function() { - jspb.Message.setOneofField(this, 5, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 5, proto.poolrpc.WithdrawAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.WithdrawAccountRequest.prototype.hasRelativeExpiry = function() { return jspb.Message.getField(this, 5) != null; @@ -2585,41 +3988,29 @@ proto.poolrpc.WithdrawAccountRequest.prototype.getNewVersion = function() { }; -/** @param {!proto.poolrpc.AccountVersion} value */ +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.WithdrawAccountRequest} returns this + */ proto.poolrpc.WithdrawAccountRequest.prototype.setNewVersion = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; -/** - * 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.poolrpc.WithdrawAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.WithdrawAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.WithdrawAccountResponse.displayName = 'proto.poolrpc.WithdrawAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.WithdrawAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -2629,8 +4020,8 @@ proto.poolrpc.WithdrawAccountResponse.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.WithdrawAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -2742,20 +4133,27 @@ proto.poolrpc.WithdrawAccountResponse.prototype.getAccount = function() { }; -/** @param {?proto.poolrpc.Account|undefined} value */ +/** + * @param {?proto.poolrpc.Account|undefined} value + * @return {!proto.poolrpc.WithdrawAccountResponse} returns this +*/ proto.poolrpc.WithdrawAccountResponse.prototype.setAccount = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.WithdrawAccountResponse} returns this + */ proto.poolrpc.WithdrawAccountResponse.prototype.clearAccount = function() { - this.setAccount(undefined); + return this.setAccount(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.WithdrawAccountResponse.prototype.hasAccount = function() { return jspb.Message.getField(this, 1) != null; @@ -2795,30 +4193,16 @@ proto.poolrpc.WithdrawAccountResponse.prototype.getWithdrawTxid_asU8 = function( }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.WithdrawAccountResponse} returns this + */ proto.poolrpc.WithdrawAccountResponse.prototype.setWithdrawTxid = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.DepositAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.DepositAccountRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.DepositAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.DepositAccountRequest.displayName = 'proto.poolrpc.DepositAccountRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -2849,13 +4233,15 @@ proto.poolrpc.DepositAccountRequest.prototype.getAccountExpiryCase = function() if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.DepositAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -2865,8 +4251,8 @@ proto.poolrpc.DepositAccountRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.DepositAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -3047,9 +4433,12 @@ proto.poolrpc.DepositAccountRequest.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -3062,9 +4451,12 @@ proto.poolrpc.DepositAccountRequest.prototype.getAmountSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setAmountSat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -3077,9 +4469,12 @@ proto.poolrpc.DepositAccountRequest.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -3092,20 +4487,27 @@ proto.poolrpc.DepositAccountRequest.prototype.getAbsoluteExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setAbsoluteExpiry = function(value) { - jspb.Message.setOneofField(this, 4, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.clearAbsoluteExpiry = function() { - jspb.Message.setOneofField(this, 4, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 4, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.DepositAccountRequest.prototype.hasAbsoluteExpiry = function() { return jspb.Message.getField(this, 4) != null; @@ -3121,20 +4523,27 @@ proto.poolrpc.DepositAccountRequest.prototype.getRelativeExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setRelativeExpiry = function(value) { - jspb.Message.setOneofField(this, 5, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 5, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.clearRelativeExpiry = function() { - jspb.Message.setOneofField(this, 5, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 5, proto.poolrpc.DepositAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.DepositAccountRequest.prototype.hasRelativeExpiry = function() { return jspb.Message.getField(this, 5) != null; @@ -3150,41 +4559,29 @@ proto.poolrpc.DepositAccountRequest.prototype.getNewVersion = function() { }; -/** @param {!proto.poolrpc.AccountVersion} value */ +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.DepositAccountRequest} returns this + */ proto.poolrpc.DepositAccountRequest.prototype.setNewVersion = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; -/** - * 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.poolrpc.DepositAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.DepositAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.DepositAccountResponse.displayName = 'proto.poolrpc.DepositAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.DepositAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -3194,8 +4591,8 @@ proto.poolrpc.DepositAccountResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.DepositAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -3307,20 +4704,27 @@ proto.poolrpc.DepositAccountResponse.prototype.getAccount = function() { }; -/** @param {?proto.poolrpc.Account|undefined} value */ +/** + * @param {?proto.poolrpc.Account|undefined} value + * @return {!proto.poolrpc.DepositAccountResponse} returns this +*/ proto.poolrpc.DepositAccountResponse.prototype.setAccount = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.DepositAccountResponse} returns this + */ proto.poolrpc.DepositAccountResponse.prototype.clearAccount = function() { - this.setAccount(undefined); + return this.setAccount(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.DepositAccountResponse.prototype.hasAccount = function() { return jspb.Message.getField(this, 1) != null; @@ -3360,30 +4764,16 @@ proto.poolrpc.DepositAccountResponse.prototype.getDepositTxid_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DepositAccountResponse} returns this + */ proto.poolrpc.DepositAccountResponse.prototype.setDepositTxid = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.RenewAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.RenewAccountRequest.oneofGroups_); -}; -goog.inherits(proto.poolrpc.RenewAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RenewAccountRequest.displayName = 'proto.poolrpc.RenewAccountRequest'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -3414,13 +4804,15 @@ proto.poolrpc.RenewAccountRequest.prototype.getAccountExpiryCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RenewAccountRequest.prototype.toObject = function(opt_includeInstance) { @@ -3430,8 +4822,8 @@ proto.poolrpc.RenewAccountRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RenewAccountRequest} msg The msg instance to transform. * @return {!Object} @@ -3600,9 +4992,12 @@ proto.poolrpc.RenewAccountRequest.prototype.getAccountKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.setAccountKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -3615,20 +5010,27 @@ proto.poolrpc.RenewAccountRequest.prototype.getAbsoluteExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.setAbsoluteExpiry = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.clearAbsoluteExpiry = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.RenewAccountRequest.prototype.hasAbsoluteExpiry = function() { return jspb.Message.getField(this, 2) != null; @@ -3644,20 +5046,27 @@ proto.poolrpc.RenewAccountRequest.prototype.getRelativeExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.setRelativeExpiry = function(value) { - jspb.Message.setOneofField(this, 3, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.clearRelativeExpiry = function() { - jspb.Message.setOneofField(this, 3, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 3, proto.poolrpc.RenewAccountRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.RenewAccountRequest.prototype.hasRelativeExpiry = function() { return jspb.Message.getField(this, 3) != null; @@ -3673,9 +5082,12 @@ proto.poolrpc.RenewAccountRequest.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -3688,41 +5100,29 @@ proto.poolrpc.RenewAccountRequest.prototype.getNewVersion = function() { }; -/** @param {!proto.poolrpc.AccountVersion} value */ +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.RenewAccountRequest} returns this + */ proto.poolrpc.RenewAccountRequest.prototype.setNewVersion = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); + return jspb.Message.setProto3EnumField(this, 5, value); }; -/** - * 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.poolrpc.RenewAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.RenewAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RenewAccountResponse.displayName = 'proto.poolrpc.RenewAccountResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RenewAccountResponse.prototype.toObject = function(opt_includeInstance) { @@ -3732,8 +5132,8 @@ proto.poolrpc.RenewAccountResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RenewAccountResponse} msg The msg instance to transform. * @return {!Object} @@ -3845,20 +5245,27 @@ proto.poolrpc.RenewAccountResponse.prototype.getAccount = function() { }; -/** @param {?proto.poolrpc.Account|undefined} value */ +/** + * @param {?proto.poolrpc.Account|undefined} value + * @return {!proto.poolrpc.RenewAccountResponse} returns this +*/ proto.poolrpc.RenewAccountResponse.prototype.setAccount = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.RenewAccountResponse} returns this + */ proto.poolrpc.RenewAccountResponse.prototype.clearAccount = function() { - this.setAccount(undefined); + return this.setAccount(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.RenewAccountResponse.prototype.hasAccount = function() { return jspb.Message.getField(this, 1) != null; @@ -3898,41 +5305,29 @@ proto.poolrpc.RenewAccountResponse.prototype.getRenewalTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.RenewAccountResponse} returns this + */ proto.poolrpc.RenewAccountResponse.prototype.setRenewalTxid = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; -/** - * 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.poolrpc.BumpAccountFeeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.BumpAccountFeeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BumpAccountFeeRequest.displayName = 'proto.poolrpc.BumpAccountFeeRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BumpAccountFeeRequest.prototype.toObject = function(opt_includeInstance) { @@ -3942,8 +5337,8 @@ proto.poolrpc.BumpAccountFeeRequest.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BumpAccountFeeRequest} msg The msg instance to transform. * @return {!Object} @@ -4076,9 +5471,12 @@ proto.poolrpc.BumpAccountFeeRequest.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BumpAccountFeeRequest} returns this + */ proto.poolrpc.BumpAccountFeeRequest.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4091,41 +5489,29 @@ proto.poolrpc.BumpAccountFeeRequest.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.BumpAccountFeeRequest} returns this + */ proto.poolrpc.BumpAccountFeeRequest.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; -/** - * 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.poolrpc.BumpAccountFeeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.BumpAccountFeeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.BumpAccountFeeResponse.displayName = 'proto.poolrpc.BumpAccountFeeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.BumpAccountFeeResponse.prototype.toObject = function(opt_includeInstance) { @@ -4135,8 +5521,8 @@ proto.poolrpc.BumpAccountFeeResponse.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.BumpAccountFeeResponse} msg The msg instance to transform. * @return {!Object} @@ -4214,34 +5600,19 @@ proto.poolrpc.BumpAccountFeeResponse.serializeBinaryToWriter = function(message, -/** - * 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.poolrpc.Account = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.Account, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Account.displayName = 'proto.poolrpc.Account'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Account.prototype.toObject = function(opt_includeInstance) { @@ -4251,8 +5622,8 @@ proto.poolrpc.Account.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Account} msg The msg instance to transform. * @return {!Object} @@ -4459,9 +5830,12 @@ proto.poolrpc.Account.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -4475,20 +5849,27 @@ proto.poolrpc.Account.prototype.getOutpoint = function() { }; -/** @param {?proto.poolrpc.OutPoint|undefined} value */ +/** + * @param {?proto.poolrpc.OutPoint|undefined} value + * @return {!proto.poolrpc.Account} returns this +*/ proto.poolrpc.Account.prototype.setOutpoint = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.clearOutpoint = function() { - this.setOutpoint(undefined); + return this.setOutpoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.Account.prototype.hasOutpoint = function() { return jspb.Message.getField(this, 2) != null; @@ -4504,9 +5885,12 @@ proto.poolrpc.Account.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -4519,9 +5903,12 @@ proto.poolrpc.Account.prototype.getAvailableBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setAvailableBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -4534,9 +5921,12 @@ proto.poolrpc.Account.prototype.getExpirationHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setExpirationHeight = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -4549,9 +5939,12 @@ proto.poolrpc.Account.prototype.getState = function() { }; -/** @param {!proto.poolrpc.AccountState} value */ +/** + * @param {!proto.poolrpc.AccountState} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -4588,9 +5981,12 @@ proto.poolrpc.Account.prototype.getLatestTxid_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setLatestTxid = function(value) { - jspb.Message.setProto3BytesField(this, 7, value); + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -4598,35 +5994,21 @@ proto.poolrpc.Account.prototype.setLatestTxid = function(value) { * optional AccountVersion version = 8; * @return {!proto.poolrpc.AccountVersion} */ -proto.poolrpc.Account.prototype.getVersion = function() { - return /** @type {!proto.poolrpc.AccountVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** @param {!proto.poolrpc.AccountVersion} value */ -proto.poolrpc.Account.prototype.setVersion = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); -}; - - - -/** - * 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.poolrpc.Account.prototype.getVersion = function() { + return /** @type {!proto.poolrpc.AccountVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.Account} returns this */ -proto.poolrpc.SubmitOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.SubmitOrderRequest.oneofGroups_); +proto.poolrpc.Account.prototype.setVersion = function(value) { + return jspb.Message.setProto3EnumField(this, 8, value); }; -goog.inherits(proto.poolrpc.SubmitOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.SubmitOrderRequest.displayName = 'proto.poolrpc.SubmitOrderRequest'; -} + + + /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -4657,13 +6039,15 @@ proto.poolrpc.SubmitOrderRequest.prototype.getDetailsCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.SubmitOrderRequest.prototype.toObject = function(opt_includeInstance) { @@ -4673,8 +6057,8 @@ proto.poolrpc.SubmitOrderRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.SubmitOrderRequest} msg The msg instance to transform. * @return {!Object} @@ -4800,20 +6184,27 @@ proto.poolrpc.SubmitOrderRequest.prototype.getAsk = function() { }; -/** @param {?proto.poolrpc.Ask|undefined} value */ +/** + * @param {?proto.poolrpc.Ask|undefined} value + * @return {!proto.poolrpc.SubmitOrderRequest} returns this +*/ proto.poolrpc.SubmitOrderRequest.prototype.setAsk = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.SubmitOrderRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.SubmitOrderRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.SubmitOrderRequest} returns this + */ proto.poolrpc.SubmitOrderRequest.prototype.clearAsk = function() { - this.setAsk(undefined); + return this.setAsk(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.SubmitOrderRequest.prototype.hasAsk = function() { return jspb.Message.getField(this, 1) != null; @@ -4830,20 +6221,27 @@ proto.poolrpc.SubmitOrderRequest.prototype.getBid = function() { }; -/** @param {?proto.poolrpc.Bid|undefined} value */ +/** + * @param {?proto.poolrpc.Bid|undefined} value + * @return {!proto.poolrpc.SubmitOrderRequest} returns this +*/ proto.poolrpc.SubmitOrderRequest.prototype.setBid = function(value) { - jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.SubmitOrderRequest.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 2, proto.poolrpc.SubmitOrderRequest.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.SubmitOrderRequest} returns this + */ proto.poolrpc.SubmitOrderRequest.prototype.clearBid = function() { - this.setBid(undefined); + return this.setBid(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.SubmitOrderRequest.prototype.hasBid = function() { return jspb.Message.getField(this, 2) != null; @@ -4859,30 +6257,16 @@ proto.poolrpc.SubmitOrderRequest.prototype.getInitiator = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.SubmitOrderRequest} returns this + */ proto.poolrpc.SubmitOrderRequest.prototype.setInitiator = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.poolrpc.SubmitOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.SubmitOrderResponse.oneofGroups_); -}; -goog.inherits(proto.poolrpc.SubmitOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.SubmitOrderResponse.displayName = 'proto.poolrpc.SubmitOrderResponse'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -4913,13 +6297,15 @@ proto.poolrpc.SubmitOrderResponse.prototype.getDetailsCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.SubmitOrderResponse.prototype.toObject = function(opt_includeInstance) { @@ -4929,8 +6315,8 @@ proto.poolrpc.SubmitOrderResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.SubmitOrderResponse} msg The msg instance to transform. * @return {!Object} @@ -5054,20 +6440,27 @@ proto.poolrpc.SubmitOrderResponse.prototype.getInvalidOrder = function() { }; -/** @param {?proto.poolrpc.InvalidOrder|undefined} value */ +/** + * @param {?proto.poolrpc.InvalidOrder|undefined} value + * @return {!proto.poolrpc.SubmitOrderResponse} returns this +*/ proto.poolrpc.SubmitOrderResponse.prototype.setInvalidOrder = function(value) { - jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 1, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.SubmitOrderResponse} returns this + */ proto.poolrpc.SubmitOrderResponse.prototype.clearInvalidOrder = function() { - this.setInvalidOrder(undefined); + return this.setInvalidOrder(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.SubmitOrderResponse.prototype.hasInvalidOrder = function() { return jspb.Message.getField(this, 1) != null; @@ -5107,20 +6500,27 @@ proto.poolrpc.SubmitOrderResponse.prototype.getAcceptedOrderNonce_asU8 = functio }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.SubmitOrderResponse} returns this + */ proto.poolrpc.SubmitOrderResponse.prototype.setAcceptedOrderNonce = function(value) { - jspb.Message.setOneofField(this, 2, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.SubmitOrderResponse} returns this + */ proto.poolrpc.SubmitOrderResponse.prototype.clearAcceptedOrderNonce = function() { - jspb.Message.setOneofField(this, 2, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 2, proto.poolrpc.SubmitOrderResponse.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.SubmitOrderResponse.prototype.hasAcceptedOrderNonce = function() { return jspb.Message.getField(this, 2) != null; @@ -5136,41 +6536,29 @@ proto.poolrpc.SubmitOrderResponse.prototype.getUpdatedSidecarTicket = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.SubmitOrderResponse} returns this + */ proto.poolrpc.SubmitOrderResponse.prototype.setUpdatedSidecarTicket = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * 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.poolrpc.ListOrdersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ListOrdersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListOrdersRequest.displayName = 'proto.poolrpc.ListOrdersRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListOrdersRequest.prototype.toObject = function(opt_includeInstance) { @@ -5180,8 +6568,8 @@ proto.poolrpc.ListOrdersRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListOrdersRequest} msg The msg instance to transform. * @return {!Object} @@ -5189,8 +6577,8 @@ proto.poolrpc.ListOrdersRequest.prototype.toObject = function(opt_includeInstanc */ proto.poolrpc.ListOrdersRequest.toObject = function(includeInstance, msg) { var f, obj = { - verbose: jspb.Message.getFieldWithDefault(msg, 1, false), - activeOnly: jspb.Message.getFieldWithDefault(msg, 2, false) + verbose: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + activeOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -5283,56 +6671,41 @@ proto.poolrpc.ListOrdersRequest.serializeBinaryToWriter = function(message, writ /** * optional bool verbose = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ListOrdersRequest.prototype.getVerbose = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ListOrdersRequest} returns this + */ proto.poolrpc.ListOrdersRequest.prototype.setVerbose = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool active_only = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.ListOrdersRequest.prototype.getActiveOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.ListOrdersRequest} returns this + */ proto.poolrpc.ListOrdersRequest.prototype.setActiveOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.poolrpc.ListOrdersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListOrdersResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ListOrdersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListOrdersResponse.displayName = 'proto.poolrpc.ListOrdersResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -5344,13 +6717,15 @@ proto.poolrpc.ListOrdersResponse.repeatedFields_ = [1,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListOrdersResponse.prototype.toObject = function(opt_includeInstance) { @@ -5360,8 +6735,8 @@ proto.poolrpc.ListOrdersResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListOrdersResponse} msg The msg instance to transform. * @return {!Object} @@ -5477,9 +6852,12 @@ proto.poolrpc.ListOrdersResponse.prototype.getAsksList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ListOrdersResponse} returns this +*/ proto.poolrpc.ListOrdersResponse.prototype.setAsksList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -5493,8 +6871,12 @@ proto.poolrpc.ListOrdersResponse.prototype.addAsks = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ListOrdersResponse} returns this + */ proto.poolrpc.ListOrdersResponse.prototype.clearAsksList = function() { - this.setAsksList([]); + return this.setAsksList([]); }; @@ -5508,9 +6890,12 @@ proto.poolrpc.ListOrdersResponse.prototype.getBidsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ListOrdersResponse} returns this +*/ proto.poolrpc.ListOrdersResponse.prototype.setBidsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; @@ -5524,40 +6909,29 @@ proto.poolrpc.ListOrdersResponse.prototype.addBids = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ListOrdersResponse} returns this + */ proto.poolrpc.ListOrdersResponse.prototype.clearBidsList = function() { - this.setBidsList([]); + return this.setBidsList([]); }; -/** - * 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.poolrpc.CancelOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CancelOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CancelOrderRequest.displayName = 'proto.poolrpc.CancelOrderRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CancelOrderRequest.prototype.toObject = function(opt_includeInstance) { @@ -5567,8 +6941,8 @@ proto.poolrpc.CancelOrderRequest.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CancelOrderRequest} msg The msg instance to transform. * @return {!Object} @@ -5689,41 +7063,29 @@ proto.poolrpc.CancelOrderRequest.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CancelOrderRequest} returns this + */ proto.poolrpc.CancelOrderRequest.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.CancelOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CancelOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CancelOrderResponse.displayName = 'proto.poolrpc.CancelOrderResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CancelOrderResponse.prototype.toObject = function(opt_includeInstance) { @@ -5733,8 +7095,8 @@ proto.poolrpc.CancelOrderResponse.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CancelOrderResponse} msg The msg instance to transform. * @return {!Object} @@ -5812,23 +7174,6 @@ proto.poolrpc.CancelOrderResponse.serializeBinaryToWriter = function(message, wr -/** - * 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.poolrpc.Order = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.Order.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.Order, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Order.displayName = 'proto.poolrpc.Order'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -5840,13 +7185,15 @@ proto.poolrpc.Order.repeatedFields_ = [11,14,15]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Order.prototype.toObject = function(opt_includeInstance) { @@ -5856,8 +7203,8 @@ proto.poolrpc.Order.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Order} msg The msg instance to transform. * @return {!Object} @@ -5882,7 +7229,7 @@ proto.poolrpc.Order.toObject = function(includeInstance, msg) { allowedNodeIdsList: msg.getAllowedNodeIdsList_asB64(), notAllowedNodeIdsList: msg.getNotAllowedNodeIdsList_asB64(), auctionType: jspb.Message.getFieldWithDefault(msg, 16, 0), - isPublic: jspb.Message.getFieldWithDefault(msg, 17, false) + isPublic: jspb.Message.getBooleanFieldWithDefault(msg, 17, false) }; if (includeInstance) { @@ -6173,9 +7520,12 @@ proto.poolrpc.Order.prototype.getTraderKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setTraderKey = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6188,9 +7538,12 @@ proto.poolrpc.Order.prototype.getRateFixed = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setRateFixed = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -6203,9 +7556,12 @@ proto.poolrpc.Order.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -6218,9 +7574,12 @@ proto.poolrpc.Order.prototype.getMaxBatchFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setMaxBatchFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -6257,9 +7616,12 @@ proto.poolrpc.Order.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 5, value); + return jspb.Message.setProto3BytesField(this, 5, value); }; @@ -6272,9 +7634,12 @@ proto.poolrpc.Order.prototype.getState = function() { }; -/** @param {!proto.poolrpc.OrderState} value */ +/** + * @param {!proto.poolrpc.OrderState} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -6287,9 +7652,12 @@ proto.poolrpc.Order.prototype.getUnits = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setUnits = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -6302,9 +7670,12 @@ proto.poolrpc.Order.prototype.getUnitsUnfulfilled = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setUnitsUnfulfilled = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -6317,9 +7688,12 @@ proto.poolrpc.Order.prototype.getReservedValueSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setReservedValueSat = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -6332,9 +7706,12 @@ proto.poolrpc.Order.prototype.getCreationTimestampNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setCreationTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -6348,9 +7725,12 @@ proto.poolrpc.Order.prototype.getEventsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.Order} returns this +*/ proto.poolrpc.Order.prototype.setEventsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 11, value); + return jspb.Message.setRepeatedWrapperField(this, 11, value); }; @@ -6364,8 +7744,12 @@ proto.poolrpc.Order.prototype.addEvents = function(opt_value, opt_index) { }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.clearEventsList = function() { - this.setEventsList([]); + return this.setEventsList([]); }; @@ -6378,9 +7762,12 @@ proto.poolrpc.Order.prototype.getMinUnitsMatch = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setMinUnitsMatch = function(value) { - jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 12, value); }; @@ -6393,9 +7780,12 @@ proto.poolrpc.Order.prototype.getChannelType = function() { }; -/** @param {!proto.poolrpc.OrderChannelType} value */ +/** + * @param {!proto.poolrpc.OrderChannelType} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setChannelType = function(value) { - jspb.Message.setProto3EnumField(this, 13, value); + return jspb.Message.setProto3EnumField(this, 13, value); }; @@ -6432,23 +7822,31 @@ proto.poolrpc.Order.prototype.getAllowedNodeIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setAllowedNodeIdsList = function(value) { - jspb.Message.setField(this, 14, value || []); + return jspb.Message.setField(this, 14, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.Order} returns this */ proto.poolrpc.Order.prototype.addAllowedNodeIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 14, value, opt_index); + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.clearAllowedNodeIdsList = function() { - this.setAllowedNodeIdsList([]); + return this.setAllowedNodeIdsList([]); }; @@ -6485,23 +7883,31 @@ proto.poolrpc.Order.prototype.getNotAllowedNodeIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setNotAllowedNodeIdsList = function(value) { - jspb.Message.setField(this, 15, value || []); + return jspb.Message.setField(this, 15, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.Order} returns this */ proto.poolrpc.Order.prototype.addNotAllowedNodeIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 15, value, opt_index); + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.clearNotAllowedNodeIdsList = function() { - this.setNotAllowedNodeIdsList([]); + return this.setNotAllowedNodeIdsList([]); }; @@ -6514,58 +7920,47 @@ proto.poolrpc.Order.prototype.getAuctionType = function() { }; -/** @param {!proto.poolrpc.AuctionType} value */ +/** + * @param {!proto.poolrpc.AuctionType} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setAuctionType = function(value) { - jspb.Message.setProto3EnumField(this, 16, value); + return jspb.Message.setProto3EnumField(this, 16, value); }; /** * optional bool is_public = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.Order.prototype.getIsPublic = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.Order} returns this + */ proto.poolrpc.Order.prototype.setIsPublic = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; -/** - * 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.poolrpc.Bid = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.Bid, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Bid.displayName = 'proto.poolrpc.Bid'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Bid.prototype.toObject = function(opt_includeInstance) { @@ -6575,8 +7970,8 @@ proto.poolrpc.Bid.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Bid} msg The msg instance to transform. * @return {!Object} @@ -6590,8 +7985,8 @@ proto.poolrpc.Bid.toObject = function(includeInstance, msg) { minNodeTier: jspb.Message.getFieldWithDefault(msg, 4, 0), selfChanBalance: jspb.Message.getFieldWithDefault(msg, 5, "0"), sidecarTicket: jspb.Message.getFieldWithDefault(msg, 6, ""), - unannouncedChannel: jspb.Message.getFieldWithDefault(msg, 7, false), - zeroConfChannel: jspb.Message.getFieldWithDefault(msg, 8, false) + unannouncedChannel: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + zeroConfChannel: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) }; if (includeInstance) { @@ -6760,20 +8155,27 @@ proto.poolrpc.Bid.prototype.getDetails = function() { }; -/** @param {?proto.poolrpc.Order|undefined} value */ +/** + * @param {?proto.poolrpc.Order|undefined} value + * @return {!proto.poolrpc.Bid} returns this +*/ proto.poolrpc.Bid.prototype.setDetails = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.clearDetails = function() { - this.setDetails(undefined); + return this.setDetails(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.Bid.prototype.hasDetails = function() { return jspb.Message.getField(this, 1) != null; @@ -6789,9 +8191,12 @@ proto.poolrpc.Bid.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -6804,9 +8209,12 @@ proto.poolrpc.Bid.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -6819,9 +8227,12 @@ proto.poolrpc.Bid.prototype.getMinNodeTier = function() { }; -/** @param {!proto.poolrpc.NodeTier} value */ +/** + * @param {!proto.poolrpc.NodeTier} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setMinNodeTier = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -6834,9 +8245,12 @@ proto.poolrpc.Bid.prototype.getSelfChanBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setSelfChanBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -6849,75 +8263,65 @@ proto.poolrpc.Bid.prototype.getSidecarTicket = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setSidecarTicket = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional bool unannounced_channel = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.Bid.prototype.getUnannouncedChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.Bid} returns this + */ proto.poolrpc.Bid.prototype.setUnannouncedChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional bool zero_conf_channel = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.Bid.prototype.getZeroConfChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); -}; - - -/** @param {boolean} value */ -proto.poolrpc.Bid.prototype.setZeroConfChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; - /** - * 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 + * @param {boolean} value + * @return {!proto.poolrpc.Bid} returns this */ -proto.poolrpc.Ask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.poolrpc.Bid.prototype.setZeroConfChannel = function(value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; -goog.inherits(proto.poolrpc.Ask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Ask.displayName = 'proto.poolrpc.Ask'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Ask.prototype.toObject = function(opt_includeInstance) { @@ -6927,8 +8331,8 @@ proto.poolrpc.Ask.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Ask} msg The msg instance to transform. * @return {!Object} @@ -7076,20 +8480,27 @@ proto.poolrpc.Ask.prototype.getDetails = function() { }; -/** @param {?proto.poolrpc.Order|undefined} value */ +/** + * @param {?proto.poolrpc.Order|undefined} value + * @return {!proto.poolrpc.Ask} returns this +*/ proto.poolrpc.Ask.prototype.setDetails = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.Ask} returns this + */ proto.poolrpc.Ask.prototype.clearDetails = function() { - this.setDetails(undefined); + return this.setDetails(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.Ask.prototype.hasDetails = function() { return jspb.Message.getField(this, 1) != null; @@ -7105,9 +8516,12 @@ proto.poolrpc.Ask.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Ask} returns this + */ proto.poolrpc.Ask.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -7120,9 +8534,12 @@ proto.poolrpc.Ask.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Ask} returns this + */ proto.poolrpc.Ask.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -7135,9 +8552,12 @@ proto.poolrpc.Ask.prototype.getAnnouncementConstraints = function() { }; -/** @param {!proto.poolrpc.ChannelAnnouncementConstraints} value */ +/** + * @param {!proto.poolrpc.ChannelAnnouncementConstraints} value + * @return {!proto.poolrpc.Ask} returns this + */ proto.poolrpc.Ask.prototype.setAnnouncementConstraints = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -7150,41 +8570,29 @@ proto.poolrpc.Ask.prototype.getConfirmationConstraints = function() { }; -/** @param {!proto.poolrpc.ChannelConfirmationConstraints} value */ +/** + * @param {!proto.poolrpc.ChannelConfirmationConstraints} value + * @return {!proto.poolrpc.Ask} returns this + */ proto.poolrpc.Ask.prototype.setConfirmationConstraints = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); + return jspb.Message.setProto3EnumField(this, 5, value); }; -/** - * 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.poolrpc.QuoteOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.QuoteOrderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.QuoteOrderRequest.displayName = 'proto.poolrpc.QuoteOrderRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.QuoteOrderRequest.prototype.toObject = function(opt_includeInstance) { @@ -7194,8 +8602,8 @@ proto.poolrpc.QuoteOrderRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.QuoteOrderRequest} msg The msg instance to transform. * @return {!Object} @@ -7340,9 +8748,12 @@ proto.poolrpc.QuoteOrderRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteOrderRequest} returns this + */ proto.poolrpc.QuoteOrderRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -7355,9 +8766,12 @@ proto.poolrpc.QuoteOrderRequest.prototype.getRateFixed = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteOrderRequest} returns this + */ proto.poolrpc.QuoteOrderRequest.prototype.setRateFixed = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -7370,9 +8784,12 @@ proto.poolrpc.QuoteOrderRequest.prototype.getLeaseDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteOrderRequest} returns this + */ proto.poolrpc.QuoteOrderRequest.prototype.setLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -7385,9 +8802,12 @@ proto.poolrpc.QuoteOrderRequest.prototype.getMaxBatchFeeRateSatPerKw = function( }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteOrderRequest} returns this + */ proto.poolrpc.QuoteOrderRequest.prototype.setMaxBatchFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -7400,41 +8820,29 @@ proto.poolrpc.QuoteOrderRequest.prototype.getMinUnitsMatch = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteOrderRequest} returns this + */ proto.poolrpc.QuoteOrderRequest.prototype.setMinUnitsMatch = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * 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.poolrpc.QuoteOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.QuoteOrderResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.QuoteOrderResponse.displayName = 'proto.poolrpc.QuoteOrderResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.QuoteOrderResponse.prototype.toObject = function(opt_includeInstance) { @@ -7444,8 +8852,8 @@ proto.poolrpc.QuoteOrderResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.QuoteOrderResponse} msg The msg instance to transform. * @return {!Object} @@ -7454,8 +8862,8 @@ proto.poolrpc.QuoteOrderResponse.prototype.toObject = function(opt_includeInstan proto.poolrpc.QuoteOrderResponse.toObject = function(includeInstance, msg) { var f, obj = { totalPremiumSat: jspb.Message.getFieldWithDefault(msg, 1, "0"), - ratePerBlock: +jspb.Message.getFieldWithDefault(msg, 2, 0.0), - ratePercent: +jspb.Message.getFieldWithDefault(msg, 3, 0.0), + ratePerBlock: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + ratePercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), totalExecutionFeeSat: jspb.Message.getFieldWithDefault(msg, 4, "0"), worstCaseChainFeeSat: jspb.Message.getFieldWithDefault(msg, 5, "0") }; @@ -7590,9 +8998,12 @@ proto.poolrpc.QuoteOrderResponse.prototype.getTotalPremiumSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteOrderResponse} returns this + */ proto.poolrpc.QuoteOrderResponse.prototype.setTotalPremiumSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -7601,13 +9012,16 @@ proto.poolrpc.QuoteOrderResponse.prototype.setTotalPremiumSat = function(value) * @return {number} */ proto.poolrpc.QuoteOrderResponse.prototype.getRatePerBlock = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteOrderResponse} returns this + */ proto.poolrpc.QuoteOrderResponse.prototype.setRatePerBlock = function(value) { - jspb.Message.setProto3FloatField(this, 2, value); + return jspb.Message.setProto3FloatField(this, 2, value); }; @@ -7616,13 +9030,16 @@ proto.poolrpc.QuoteOrderResponse.prototype.setRatePerBlock = function(value) { * @return {number} */ proto.poolrpc.QuoteOrderResponse.prototype.getRatePercent = function() { - return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.QuoteOrderResponse} returns this + */ proto.poolrpc.QuoteOrderResponse.prototype.setRatePercent = function(value) { - jspb.Message.setProto3FloatField(this, 3, value); + return jspb.Message.setProto3FloatField(this, 3, value); }; @@ -7635,9 +9052,12 @@ proto.poolrpc.QuoteOrderResponse.prototype.getTotalExecutionFeeSat = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteOrderResponse} returns this + */ proto.poolrpc.QuoteOrderResponse.prototype.setTotalExecutionFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -7650,30 +9070,16 @@ proto.poolrpc.QuoteOrderResponse.prototype.getWorstCaseChainFeeSat = function() }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.QuoteOrderResponse} returns this + */ proto.poolrpc.QuoteOrderResponse.prototype.setWorstCaseChainFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; -/** - * 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.poolrpc.OrderEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.OrderEvent.oneofGroups_); -}; -goog.inherits(proto.poolrpc.OrderEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OrderEvent.displayName = 'proto.poolrpc.OrderEvent'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -7704,13 +9110,15 @@ proto.poolrpc.OrderEvent.prototype.getEventCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OrderEvent.prototype.toObject = function(opt_includeInstance) { @@ -7720,8 +9128,8 @@ proto.poolrpc.OrderEvent.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OrderEvent} msg The msg instance to transform. * @return {!Object} @@ -7858,9 +9266,12 @@ proto.poolrpc.OrderEvent.prototype.getTimestampNs = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderEvent} returns this + */ proto.poolrpc.OrderEvent.prototype.setTimestampNs = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -7873,9 +9284,12 @@ proto.poolrpc.OrderEvent.prototype.getEventStr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.OrderEvent} returns this + */ proto.poolrpc.OrderEvent.prototype.setEventStr = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -7889,20 +9303,27 @@ proto.poolrpc.OrderEvent.prototype.getStateChange = function() { }; -/** @param {?proto.poolrpc.UpdatedEvent|undefined} value */ +/** + * @param {?proto.poolrpc.UpdatedEvent|undefined} value + * @return {!proto.poolrpc.OrderEvent} returns this +*/ proto.poolrpc.OrderEvent.prototype.setStateChange = function(value) { - jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.OrderEvent.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 3, proto.poolrpc.OrderEvent.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.OrderEvent} returns this + */ proto.poolrpc.OrderEvent.prototype.clearStateChange = function() { - this.setStateChange(undefined); + return this.setStateChange(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OrderEvent.prototype.hasStateChange = function() { return jspb.Message.getField(this, 3) != null; @@ -7919,20 +9340,27 @@ proto.poolrpc.OrderEvent.prototype.getMatched = function() { }; -/** @param {?proto.poolrpc.MatchEvent|undefined} value */ +/** + * @param {?proto.poolrpc.MatchEvent|undefined} value + * @return {!proto.poolrpc.OrderEvent} returns this +*/ proto.poolrpc.OrderEvent.prototype.setMatched = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.OrderEvent.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.poolrpc.OrderEvent.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.OrderEvent} returns this + */ proto.poolrpc.OrderEvent.prototype.clearMatched = function() { - this.setMatched(undefined); + return this.setMatched(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OrderEvent.prototype.hasMatched = function() { return jspb.Message.getField(this, 4) != null; @@ -7940,34 +9368,19 @@ proto.poolrpc.OrderEvent.prototype.hasMatched = function() { -/** - * 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.poolrpc.UpdatedEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.UpdatedEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.UpdatedEvent.displayName = 'proto.poolrpc.UpdatedEvent'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.UpdatedEvent.prototype.toObject = function(opt_includeInstance) { @@ -7977,8 +9390,8 @@ proto.poolrpc.UpdatedEvent.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.UpdatedEvent} msg The msg instance to transform. * @return {!Object} @@ -8099,9 +9512,12 @@ proto.poolrpc.UpdatedEvent.prototype.getPreviousState = function() { }; -/** @param {!proto.poolrpc.OrderState} value */ +/** + * @param {!proto.poolrpc.OrderState} value + * @return {!proto.poolrpc.UpdatedEvent} returns this + */ proto.poolrpc.UpdatedEvent.prototype.setPreviousState = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -8114,9 +9530,12 @@ proto.poolrpc.UpdatedEvent.prototype.getNewState = function() { }; -/** @param {!proto.poolrpc.OrderState} value */ +/** + * @param {!proto.poolrpc.OrderState} value + * @return {!proto.poolrpc.UpdatedEvent} returns this + */ proto.poolrpc.UpdatedEvent.prototype.setNewState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -8129,41 +9548,29 @@ proto.poolrpc.UpdatedEvent.prototype.getUnitsFilled = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.UpdatedEvent} returns this + */ proto.poolrpc.UpdatedEvent.prototype.setUnitsFilled = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * 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.poolrpc.MatchEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.MatchEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchEvent.displayName = 'proto.poolrpc.MatchEvent'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.MatchEvent.prototype.toObject = function(opt_includeInstance) { @@ -8173,8 +9580,8 @@ proto.poolrpc.MatchEvent.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.MatchEvent} msg The msg instance to transform. * @return {!Object} @@ -8307,9 +9714,12 @@ proto.poolrpc.MatchEvent.prototype.getMatchState = function() { }; -/** @param {!proto.poolrpc.MatchState} value */ +/** + * @param {!proto.poolrpc.MatchState} value + * @return {!proto.poolrpc.MatchEvent} returns this + */ proto.poolrpc.MatchEvent.prototype.setMatchState = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; @@ -8322,9 +9732,12 @@ proto.poolrpc.MatchEvent.prototype.getUnitsFilled = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.MatchEvent} returns this + */ proto.poolrpc.MatchEvent.prototype.setUnitsFilled = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -8361,9 +9774,12 @@ proto.poolrpc.MatchEvent.prototype.getMatchedOrder_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.MatchEvent} returns this + */ proto.poolrpc.MatchEvent.prototype.setMatchedOrder = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -8376,41 +9792,29 @@ proto.poolrpc.MatchEvent.prototype.getRejectReason = function() { }; -/** @param {!proto.poolrpc.MatchRejectReason} value */ +/** + * @param {!proto.poolrpc.MatchRejectReason} value + * @return {!proto.poolrpc.MatchEvent} returns this + */ proto.poolrpc.MatchEvent.prototype.setRejectReason = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); + return jspb.Message.setProto3EnumField(this, 4, value); }; -/** - * 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.poolrpc.RecoverAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.RecoverAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RecoverAccountsRequest.displayName = 'proto.poolrpc.RecoverAccountsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RecoverAccountsRequest.prototype.toObject = function(opt_includeInstance) { @@ -8420,8 +9824,8 @@ proto.poolrpc.RecoverAccountsRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RecoverAccountsRequest} msg The msg instance to transform. * @return {!Object} @@ -8429,15 +9833,15 @@ proto.poolrpc.RecoverAccountsRequest.prototype.toObject = function(opt_includeIn */ proto.poolrpc.RecoverAccountsRequest.toObject = function(includeInstance, msg) { var f, obj = { - fullClient: jspb.Message.getFieldWithDefault(msg, 1, false), + fullClient: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), accountTarget: jspb.Message.getFieldWithDefault(msg, 2, 0), auctioneerKey: jspb.Message.getFieldWithDefault(msg, 3, ""), heightHint: jspb.Message.getFieldWithDefault(msg, 4, 0), bitcoinHost: jspb.Message.getFieldWithDefault(msg, 5, ""), bitcoinUser: jspb.Message.getFieldWithDefault(msg, 6, ""), bitcoinPassword: jspb.Message.getFieldWithDefault(msg, 7, ""), - bitcoinHttppostmode: jspb.Message.getFieldWithDefault(msg, 8, false), - bitcoinUsetls: jspb.Message.getFieldWithDefault(msg, 9, false), + bitcoinHttppostmode: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + bitcoinUsetls: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), bitcoinTlspath: jspb.Message.getFieldWithDefault(msg, 10, "") }; @@ -8619,18 +10023,19 @@ proto.poolrpc.RecoverAccountsRequest.serializeBinaryToWriter = function(message, /** * optional bool full_client = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.RecoverAccountsRequest.prototype.getFullClient = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setFullClient = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -8643,9 +10048,12 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getAccountTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setAccountTarget = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -8658,9 +10066,12 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getAuctioneerKey = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setAuctioneerKey = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -8673,9 +10084,12 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getHeightHint = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setHeightHint = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -8688,9 +10102,12 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinHost = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinHost = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -8703,9 +10120,12 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinUser = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinUser = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -8718,43 +10138,48 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinPassword = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinPassword = function(value) { - jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional bool bitcoin_httppostmode = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinHttppostmode = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinHttppostmode = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); + return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional bool bitcoin_usetls = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinUsetls = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinUsetls = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -8767,41 +10192,29 @@ proto.poolrpc.RecoverAccountsRequest.prototype.getBitcoinTlspath = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RecoverAccountsRequest} returns this + */ proto.poolrpc.RecoverAccountsRequest.prototype.setBitcoinTlspath = function(value) { - jspb.Message.setProto3StringField(this, 10, value); + return jspb.Message.setProto3StringField(this, 10, value); }; -/** - * 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.poolrpc.RecoverAccountsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.RecoverAccountsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RecoverAccountsResponse.displayName = 'proto.poolrpc.RecoverAccountsResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RecoverAccountsResponse.prototype.toObject = function(opt_includeInstance) { @@ -8811,8 +10224,8 @@ proto.poolrpc.RecoverAccountsResponse.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RecoverAccountsResponse} msg The msg instance to transform. * @return {!Object} @@ -8909,41 +10322,29 @@ proto.poolrpc.RecoverAccountsResponse.prototype.getNumRecoveredAccounts = functi }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.RecoverAccountsResponse} returns this + */ proto.poolrpc.RecoverAccountsResponse.prototype.setNumRecoveredAccounts = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; -/** - * 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.poolrpc.AccountModificationFeesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountModificationFeesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountModificationFeesRequest.displayName = 'proto.poolrpc.AccountModificationFeesRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountModificationFeesRequest.prototype.toObject = function(opt_includeInstance) { @@ -8953,8 +10354,8 @@ proto.poolrpc.AccountModificationFeesRequest.prototype.toObject = function(opt_i /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountModificationFeesRequest} msg The msg instance to transform. * @return {!Object} @@ -9032,23 +10433,6 @@ proto.poolrpc.AccountModificationFeesRequest.serializeBinaryToWriter = function( -/** - * 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.poolrpc.AccountModificationFee = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.poolrpc.AccountModificationFee.oneofGroups_); -}; -goog.inherits(proto.poolrpc.AccountModificationFee, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountModificationFee.displayName = 'proto.poolrpc.AccountModificationFee'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -9079,13 +10463,15 @@ proto.poolrpc.AccountModificationFee.prototype.getFeeCase = function() { if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountModificationFee.prototype.toObject = function(opt_includeInstance) { @@ -9095,8 +10481,8 @@ proto.poolrpc.AccountModificationFee.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountModificationFee} msg The msg instance to transform. * @return {!Object} @@ -9109,7 +10495,7 @@ proto.poolrpc.AccountModificationFee.toObject = function(includeInstance, msg) { blockHeight: jspb.Message.getFieldWithDefault(msg, 3, 0), timestamp: jspb.Message.getFieldWithDefault(msg, 4, "0"), outputAmount: jspb.Message.getFieldWithDefault(msg, 5, "0"), - feeNull: jspb.Message.getFieldWithDefault(msg, 6, false), + feeNull: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), feeValue: jspb.Message.getFieldWithDefault(msg, 7, "0") }; @@ -9265,9 +10651,12 @@ proto.poolrpc.AccountModificationFee.prototype.getAction = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setAction = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9280,9 +10669,12 @@ proto.poolrpc.AccountModificationFee.prototype.getTxid = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setTxid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9295,9 +10687,12 @@ proto.poolrpc.AccountModificationFee.prototype.getBlockHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setBlockHeight = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -9310,9 +10705,12 @@ proto.poolrpc.AccountModificationFee.prototype.getTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -9325,37 +10723,45 @@ proto.poolrpc.AccountModificationFee.prototype.getOutputAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setOutputAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; /** * optional bool fee_null = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.AccountModificationFee.prototype.getFeeNull = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setFeeNull = function(value) { - jspb.Message.setOneofField(this, 6, proto.poolrpc.AccountModificationFee.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 6, proto.poolrpc.AccountModificationFee.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.clearFeeNull = function() { - jspb.Message.setOneofField(this, 6, proto.poolrpc.AccountModificationFee.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 6, proto.poolrpc.AccountModificationFee.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.AccountModificationFee.prototype.hasFeeNull = function() { return jspb.Message.getField(this, 6) != null; @@ -9371,20 +10777,27 @@ proto.poolrpc.AccountModificationFee.prototype.getFeeValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.setFeeValue = function(value) { - jspb.Message.setOneofField(this, 7, proto.poolrpc.AccountModificationFee.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 7, proto.poolrpc.AccountModificationFee.oneofGroups_[0], value); }; +/** + * Clears the field making it undefined. + * @return {!proto.poolrpc.AccountModificationFee} returns this + */ proto.poolrpc.AccountModificationFee.prototype.clearFeeValue = function() { - jspb.Message.setOneofField(this, 7, proto.poolrpc.AccountModificationFee.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 7, proto.poolrpc.AccountModificationFee.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.AccountModificationFee.prototype.hasFeeValue = function() { return jspb.Message.getField(this, 7) != null; @@ -9392,23 +10805,6 @@ proto.poolrpc.AccountModificationFee.prototype.hasFeeValue = function() { -/** - * 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.poolrpc.ListOfAccountModificationFees = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListOfAccountModificationFees.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ListOfAccountModificationFees, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListOfAccountModificationFees.displayName = 'proto.poolrpc.ListOfAccountModificationFees'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -9420,13 +10816,15 @@ proto.poolrpc.ListOfAccountModificationFees.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListOfAccountModificationFees.prototype.toObject = function(opt_includeInstance) { @@ -9436,8 +10834,8 @@ proto.poolrpc.ListOfAccountModificationFees.prototype.toObject = function(opt_in /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListOfAccountModificationFees} msg The msg instance to transform. * @return {!Object} @@ -9538,9 +10936,12 @@ proto.poolrpc.ListOfAccountModificationFees.prototype.getModificationFeesList = }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ListOfAccountModificationFees} returns this +*/ proto.poolrpc.ListOfAccountModificationFees.prototype.setModificationFeesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -9554,40 +10955,29 @@ proto.poolrpc.ListOfAccountModificationFees.prototype.addModificationFees = func }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ListOfAccountModificationFees} returns this + */ proto.poolrpc.ListOfAccountModificationFees.prototype.clearModificationFeesList = function() { - this.setModificationFeesList([]); + return this.setModificationFeesList([]); }; -/** - * 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.poolrpc.AccountModificationFeesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AccountModificationFeesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AccountModificationFeesResponse.displayName = 'proto.poolrpc.AccountModificationFeesResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AccountModificationFeesResponse.prototype.toObject = function(opt_includeInstance) { @@ -9597,8 +10987,8 @@ proto.poolrpc.AccountModificationFeesResponse.prototype.toObject = function(opt_ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AccountModificationFeesResponse} msg The msg instance to transform. * @return {!Object} @@ -9646,7 +11036,7 @@ proto.poolrpc.AccountModificationFeesResponse.deserializeBinaryFromReader = func case 1: var value = msg.getAccountsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.ListOfAccountModificationFees.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.poolrpc.ListOfAccountModificationFees.deserializeBinaryFromReader, "", new proto.poolrpc.ListOfAccountModificationFees()); }); break; default: @@ -9698,40 +11088,29 @@ proto.poolrpc.AccountModificationFeesResponse.prototype.getAccountsMap = functio }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.AccountModificationFeesResponse} returns this + */ proto.poolrpc.AccountModificationFeesResponse.prototype.clearAccountsMap = function() { this.getAccountsMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.AuctionFeeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AuctionFeeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AuctionFeeRequest.displayName = 'proto.poolrpc.AuctionFeeRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AuctionFeeRequest.prototype.toObject = function(opt_includeInstance) { @@ -9741,8 +11120,8 @@ proto.poolrpc.AuctionFeeRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AuctionFeeRequest} msg The msg instance to transform. * @return {!Object} @@ -9820,34 +11199,19 @@ proto.poolrpc.AuctionFeeRequest.serializeBinaryToWriter = function(message, writ -/** - * 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.poolrpc.AuctionFeeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.AuctionFeeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.AuctionFeeResponse.displayName = 'proto.poolrpc.AuctionFeeResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.AuctionFeeResponse.prototype.toObject = function(opt_includeInstance) { @@ -9857,8 +11221,8 @@ proto.poolrpc.AuctionFeeResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.AuctionFeeResponse} msg The msg instance to transform. * @return {!Object} @@ -9958,20 +11322,27 @@ proto.poolrpc.AuctionFeeResponse.prototype.getExecutionFee = function() { }; -/** @param {?proto.poolrpc.ExecutionFee|undefined} value */ +/** + * @param {?proto.poolrpc.ExecutionFee|undefined} value + * @return {!proto.poolrpc.AuctionFeeResponse} returns this +*/ proto.poolrpc.AuctionFeeResponse.prototype.setExecutionFee = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.AuctionFeeResponse} returns this + */ proto.poolrpc.AuctionFeeResponse.prototype.clearExecutionFee = function() { - this.setExecutionFee(undefined); + return this.setExecutionFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.AuctionFeeResponse.prototype.hasExecutionFee = function() { return jspb.Message.getField(this, 1) != null; @@ -9979,34 +11350,19 @@ proto.poolrpc.AuctionFeeResponse.prototype.hasExecutionFee = function() { -/** - * 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.poolrpc.Lease = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.Lease, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.Lease.displayName = 'proto.poolrpc.Lease'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.Lease.prototype.toObject = function(opt_includeInstance) { @@ -10016,8 +11372,8 @@ proto.poolrpc.Lease.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.Lease} msg The msg instance to transform. * @return {!Object} @@ -10036,11 +11392,11 @@ proto.poolrpc.Lease.toObject = function(includeInstance, msg) { orderFixedRate: jspb.Message.getFieldWithDefault(msg, 9, "0"), orderNonce: msg.getOrderNonce_asB64(), matchedOrderNonce: msg.getMatchedOrderNonce_asB64(), - purchased: jspb.Message.getFieldWithDefault(msg, 11, false), + purchased: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), channelRemoteNodeKey: msg.getChannelRemoteNodeKey_asB64(), channelNodeTier: jspb.Message.getFieldWithDefault(msg, 13, 0), selfChanBalance: jspb.Message.getFieldWithDefault(msg, 14, "0"), - sidecarChannel: jspb.Message.getFieldWithDefault(msg, 15, false) + sidecarChannel: jspb.Message.getBooleanFieldWithDefault(msg, 15, false) }; if (includeInstance) { @@ -10297,20 +11653,27 @@ proto.poolrpc.Lease.prototype.getChannelPoint = function() { }; -/** @param {?proto.poolrpc.OutPoint|undefined} value */ +/** + * @param {?proto.poolrpc.OutPoint|undefined} value + * @return {!proto.poolrpc.Lease} returns this +*/ proto.poolrpc.Lease.prototype.setChannelPoint = function(value) { - jspb.Message.setWrapperField(this, 1, value); + return jspb.Message.setWrapperField(this, 1, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.clearChannelPoint = function() { - this.setChannelPoint(undefined); + return this.setChannelPoint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.Lease.prototype.hasChannelPoint = function() { return jspb.Message.getField(this, 1) != null; @@ -10326,9 +11689,12 @@ proto.poolrpc.Lease.prototype.getChannelAmtSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChannelAmtSat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -10341,9 +11707,12 @@ proto.poolrpc.Lease.prototype.getChannelDurationBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChannelDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -10356,9 +11725,12 @@ proto.poolrpc.Lease.prototype.getChannelLeaseExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChannelLeaseExpiry = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -10371,9 +11743,12 @@ proto.poolrpc.Lease.prototype.getPremiumSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setPremiumSat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -10386,9 +11761,12 @@ proto.poolrpc.Lease.prototype.getExecutionFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setExecutionFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -10401,9 +11779,12 @@ proto.poolrpc.Lease.prototype.getChainFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChainFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -10416,9 +11797,12 @@ proto.poolrpc.Lease.prototype.getClearingRatePrice = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setClearingRatePrice = function(value) { - jspb.Message.setProto3StringIntField(this, 8, value); + return jspb.Message.setProto3StringIntField(this, 8, value); }; @@ -10431,9 +11815,12 @@ proto.poolrpc.Lease.prototype.getOrderFixedRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setOrderFixedRate = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -10470,9 +11857,12 @@ proto.poolrpc.Lease.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 10, value); + return jspb.Message.setProto3BytesField(this, 10, value); }; @@ -10509,26 +11899,30 @@ proto.poolrpc.Lease.prototype.getMatchedOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setMatchedOrderNonce = function(value) { - jspb.Message.setProto3BytesField(this, 16, value); + return jspb.Message.setProto3BytesField(this, 16, value); }; /** * optional bool purchased = 11; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.Lease.prototype.getPurchased = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setPurchased = function(value) { - jspb.Message.setProto3BooleanField(this, 11, value); + return jspb.Message.setProto3BooleanField(this, 11, value); }; @@ -10565,9 +11959,12 @@ proto.poolrpc.Lease.prototype.getChannelRemoteNodeKey_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChannelRemoteNodeKey = function(value) { - jspb.Message.setProto3BytesField(this, 12, value); + return jspb.Message.setProto3BytesField(this, 12, value); }; @@ -10580,9 +11977,12 @@ proto.poolrpc.Lease.prototype.getChannelNodeTier = function() { }; -/** @param {!proto.poolrpc.NodeTier} value */ +/** + * @param {!proto.poolrpc.NodeTier} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setChannelNodeTier = function(value) { - jspb.Message.setProto3EnumField(this, 13, value); + return jspb.Message.setProto3EnumField(this, 13, value); }; @@ -10595,47 +11995,34 @@ proto.poolrpc.Lease.prototype.getSelfChanBalance = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setSelfChanBalance = function(value) { - jspb.Message.setProto3StringIntField(this, 14, value); + return jspb.Message.setProto3StringIntField(this, 14, value); }; /** * optional bool sidecar_channel = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.Lease.prototype.getSidecarChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.Lease} returns this + */ proto.poolrpc.Lease.prototype.setSidecarChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); + return jspb.Message.setProto3BooleanField(this, 15, value); }; -/** - * 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.poolrpc.LeasesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.LeasesRequest.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.LeasesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LeasesRequest.displayName = 'proto.poolrpc.LeasesRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10647,13 +12034,15 @@ proto.poolrpc.LeasesRequest.repeatedFields_ = [1,2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.LeasesRequest.prototype.toObject = function(opt_includeInstance) { @@ -10663,8 +12052,8 @@ proto.poolrpc.LeasesRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.LeasesRequest} msg The msg instance to transform. * @return {!Object} @@ -10797,23 +12186,31 @@ proto.poolrpc.LeasesRequest.prototype.getBatchIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.LeasesRequest} returns this + */ proto.poolrpc.LeasesRequest.prototype.setBatchIdsList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.LeasesRequest} returns this */ proto.poolrpc.LeasesRequest.prototype.addBatchIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.LeasesRequest} returns this + */ proto.poolrpc.LeasesRequest.prototype.clearBatchIdsList = function() { - this.setBatchIdsList([]); + return this.setBatchIdsList([]); }; @@ -10850,44 +12247,35 @@ proto.poolrpc.LeasesRequest.prototype.getAccountsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.LeasesRequest} returns this + */ proto.poolrpc.LeasesRequest.prototype.setAccountsList = function(value) { - jspb.Message.setField(this, 2, value || []); + return jspb.Message.setField(this, 2, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.LeasesRequest} returns this */ proto.poolrpc.LeasesRequest.prototype.addAccounts = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.LeasesRequest} returns this + */ proto.poolrpc.LeasesRequest.prototype.clearAccountsList = function() { - this.setAccountsList([]); + return this.setAccountsList([]); }; -/** - * 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.poolrpc.LeasesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.LeasesResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.LeasesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LeasesResponse.displayName = 'proto.poolrpc.LeasesResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10899,13 +12287,15 @@ proto.poolrpc.LeasesResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.LeasesResponse.prototype.toObject = function(opt_includeInstance) { @@ -10915,8 +12305,8 @@ proto.poolrpc.LeasesResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.LeasesResponse} msg The msg instance to transform. * @return {!Object} @@ -11041,9 +12431,12 @@ proto.poolrpc.LeasesResponse.prototype.getLeasesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.LeasesResponse} returns this +*/ proto.poolrpc.LeasesResponse.prototype.setLeasesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -11057,8 +12450,12 @@ proto.poolrpc.LeasesResponse.prototype.addLeases = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.LeasesResponse} returns this + */ proto.poolrpc.LeasesResponse.prototype.clearLeasesList = function() { - this.setLeasesList([]); + return this.setLeasesList([]); }; @@ -11071,9 +12468,12 @@ proto.poolrpc.LeasesResponse.prototype.getTotalAmtEarnedSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LeasesResponse} returns this + */ proto.poolrpc.LeasesResponse.prototype.setTotalAmtEarnedSat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -11086,41 +12486,29 @@ proto.poolrpc.LeasesResponse.prototype.getTotalAmtPaidSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LeasesResponse} returns this + */ proto.poolrpc.LeasesResponse.prototype.setTotalAmtPaidSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; -/** - * 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.poolrpc.TokensRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.TokensRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.TokensRequest.displayName = 'proto.poolrpc.TokensRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.TokensRequest.prototype.toObject = function(opt_includeInstance) { @@ -11130,8 +12518,8 @@ proto.poolrpc.TokensRequest.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.TokensRequest} msg The msg instance to transform. * @return {!Object} @@ -11209,23 +12597,6 @@ proto.poolrpc.TokensRequest.serializeBinaryToWriter = function(message, writer) -/** - * 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.poolrpc.TokensResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.TokensResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.TokensResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.TokensResponse.displayName = 'proto.poolrpc.TokensResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11237,13 +12608,15 @@ proto.poolrpc.TokensResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.TokensResponse.prototype.toObject = function(opt_includeInstance) { @@ -11253,8 +12626,8 @@ proto.poolrpc.TokensResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.TokensResponse} msg The msg instance to transform. * @return {!Object} @@ -11355,9 +12728,12 @@ proto.poolrpc.TokensResponse.prototype.getTokensList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.TokensResponse} returns this +*/ proto.poolrpc.TokensResponse.prototype.setTokensList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -11371,40 +12747,29 @@ proto.poolrpc.TokensResponse.prototype.addTokens = function(opt_value, opt_index }; -proto.poolrpc.TokensResponse.prototype.clearTokensList = function() { - this.setTokensList([]); -}; - - - /** - * 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.poolrpc.LsatToken = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.LsatToken, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LsatToken.displayName = 'proto.poolrpc.LsatToken'; -} + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.TokensResponse} returns this + */ +proto.poolrpc.TokensResponse.prototype.clearTokensList = function() { + return this.setTokensList([]); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.LsatToken.prototype.toObject = function(opt_includeInstance) { @@ -11414,8 +12779,8 @@ proto.poolrpc.LsatToken.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.LsatToken} msg The msg instance to transform. * @return {!Object} @@ -11429,7 +12794,7 @@ proto.poolrpc.LsatToken.toObject = function(includeInstance, msg) { amountPaidMsat: jspb.Message.getFieldWithDefault(msg, 4, "0"), routingFeePaidMsat: jspb.Message.getFieldWithDefault(msg, 5, "0"), timeCreated: jspb.Message.getFieldWithDefault(msg, 6, "0"), - expired: jspb.Message.getFieldWithDefault(msg, 7, false), + expired: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), storageName: jspb.Message.getFieldWithDefault(msg, 8, "") }; @@ -11620,9 +12985,12 @@ proto.poolrpc.LsatToken.prototype.getBaseMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setBaseMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -11659,9 +13027,12 @@ proto.poolrpc.LsatToken.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -11698,9 +13069,12 @@ proto.poolrpc.LsatToken.prototype.getPaymentPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setPaymentPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -11713,9 +13087,12 @@ proto.poolrpc.LsatToken.prototype.getAmountPaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setAmountPaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -11728,9 +13105,12 @@ proto.poolrpc.LsatToken.prototype.getRoutingFeePaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setRoutingFeePaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -11743,26 +13123,30 @@ proto.poolrpc.LsatToken.prototype.getTimeCreated = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setTimeCreated = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** * optional bool expired = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.LsatToken.prototype.getExpired = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setExpired = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -11775,41 +13159,29 @@ proto.poolrpc.LsatToken.prototype.getStorageName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.LsatToken} returns this + */ proto.poolrpc.LsatToken.prototype.setStorageName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; -/** - * 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.poolrpc.LeaseDurationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.LeaseDurationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LeaseDurationRequest.displayName = 'proto.poolrpc.LeaseDurationRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.LeaseDurationRequest.prototype.toObject = function(opt_includeInstance) { @@ -11819,8 +13191,8 @@ proto.poolrpc.LeaseDurationRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.LeaseDurationRequest} msg The msg instance to transform. * @return {!Object} @@ -11898,34 +13270,19 @@ proto.poolrpc.LeaseDurationRequest.serializeBinaryToWriter = function(message, w -/** - * 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.poolrpc.LeaseDurationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.LeaseDurationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LeaseDurationResponse.displayName = 'proto.poolrpc.LeaseDurationResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.LeaseDurationResponse.prototype.toObject = function(opt_includeInstance) { @@ -11935,8 +13292,8 @@ proto.poolrpc.LeaseDurationResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.LeaseDurationResponse} msg The msg instance to transform. * @return {!Object} @@ -11985,13 +13342,13 @@ proto.poolrpc.LeaseDurationResponse.deserializeBinaryFromReader = function(msg, case 1: var value = msg.getLeaseDurationsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readBool, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readBool, null, 0, false); }); break; case 2: var value = msg.getLeaseDurationBucketsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readEnum, null, 0); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readEnum, null, 0, 0); }); break; default: @@ -12047,9 +13404,13 @@ proto.poolrpc.LeaseDurationResponse.prototype.getLeaseDurationsMap = function(op }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.LeaseDurationResponse} returns this + */ proto.poolrpc.LeaseDurationResponse.prototype.clearLeaseDurationsMap = function() { this.getLeaseDurationsMap().clear(); -}; + return this;}; /** @@ -12065,40 +13426,29 @@ proto.poolrpc.LeaseDurationResponse.prototype.getLeaseDurationBucketsMap = funct }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.poolrpc.LeaseDurationResponse} returns this + */ proto.poolrpc.LeaseDurationResponse.prototype.clearLeaseDurationBucketsMap = function() { this.getLeaseDurationBucketsMap().clear(); -}; + return this;}; -/** - * 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.poolrpc.NextBatchInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.NextBatchInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NextBatchInfoRequest.displayName = 'proto.poolrpc.NextBatchInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NextBatchInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -12108,8 +13458,8 @@ proto.poolrpc.NextBatchInfoRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NextBatchInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -12187,34 +13537,19 @@ proto.poolrpc.NextBatchInfoRequest.serializeBinaryToWriter = function(message, w -/** - * 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.poolrpc.NextBatchInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.NextBatchInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NextBatchInfoResponse.displayName = 'proto.poolrpc.NextBatchInfoResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NextBatchInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -12224,8 +13559,8 @@ proto.poolrpc.NextBatchInfoResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NextBatchInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -12358,9 +13693,12 @@ proto.poolrpc.NextBatchInfoResponse.prototype.getConfTarget = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.NextBatchInfoResponse} returns this + */ proto.poolrpc.NextBatchInfoResponse.prototype.setConfTarget = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -12373,9 +13711,12 @@ proto.poolrpc.NextBatchInfoResponse.prototype.getFeeRateSatPerKw = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.NextBatchInfoResponse} returns this + */ proto.poolrpc.NextBatchInfoResponse.prototype.setFeeRateSatPerKw = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -12388,9 +13729,12 @@ proto.poolrpc.NextBatchInfoResponse.prototype.getClearTimestamp = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.NextBatchInfoResponse} returns this + */ proto.poolrpc.NextBatchInfoResponse.prototype.setClearTimestamp = function(value) { - jspb.Message.setProto3StringIntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -12403,30 +13747,16 @@ proto.poolrpc.NextBatchInfoResponse.prototype.getAutoRenewExtensionBlocks = func }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.NextBatchInfoResponse} returns this + */ proto.poolrpc.NextBatchInfoResponse.prototype.setAutoRenewExtensionBlocks = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; -/** - * 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.poolrpc.NodeRatingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.NodeRatingRequest.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.NodeRatingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NodeRatingRequest.displayName = 'proto.poolrpc.NodeRatingRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -12438,13 +13768,15 @@ proto.poolrpc.NodeRatingRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NodeRatingRequest.prototype.toObject = function(opt_includeInstance) { @@ -12454,8 +13786,8 @@ proto.poolrpc.NodeRatingRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NodeRatingRequest} msg The msg instance to transform. * @return {!Object} @@ -12576,44 +13908,35 @@ proto.poolrpc.NodeRatingRequest.prototype.getNodePubkeysList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.poolrpc.NodeRatingRequest} returns this + */ proto.poolrpc.NodeRatingRequest.prototype.setNodePubkeysList = function(value) { - jspb.Message.setField(this, 1, value || []); + return jspb.Message.setField(this, 1, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.poolrpc.NodeRatingRequest} returns this */ proto.poolrpc.NodeRatingRequest.prototype.addNodePubkeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.NodeRatingRequest} returns this + */ proto.poolrpc.NodeRatingRequest.prototype.clearNodePubkeysList = function() { - this.setNodePubkeysList([]); + return this.setNodePubkeysList([]); }; -/** - * 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.poolrpc.NodeRatingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.NodeRatingResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.NodeRatingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.NodeRatingResponse.displayName = 'proto.poolrpc.NodeRatingResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -12625,13 +13948,15 @@ proto.poolrpc.NodeRatingResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.NodeRatingResponse.prototype.toObject = function(opt_includeInstance) { @@ -12641,8 +13966,8 @@ proto.poolrpc.NodeRatingResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.NodeRatingResponse} msg The msg instance to transform. * @return {!Object} @@ -12743,9 +14068,12 @@ proto.poolrpc.NodeRatingResponse.prototype.getNodeRatingsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.NodeRatingResponse} returns this +*/ proto.poolrpc.NodeRatingResponse.prototype.setNodeRatingsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -12759,40 +14087,29 @@ proto.poolrpc.NodeRatingResponse.prototype.addNodeRatings = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.NodeRatingResponse} returns this + */ proto.poolrpc.NodeRatingResponse.prototype.clearNodeRatingsList = function() { - this.setNodeRatingsList([]); + return this.setNodeRatingsList([]); }; -/** - * 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.poolrpc.GetInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.GetInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.GetInfoRequest.displayName = 'proto.poolrpc.GetInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -12802,8 +14119,8 @@ proto.poolrpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.GetInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -12881,34 +14198,19 @@ proto.poolrpc.GetInfoRequest.serializeBinaryToWriter = function(message, writer) -/** - * 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.poolrpc.GetInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.GetInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.GetInfoResponse.displayName = 'proto.poolrpc.GetInfoResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -12918,8 +14220,8 @@ proto.poolrpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.GetInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -12939,8 +14241,8 @@ proto.poolrpc.GetInfoResponse.toObject = function(includeInstance, msg) { batchesInvolved: jspb.Message.getFieldWithDefault(msg, 10, 0), nodeRating: (f = msg.getNodeRating()) && auctioneerrpc_auctioneer_pb.NodeRating.toObject(includeInstance, f), lsatTokens: jspb.Message.getFieldWithDefault(msg, 12, 0), - subscribedToAuctioneer: jspb.Message.getFieldWithDefault(msg, 13, false), - newNodesOnly: jspb.Message.getFieldWithDefault(msg, 14, false) + subscribedToAuctioneer: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + newNodesOnly: jspb.Message.getBooleanFieldWithDefault(msg, 14, false) }; if (includeInstance) { @@ -13174,9 +14476,12 @@ proto.poolrpc.GetInfoResponse.prototype.getVersion = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -13189,9 +14494,12 @@ proto.poolrpc.GetInfoResponse.prototype.getAccountsTotal = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setAccountsTotal = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -13204,9 +14512,12 @@ proto.poolrpc.GetInfoResponse.prototype.getAccountsActive = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setAccountsActive = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -13219,9 +14530,12 @@ proto.poolrpc.GetInfoResponse.prototype.getAccountsActiveExpired = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setAccountsActiveExpired = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -13234,9 +14548,12 @@ proto.poolrpc.GetInfoResponse.prototype.getAccountsArchived = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setAccountsArchived = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -13249,9 +14566,12 @@ proto.poolrpc.GetInfoResponse.prototype.getOrdersTotal = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setOrdersTotal = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -13264,9 +14584,12 @@ proto.poolrpc.GetInfoResponse.prototype.getOrdersActive = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setOrdersActive = function(value) { - jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3IntField(this, 7, value); }; @@ -13279,9 +14602,12 @@ proto.poolrpc.GetInfoResponse.prototype.getOrdersArchived = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setOrdersArchived = function(value) { - jspb.Message.setProto3IntField(this, 8, value); + return jspb.Message.setProto3IntField(this, 8, value); }; @@ -13294,9 +14620,12 @@ proto.poolrpc.GetInfoResponse.prototype.getCurrentBlockHeight = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setCurrentBlockHeight = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -13309,9 +14638,12 @@ proto.poolrpc.GetInfoResponse.prototype.getBatchesInvolved = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setBatchesInvolved = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 10, value); }; @@ -13325,20 +14657,27 @@ proto.poolrpc.GetInfoResponse.prototype.getNodeRating = function() { }; -/** @param {?proto.poolrpc.NodeRating|undefined} value */ +/** + * @param {?proto.poolrpc.NodeRating|undefined} value + * @return {!proto.poolrpc.GetInfoResponse} returns this +*/ proto.poolrpc.GetInfoResponse.prototype.setNodeRating = function(value) { - jspb.Message.setWrapperField(this, 11, value); + return jspb.Message.setWrapperField(this, 11, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.clearNodeRating = function() { - this.setNodeRating(undefined); + return this.setNodeRating(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.GetInfoResponse.prototype.hasNodeRating = function() { return jspb.Message.getField(this, 11) != null; @@ -13354,75 +14693,65 @@ proto.poolrpc.GetInfoResponse.prototype.getLsatTokens = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setLsatTokens = function(value) { - jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 12, value); }; /** * optional bool subscribed_to_auctioneer = 13; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.GetInfoResponse.prototype.getSubscribedToAuctioneer = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 13, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setSubscribedToAuctioneer = function(value) { - jspb.Message.setProto3BooleanField(this, 13, value); + return jspb.Message.setProto3BooleanField(this, 13, value); }; /** * optional bool new_nodes_only = 14; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.GetInfoResponse.prototype.getNewNodesOnly = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 14, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.GetInfoResponse} returns this + */ proto.poolrpc.GetInfoResponse.prototype.setNewNodesOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 14, value); + return jspb.Message.setProto3BooleanField(this, 14, value); }; -/** - * 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.poolrpc.StopDaemonRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.StopDaemonRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.StopDaemonRequest.displayName = 'proto.poolrpc.StopDaemonRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.StopDaemonRequest.prototype.toObject = function(opt_includeInstance) { @@ -13432,8 +14761,8 @@ proto.poolrpc.StopDaemonRequest.prototype.toObject = function(opt_includeInstanc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.StopDaemonRequest} msg The msg instance to transform. * @return {!Object} @@ -13506,39 +14835,24 @@ proto.poolrpc.StopDaemonRequest.prototype.serializeBinary = function() { * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.poolrpc.StopDaemonRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * 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.poolrpc.StopDaemonResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + var f = undefined; }; -goog.inherits(proto.poolrpc.StopDaemonResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.StopDaemonResponse.displayName = 'proto.poolrpc.StopDaemonResponse'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.StopDaemonResponse.prototype.toObject = function(opt_includeInstance) { @@ -13548,8 +14862,8 @@ proto.poolrpc.StopDaemonResponse.prototype.toObject = function(opt_includeInstan /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.StopDaemonResponse} msg The msg instance to transform. * @return {!Object} @@ -13627,34 +14941,19 @@ proto.poolrpc.StopDaemonResponse.serializeBinaryToWriter = function(message, wri -/** - * 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.poolrpc.OfferSidecarRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.OfferSidecarRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.OfferSidecarRequest.displayName = 'proto.poolrpc.OfferSidecarRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.OfferSidecarRequest.prototype.toObject = function(opt_includeInstance) { @@ -13664,8 +14963,8 @@ proto.poolrpc.OfferSidecarRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.OfferSidecarRequest} msg The msg instance to transform. * @return {!Object} @@ -13673,7 +14972,7 @@ proto.poolrpc.OfferSidecarRequest.prototype.toObject = function(opt_includeInsta */ proto.poolrpc.OfferSidecarRequest.toObject = function(includeInstance, msg) { var f, obj = { - autoNegotiate: jspb.Message.getFieldWithDefault(msg, 1, false), + autoNegotiate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), bid: (f = msg.getBid()) && proto.poolrpc.Bid.toObject(includeInstance, f) }; @@ -13769,18 +15068,19 @@ proto.poolrpc.OfferSidecarRequest.serializeBinaryToWriter = function(message, wr /** * optional bool auto_negotiate = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.OfferSidecarRequest.prototype.getAutoNegotiate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.OfferSidecarRequest} returns this + */ proto.poolrpc.OfferSidecarRequest.prototype.setAutoNegotiate = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; @@ -13794,20 +15094,27 @@ proto.poolrpc.OfferSidecarRequest.prototype.getBid = function() { }; -/** @param {?proto.poolrpc.Bid|undefined} value */ +/** + * @param {?proto.poolrpc.Bid|undefined} value + * @return {!proto.poolrpc.OfferSidecarRequest} returns this +*/ proto.poolrpc.OfferSidecarRequest.prototype.setBid = function(value) { - jspb.Message.setWrapperField(this, 2, value); + return jspb.Message.setWrapperField(this, 2, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.poolrpc.OfferSidecarRequest} returns this + */ proto.poolrpc.OfferSidecarRequest.prototype.clearBid = function() { - this.setBid(undefined); + return this.setBid(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.poolrpc.OfferSidecarRequest.prototype.hasBid = function() { return jspb.Message.getField(this, 2) != null; @@ -13815,34 +15122,19 @@ proto.poolrpc.OfferSidecarRequest.prototype.hasBid = function() { -/** - * 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.poolrpc.SidecarTicket = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.SidecarTicket, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.SidecarTicket.displayName = 'proto.poolrpc.SidecarTicket'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.SidecarTicket.prototype.toObject = function(opt_includeInstance) { @@ -13852,8 +15144,8 @@ proto.poolrpc.SidecarTicket.prototype.toObject = function(opt_includeInstance) { /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.SidecarTicket} msg The msg instance to transform. * @return {!Object} @@ -13950,41 +15242,29 @@ proto.poolrpc.SidecarTicket.prototype.getTicket = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.SidecarTicket} returns this + */ proto.poolrpc.SidecarTicket.prototype.setTicket = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.poolrpc.DecodedSidecarTicket = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.DecodedSidecarTicket, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.DecodedSidecarTicket.displayName = 'proto.poolrpc.DecodedSidecarTicket'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.DecodedSidecarTicket.prototype.toObject = function(opt_includeInstance) { @@ -13994,8 +15274,8 @@ proto.poolrpc.DecodedSidecarTicket.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.DecodedSidecarTicket} msg The msg instance to transform. * @return {!Object} @@ -14011,7 +15291,7 @@ proto.poolrpc.DecodedSidecarTicket.toObject = function(includeInstance, msg) { offerLeaseDurationBlocks: jspb.Message.getFieldWithDefault(msg, 6, 0), offerSignPubkey: msg.getOfferSignPubkey_asB64(), offerSignature: msg.getOfferSignature_asB64(), - offerAuto: jspb.Message.getFieldWithDefault(msg, 9, false), + offerAuto: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), recipientNodePubkey: msg.getRecipientNodePubkey_asB64(), recipientMultisigPubkey: msg.getRecipientMultisigPubkey_asB64(), recipientMultisigPubkeyIndex: jspb.Message.getFieldWithDefault(msg, 12, 0), @@ -14019,8 +15299,8 @@ proto.poolrpc.DecodedSidecarTicket.toObject = function(includeInstance, msg) { orderSignature: msg.getOrderSignature_asB64(), executionPendingChannelId: msg.getExecutionPendingChannelId_asB64(), encodedTicket: jspb.Message.getFieldWithDefault(msg, 16, ""), - offerUnannouncedChannel: jspb.Message.getFieldWithDefault(msg, 17, false), - offerZeroConfChannel: jspb.Message.getFieldWithDefault(msg, 18, false) + offerUnannouncedChannel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + offerZeroConfChannel: jspb.Message.getBooleanFieldWithDefault(msg, 18, false) }; if (includeInstance) { @@ -14320,9 +15600,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -14335,9 +15618,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -14350,9 +15636,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getState = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setState = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -14365,9 +15654,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferCapacity = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferCapacity = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -14380,9 +15672,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferPushAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferPushAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -14395,9 +15690,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferLeaseDurationBlocks = funct }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferLeaseDurationBlocks = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -14434,9 +15732,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferSignPubkey_asU8 = function( }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferSignPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 7, value); + return jspb.Message.setProto3BytesField(this, 7, value); }; @@ -14473,26 +15774,30 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferSignature_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferSignature = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; /** * optional bool offer_auto = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferAuto = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferAuto = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); + return jspb.Message.setProto3BooleanField(this, 9, value); }; @@ -14529,9 +15834,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getRecipientNodePubkey_asU8 = funct }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setRecipientNodePubkey = function(value) { - jspb.Message.setProto3BytesField(this, 10, value); + return jspb.Message.setProto3BytesField(this, 10, value); }; @@ -14568,9 +15876,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getRecipientMultisigPubkey_asU8 = f }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setRecipientMultisigPubkey = function(value) { - jspb.Message.setProto3BytesField(this, 11, value); + return jspb.Message.setProto3BytesField(this, 11, value); }; @@ -14583,9 +15894,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getRecipientMultisigPubkeyIndex = f }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setRecipientMultisigPubkeyIndex = function(value) { - jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 12, value); }; @@ -14622,9 +15936,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOrderBidNonce_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOrderBidNonce = function(value) { - jspb.Message.setProto3BytesField(this, 13, value); + return jspb.Message.setProto3BytesField(this, 13, value); }; @@ -14661,9 +15978,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getOrderSignature_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOrderSignature = function(value) { - jspb.Message.setProto3BytesField(this, 14, value); + return jspb.Message.setProto3BytesField(this, 14, value); }; @@ -14700,9 +16020,12 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getExecutionPendingChannelId_asU8 = }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setExecutionPendingChannelId = function(value) { - jspb.Message.setProto3BytesField(this, 15, value); + return jspb.Message.setProto3BytesField(this, 15, value); }; @@ -14715,75 +16038,65 @@ proto.poolrpc.DecodedSidecarTicket.prototype.getEncodedTicket = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setEncodedTicket = function(value) { - jspb.Message.setProto3StringField(this, 16, value); + return jspb.Message.setProto3StringField(this, 16, value); }; /** * optional bool offer_unannounced_channel = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferUnannouncedChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferUnannouncedChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; /** * optional bool offer_zero_conf_channel = 18; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.DecodedSidecarTicket.prototype.getOfferZeroConfChannel = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 18, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.DecodedSidecarTicket} returns this + */ proto.poolrpc.DecodedSidecarTicket.prototype.setOfferZeroConfChannel = function(value) { - jspb.Message.setProto3BooleanField(this, 18, value); + return jspb.Message.setProto3BooleanField(this, 18, value); }; -/** - * 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.poolrpc.RegisterSidecarRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.RegisterSidecarRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.RegisterSidecarRequest.displayName = 'proto.poolrpc.RegisterSidecarRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.RegisterSidecarRequest.prototype.toObject = function(opt_includeInstance) { @@ -14793,8 +16106,8 @@ proto.poolrpc.RegisterSidecarRequest.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.RegisterSidecarRequest} msg The msg instance to transform. * @return {!Object} @@ -14803,7 +16116,7 @@ proto.poolrpc.RegisterSidecarRequest.prototype.toObject = function(opt_includeIn proto.poolrpc.RegisterSidecarRequest.toObject = function(includeInstance, msg) { var f, obj = { ticket: jspb.Message.getFieldWithDefault(msg, 1, ""), - autoNegotiate: jspb.Message.getFieldWithDefault(msg, 2, false) + autoNegotiate: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -14903,58 +16216,47 @@ proto.poolrpc.RegisterSidecarRequest.prototype.getTicket = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.RegisterSidecarRequest} returns this + */ proto.poolrpc.RegisterSidecarRequest.prototype.setTicket = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bool auto_negotiate = 2; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.poolrpc.RegisterSidecarRequest.prototype.getAutoNegotiate = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.poolrpc.RegisterSidecarRequest} returns this + */ proto.poolrpc.RegisterSidecarRequest.prototype.setAutoNegotiate = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; -/** - * 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.poolrpc.ExpectSidecarChannelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ExpectSidecarChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ExpectSidecarChannelRequest.displayName = 'proto.poolrpc.ExpectSidecarChannelRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ExpectSidecarChannelRequest.prototype.toObject = function(opt_includeInstance) { @@ -14964,8 +16266,8 @@ proto.poolrpc.ExpectSidecarChannelRequest.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ExpectSidecarChannelRequest} msg The msg instance to transform. * @return {!Object} @@ -15062,41 +16364,29 @@ proto.poolrpc.ExpectSidecarChannelRequest.prototype.getTicket = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.poolrpc.ExpectSidecarChannelRequest} returns this + */ proto.poolrpc.ExpectSidecarChannelRequest.prototype.setTicket = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * 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.poolrpc.ExpectSidecarChannelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ExpectSidecarChannelResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ExpectSidecarChannelResponse.displayName = 'proto.poolrpc.ExpectSidecarChannelResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ExpectSidecarChannelResponse.prototype.toObject = function(opt_includeInstance) { @@ -15106,8 +16396,8 @@ proto.poolrpc.ExpectSidecarChannelResponse.prototype.toObject = function(opt_inc /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ExpectSidecarChannelResponse} msg The msg instance to transform. * @return {!Object} @@ -15185,34 +16475,19 @@ proto.poolrpc.ExpectSidecarChannelResponse.serializeBinaryToWriter = function(me -/** - * 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.poolrpc.ListSidecarsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.ListSidecarsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListSidecarsRequest.displayName = 'proto.poolrpc.ListSidecarsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListSidecarsRequest.prototype.toObject = function(opt_includeInstance) { @@ -15222,8 +16497,8 @@ proto.poolrpc.ListSidecarsRequest.prototype.toObject = function(opt_includeInsta /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListSidecarsRequest} msg The msg instance to transform. * @return {!Object} @@ -15344,30 +16619,16 @@ proto.poolrpc.ListSidecarsRequest.prototype.getSidecarId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.ListSidecarsRequest} returns this + */ proto.poolrpc.ListSidecarsRequest.prototype.setSidecarId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.ListSidecarsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.ListSidecarsResponse.repeatedFields_, null); -}; -goog.inherits(proto.poolrpc.ListSidecarsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ListSidecarsResponse.displayName = 'proto.poolrpc.ListSidecarsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -15379,13 +16640,15 @@ proto.poolrpc.ListSidecarsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.ListSidecarsResponse.prototype.toObject = function(opt_includeInstance) { @@ -15395,8 +16658,8 @@ proto.poolrpc.ListSidecarsResponse.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.ListSidecarsResponse} msg The msg instance to transform. * @return {!Object} @@ -15497,9 +16760,12 @@ proto.poolrpc.ListSidecarsResponse.prototype.getTicketsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.poolrpc.ListSidecarsResponse} returns this +*/ proto.poolrpc.ListSidecarsResponse.prototype.setTicketsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -15513,40 +16779,29 @@ proto.poolrpc.ListSidecarsResponse.prototype.addTickets = function(opt_value, op }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.ListSidecarsResponse} returns this + */ proto.poolrpc.ListSidecarsResponse.prototype.clearTicketsList = function() { - this.setTicketsList([]); + return this.setTicketsList([]); }; -/** - * 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.poolrpc.CancelSidecarRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CancelSidecarRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CancelSidecarRequest.displayName = 'proto.poolrpc.CancelSidecarRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CancelSidecarRequest.prototype.toObject = function(opt_includeInstance) { @@ -15556,8 +16811,8 @@ proto.poolrpc.CancelSidecarRequest.prototype.toObject = function(opt_includeInst /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CancelSidecarRequest} msg The msg instance to transform. * @return {!Object} @@ -15678,41 +16933,29 @@ proto.poolrpc.CancelSidecarRequest.prototype.getSidecarId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CancelSidecarRequest} returns this + */ proto.poolrpc.CancelSidecarRequest.prototype.setSidecarId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; -/** - * 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.poolrpc.CancelSidecarResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.poolrpc.CancelSidecarResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.CancelSidecarResponse.displayName = 'proto.poolrpc.CancelSidecarResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * 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: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * 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.poolrpc.CancelSidecarResponse.prototype.toObject = function(opt_includeInstance) { @@ -15722,8 +16965,8 @@ proto.poolrpc.CancelSidecarResponse.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.poolrpc.CancelSidecarResponse} msg The msg instance to transform. * @return {!Object} diff --git a/litrpc/Dockerfile b/litrpc/Dockerfile index b2cf12b2e..f2e01a667 100644 --- a/litrpc/Dockerfile +++ b/litrpc/Dockerfile @@ -19,6 +19,7 @@ RUN cd /tmp \ && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \ && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \ && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \ + && go install golang.org/x/tools/cmd/goimports@v0.1.7 \ && go install github.com/lightninglabs/falafel@${FALAFEL_VERSION} WORKDIR /build diff --git a/litrpc/gen_protos.sh b/litrpc/gen_protos.sh index 06734e674..067d74507 100755 --- a/litrpc/gen_protos.sh +++ b/litrpc/gen_protos.sh @@ -59,4 +59,10 @@ popd pushd autopilotserverrpc format generate no-rest -popd \ No newline at end of file +popd + +if [[ "$COMPILE_MOBILE" == "1" ]]; then + pushd mobile + ./gen_bindings.sh $FALAFEL_VERSION + popd +fi \ No newline at end of file diff --git a/litrpc/gen_protos_docker.sh b/litrpc/gen_protos_docker.sh index 0f755c2fd..f351f3232 100755 --- a/litrpc/gen_protos_docker.sh +++ b/litrpc/gen_protos_docker.sh @@ -19,5 +19,7 @@ docker run \ --rm \ --user $UID:$UID \ -e UID=$UID \ + -e COMPILE_MOBILE \ + -e SUBSERVER_PREFIX \ -v "$DIR/../:/build" \ lit-protobuf-builder diff --git a/make/release_flags.mk b/make/release_flags.mk index 253443f80..dd4388019 100644 --- a/make/release_flags.mk +++ b/make/release_flags.mk @@ -12,7 +12,7 @@ windows-386 \ windows-amd64 \ windows-arm -LND_RELEASE_TAGS = litd autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc neutrinorpc peersrpc +LND_RELEASE_TAGS = litd autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc neutrinorpc peersrpc looprpc poolrpc auctioneerrpc # By default we will build all systems. But with the 'sys' tag, a specific # system can be specified. This is useful to release for a subset of diff --git a/mobile/README.md b/mobile/README.md new file mode 100644 index 000000000..c57eb5290 --- /dev/null +++ b/mobile/README.md @@ -0,0 +1,239 @@ +# Building mobile libraries + +## Prerequisites + +To build for iOS, you need to run macOS with either +[Command Line Tools](https://developer.apple.com/download/all/?q=command%20line%20tools) +or [Xcode](https://apps.apple.com/app/xcode/id497799835) installed. + +To build for Android, you need either +[Android Studio](https://developer.android.com/studio) or +[Command Line Tools](https://developer.android.com/studio#downloads) installed, which in turn must be used to install [Android NDK](https://developer.android.com/ndk/). + + +### Go and Go mobile + +First, follow the instructions to [install Go](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#building-a-development-version-from-source). + +Then, install [Go mobile](https://github.com/golang/go/wiki/Mobile) and +initialize it: + +```shell +⛰ go install golang.org/x/mobile/cmd/gomobile@latest +⛰ go mod download golang.org/x/mobile +⛰ gomobile init +``` + +### Docker + +Install and run [Docker](https://www.docker.com/products/docker-desktop). + +### Make + +Check that `make` is available by running the following command without errors: + +```shell +⛰ make --version +``` + +## Building the libraries + +Note that `gomobile` only supports building projects from `$GOPATH` at this +point. However, with the introduction of Go modules, the source code files are +no longer installed there by default. + +To be able to do so, we must turn off module and using the now deprecated +`go get` command before turning modules back on again. + +```shell +⛰ go env -w GO111MODULE="off" +⛰ go get github.com/lightninglabs/lightning-terminal +⛰ go get golang.org/x/mobile/bind +⛰ go env -w GO111MODULE="on" +``` + +Finally, let’s change directory to the newly created lightning-terminal folder inside `$GOPATH`: + +```shell +⛰ cd $GOPATH/src/github.com/lightninglabs/lightning-terminal +``` + +It is not recommended building from the master branch for mainnet. To checkout +the latest tagged release of Lightning Terminal, run + +```shell +⛰ git checkout $(git describe --match "v[0-9]*" --abbrev=0) +``` + +### iOS + +```shell +⛰ make ios +``` + +The Xcode framework file will be found in `mobile/build/ios/Litdmobile.xcframework`. + +### Android + +```shell +⛰ make android +``` + +The AAR library file will be found in `mobile/build/android/Litdmobile.aar`. + +--- +Tip: `make mobile` will build both iOS and Android libraries. + +--- + +## Generating proto definitions + +In order to call the methods in the generated library, the serialized proto for +the given RPC call must be provided. Similarly, the response will be a +serialized proto. + +### iOS + +In order to generate protobuf definitions for iOS, add `--swift_out=.` to the +first `protoc` invocation found in [ `gen_protos.sh` ](../lnrpc/gen_protos.sh). + +Then, some changes to [Dockerfile](../lnrpc/Dockerfile) need to be done in +order to use the [Swift protobuf](https://github.com/apple/swift-protobuf) +plugin with protoc: + +1. Replace the base image with `FROM swift:focal` so that Swift can be used. +2. `clang-format='1:7.0*'` is unavailable in Ubuntu Focal. Change that to +`clang-format='1:10.0*'`. +3. On the next line, install Go and set the environment variables by adding the +following commands: + +``` +RUN apt-get install -y wget \ + && wget -c https://golang.org/dl/go1.17.6.linux-amd64.tar.gz -O - \ + | tar -xz -C /usr/local +ENV GOPATH=/go +ENV PATH=$PATH:/usr/local/go/bin:/go/bin +``` + +4. At the end of the file, just above `CMD`, add the following `RUN` command. +This will download and compile the latest tagged release of Swift protobuf. + +``` +RUN git clone https://github.com/apple/swift-protobuf.git \ +&& cd swift-protobuf \ +&& git checkout $(git describe --tags --abbrev=0) \ +&& swift build -c release \ +&& mv .build/release/protoc-gen-swift /bin +``` + +Finally, run `make rpc`. + +Tip: The generated Swift files will be found in various folders. If you’d like +to move them to the same folder as the framework file, run + +```shell +⛰ find . -name "*.swift" -print0 | xargs -0 -I {} mv {} mobile/build/ios +``` + +`Litdmobile.xcframework` and all Swift files should now be added to your Xcode +project. You will also need to add [Swift Protobuf](https://github.com/apple/swift-protobuf) +to your project to support the generated code. + +### Android + +#### First option: + +In order to generate protobuf definitions for Android, add `--java_out=.` + +to the first `protoc` invocation found in +[ `gen_protos.sh` ](../lnrpc/gen_protos.sh). Then, run `make rpc`. + + +#### Second option (preferable): + +- You have to install the profobuf plugin to your Android application. +Please, follow this link https://github.com/google/protobuf-gradle-plugin. +- Add this line to your `app build.gradle` file. +```shell +classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.17" +``` +- Create a `proto` folder under the `main` folder. + +![proto_folder](docs/proto_folder.png) + +- Add `aar` file to libs folder. + +- After that add these lines to your `module's` `build.gradle` file: + +```shell +plugins { + id "com.google.protobuf" +} + +android { + sourceSets { + main { + proto { + + } + } + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation "com.google.protobuf:protobuf-javalite:${rootProject.ext.javalite_version}" +} + +protobuf { + protoc { + artifact = "com.google.protobuf:protoc:${rootProject.ext.protoc_version}" + } + generateProtoTasks { + all().each { task -> + task.builtins { + java { + option "lite" + } + } + } + } +} +``` +- Then, copy all the proto files from `lnd/lnrpc` to your `proto` folder, saving the structure. +- Build the project and wait until you see the generated Java proto files in the `build` folder. + + +--- +*Note:* + +If Android Studio tells you that the `aar` file cannot be included into the `app-bundle`, this is a workaround: + +1. Create a separate gradle module +2. Remove everything from there and leave only `aar` and `build.gradle`. + +![separate_gradle_module](docs/separate_gradle_module.png) + +3. Gradle file should contain only these lines: + +```shell +configurations.maybeCreate("default") +artifacts.add("default", file('Litdmobile.aar')) +``` + +4. In `dependencies` add this line instead of depending on `libs` folder: +```shell +implementation project(":litdmobile", { "default" }) +``` +--- + +## Calling the API + +In LND v0.15+ all API methods have prefixed the generated methods with the subserver name. This is required to support subservers with name conflicts. + +eg. `QueryScores` is now `AutopilotQueryScores`. `GetBlockHeader` is now `NeutrinoKitGetBlockHeader`. + +## API docs + +- [LND gRPC API Reference](https://api.lightning.community) +- [LND Builder’s Guide](https://docs.lightning.engineering) diff --git a/mobile/bindings.go b/mobile/bindings.go new file mode 100644 index 000000000..9ad1063d2 --- /dev/null +++ b/mobile/bindings.go @@ -0,0 +1,246 @@ +//go:build mobile +// +build mobile + +package litdmobile + +import ( + "context" + "encoding/hex" + "errors" + "fmt" + "os" + "path/filepath" + "strings" + "sync/atomic" + + flags "github.com/jessevdk/go-flags" + "github.com/lightningnetwork/lnd" + "github.com/lightningnetwork/lnd/lnrpc/verrpc" + "github.com/lightningnetwork/lnd/signal" + "google.golang.org/grpc" + + "github.com/lightninglabs/lndclient" + "github.com/lightninglabs/loop/loopd" + "github.com/lightninglabs/pool" +) + +// litdStarted will be used atomically to ensure only a single lnd instance is +// attempted to be started at once. +var litdStarted int32 + +// Start starts lnd in a new goroutine. +// +// extraArgs can be used to pass command line arguments to lnd that will +// override what is found in the config file. Example: +// +// extraArgs = "--bitcoin.testnet --lnddir=\"/tmp/folder name/\" --profile=5050" +// +// The rpcReady is called lnd is ready to accept RPC calls. +// +// NOTE: On mobile platforms the '--lnddir` argument should be set to the +// current app directory in order to ensure lnd has the permissions needed to +// write to it. +func Start(extraArgs string, rpcReady Callback) { + // We only support a single lnd instance at a time (singleton) for now, + // so we make sure to return immediately if it has already been + // started. + if !atomic.CompareAndSwapInt32(&litdStarted, 0, 1) { + err := errors.New("lnd already started") + rpcReady.OnError(err) + return + } + + // (Re-)initialize the in-mem gRPC listeners we're going to give to lnd. + // This is required each time lnd is started, because when lnd shuts + // down, the in-mem listeners are closed. + RecreateListeners() + + // Split the argument string on "--" to get separated command line + // arguments. + var splitArgs []string + for _, a := range strings.Split(extraArgs, "--") { + // Trim any whitespace space, and ignore empty params. + a := strings.TrimSpace(a) + if a == "" { + continue + } + + // Finally we prefix any non-empty string with -- to mimic the + // regular command line arguments. + splitArgs = append(splitArgs, "--"+a) + } + + // Add the extra arguments to os.Args, as that will be parsed in + // LoadConfig below. + os.Args = append(os.Args, splitArgs...) + + // Hook interceptor for os signals. + shutdownInterceptor, err := signal.Intercept() + if err != nil { + atomic.StoreInt32(&litdStarted, 0) + _, _ = fmt.Fprintln(os.Stderr, err) + rpcReady.OnError(err) + return + } + + // Load the configuration, and parse the extra arguments as command + // line options. This function will also set up logging properly. + loadedConfig, err := lnd.LoadConfig(shutdownInterceptor) + if err != nil { + atomic.StoreInt32(&litdStarted, 0) + _, _ = fmt.Fprintln(os.Stderr, err) + rpcReady.OnError(err) + return + } + + // Set a channel that will be notified when the RPC server is ready to + // accept calls. + var ( + rpcListening = make(chan struct{}) + quit = make(chan struct{}) + ) + + // We call the main method with the custom in-memory listener called by + // the mobile APIs, such that the grpc server will use it. + lisCfg := lnd.ListenerCfg{ + RPCListeners: []*lnd.ListenerWithSignal{{ + Listener: lightningLis, + Ready: rpcListening, + }}, + } + implCfg := loadedConfig.ImplementationConfig(shutdownInterceptor) + + // Call the "real" main in a nested manner so the defers will properly + // be executed in the case of a graceful shutdown. + go func() { + defer atomic.StoreInt32(&litdStarted, 0) + defer close(quit) + + loadedConfig, err := lnd.LoadConfig(shutdownInterceptor) + if err != nil { + fmt.Errorf("could not load lnd config: %w", err) + return + } + + loopConf := loopd.DefaultConfig() + poolConf := pool.DefaultConfig() + + loopServer := loopd.New(&loopConf, nil) + poolServer := pool.NewServer(&poolConf) + + err = lnd.Main( + loadedConfig, lisCfg, implCfg, shutdownInterceptor, + ) + if err != nil { + fmt.Errorf("error starting lnd: %w", err) + return + } + + macChan := make(chan []byte, 1) + + // We'll need to wait for lnd to send the acaroon after unlock before + // going any further. + <-rpcListening + macData := <-macChan + + ctxc, cancel := context.WithCancel(context.Background()) + defer cancel() + + // lndClient + basicClient conf + host := "localhost" + network := lndclient.Network("mainnet") + tlsPath := "" + macPath := "" + insecure := false + + lndClient, err := lndclient.NewLndServices( + &lndclient.LndServicesConfig{ + LndAddress: host, + Network: network, + TLSPath: tlsPath, + Insecure: insecure, + CustomMacaroonPath: macPath, + CustomMacaroonHex: hex.EncodeToString(macData), + BlockUntilChainSynced: true, + BlockUntilUnlocked: true, + CallerCtx: ctxc, + CheckVersion: &verrpc.Version{ + AppMajor: 0, + AppMinor: 15, + AppPatch: 4, + BuildTags: []string{ + "signrpc", "walletrpc", "chainrpc", "invoicesrpc", + }, + }, + }, + ) + if err != nil { + fmt.Errorf("could not set up lnd client: %w", err) + return + } + + basicClient, err := lndclient.NewBasicClient( + host, tlsPath, filepath.Dir(macPath), string(network), + nil, + ) + if err != nil { + fmt.Errorf("could not set up lnd basic client: %w", err) + return + } + + // loop + pool server conf + createDefaultMacaroons := true + + err = loopServer.StartAsSubserver( + lndClient, createDefaultMacaroons, + ) + + err = poolServer.StartAsSubserver( + basicClient, lndClient, createDefaultMacaroons, + ) + + if err != nil { + if e, ok := err.(*flags.Error); ok && + e.Type == flags.ErrHelp { + } else { + fmt.Fprintln(os.Stderr, err) + } + rpcReady.OnError(err) + return + } + }() + + // By default we'll apply the admin auth options, which will include + // macaroons. + setDefaultDialOption( + func() ([]grpc.DialOption, error) { + return lnd.AdminAuthOptions(loadedConfig, false) + }, + ) + + // For the WalletUnlocker and StateService, the macaroons might not be + // available yet when called, so we use a more restricted set of + // options that don't include them. + setWalletUnlockerDialOption( + func() ([]grpc.DialOption, error) { + return lnd.AdminAuthOptions(loadedConfig, true) + }, + ) + setStateDialOption( + func() ([]grpc.DialOption, error) { + return lnd.AdminAuthOptions(loadedConfig, true) + }, + ) + + // Finally we start a go routine that will call the provided callback + // when the RPC server is ready to accept calls. + go func() { + select { + case <-rpcListening: + case <-quit: + return + } + + rpcReady.OnResponse([]byte{}) + }() +} diff --git a/mobile/docs/proto_folder.png b/mobile/docs/proto_folder.png new file mode 100644 index 000000000..43f0e1570 Binary files /dev/null and b/mobile/docs/proto_folder.png differ diff --git a/mobile/docs/separate_gradle_module.png b/mobile/docs/separate_gradle_module.png new file mode 100644 index 000000000..cc884ee3b Binary files /dev/null and b/mobile/docs/separate_gradle_module.png differ diff --git a/mobile/gen_bindings.sh b/mobile/gen_bindings.sh new file mode 100755 index 000000000..0224f5850 --- /dev/null +++ b/mobile/gen_bindings.sh @@ -0,0 +1,257 @@ +#!/bin/sh + +mkdir -p build + +# Check falafel version. +falafelVersion=$1 +if [ -z $falafelVersion ] +then + echo "falafel version not set" + exit 1 +fi + +falafel=$(which falafel) +if [ $falafel ] +then + version="v$($falafel -v)" + if [ $version != $falafelVersion ] + then + echo "falafel version $falafelVersion required, had $version" + exit 1 + fi + echo "Using plugin $falafel $version" +else + echo "falafel not found" + exit 1 +fi + +# Name of the package for the generated APIs. +pkg="litdmobile" + +# The package where the protobuf definitions originally are found. +litd_target_pkg="github.com/lightninglabs/lightning-terminal/litrpc" + +lnd_target_pkg="github.com/lightningnetwork/lnd/lnrpc" +autopilot_target_pkg="github.com/lightningnetwork/lnd/lnrpc/autopilotrpc" +chain_target_pkg="github.com/lightningnetwork/lnd/lnrpc/chainrpc" +invoices_target_pkg="github.com/lightningnetwork/lnd/lnrpc/invoicesrpc" +neutrino_target_pkg="github.com/lightningnetwork/lnd/lnrpc/neutrinorpc" +router_target_pkg="github.com/lightningnetwork/lnd/lnrpc/routerrpc" +signer_target_pkg="github.com/lightningnetwork/lnd/lnrpc/signrpc" +wallet_target_pkg="github.com/lightningnetwork/lnd/lnrpc/walletrpc" +watchtower_target_pkg="github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc" +watchtower_client_target_pkg="github.com/lightningnetwork/lnd/lnrpc/wtclientrpc" + +loop_target_pkg="github.com/lightninglabs/loop/looprpc" +pool_target_pkg="github.com/lightninglabs/pool/poolrpc" + +# A mapping from grpc service to name of the custom listeners. The grpc server +# must be configured to listen on these. +listeners="accounts=lightningLis sessions=lightingLis lightning=lightningLis walletunlocker=lightningLis state=lightningLis autopilot=lightningLis chainnotifier=lightningLis invoices=lightningLis neutrinokit=lightningLis peers=lightningLis router=lightningLis signer=lightningLis versioner=lightningLis walletkit=lightningLis watchtower=lightningLis watchtowerclient=lightningLis swapclient=lightningLis swapserver=lightningLis trader=lightningLis channelauctioneer=lightningLis" + +# Set to 1 to create boiler plate grpc client code and listeners. If more than +# one proto file is being parsed, it should only be done once. +mem_rpc=1 + +LITD_PROTOS="lit-accounts.proto lit-sessions.proto" + +LND_PROTOS="lnd.proto state.proto walletunlocker.proto" +AUTOPILOT_PROTOS="autopilotrpc/autopilot.proto" +CHAIN_PROTOS="chainrpc/chainnotifier.proto" +INVOICES_PROTOS="invoicesrpc/invoices.proto" +NEUTRINO_PROTOS="neutrinorpc/neutrino.proto" +ROUTER_PROTOS="routerrpc/router.proto" +SIGNER_PROTOS="signrpc/signer.proto" +WALLET_PROTOS="walletrpc/walletkit.proto" +WATCHTOWER_PROTOS="watchtowerrpc/watchtower.proto" +WATCHTOWER_CLIENT_PROTOS="wtclientrpc/wtclient.proto" + +LOOP_PROTOS="loop.proto swapserverrpc/common.proto" + +POOL_PROTOS="trader.proto auctioneerrpc/auctioneer.proto" + +# If prefix=1 is specified, prefix the generated methods with subserver name. +# This must be enabled to support subservers with name conflicts. +use_prefix="0" +if [ "$SUBSERVER_PREFIX" = "1" ] +then + echo "Prefixing methods with subserver name" + use_prefix="1" +fi + +litd_opts="package_name=$pkg,target_package=$litd_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" + +lnd_opts="package_name=$pkg,target_package=$lnd_target_pkg,api_prefix=0,listeners=$listeners,mem_rpc=$mem_rpc" +autopilot_opts="package_name=$pkg,target_package=$autopilot_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +chain_opts="package_name=$pkg,target_package=$chain_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +invoices_opts="package_name=$pkg,target_package=$invoices_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +neutrino_opts="package_name=$pkg,target_package=$neutrino_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +router_opts="package_name=$pkg,target_package=$router_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +signer_opts="package_name=$pkg,target_package=$signer_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +wallet_opts="package_name=$pkg,target_package=$wallet_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +watchtower_opts="package_name=$pkg,target_package=$watchtower_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +watchtower_client_opts="package_name=$pkg,target_package=$watchtower_client_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" + +loop_opts="package_name=$pkg,target_package=$loop_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +pool_opts="package_name=$pkg,target_package=$pool_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" +auctioneer_opts="package_name=$pkg,target_package=$auctioneer_target_pkg,api_prefix=$use_prefix,listeners=$listeners,mem_rpc=$mem_rpc" + +for file in $LITD_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$litd_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $LND_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$lnd_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $AUTOPILOT_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$autopilot_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $CHAIN_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$chain_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $INVOICES_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$invoices_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $NEUTRINO_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$neutrino_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $ROUTER_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$router_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $SIGNER_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$signer_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $WALLET_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$wallet_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $WATCHTOWER_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$watchtower_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $WATCHTOWER_CLIENT_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$watchtower_client_opts" \ + --proto_path=../proto \ + "${file}" +done + +for file in $LOOP_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$loop_opts" \ + --proto_path=../proto \ + "${file}" +done + + +for file in $POOL_PROTOS; do + echo "Generating mobile protos from ${file}" + + protoc -I/usr/local/include -I. \ + --plugin=protoc-gen-custom=$falafel\ + --custom_out=./build \ + --custom_opt="$pool_opts" \ + --proto_path=../proto \ + "${file}" +done + +# TODO update protoc command to avoid this replace hack +sed -i '12i "github.com/lightningnetwork/lnd/lnrpc/signrpc"' ./walletkit_api_generated.go +sed -i '12i "github.com/lightninglabs/pool/auctioneerrpc"' ./trader_api_generated.go + +trader_replacements="BatchSnapshotRequest BatchSnapshotsRequest" +for call in $trader_replacements; do + echo "Making replacements for trader_api_generated.go: ${call}" + sed -i "s/poolrpc.${call}/auctioneerrpc.${call}/g" ./trader_api_generated.go +done + +echo "Making replacements for channelauctioneer_api_generated.go" +sed -i "s/poolrpc/auctioneerrpc/g" ./channelauctioneer_api_generated.go + +# Run goimports to resolve any dependencies among the sub-servers. +goimports -w ./*_generated.go diff --git a/mobile/go.mod b/mobile/go.mod new file mode 100644 index 000000000..f3e4d6dd9 --- /dev/null +++ b/mobile/go.mod @@ -0,0 +1,3 @@ +module mobile + +go 1.18 diff --git a/mobile/sample_lnd.conf b/mobile/sample_lnd.conf new file mode 100644 index 000000000..3f4cc6c3e --- /dev/null +++ b/mobile/sample_lnd.conf @@ -0,0 +1,14 @@ +[Application Options] +debuglevel=info +maxbackoff=2s +nolisten=1 +norest=1 +tlsdisableautofill=1 + +[Routing] +routing.assumechanvalid=1 + +[Bitcoin] +bitcoin.active=1 +bitcoin.testnet=1 +bitcoin.node=neutrino diff --git a/proto/autopilotrpc/autopilot.proto b/proto/autopilotrpc/autopilot.proto new file mode 100644 index 000000000..67d0f9e38 --- /dev/null +++ b/proto/autopilotrpc/autopilot.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package autopilotrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/autopilotrpc"; + +// Autopilot is a service that can be used to get information about the current +// state of the daemon's autopilot agent, and also supply it with information +// that can be used when deciding where to open channels. +service Autopilot { + /* + Status returns whether the daemon's autopilot agent is active. + */ + rpc Status (StatusRequest) returns (StatusResponse); + + /* + ModifyStatus is used to modify the status of the autopilot agent, like + enabling or disabling it. + */ + rpc ModifyStatus (ModifyStatusRequest) returns (ModifyStatusResponse); + + /* + QueryScores queries all available autopilot heuristics, in addition to any + active combination of these heruristics, for the scores they would give to + the given nodes. + */ + rpc QueryScores (QueryScoresRequest) returns (QueryScoresResponse); + + /* + SetScores attempts to set the scores used by the running autopilot agent, + if the external scoring heuristic is enabled. + */ + rpc SetScores (SetScoresRequest) returns (SetScoresResponse); +} + +message StatusRequest { +} + +message StatusResponse { + // Indicates whether the autopilot is active or not. + bool active = 1; +} + +message ModifyStatusRequest { + // Whether the autopilot agent should be enabled or not. + bool enable = 1; +} + +message ModifyStatusResponse { +} + +message QueryScoresRequest { + repeated string pubkeys = 1; + + // If set, we will ignore the local channel state when calculating scores. + bool ignore_local_state = 2; +} + +message QueryScoresResponse { + message HeuristicResult { + string heuristic = 1; + map scores = 2; + } + + repeated HeuristicResult results = 1; +} + +message SetScoresRequest { + // The name of the heuristic to provide scores to. + string heuristic = 1; + + /* + A map from hex-encoded public keys to scores. Scores must be in the range + [0.0, 1.0]. + */ + map scores = 2; +} + +message SetScoresResponse { +} diff --git a/proto/chainrpc/chainnotifier.proto b/proto/chainrpc/chainnotifier.proto new file mode 100644 index 000000000..36e66a279 --- /dev/null +++ b/proto/chainrpc/chainnotifier.proto @@ -0,0 +1,200 @@ +syntax = "proto3"; + +package chainrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/chainrpc"; + +// ChainNotifier is a service that can be used to get information about the +// chain backend by registering notifiers for chain events. +service ChainNotifier { + /* + RegisterConfirmationsNtfn is a synchronous response-streaming RPC that + registers an intent for a client to be notified once a confirmation request + has reached its required number of confirmations on-chain. + + A confirmation request must have a valid output script. It is also possible + to give a transaction ID. If the transaction ID is not set, a notification + is sent once the output script confirms. If the transaction ID is also set, + a notification is sent once the output script confirms in the given + transaction. + */ + rpc RegisterConfirmationsNtfn (ConfRequest) returns (stream ConfEvent); + + /* + RegisterSpendNtfn is a synchronous response-streaming RPC that registers an + intent for a client to be notification once a spend request has been spent + by a transaction that has confirmed on-chain. + + A client can specify whether the spend request should be for a particular + outpoint or for an output script by specifying a zero outpoint. + */ + rpc RegisterSpendNtfn (SpendRequest) returns (stream SpendEvent); + + /* + RegisterBlockEpochNtfn is a synchronous response-streaming RPC that + registers an intent for a client to be notified of blocks in the chain. The + stream will return a hash and height tuple of a block for each new/stale + block in the chain. It is the client's responsibility to determine whether + the tuple returned is for a new or stale block in the chain. + + A client can also request a historical backlog of blocks from a particular + point. This allows clients to be idempotent by ensuring that they do not + missing processing a single block within the chain. + */ + rpc RegisterBlockEpochNtfn (BlockEpoch) returns (stream BlockEpoch); +} + +message ConfRequest { + /* + The transaction hash for which we should request a confirmation notification + for. If set to a hash of all zeros, then the confirmation notification will + be requested for the script instead. + */ + bytes txid = 1; + + /* + An output script within a transaction with the hash above which will be used + by light clients to match block filters. If the transaction hash is set to a + hash of all zeros, then a confirmation notification will be requested for + this script instead. + */ + bytes script = 2; + + /* + The number of desired confirmations the transaction/output script should + reach before dispatching a confirmation notification. + */ + uint32 num_confs = 3; + + /* + The earliest height in the chain for which the transaction/output script + could have been included in a block. This should in most cases be set to the + broadcast height of the transaction/output script. + */ + uint32 height_hint = 4; + + /* + If true, then the block that mines the specified txid/script will be + included in eventual the notification event. + */ + bool include_block = 5; +} + +message ConfDetails { + // The raw bytes of the confirmed transaction. + bytes raw_tx = 1; + + // The hash of the block in which the confirmed transaction was included in. + bytes block_hash = 2; + + // The height of the block in which the confirmed transaction was included + // in. + uint32 block_height = 3; + + // The index of the confirmed transaction within the block. + uint32 tx_index = 4; + + /* + The raw bytes of the block that mined the transaction. Only included if + include_block was set in the request. + */ + bytes raw_block = 5; +} + +message Reorg { + // TODO(wilmer): need to know how the client will use this first. +} + +message ConfEvent { + oneof event { + /* + An event that includes the confirmation details of the request + (txid/ouput script). + */ + ConfDetails conf = 1; + + /* + An event send when the transaction of the request is reorged out of the + chain. + */ + Reorg reorg = 2; + } +} + +message Outpoint { + // The hash of the transaction. + bytes hash = 1; + + // The index of the output within the transaction. + uint32 index = 2; +} + +message SpendRequest { + /* + The outpoint for which we should request a spend notification for. If set to + a zero outpoint, then the spend notification will be requested for the + script instead. A zero or nil outpoint is not supported for Taproot spends + because the output script cannot reliably be computed from the witness alone + and the spent output script is not always available in the rescan context. + So an outpoint must _always_ be specified when registering a spend + notification for a Taproot output. + */ + Outpoint outpoint = 1; + + /* + The output script for the outpoint above. This will be used by light clients + to match block filters. If the outpoint is set to a zero outpoint, then a + spend notification will be requested for this script instead. + */ + bytes script = 2; + + /* + The earliest height in the chain for which the outpoint/output script could + have been spent. This should in most cases be set to the broadcast height of + the outpoint/output script. + */ + uint32 height_hint = 3; + + // TODO(wilmer): extend to support num confs on spending tx. +} + +message SpendDetails { + // The outpoint was that spent. + Outpoint spending_outpoint = 1; + + // The raw bytes of the spending transaction. + bytes raw_spending_tx = 2; + + // The hash of the spending transaction. + bytes spending_tx_hash = 3; + + // The input of the spending transaction that fulfilled the spend request. + uint32 spending_input_index = 4; + + // The height at which the spending transaction was included in a block. + uint32 spending_height = 5; +} + +message SpendEvent { + oneof event { + /* + An event that includes the details of the spending transaction of the + request (outpoint/output script). + */ + SpendDetails spend = 1; + + /* + An event sent when the spending transaction of the request was + reorged out of the chain. + */ + Reorg reorg = 2; + } +} + +message BlockEpoch { + // The hash of the block. + bytes hash = 1; + + // The height of the block. + uint32 height = 2; +} diff --git a/proto/gen_protos_docker.sh b/proto/gen_protos_docker.sh index 6f598c9ef..78fc48fdb 100755 --- a/proto/gen_protos_docker.sh +++ b/proto/gen_protos_docker.sh @@ -13,5 +13,6 @@ docker run \ --rm \ --user $UID:$UID \ -e UID=$UID \ + -e SUBSERVER_PREFIX \ -v "$DIR/../:/build" \ lit-protobuf-builder diff --git a/proto/invoicesrpc/invoices.proto b/proto/invoicesrpc/invoices.proto new file mode 100644 index 000000000..12317d02c --- /dev/null +++ b/proto/invoicesrpc/invoices.proto @@ -0,0 +1,175 @@ +syntax = "proto3"; + +import "lightning.proto"; + +package invoicesrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/invoicesrpc"; + +// Invoices is a service that can be used to create, accept, settle and cancel +// invoices. +service Invoices { + /* + SubscribeSingleInvoice returns a uni-directional stream (server -> client) + to notify the client of state transitions of the specified invoice. + Initially the current invoice state is always sent out. + */ + rpc SubscribeSingleInvoice (SubscribeSingleInvoiceRequest) + returns (stream lnrpc.Invoice); + + /* + CancelInvoice cancels a currently open invoice. If the invoice is already + canceled, this call will succeed. If the invoice is already settled, it will + fail. + */ + rpc CancelInvoice (CancelInvoiceMsg) returns (CancelInvoiceResp); + + /* + AddHoldInvoice creates a hold invoice. It ties the invoice to the hash + supplied in the request. + */ + rpc AddHoldInvoice (AddHoldInvoiceRequest) returns (AddHoldInvoiceResp); + + /* + SettleInvoice settles an accepted invoice. If the invoice is already + settled, this call will succeed. + */ + rpc SettleInvoice (SettleInvoiceMsg) returns (SettleInvoiceResp); + + /* + LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced + using either its payment hash, payment address, or set ID. + */ + rpc LookupInvoiceV2 (LookupInvoiceMsg) returns (lnrpc.Invoice); +} + +message CancelInvoiceMsg { + // Hash corresponding to the (hold) invoice to cancel. When using + // REST, this field must be encoded as base64. + bytes payment_hash = 1; +} +message CancelInvoiceResp { +} + +message AddHoldInvoiceRequest { + /* + An optional memo to attach along with the invoice. Used for record keeping + purposes for the invoice's creator, and will also be set in the description + field of the encoded payment request if the description_hash field is not + being used. + */ + string memo = 1; + + // The hash of the preimage + bytes hash = 2; + + /* + The value of this invoice in satoshis + + The fields value and value_msat are mutually exclusive. + */ + int64 value = 3; + + /* + The value of this invoice in millisatoshis + + The fields value and value_msat are mutually exclusive. + */ + int64 value_msat = 10; + + /* + Hash (SHA-256) of a description of the payment. Used if the description of + payment (memo) is too long to naturally fit within the description field + of an encoded payment request. + */ + bytes description_hash = 4; + + // Payment request expiry time in seconds. Default is 86400 (24 hours). + int64 expiry = 5; + + // Fallback on-chain address. + string fallback_addr = 6; + + // Delta to use for the time-lock of the CLTV extended to the final hop. + uint64 cltv_expiry = 7; + + /* + Route hints that can each be individually used to assist in reaching the + invoice's destination. + */ + repeated lnrpc.RouteHint route_hints = 8; + + // Whether this invoice should include routing hints for private channels. + bool private = 9; +} + +message AddHoldInvoiceResp { + /* + A bare-bones invoice for a payment within the Lightning Network. With the + details of the invoice, the sender has all the data necessary to send a + payment to the recipient. + */ + string payment_request = 1; + + /* + The "add" index of this invoice. Each newly created invoice will increment + this index making it monotonically increasing. Callers to the + SubscribeInvoices call can use this to instantly get notified of all added + invoices with an add_index greater than this one. + */ + uint64 add_index = 2; + + /* + The payment address of the generated invoice. This value should be used + in all payments for this invoice as we require it for end to end + security. + */ + bytes payment_addr = 3; +} + +message SettleInvoiceMsg { + // Externally discovered pre-image that should be used to settle the hold + // invoice. + bytes preimage = 1; +} + +message SettleInvoiceResp { +} + +message SubscribeSingleInvoiceRequest { + reserved 1; + + // Hash corresponding to the (hold) invoice to subscribe to. When using + // REST, this field must be encoded as base64url. + bytes r_hash = 2; +} + +enum LookupModifier { + // The default look up modifier, no look up behavior is changed. + DEFAULT = 0; + + /* + Indicates that when a look up is done based on a set_id, then only that set + of HTLCs related to that set ID should be returned. + */ + HTLC_SET_ONLY = 1; + + /* + Indicates that when a look up is done using a payment_addr, then no HTLCs + related to the payment_addr should be returned. This is useful when one + wants to be able to obtain the set of associated setIDs with a given + invoice, then look up the sub-invoices "projected" by that set ID. + */ + HTLC_SET_BLANK = 2; +} + +message LookupInvoiceMsg { + oneof invoice_ref { + // When using REST, this field must be encoded as base64. + bytes payment_hash = 1; + bytes payment_addr = 2; + bytes set_id = 3; + } + + LookupModifier lookup_modifier = 4; +} diff --git a/proto/lightning.proto b/proto/lightning.proto new file mode 100644 index 000000000..c27e35e28 --- /dev/null +++ b/proto/lightning.proto @@ -0,0 +1,4716 @@ +syntax = "proto3"; + +package lnrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc"; + +/* + * Comments in this file will be directly parsed into the API + * Documentation as descriptions of the associated method, message, or field. + * These descriptions should go right above the definition of the object, and + * can be in either block or // comment format. + * + * An RPC method can be matched to an lncli command by placing a line in the + * beginning of the description in exactly the following format: + * lncli: `methodname` + * + * Failure to specify the exact name of the command will cause documentation + * generation to fail. + * + * More information on how exactly the gRPC documentation is generated from + * this proto file can be found here: + * https://github.com/lightninglabs/lightning-api + */ + +// Lightning is the main RPC server of the daemon. +service Lightning { + /* lncli: `walletbalance` + WalletBalance returns total unspent outputs(confirmed and unconfirmed), all + confirmed unspent outputs and all unconfirmed unspent outputs under control + of the wallet. + */ + rpc WalletBalance (WalletBalanceRequest) returns (WalletBalanceResponse); + + /* lncli: `channelbalance` + ChannelBalance returns a report on the total funds across all open channels, + categorized in local/remote, pending local/remote and unsettled local/remote + balances. + */ + rpc ChannelBalance (ChannelBalanceRequest) returns (ChannelBalanceResponse); + + /* lncli: `listchaintxns` + GetTransactions returns a list describing all the known transactions + relevant to the wallet. + */ + rpc GetTransactions (GetTransactionsRequest) returns (TransactionDetails); + + /* lncli: `estimatefee` + EstimateFee asks the chain backend to estimate the fee rate and total fees + for a transaction that pays to multiple specified outputs. + + When using REST, the `AddrToAmount` map type can be set by appending + `&AddrToAmount[
]=` to the URL. Unfortunately this + map type doesn't appear in the REST API documentation because of a bug in + the grpc-gateway library. + */ + rpc EstimateFee (EstimateFeeRequest) returns (EstimateFeeResponse); + + /* lncli: `sendcoins` + SendCoins executes a request to send coins to a particular address. Unlike + SendMany, this RPC call only allows creating a single output at a time. If + neither target_conf, or sat_per_vbyte are set, then the internal wallet will + consult its fee model to determine a fee for the default confirmation + target. + */ + rpc SendCoins (SendCoinsRequest) returns (SendCoinsResponse); + + /* lncli: `listunspent` + Deprecated, use walletrpc.ListUnspent instead. + + ListUnspent returns a list of all utxos spendable by the wallet with a + number of confirmations between the specified minimum and maximum. + */ + rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse); + + /* + SubscribeTransactions creates a uni-directional stream from the server to + the client in which any newly discovered transactions relevant to the + wallet are sent over. + */ + rpc SubscribeTransactions (GetTransactionsRequest) + returns (stream Transaction); + + /* lncli: `sendmany` + SendMany handles a request for a transaction that creates multiple specified + outputs in parallel. If neither target_conf, or sat_per_vbyte are set, then + the internal wallet will consult its fee model to determine a fee for the + default confirmation target. + */ + rpc SendMany (SendManyRequest) returns (SendManyResponse); + + /* lncli: `newaddress` + NewAddress creates a new address under control of the local wallet. + */ + rpc NewAddress (NewAddressRequest) returns (NewAddressResponse); + + /* lncli: `signmessage` + SignMessage signs a message with this node's private key. The returned + signature string is `zbase32` encoded and pubkey recoverable, meaning that + only the message digest and signature are needed for verification. + */ + rpc SignMessage (SignMessageRequest) returns (SignMessageResponse); + + /* lncli: `verifymessage` + VerifyMessage verifies a signature over a msg. The signature must be + zbase32 encoded and signed by an active node in the resident node's + channel database. In addition to returning the validity of the signature, + VerifyMessage also returns the recovered pubkey from the signature. + */ + rpc VerifyMessage (VerifyMessageRequest) returns (VerifyMessageResponse); + + /* lncli: `connect` + ConnectPeer attempts to establish a connection to a remote peer. This is at + the networking level, and is used for communication between nodes. This is + distinct from establishing a channel with a peer. + */ + rpc ConnectPeer (ConnectPeerRequest) returns (ConnectPeerResponse); + + /* lncli: `disconnect` + DisconnectPeer attempts to disconnect one peer from another identified by a + given pubKey. In the case that we currently have a pending or active channel + with the target peer, then this action will be not be allowed. + */ + rpc DisconnectPeer (DisconnectPeerRequest) returns (DisconnectPeerResponse); + + /* lncli: `listpeers` + ListPeers returns a verbose listing of all currently active peers. + */ + rpc ListPeers (ListPeersRequest) returns (ListPeersResponse); + + /* + SubscribePeerEvents creates a uni-directional stream from the server to + the client in which any events relevant to the state of peers are sent + over. Events include peers going online and offline. + */ + rpc SubscribePeerEvents (PeerEventSubscription) returns (stream PeerEvent); + + /* lncli: `getinfo` + GetInfo returns general information concerning the lightning node including + it's identity pubkey, alias, the chains it is connected to, and information + concerning the number of open+pending channels. + */ + rpc GetInfo (GetInfoRequest) returns (GetInfoResponse); + + /** lncli: `getrecoveryinfo` + GetRecoveryInfo returns information concerning the recovery mode including + whether it's in a recovery mode, whether the recovery is finished, and the + progress made so far. + */ + rpc GetRecoveryInfo (GetRecoveryInfoRequest) + returns (GetRecoveryInfoResponse); + + // TODO(roasbeef): merge with below with bool? + /* lncli: `pendingchannels` + PendingChannels returns a list of all the channels that are currently + considered "pending". A channel is pending if it has finished the funding + workflow and is waiting for confirmations for the funding txn, or is in the + process of closure, either initiated cooperatively or non-cooperatively. + */ + rpc PendingChannels (PendingChannelsRequest) + returns (PendingChannelsResponse); + + /* lncli: `listchannels` + ListChannels returns a description of all the open channels that this node + is a participant in. + */ + rpc ListChannels (ListChannelsRequest) returns (ListChannelsResponse); + + /* + SubscribeChannelEvents creates a uni-directional stream from the server to + the client in which any updates relevant to the state of the channels are + sent over. Events include new active channels, inactive channels, and closed + channels. + */ + rpc SubscribeChannelEvents (ChannelEventSubscription) + returns (stream ChannelEventUpdate); + + /* lncli: `closedchannels` + ClosedChannels returns a description of all the closed channels that + this node was a participant in. + */ + rpc ClosedChannels (ClosedChannelsRequest) returns (ClosedChannelsResponse); + + /* + OpenChannelSync is a synchronous version of the OpenChannel RPC call. This + call is meant to be consumed by clients to the REST proxy. As with all + other sync calls, all byte slices are intended to be populated as hex + encoded strings. + */ + rpc OpenChannelSync (OpenChannelRequest) returns (ChannelPoint); + + /* lncli: `openchannel` + OpenChannel attempts to open a singly funded channel specified in the + request to a remote peer. Users are able to specify a target number of + blocks that the funding transaction should be confirmed in, or a manual fee + rate to us for the funding transaction. If neither are specified, then a + lax block confirmation target is used. Each OpenStatusUpdate will return + the pending channel ID of the in-progress channel. Depending on the + arguments specified in the OpenChannelRequest, this pending channel ID can + then be used to manually progress the channel funding flow. + */ + rpc OpenChannel (OpenChannelRequest) returns (stream OpenStatusUpdate); + + /* lncli: `batchopenchannel` + BatchOpenChannel attempts to open multiple single-funded channels in a + single transaction in an atomic way. This means either all channel open + requests succeed at once or all attempts are aborted if any of them fail. + This is the safer variant of using PSBTs to manually fund a batch of + channels through the OpenChannel RPC. + */ + rpc BatchOpenChannel (BatchOpenChannelRequest) + returns (BatchOpenChannelResponse); + + /* + FundingStateStep is an advanced funding related call that allows the caller + to either execute some preparatory steps for a funding workflow, or + manually progress a funding workflow. The primary way a funding flow is + identified is via its pending channel ID. As an example, this method can be + used to specify that we're expecting a funding flow for a particular + pending channel ID, for which we need to use specific parameters. + Alternatively, this can be used to interactively drive PSBT signing for + funding for partially complete funding transactions. + */ + rpc FundingStateStep (FundingTransitionMsg) returns (FundingStateStepResp); + + /* + ChannelAcceptor dispatches a bi-directional streaming RPC in which + OpenChannel requests are sent to the client and the client responds with + a boolean that tells LND whether or not to accept the channel. This allows + node operators to specify their own criteria for accepting inbound channels + through a single persistent connection. + */ + rpc ChannelAcceptor (stream ChannelAcceptResponse) + returns (stream ChannelAcceptRequest); + + /* lncli: `closechannel` + CloseChannel attempts to close an active channel identified by its channel + outpoint (ChannelPoint). The actions of this method can additionally be + augmented to attempt a force close after a timeout period in the case of an + inactive peer. If a non-force close (cooperative closure) is requested, + then the user can specify either a target number of blocks until the + closure transaction is confirmed, or a manual fee rate. If neither are + specified, then a default lax, block confirmation target is used. + */ + rpc CloseChannel (CloseChannelRequest) returns (stream CloseStatusUpdate); + + /* lncli: `abandonchannel` + AbandonChannel removes all channel state from the database except for a + close summary. This method can be used to get rid of permanently unusable + channels due to bugs fixed in newer versions of lnd. This method can also be + used to remove externally funded channels where the funding transaction was + never broadcast. Only available for non-externally funded channels in dev + build. + */ + rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse); + + /* lncli: `sendpayment` + Deprecated, use routerrpc.SendPaymentV2. SendPayment dispatches a + bi-directional streaming RPC for sending payments through the Lightning + Network. A single RPC invocation creates a persistent bi-directional + stream allowing clients to rapidly send payments through the Lightning + Network with a single persistent connection. + */ + rpc SendPayment (stream SendRequest) returns (stream SendResponse) { + option deprecated = true; + } + + /* + SendPaymentSync is the synchronous non-streaming version of SendPayment. + This RPC is intended to be consumed by clients of the REST proxy. + Additionally, this RPC expects the destination's public key and the payment + hash (if any) to be encoded as hex strings. + */ + rpc SendPaymentSync (SendRequest) returns (SendResponse); + + /* lncli: `sendtoroute` + Deprecated, use routerrpc.SendToRouteV2. SendToRoute is a bi-directional + streaming RPC for sending payment through the Lightning Network. This + method differs from SendPayment in that it allows users to specify a full + route manually. This can be used for things like rebalancing, and atomic + swaps. + */ + rpc SendToRoute (stream SendToRouteRequest) returns (stream SendResponse) { + option deprecated = true; + } + + /* + SendToRouteSync is a synchronous version of SendToRoute. It Will block + until the payment either fails or succeeds. + */ + rpc SendToRouteSync (SendToRouteRequest) returns (SendResponse); + + /* lncli: `addinvoice` + AddInvoice attempts to add a new invoice to the invoice database. Any + duplicated invoices are rejected, therefore all invoices *must* have a + unique payment preimage. + */ + rpc AddInvoice (Invoice) returns (AddInvoiceResponse); + + /* lncli: `listinvoices` + ListInvoices returns a list of all the invoices currently stored within the + database. Any active debug invoices are ignored. It has full support for + paginated responses, allowing users to query for specific invoices through + their add_index. This can be done by using either the first_index_offset or + last_index_offset fields included in the response as the index_offset of the + next request. By default, the first 100 invoices created will be returned. + Backwards pagination is also supported through the Reversed flag. + */ + rpc ListInvoices (ListInvoiceRequest) returns (ListInvoiceResponse); + + /* lncli: `lookupinvoice` + LookupInvoice attempts to look up an invoice according to its payment hash. + The passed payment hash *must* be exactly 32 bytes, if not, an error is + returned. + */ + rpc LookupInvoice (PaymentHash) returns (Invoice); + + /* + SubscribeInvoices returns a uni-directional stream (server -> client) for + notifying the client of newly added/settled invoices. The caller can + optionally specify the add_index and/or the settle_index. If the add_index + is specified, then we'll first start by sending add invoice events for all + invoices with an add_index greater than the specified value. If the + settle_index is specified, the next, we'll send out all settle events for + invoices with a settle_index greater than the specified value. One or both + of these fields can be set. If no fields are set, then we'll only send out + the latest add/settle events. + */ + rpc SubscribeInvoices (InvoiceSubscription) returns (stream Invoice); + + /* lncli: `decodepayreq` + DecodePayReq takes an encoded payment request string and attempts to decode + it, returning a full description of the conditions encoded within the + payment request. + */ + rpc DecodePayReq (PayReqString) returns (PayReq); + + /* lncli: `listpayments` + ListPayments returns a list of all outgoing payments. + */ + rpc ListPayments (ListPaymentsRequest) returns (ListPaymentsResponse); + + /* + DeletePayment deletes an outgoing payment from DB. Note that it will not + attempt to delete an In-Flight payment, since that would be unsafe. + */ + rpc DeletePayment (DeletePaymentRequest) returns (DeletePaymentResponse); + + /* + DeleteAllPayments deletes all outgoing payments from DB. Note that it will + not attempt to delete In-Flight payments, since that would be unsafe. + */ + rpc DeleteAllPayments (DeleteAllPaymentsRequest) + returns (DeleteAllPaymentsResponse); + + /* lncli: `describegraph` + DescribeGraph returns a description of the latest graph state from the + point of view of the node. The graph information is partitioned into two + components: all the nodes/vertexes, and all the edges that connect the + vertexes themselves. As this is a directed graph, the edges also contain + the node directional specific routing policy which includes: the time lock + delta, fee information, etc. + */ + rpc DescribeGraph (ChannelGraphRequest) returns (ChannelGraph); + + /* lncli: `getnodemetrics` + GetNodeMetrics returns node metrics calculated from the graph. Currently + the only supported metric is betweenness centrality of individual nodes. + */ + rpc GetNodeMetrics (NodeMetricsRequest) returns (NodeMetricsResponse); + + /* lncli: `getchaninfo` + GetChanInfo returns the latest authenticated network announcement for the + given channel identified by its channel ID: an 8-byte integer which + uniquely identifies the location of transaction's funding output within the + blockchain. + */ + rpc GetChanInfo (ChanInfoRequest) returns (ChannelEdge); + + /* lncli: `getnodeinfo` + GetNodeInfo returns the latest advertised, aggregated, and authenticated + channel information for the specified node identified by its public key. + */ + rpc GetNodeInfo (NodeInfoRequest) returns (NodeInfo); + + /* lncli: `queryroutes` + QueryRoutes attempts to query the daemon's Channel Router for a possible + route to a target destination capable of carrying a specific amount of + satoshis. The returned route contains the full details required to craft and + send an HTLC, also including the necessary information that should be + present within the Sphinx packet encapsulated within the HTLC. + + When using REST, the `dest_custom_records` map type can be set by appending + `&dest_custom_records[]=` + to the URL. Unfortunately this map type doesn't appear in the REST API + documentation because of a bug in the grpc-gateway library. + */ + rpc QueryRoutes (QueryRoutesRequest) returns (QueryRoutesResponse); + + /* lncli: `getnetworkinfo` + GetNetworkInfo returns some basic stats about the known channel graph from + the point of view of the node. + */ + rpc GetNetworkInfo (NetworkInfoRequest) returns (NetworkInfo); + + /* lncli: `stop` + StopDaemon will send a shutdown request to the interrupt handler, triggering + a graceful shutdown of the daemon. + */ + rpc StopDaemon (StopRequest) returns (StopResponse); + + /* + SubscribeChannelGraph launches a streaming RPC that allows the caller to + receive notifications upon any changes to the channel graph topology from + the point of view of the responding node. Events notified include: new + nodes coming online, nodes updating their authenticated attributes, new + channels being advertised, updates in the routing policy for a directional + channel edge, and when channels are closed on-chain. + */ + rpc SubscribeChannelGraph (GraphTopologySubscription) + returns (stream GraphTopologyUpdate); + + /* lncli: `debuglevel` + DebugLevel allows a caller to programmatically set the logging verbosity of + lnd. The logging can be targeted according to a coarse daemon-wide logging + level, or in a granular fashion to specify the logging for a target + sub-system. + */ + rpc DebugLevel (DebugLevelRequest) returns (DebugLevelResponse); + + /* lncli: `feereport` + FeeReport allows the caller to obtain a report detailing the current fee + schedule enforced by the node globally for each channel. + */ + rpc FeeReport (FeeReportRequest) returns (FeeReportResponse); + + /* lncli: `updatechanpolicy` + UpdateChannelPolicy allows the caller to update the fee schedule and + channel policies for all channels globally, or a particular channel. + */ + rpc UpdateChannelPolicy (PolicyUpdateRequest) + returns (PolicyUpdateResponse); + + /* lncli: `fwdinghistory` + ForwardingHistory allows the caller to query the htlcswitch for a record of + all HTLCs forwarded within the target time range, and integer offset + within that time range, for a maximum number of events. If no maximum number + of events is specified, up to 100 events will be returned. If no time-range + is specified, then events will be returned in the order that they occured. + + A list of forwarding events are returned. The size of each forwarding event + is 40 bytes, and the max message size able to be returned in gRPC is 4 MiB. + As a result each message can only contain 50k entries. Each response has + the index offset of the last entry. The index offset can be provided to the + request to allow the caller to skip a series of records. + */ + rpc ForwardingHistory (ForwardingHistoryRequest) + returns (ForwardingHistoryResponse); + + /* lncli: `exportchanbackup` + ExportChannelBackup attempts to return an encrypted static channel backup + for the target channel identified by it channel point. The backup is + encrypted with a key generated from the aezeed seed of the user. The + returned backup can either be restored using the RestoreChannelBackup + method once lnd is running, or via the InitWallet and UnlockWallet methods + from the WalletUnlocker service. + */ + rpc ExportChannelBackup (ExportChannelBackupRequest) + returns (ChannelBackup); + + /* + ExportAllChannelBackups returns static channel backups for all existing + channels known to lnd. A set of regular singular static channel backups for + each channel are returned. Additionally, a multi-channel backup is returned + as well, which contains a single encrypted blob containing the backups of + each channel. + */ + rpc ExportAllChannelBackups (ChanBackupExportRequest) + returns (ChanBackupSnapshot); + + /* + VerifyChanBackup allows a caller to verify the integrity of a channel backup + snapshot. This method will accept either a packed Single or a packed Multi. + Specifying both will result in an error. + */ + rpc VerifyChanBackup (ChanBackupSnapshot) + returns (VerifyChanBackupResponse); + + /* lncli: `restorechanbackup` + RestoreChannelBackups accepts a set of singular channel backups, or a + single encrypted multi-chan backup and attempts to recover any funds + remaining within the channel. If we are able to unpack the backup, then the + new channel will be shown under listchannels, as well as pending channels. + */ + rpc RestoreChannelBackups (RestoreChanBackupRequest) + returns (RestoreBackupResponse); + + /* + SubscribeChannelBackups allows a client to sub-subscribe to the most up to + date information concerning the state of all channel backups. Each time a + new channel is added, we return the new set of channels, along with a + multi-chan backup containing the backup info for all channels. Each time a + channel is closed, we send a new update, which contains new new chan back + ups, but the updated set of encrypted multi-chan backups with the closed + channel(s) removed. + */ + rpc SubscribeChannelBackups (ChannelBackupSubscription) + returns (stream ChanBackupSnapshot); + + /* lncli: `bakemacaroon` + BakeMacaroon allows the creation of a new macaroon with custom read and + write permissions. No first-party caveats are added since this can be done + offline. + */ + rpc BakeMacaroon (BakeMacaroonRequest) returns (BakeMacaroonResponse); + + /* lncli: `listmacaroonids` + ListMacaroonIDs returns all root key IDs that are in use. + */ + rpc ListMacaroonIDs (ListMacaroonIDsRequest) + returns (ListMacaroonIDsResponse); + + /* lncli: `deletemacaroonid` + DeleteMacaroonID deletes the specified macaroon ID and invalidates all + macaroons derived from that ID. + */ + rpc DeleteMacaroonID (DeleteMacaroonIDRequest) + returns (DeleteMacaroonIDResponse); + + /* lncli: `listpermissions` + ListPermissions lists all RPC method URIs and their required macaroon + permissions to access them. + */ + rpc ListPermissions (ListPermissionsRequest) + returns (ListPermissionsResponse); + + /* + CheckMacaroonPermissions checks whether a request follows the constraints + imposed on the macaroon and that the macaroon is authorized to follow the + provided permissions. + */ + rpc CheckMacaroonPermissions (CheckMacPermRequest) + returns (CheckMacPermResponse); + + /* + RegisterRPCMiddleware adds a new gRPC middleware to the interceptor chain. A + gRPC middleware is software component external to lnd that aims to add + additional business logic to lnd by observing/intercepting/validating + incoming gRPC client requests and (if needed) replacing/overwriting outgoing + messages before they're sent to the client. When registering the middleware + must identify itself and indicate what custom macaroon caveats it wants to + be responsible for. Only requests that contain a macaroon with that specific + custom caveat are then sent to the middleware for inspection. The other + option is to register for the read-only mode in which all requests/responses + are forwarded for interception to the middleware but the middleware is not + allowed to modify any responses. As a security measure, _no_ middleware can + modify responses for requests made with _unencumbered_ macaroons! + */ + rpc RegisterRPCMiddleware (stream RPCMiddlewareResponse) + returns (stream RPCMiddlewareRequest); + + /* lncli: `sendcustom` + SendCustomMessage sends a custom peer message. + */ + rpc SendCustomMessage (SendCustomMessageRequest) + returns (SendCustomMessageResponse); + + /* lncli: `subscribecustom` + SubscribeCustomMessages subscribes to a stream of incoming custom peer + messages. + + To include messages with type outside of the custom range (>= 32768) lnd + needs to be compiled with the `dev` build tag, and the message type to + override should be specified in lnd's experimental protocol configuration. + */ + rpc SubscribeCustomMessages (SubscribeCustomMessagesRequest) + returns (stream CustomMessage); + + /* lncli: `listaliases` + ListAliases returns the set of all aliases that have ever existed with + their confirmed SCID (if it exists) and/or the base SCID (in the case of + zero conf). + */ + rpc ListAliases (ListAliasesRequest) returns (ListAliasesResponse); + + /* + LookupHtlcResolution retrieves a final htlc resolution from the database. + If the htlc has no final resolution yet, a NotFound grpc status code is + returned. + */ + rpc LookupHtlcResolution (LookupHtlcResolutionRequest) + returns (LookupHtlcResolutionResponse); +} + +message LookupHtlcResolutionRequest { + uint64 chan_id = 1; + + uint64 htlc_index = 2; +} + +message LookupHtlcResolutionResponse { + // Settled is true is the htlc was settled. If false, the htlc was failed. + bool settled = 1; + + // Offchain indicates whether the htlc was resolved off-chain or on-chain. + bool offchain = 2; +} + +message SubscribeCustomMessagesRequest { +} + +message CustomMessage { + // Peer from which the message originates + bytes peer = 1; + + // Message type. This value will be in the custom range (>= 32768). + uint32 type = 2; + + // Raw message data + bytes data = 3; +} + +message SendCustomMessageRequest { + // Peer to send the message to + bytes peer = 1; + + // Message type. This value needs to be in the custom range (>= 32768). + // To send a type < custom range, lnd needs to be compiled with the `dev` + // build tag, and the message type to override should be specified in lnd's + // experimental protocol configuration. + uint32 type = 2; + + // Raw message data. + bytes data = 3; +} + +message SendCustomMessageResponse { +} + +message Utxo { + // The type of address + AddressType address_type = 1; + + // The address + string address = 2; + + // The value of the unspent coin in satoshis + int64 amount_sat = 3; + + // The pkscript in hex + string pk_script = 4; + + // The outpoint in format txid:n + OutPoint outpoint = 5; + + // The number of confirmations for the Utxo + int64 confirmations = 6; +} + +enum OutputScriptType { + SCRIPT_TYPE_PUBKEY_HASH = 0; + SCRIPT_TYPE_SCRIPT_HASH = 1; + SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2; + SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3; + SCRIPT_TYPE_PUBKEY = 4; + SCRIPT_TYPE_MULTISIG = 5; + SCRIPT_TYPE_NULLDATA = 6; + SCRIPT_TYPE_NON_STANDARD = 7; + SCRIPT_TYPE_WITNESS_UNKNOWN = 8; + SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9; +} + +message OutputDetail { + // The type of the output + OutputScriptType output_type = 1; + + // The address + string address = 2; + + // The pkscript in hex + string pk_script = 3; + + // The output index used in the raw transaction + int64 output_index = 4; + + // The value of the output coin in satoshis + int64 amount = 5; + + // Denotes if the output is controlled by the internal wallet + bool is_our_address = 6; +} + +message Transaction { + // The transaction hash + string tx_hash = 1; + + // The transaction amount, denominated in satoshis + int64 amount = 2; + + // The number of confirmations + int32 num_confirmations = 3; + + // The hash of the block this transaction was included in + string block_hash = 4; + + // The height of the block this transaction was included in + int32 block_height = 5; + + // Timestamp of this transaction + int64 time_stamp = 6; + + // Fees paid for this transaction + int64 total_fees = 7; + + // Addresses that received funds for this transaction. Deprecated as it is + // now incorporated in the output_details field. + repeated string dest_addresses = 8 [deprecated = true]; + + // Outputs that received funds for this transaction + repeated OutputDetail output_details = 11; + + // The raw transaction hex. + string raw_tx_hex = 9; + + // A label that was optionally set on transaction broadcast. + string label = 10; + + // PreviousOutpoints/Inputs of this transaction. + repeated PreviousOutPoint previous_outpoints = 12; +} + +message GetTransactionsRequest { + /* + The height from which to list transactions, inclusive. If this value is + greater than end_height, transactions will be read in reverse. + */ + int32 start_height = 1; + + /* + The height until which to list transactions, inclusive. To include + unconfirmed transactions, this value should be set to -1, which will + return transactions from start_height until the current chain tip and + unconfirmed transactions. If no end_height is provided, the call will + default to this option. + */ + int32 end_height = 2; + + // An optional filter to only include transactions relevant to an account. + string account = 3; +} + +message TransactionDetails { + // The list of transactions relevant to the wallet. + repeated Transaction transactions = 1; +} + +message FeeLimit { + oneof limit { + /* + The fee limit expressed as a fixed amount of satoshis. + + The fields fixed and fixed_msat are mutually exclusive. + */ + int64 fixed = 1; + + /* + The fee limit expressed as a fixed amount of millisatoshis. + + The fields fixed and fixed_msat are mutually exclusive. + */ + int64 fixed_msat = 3; + + // The fee limit expressed as a percentage of the payment amount. + int64 percent = 2; + } +} + +message SendRequest { + /* + The identity pubkey of the payment recipient. When using REST, this field + must be encoded as base64. + */ + bytes dest = 1; + + /* + The hex-encoded identity pubkey of the payment recipient. Deprecated now + that the REST gateway supports base64 encoding of bytes fields. + */ + string dest_string = 2 [deprecated = true]; + + /* + The amount to send expressed in satoshis. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt = 3; + + /* + The amount to send expressed in millisatoshis. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt_msat = 12; + + /* + The hash to use within the payment's HTLC. When using REST, this field + must be encoded as base64. + */ + bytes payment_hash = 4; + + /* + The hex-encoded hash to use within the payment's HTLC. Deprecated now + that the REST gateway supports base64 encoding of bytes fields. + */ + string payment_hash_string = 5 [deprecated = true]; + + /* + A bare-bones invoice for a payment within the Lightning Network. With the + details of the invoice, the sender has all the data necessary to send a + payment to the recipient. + */ + string payment_request = 6; + + /* + The CLTV delta from the current height that should be used to set the + timelock for the final hop. + */ + int32 final_cltv_delta = 7; + + /* + The maximum number of satoshis that will be paid as a fee of the payment. + This value can be represented either as a percentage of the amount being + sent, or as a fixed amount of the maximum fee the user is willing the pay to + send the payment. If not specified, lnd will use a default value of 100% + fees for small amounts (<=1k sat) or 5% fees for larger amounts. + */ + FeeLimit fee_limit = 8; + + /* + The channel id of the channel that must be taken to the first hop. If zero, + any channel may be used. + */ + uint64 outgoing_chan_id = 9 [jstype = JS_STRING]; + + /* + The pubkey of the last hop of the route. If empty, any hop may be used. + */ + bytes last_hop_pubkey = 13; + + /* + An optional maximum total time lock for the route. This should not exceed + lnd's `--max-cltv-expiry` setting. If zero, then the value of + `--max-cltv-expiry` is enforced. + */ + uint32 cltv_limit = 10; + + /* + An optional field that can be used to pass an arbitrary set of TLV records + to a peer which understands the new records. This can be used to pass + application specific data during the payment attempt. Record types are + required to be in the custom range >= 65536. When using REST, the values + must be encoded as base64. + */ + map dest_custom_records = 11; + + // If set, circular payments to self are permitted. + bool allow_self_payment = 14; + + /* + Features assumed to be supported by the final node. All transitive feature + dependencies must also be set properly. For a given feature bit pair, either + optional or remote may be set, but not both. If this field is nil or empty, + the router will try to load destination features from the graph as a + fallback. + */ + repeated FeatureBit dest_features = 15; + + /* + The payment address of the generated invoice. + */ + bytes payment_addr = 16; +} + +message SendResponse { + string payment_error = 1; + bytes payment_preimage = 2; + Route payment_route = 3; + bytes payment_hash = 4; +} + +message SendToRouteRequest { + /* + The payment hash to use for the HTLC. When using REST, this field must be + encoded as base64. + */ + bytes payment_hash = 1; + + /* + An optional hex-encoded payment hash to be used for the HTLC. Deprecated now + that the REST gateway supports base64 encoding of bytes fields. + */ + string payment_hash_string = 2 [deprecated = true]; + + reserved 3; + + // Route that should be used to attempt to complete the payment. + Route route = 4; +} + +message ChannelAcceptRequest { + // The pubkey of the node that wishes to open an inbound channel. + bytes node_pubkey = 1; + + // The hash of the genesis block that the proposed channel resides in. + bytes chain_hash = 2; + + // The pending channel id. + bytes pending_chan_id = 3; + + // The funding amount in satoshis that initiator wishes to use in the + // channel. + uint64 funding_amt = 4; + + // The push amount of the proposed channel in millisatoshis. + uint64 push_amt = 5; + + // The dust limit of the initiator's commitment tx. + uint64 dust_limit = 6; + + // The maximum amount of coins in millisatoshis that can be pending in this + // channel. + uint64 max_value_in_flight = 7; + + // The minimum amount of satoshis the initiator requires us to have at all + // times. + uint64 channel_reserve = 8; + + // The smallest HTLC in millisatoshis that the initiator will accept. + uint64 min_htlc = 9; + + // The initial fee rate that the initiator suggests for both commitment + // transactions. + uint64 fee_per_kw = 10; + + /* + The number of blocks to use for the relative time lock in the pay-to-self + output of both commitment transactions. + */ + uint32 csv_delay = 11; + + // The total number of incoming HTLC's that the initiator will accept. + uint32 max_accepted_htlcs = 12; + + // A bit-field which the initiator uses to specify proposed channel + // behavior. + uint32 channel_flags = 13; + + // The commitment type the initiator wishes to use for the proposed channel. + CommitmentType commitment_type = 14; + + // Whether the initiator wants to open a zero-conf channel via the channel + // type. + bool wants_zero_conf = 15; + + // Whether the initiator wants to use the scid-alias channel type. This is + // separate from the feature bit. + bool wants_scid_alias = 16; +} + +message ChannelAcceptResponse { + // Whether or not the client accepts the channel. + bool accept = 1; + + // The pending channel id to which this response applies. + bytes pending_chan_id = 2; + + /* + An optional error to send the initiating party to indicate why the channel + was rejected. This field *should not* contain sensitive information, it will + be sent to the initiating party. This field should only be set if accept is + false, the channel will be rejected if an error is set with accept=true + because the meaning of this response is ambiguous. Limited to 500 + characters. + */ + string error = 3; + + /* + The upfront shutdown address to use if the initiating peer supports option + upfront shutdown script (see ListPeers for the features supported). Note + that the channel open will fail if this value is set for a peer that does + not support this feature bit. + */ + string upfront_shutdown = 4; + + /* + The csv delay (in blocks) that we require for the remote party. + */ + uint32 csv_delay = 5; + + /* + The reserve amount in satoshis that we require the remote peer to adhere to. + We require that the remote peer always have some reserve amount allocated to + them so that there is always a disincentive to broadcast old state (if they + hold 0 sats on their side of the channel, there is nothing to lose). + */ + uint64 reserve_sat = 6; + + /* + The maximum amount of funds in millisatoshis that we allow the remote peer + to have in outstanding htlcs. + */ + uint64 in_flight_max_msat = 7; + + /* + The maximum number of htlcs that the remote peer can offer us. + */ + uint32 max_htlc_count = 8; + + /* + The minimum value in millisatoshis for incoming htlcs on the channel. + */ + uint64 min_htlc_in = 9; + + /* + The number of confirmations we require before we consider the channel open. + */ + uint32 min_accept_depth = 10; + + /* + Whether the responder wants this to be a zero-conf channel. This will fail + if either side does not have the scid-alias feature bit set. The minimum + depth field must be zero if this is true. + */ + bool zero_conf = 11; +} + +message ChannelPoint { + oneof funding_txid { + /* + Txid of the funding transaction. When using REST, this field must be + encoded as base64. + */ + bytes funding_txid_bytes = 1; + + /* + Hex-encoded string representing the byte-reversed hash of the funding + transaction. + */ + string funding_txid_str = 2; + } + + // The index of the output of the funding transaction + uint32 output_index = 3; +} + +message OutPoint { + // Raw bytes representing the transaction id. + bytes txid_bytes = 1; + + // Reversed, hex-encoded string representing the transaction id. + string txid_str = 2; + + // The index of the output on the transaction. + uint32 output_index = 3; +} + +message PreviousOutPoint { + // The outpoint in format txid:n. + string outpoint = 1; + + // Denotes if the outpoint is controlled by the internal wallet. + // The flag will only detect p2wkh, np2wkh and p2tr inputs as its own. + bool is_our_output = 2; +} + +message LightningAddress { + // The identity pubkey of the Lightning node. + string pubkey = 1; + + // The network location of the lightning node, e.g. `69.69.69.69:1337` or + // `localhost:10011`. + string host = 2; +} + +message EstimateFeeRequest { + // The map from addresses to amounts for the transaction. + map AddrToAmount = 1; + + // The target number of blocks that this transaction should be confirmed + // by. + int32 target_conf = 2; + + // The minimum number of confirmations each one of your outputs used for + // the transaction must satisfy. + int32 min_confs = 3; + + // Whether unconfirmed outputs should be used as inputs for the transaction. + bool spend_unconfirmed = 4; +} + +message EstimateFeeResponse { + // The total fee in satoshis. + int64 fee_sat = 1; + + // Deprecated, use sat_per_vbyte. + // The fee rate in satoshi/vbyte. + int64 feerate_sat_per_byte = 2 [deprecated = true]; + + // The fee rate in satoshi/vbyte. + uint64 sat_per_vbyte = 3; +} + +message SendManyRequest { + // The map from addresses to amounts + map AddrToAmount = 1; + + // The target number of blocks that this transaction should be confirmed + // by. + int32 target_conf = 3; + + // A manual fee rate set in sat/vbyte that should be used when crafting the + // transaction. + uint64 sat_per_vbyte = 4; + + // Deprecated, use sat_per_vbyte. + // A manual fee rate set in sat/vbyte that should be used when crafting the + // transaction. + int64 sat_per_byte = 5 [deprecated = true]; + + // An optional label for the transaction, limited to 500 characters. + string label = 6; + + // The minimum number of confirmations each one of your outputs used for + // the transaction must satisfy. + int32 min_confs = 7; + + // Whether unconfirmed outputs should be used as inputs for the transaction. + bool spend_unconfirmed = 8; +} +message SendManyResponse { + // The id of the transaction + string txid = 1; +} + +message SendCoinsRequest { + // The address to send coins to + string addr = 1; + + // The amount in satoshis to send + int64 amount = 2; + + // The target number of blocks that this transaction should be confirmed + // by. + int32 target_conf = 3; + + // A manual fee rate set in sat/vbyte that should be used when crafting the + // transaction. + uint64 sat_per_vbyte = 4; + + // Deprecated, use sat_per_vbyte. + // A manual fee rate set in sat/vbyte that should be used when crafting the + // transaction. + int64 sat_per_byte = 5 [deprecated = true]; + + /* + If set, then the amount field will be ignored, and lnd will attempt to + send all the coins under control of the internal wallet to the specified + address. + */ + bool send_all = 6; + + // An optional label for the transaction, limited to 500 characters. + string label = 7; + + // The minimum number of confirmations each one of your outputs used for + // the transaction must satisfy. + int32 min_confs = 8; + + // Whether unconfirmed outputs should be used as inputs for the transaction. + bool spend_unconfirmed = 9; +} +message SendCoinsResponse { + // The transaction ID of the transaction + string txid = 1; +} + +message ListUnspentRequest { + // The minimum number of confirmations to be included. + int32 min_confs = 1; + + // The maximum number of confirmations to be included. + int32 max_confs = 2; + + // An optional filter to only include outputs belonging to an account. + string account = 3; +} +message ListUnspentResponse { + // A list of utxos + repeated Utxo utxos = 1; +} + +/* +`AddressType` has to be one of: + +- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0) +- `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1) +- `p2tr`: Pay to taproot pubkey (`TAPROOT_PUBKEY` = 4) +*/ +enum AddressType { + WITNESS_PUBKEY_HASH = 0; + NESTED_PUBKEY_HASH = 1; + UNUSED_WITNESS_PUBKEY_HASH = 2; + UNUSED_NESTED_PUBKEY_HASH = 3; + TAPROOT_PUBKEY = 4; + UNUSED_TAPROOT_PUBKEY = 5; +} + +message NewAddressRequest { + // The type of address to generate. + AddressType type = 1; + + /* + The name of the account to generate a new address for. If empty, the + default wallet account is used. + */ + string account = 2; +} +message NewAddressResponse { + // The newly generated wallet address + string address = 1; +} + +message SignMessageRequest { + /* + The message to be signed. When using REST, this field must be encoded as + base64. + */ + bytes msg = 1; + + /* + Instead of the default double-SHA256 hashing of the message before signing, + only use one round of hashing instead. + */ + bool single_hash = 2; +} +message SignMessageResponse { + // The signature for the given message + string signature = 1; +} + +message VerifyMessageRequest { + /* + The message over which the signature is to be verified. When using REST, + this field must be encoded as base64. + */ + bytes msg = 1; + + // The signature to be verified over the given message + string signature = 2; +} +message VerifyMessageResponse { + // Whether the signature was valid over the given message + bool valid = 1; + + // The pubkey recovered from the signature + string pubkey = 2; +} + +message ConnectPeerRequest { + /* + Lightning address of the peer to connect to. + */ + LightningAddress addr = 1; + + /* + If set, the daemon will attempt to persistently connect to the target + peer. Otherwise, the call will be synchronous. + */ + bool perm = 2; + + /* + The connection timeout value (in seconds) for this request. It won't affect + other requests. + */ + uint64 timeout = 3; +} +message ConnectPeerResponse { +} + +message DisconnectPeerRequest { + // The pubkey of the node to disconnect from + string pub_key = 1; +} +message DisconnectPeerResponse { +} + +message HTLC { + bool incoming = 1; + int64 amount = 2; + bytes hash_lock = 3; + uint32 expiration_height = 4; + + // Index identifying the htlc on the channel. + uint64 htlc_index = 5; + + // If this HTLC is involved in a forwarding operation, this field indicates + // the forwarding channel. For an outgoing htlc, it is the incoming channel. + // For an incoming htlc, it is the outgoing channel. When the htlc + // originates from this node or this node is the final destination, + // forwarding_channel will be zero. The forwarding channel will also be zero + // for htlcs that need to be forwarded but don't have a forwarding decision + // persisted yet. + uint64 forwarding_channel = 6; + + // Index identifying the htlc on the forwarding channel. + uint64 forwarding_htlc_index = 7; +} + +enum CommitmentType { + /* + Returned when the commitment type isn't known or unavailable. + */ + UNKNOWN_COMMITMENT_TYPE = 0; + + /* + A channel using the legacy commitment format having tweaked to_remote + keys. + */ + LEGACY = 1; + + /* + A channel that uses the modern commitment format where the key in the + output of the remote party does not change each state. This makes back + up and recovery easier as when the channel is closed, the funds go + directly to that key. + */ + STATIC_REMOTE_KEY = 2; + + /* + A channel that uses a commitment format that has anchor outputs on the + commitments, allowing fee bumping after a force close transaction has + been broadcast. + */ + ANCHORS = 3; + + /* + A channel that uses a commitment type that builds upon the anchors + commitment format, but in addition requires a CLTV clause to spend outputs + paying to the channel initiator. This is intended for use on leased channels + to guarantee that the channel initiator has no incentives to close a leased + channel before its maturity date. + */ + SCRIPT_ENFORCED_LEASE = 4; +} + +message ChannelConstraints { + /* + The CSV delay expressed in relative blocks. If the channel is force closed, + we will need to wait for this many blocks before we can regain our funds. + */ + uint32 csv_delay = 1; + + // The minimum satoshis this node is required to reserve in its balance. + uint64 chan_reserve_sat = 2; + + // The dust limit (in satoshis) of the initiator's commitment tx. + uint64 dust_limit_sat = 3; + + // The maximum amount of coins in millisatoshis that can be pending in this + // channel. + uint64 max_pending_amt_msat = 4; + + // The smallest HTLC in millisatoshis that the initiator will accept. + uint64 min_htlc_msat = 5; + + // The total number of incoming HTLC's that the initiator will accept. + uint32 max_accepted_htlcs = 6; +} + +message Channel { + // Whether this channel is active or not + bool active = 1; + + // The identity pubkey of the remote node + string remote_pubkey = 2; + + /* + The outpoint (txid:index) of the funding transaction. With this value, Bob + will be able to generate a signature for Alice's version of the commitment + transaction. + */ + string channel_point = 3; + + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 chan_id = 4 [jstype = JS_STRING]; + + // The total amount of funds held in this channel + int64 capacity = 5; + + // This node's current balance in this channel + int64 local_balance = 6; + + // The counterparty's current balance in this channel + int64 remote_balance = 7; + + /* + The amount calculated to be paid in fees for the current set of commitment + transactions. The fee amount is persisted with the channel in order to + allow the fee amount to be removed and recalculated with each channel state + update, including updates that happen after a system restart. + */ + int64 commit_fee = 8; + + // The weight of the commitment transaction + int64 commit_weight = 9; + + /* + The required number of satoshis per kilo-weight that the requester will pay + at all times, for both the funding transaction and commitment transaction. + This value can later be updated once the channel is open. + */ + int64 fee_per_kw = 10; + + // The unsettled balance in this channel + int64 unsettled_balance = 11; + + /* + The total number of satoshis we've sent within this channel. + */ + int64 total_satoshis_sent = 12; + + /* + The total number of satoshis we've received within this channel. + */ + int64 total_satoshis_received = 13; + + /* + The total number of updates conducted within this channel. + */ + uint64 num_updates = 14; + + /* + The list of active, uncleared HTLCs currently pending within the channel. + */ + repeated HTLC pending_htlcs = 15; + + /* + Deprecated. The CSV delay expressed in relative blocks. If the channel is + force closed, we will need to wait for this many blocks before we can regain + our funds. + */ + uint32 csv_delay = 16 [deprecated = true]; + + // Whether this channel is advertised to the network or not. + bool private = 17; + + // True if we were the ones that created the channel. + bool initiator = 18; + + // A set of flags showing the current state of the channel. + string chan_status_flags = 19; + + // Deprecated. The minimum satoshis this node is required to reserve in its + // balance. + int64 local_chan_reserve_sat = 20 [deprecated = true]; + + /* + Deprecated. The minimum satoshis the other node is required to reserve in + its balance. + */ + int64 remote_chan_reserve_sat = 21 [deprecated = true]; + + // Deprecated. Use commitment_type. + bool static_remote_key = 22 [deprecated = true]; + + // The commitment type used by this channel. + CommitmentType commitment_type = 26; + + /* + The number of seconds that the channel has been monitored by the channel + scoring system. Scores are currently not persisted, so this value may be + less than the lifetime of the channel [EXPERIMENTAL]. + */ + int64 lifetime = 23; + + /* + The number of seconds that the remote peer has been observed as being online + by the channel scoring system over the lifetime of the channel + [EXPERIMENTAL]. + */ + int64 uptime = 24; + + /* + Close address is the address that we will enforce payout to on cooperative + close if the channel was opened utilizing option upfront shutdown. This + value can be set on channel open by setting close_address in an open channel + request. If this value is not set, you can still choose a payout address by + cooperatively closing with the delivery_address field set. + */ + string close_address = 25; + + /* + The amount that the initiator of the channel optionally pushed to the remote + party on channel open. This amount will be zero if the channel initiator did + not push any funds to the remote peer. If the initiator field is true, we + pushed this amount to our peer, if it is false, the remote peer pushed this + amount to us. + */ + uint64 push_amount_sat = 27; + + /* + This uint32 indicates if this channel is to be considered 'frozen'. A + frozen channel doest not allow a cooperative channel close by the + initiator. The thaw_height is the height that this restriction stops + applying to the channel. This field is optional, not setting it or using a + value of zero will mean the channel has no additional restrictions. The + height can be interpreted in two ways: as a relative height if the value is + less than 500,000, or as an absolute height otherwise. + */ + uint32 thaw_height = 28; + + // List constraints for the local node. + ChannelConstraints local_constraints = 29; + + // List constraints for the remote node. + ChannelConstraints remote_constraints = 30; + + /* + This lists out the set of alias short channel ids that exist for a channel. + This may be empty. + */ + repeated uint64 alias_scids = 31; + + // Whether or not this is a zero-conf channel. + bool zero_conf = 32; + + // This is the confirmed / on-chain zero-conf SCID. + uint64 zero_conf_confirmed_scid = 33; + + // The configured alias name of our peer. + string peer_alias = 34; +} + +message ListChannelsRequest { + bool active_only = 1; + bool inactive_only = 2; + bool public_only = 3; + bool private_only = 4; + + /* + Filters the response for channels with a target peer's pubkey. If peer is + empty, all channels will be returned. + */ + bytes peer = 5; + + // Informs the server if the peer alias lookup per channel should be + // enabled. It is turned off by default in order to avoid degradation of + // performance for existing clients. + bool peer_alias_lookup = 6; +} +message ListChannelsResponse { + // The list of active channels + repeated Channel channels = 11; +} + +message AliasMap { + /* + For non-zero-conf channels, this is the confirmed SCID. Otherwise, this is + the first assigned "base" alias. + */ + uint64 base_scid = 1; + + // The set of all aliases stored for the base SCID. + repeated uint64 aliases = 2; +} +message ListAliasesRequest { +} +message ListAliasesResponse { + repeated AliasMap alias_maps = 1; +} + +enum Initiator { + INITIATOR_UNKNOWN = 0; + INITIATOR_LOCAL = 1; + INITIATOR_REMOTE = 2; + INITIATOR_BOTH = 3; +} + +message ChannelCloseSummary { + // The outpoint (txid:index) of the funding transaction. + string channel_point = 1; + + // The unique channel ID for the channel. + uint64 chan_id = 2 [jstype = JS_STRING]; + + // The hash of the genesis block that this channel resides within. + string chain_hash = 3; + + // The txid of the transaction which ultimately closed this channel. + string closing_tx_hash = 4; + + // Public key of the remote peer that we formerly had a channel with. + string remote_pubkey = 5; + + // Total capacity of the channel. + int64 capacity = 6; + + // Height at which the funding transaction was spent. + uint32 close_height = 7; + + // Settled balance at the time of channel closure + int64 settled_balance = 8; + + // The sum of all the time-locked outputs at the time of channel closure + int64 time_locked_balance = 9; + + enum ClosureType { + COOPERATIVE_CLOSE = 0; + LOCAL_FORCE_CLOSE = 1; + REMOTE_FORCE_CLOSE = 2; + BREACH_CLOSE = 3; + FUNDING_CANCELED = 4; + ABANDONED = 5; + } + + // Details on how the channel was closed. + ClosureType close_type = 10; + + /* + Open initiator is the party that initiated opening the channel. Note that + this value may be unknown if the channel was closed before we migrated to + store open channel information after close. + */ + Initiator open_initiator = 11; + + /* + Close initiator indicates which party initiated the close. This value will + be unknown for channels that were cooperatively closed before we started + tracking cooperative close initiators. Note that this indicates which party + initiated a close, and it is possible for both to initiate cooperative or + force closes, although only one party's close will be confirmed on chain. + */ + Initiator close_initiator = 12; + + repeated Resolution resolutions = 13; + + /* + This lists out the set of alias short channel ids that existed for the + closed channel. This may be empty. + */ + repeated uint64 alias_scids = 14; + + // The confirmed SCID for a zero-conf channel. + uint64 zero_conf_confirmed_scid = 15 [jstype = JS_STRING]; +} + +enum ResolutionType { + TYPE_UNKNOWN = 0; + + // We resolved an anchor output. + ANCHOR = 1; + + /* + We are resolving an incoming htlc on chain. This if this htlc is + claimed, we swept the incoming htlc with the preimage. If it is timed + out, our peer swept the timeout path. + */ + INCOMING_HTLC = 2; + + /* + We are resolving an outgoing htlc on chain. If this htlc is claimed, + the remote party swept the htlc with the preimage. If it is timed out, + we swept it with the timeout path. + */ + OUTGOING_HTLC = 3; + + // We force closed and need to sweep our time locked commitment output. + COMMIT = 4; +} + +enum ResolutionOutcome { + // Outcome unknown. + OUTCOME_UNKNOWN = 0; + + // An output was claimed on chain. + CLAIMED = 1; + + // An output was left unclaimed on chain. + UNCLAIMED = 2; + + /* + ResolverOutcomeAbandoned indicates that an output that we did not + claim on chain, for example an anchor that we did not sweep and a + third party claimed on chain, or a htlc that we could not decode + so left unclaimed. + */ + ABANDONED = 3; + + /* + If we force closed our channel, our htlcs need to be claimed in two + stages. This outcome represents the broadcast of a timeout or success + transaction for this two stage htlc claim. + */ + FIRST_STAGE = 4; + + // A htlc was timed out on chain. + TIMEOUT = 5; +} + +message Resolution { + // The type of output we are resolving. + ResolutionType resolution_type = 1; + + // The outcome of our on chain action that resolved the outpoint. + ResolutionOutcome outcome = 2; + + // The outpoint that was spent by the resolution. + OutPoint outpoint = 3; + + // The amount that was claimed by the resolution. + uint64 amount_sat = 4; + + // The hex-encoded transaction ID of the sweep transaction that spent the + // output. + string sweep_txid = 5; +} + +message ClosedChannelsRequest { + bool cooperative = 1; + bool local_force = 2; + bool remote_force = 3; + bool breach = 4; + bool funding_canceled = 5; + bool abandoned = 6; +} + +message ClosedChannelsResponse { + repeated ChannelCloseSummary channels = 1; +} + +message Peer { + // The identity pubkey of the peer + string pub_key = 1; + + // Network address of the peer; eg `127.0.0.1:10011` + string address = 3; + + // Bytes of data transmitted to this peer + uint64 bytes_sent = 4; + + // Bytes of data transmitted from this peer + uint64 bytes_recv = 5; + + // Satoshis sent to this peer + int64 sat_sent = 6; + + // Satoshis received from this peer + int64 sat_recv = 7; + + // A channel is inbound if the counterparty initiated the channel + bool inbound = 8; + + // Ping time to this peer + int64 ping_time = 9; + + enum SyncType { + /* + Denotes that we cannot determine the peer's current sync type. + */ + UNKNOWN_SYNC = 0; + + /* + Denotes that we are actively receiving new graph updates from the peer. + */ + ACTIVE_SYNC = 1; + + /* + Denotes that we are not receiving new graph updates from the peer. + */ + PASSIVE_SYNC = 2; + + /* + Denotes that this peer is pinned into an active sync. + */ + PINNED_SYNC = 3; + } + + // The type of sync we are currently performing with this peer. + SyncType sync_type = 10; + + // Features advertised by the remote peer in their init message. + map features = 11; + + /* + The latest errors received from our peer with timestamps, limited to the 10 + most recent errors. These errors are tracked across peer connections, but + are not persisted across lnd restarts. Note that these errors are only + stored for peers that we have channels open with, to prevent peers from + spamming us with errors at no cost. + */ + repeated TimestampedError errors = 12; + + /* + The number of times we have recorded this peer going offline or coming + online, recorded across restarts. Note that this value is decreased over + time if the peer has not recently flapped, so that we can forgive peers + with historically high flap counts. + */ + int32 flap_count = 13; + + /* + The timestamp of the last flap we observed for this peer. If this value is + zero, we have not observed any flaps for this peer. + */ + int64 last_flap_ns = 14; + + /* + The last ping payload the peer has sent to us. + */ + bytes last_ping_payload = 15; +} + +message TimestampedError { + // The unix timestamp in seconds when the error occurred. + uint64 timestamp = 1; + + // The string representation of the error sent by our peer. + string error = 2; +} + +message ListPeersRequest { + /* + If true, only the last error that our peer sent us will be returned with + the peer's information, rather than the full set of historic errors we have + stored. + */ + bool latest_error = 1; +} +message ListPeersResponse { + // The list of currently connected peers + repeated Peer peers = 1; +} + +message PeerEventSubscription { +} + +message PeerEvent { + // The identity pubkey of the peer. + string pub_key = 1; + + enum EventType { + PEER_ONLINE = 0; + PEER_OFFLINE = 1; + } + + EventType type = 2; +} + +message GetInfoRequest { +} +message GetInfoResponse { + // The version of the LND software that the node is running. + string version = 14; + + // The SHA1 commit hash that the daemon is compiled with. + string commit_hash = 20; + + // The identity pubkey of the current node. + string identity_pubkey = 1; + + // If applicable, the alias of the current node, e.g. "bob" + string alias = 2; + + // The color of the current node in hex code format + string color = 17; + + // Number of pending channels + uint32 num_pending_channels = 3; + + // Number of active channels + uint32 num_active_channels = 4; + + // Number of inactive channels + uint32 num_inactive_channels = 15; + + // Number of peers + uint32 num_peers = 5; + + // The node's current view of the height of the best block + uint32 block_height = 6; + + // The node's current view of the hash of the best block + string block_hash = 8; + + // Timestamp of the block best known to the wallet + int64 best_header_timestamp = 13; + + // Whether the wallet's view is synced to the main chain + bool synced_to_chain = 9; + + // Whether we consider ourselves synced with the public channel graph. + bool synced_to_graph = 18; + + /* + Whether the current node is connected to testnet. This field is + deprecated and the network field should be used instead + **/ + bool testnet = 10 [deprecated = true]; + + reserved 11; + + // A list of active chains the node is connected to + repeated Chain chains = 16; + + // The URIs of the current node. + repeated string uris = 12; + + /* + Features that our node has advertised in our init message, node + announcements and invoices. + */ + map features = 19; + + /* + Indicates whether the HTLC interceptor API is in always-on mode. + */ + bool require_htlc_interceptor = 21; + + // Indicates whether final htlc resolutions are stored on disk. + bool store_final_htlc_resolutions = 22; +} + +message GetRecoveryInfoRequest { +} +message GetRecoveryInfoResponse { + // Whether the wallet is in recovery mode + bool recovery_mode = 1; + + // Whether the wallet recovery progress is finished + bool recovery_finished = 2; + + // The recovery progress, ranging from 0 to 1. + double progress = 3; +} + +message Chain { + // The blockchain the node is on (eg bitcoin, litecoin) + string chain = 1; + + // The network the node is on (eg regtest, testnet, mainnet) + string network = 2; +} + +message ConfirmationUpdate { + bytes block_sha = 1; + int32 block_height = 2; + + uint32 num_confs_left = 3; +} + +message ChannelOpenUpdate { + ChannelPoint channel_point = 1; +} + +message ChannelCloseUpdate { + bytes closing_txid = 1; + + bool success = 2; +} + +message CloseChannelRequest { + /* + The outpoint (txid:index) of the funding transaction. With this value, Bob + will be able to generate a signature for Alice's version of the commitment + transaction. + */ + ChannelPoint channel_point = 1; + + // If true, then the channel will be closed forcibly. This means the + // current commitment transaction will be signed and broadcast. + bool force = 2; + + // The target number of blocks that the closure transaction should be + // confirmed by. + int32 target_conf = 3; + + // Deprecated, use sat_per_vbyte. + // A manual fee rate set in sat/vbyte that should be used when crafting the + // closure transaction. + int64 sat_per_byte = 4 [deprecated = true]; + + /* + An optional address to send funds to in the case of a cooperative close. + If the channel was opened with an upfront shutdown script and this field + is set, the request to close will fail because the channel must pay out + to the upfront shutdown addresss. + */ + string delivery_address = 5; + + // A manual fee rate set in sat/vbyte that should be used when crafting the + // closure transaction. + uint64 sat_per_vbyte = 6; + + // The maximum fee rate the closer is willing to pay. + // + // NOTE: This field is only respected if we're the initiator of the channel. + uint64 max_fee_per_vbyte = 7; +} + +message CloseStatusUpdate { + oneof update { + PendingUpdate close_pending = 1; + ChannelCloseUpdate chan_close = 3; + } +} + +message PendingUpdate { + bytes txid = 1; + uint32 output_index = 2; +} + +message ReadyForPsbtFunding { + /* + The P2WSH address of the channel funding multisig address that the below + specified amount in satoshis needs to be sent to. + */ + string funding_address = 1; + + /* + The exact amount in satoshis that needs to be sent to the above address to + fund the pending channel. + */ + int64 funding_amount = 2; + + /* + A raw PSBT that contains the pending channel output. If a base PSBT was + provided in the PsbtShim, this is the base PSBT with one additional output. + If no base PSBT was specified, this is an otherwise empty PSBT with exactly + one output. + */ + bytes psbt = 3; +} + +message BatchOpenChannelRequest { + // The list of channels to open. + repeated BatchOpenChannel channels = 1; + + // The target number of blocks that the funding transaction should be + // confirmed by. + int32 target_conf = 2; + + // A manual fee rate set in sat/vByte that should be used when crafting the + // funding transaction. + int64 sat_per_vbyte = 3; + + // The minimum number of confirmations each one of your outputs used for + // the funding transaction must satisfy. + int32 min_confs = 4; + + // Whether unconfirmed outputs should be used as inputs for the funding + // transaction. + bool spend_unconfirmed = 5; + + // An optional label for the batch transaction, limited to 500 characters. + string label = 6; +} + +message BatchOpenChannel { + // The pubkey of the node to open a channel with. When using REST, this + // field must be encoded as base64. + bytes node_pubkey = 1; + + // The number of satoshis the wallet should commit to the channel. + int64 local_funding_amount = 2; + + // The number of satoshis to push to the remote side as part of the initial + // commitment state. + int64 push_sat = 3; + + // Whether this channel should be private, not announced to the greater + // network. + bool private = 4; + + // The minimum value in millisatoshi we will require for incoming HTLCs on + // the channel. + int64 min_htlc_msat = 5; + + // The delay we require on the remote's commitment transaction. If this is + // not set, it will be scaled automatically with the channel size. + uint32 remote_csv_delay = 6; + + /* + Close address is an optional address which specifies the address to which + funds should be paid out to upon cooperative close. This field may only be + set if the peer supports the option upfront feature bit (call listpeers + to check). The remote peer will only accept cooperative closes to this + address if it is set. + + Note: If this value is set on channel creation, you will *not* be able to + cooperatively close out to a different address. + */ + string close_address = 7; + + /* + An optional, unique identifier of 32 random bytes that will be used as the + pending channel ID to identify the channel while it is in the pre-pending + state. + */ + bytes pending_chan_id = 8; + + /* + The explicit commitment type to use. Note this field will only be used if + the remote peer supports explicit channel negotiation. + */ + CommitmentType commitment_type = 9; +} + +message BatchOpenChannelResponse { + repeated PendingUpdate pending_channels = 1; +} + +message OpenChannelRequest { + // A manual fee rate set in sat/vbyte that should be used when crafting the + // funding transaction. + uint64 sat_per_vbyte = 1; + + /* + The pubkey of the node to open a channel with. When using REST, this field + must be encoded as base64. + */ + bytes node_pubkey = 2; + + /* + The hex encoded pubkey of the node to open a channel with. Deprecated now + that the REST gateway supports base64 encoding of bytes fields. + */ + string node_pubkey_string = 3 [deprecated = true]; + + // The number of satoshis the wallet should commit to the channel + int64 local_funding_amount = 4; + + // The number of satoshis to push to the remote side as part of the initial + // commitment state + int64 push_sat = 5; + + // The target number of blocks that the funding transaction should be + // confirmed by. + int32 target_conf = 6; + + // Deprecated, use sat_per_vbyte. + // A manual fee rate set in sat/vbyte that should be used when crafting the + // funding transaction. + int64 sat_per_byte = 7 [deprecated = true]; + + // Whether this channel should be private, not announced to the greater + // network. + bool private = 8; + + // The minimum value in millisatoshi we will require for incoming HTLCs on + // the channel. + int64 min_htlc_msat = 9; + + // The delay we require on the remote's commitment transaction. If this is + // not set, it will be scaled automatically with the channel size. + uint32 remote_csv_delay = 10; + + // The minimum number of confirmations each one of your outputs used for + // the funding transaction must satisfy. + int32 min_confs = 11; + + // Whether unconfirmed outputs should be used as inputs for the funding + // transaction. + bool spend_unconfirmed = 12; + + /* + Close address is an optional address which specifies the address to which + funds should be paid out to upon cooperative close. This field may only be + set if the peer supports the option upfront feature bit (call listpeers + to check). The remote peer will only accept cooperative closes to this + address if it is set. + + Note: If this value is set on channel creation, you will *not* be able to + cooperatively close out to a different address. + */ + string close_address = 13; + + /* + Funding shims are an optional argument that allow the caller to intercept + certain funding functionality. For example, a shim can be provided to use a + particular key for the commitment key (ideally cold) rather than use one + that is generated by the wallet as normal, or signal that signing will be + carried out in an interactive manner (PSBT based). + */ + FundingShim funding_shim = 14; + + /* + The maximum amount of coins in millisatoshi that can be pending within + the channel. It only applies to the remote party. + */ + uint64 remote_max_value_in_flight_msat = 15; + + /* + The maximum number of concurrent HTLCs we will allow the remote party to add + to the commitment transaction. + */ + uint32 remote_max_htlcs = 16; + + /* + Max local csv is the maximum csv delay we will allow for our own commitment + transaction. + */ + uint32 max_local_csv = 17; + + /* + The explicit commitment type to use. Note this field will only be used if + the remote peer supports explicit channel negotiation. + */ + CommitmentType commitment_type = 18; + + /* + If this is true, then a zero-conf channel open will be attempted. + */ + bool zero_conf = 19; + + /* + If this is true, then an option-scid-alias channel-type open will be + attempted. + */ + bool scid_alias = 20; + + /* + The base fee charged regardless of the number of milli-satoshis sent. + */ + uint64 base_fee = 21; + + /* + The fee rate in ppm (parts per million) that will be charged in + proportion of the value of each forwarded HTLC. + */ + uint64 fee_rate = 22; + + /* + If use_base_fee is true the open channel announcement will update the + channel base fee with the value specified in base_fee. In the case of + a base_fee of 0 use_base_fee is needed downstream to distinguish whether + to use the default base fee value specified in the config or 0. + */ + bool use_base_fee = 23; + + /* + If use_fee_rate is true the open channel announcement will update the + channel fee rate with the value specified in fee_rate. In the case of + a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether + to use the default fee rate value specified in the config or 0. + */ + bool use_fee_rate = 24; + + /* + The number of satoshis we require the remote peer to reserve. This value, + if specified, must be above the dust limit and below 20% of the channel + capacity. + */ + uint64 remote_chan_reserve_sat = 25; +} +message OpenStatusUpdate { + oneof update { + /* + Signals that the channel is now fully negotiated and the funding + transaction published. + */ + PendingUpdate chan_pending = 1; + + /* + Signals that the channel's funding transaction has now reached the + required number of confirmations on chain and can be used. + */ + ChannelOpenUpdate chan_open = 3; + + /* + Signals that the funding process has been suspended and the construction + of a PSBT that funds the channel PK script is now required. + */ + ReadyForPsbtFunding psbt_fund = 5; + } + + /* + The pending channel ID of the created channel. This value may be used to + further the funding flow manually via the FundingStateStep method. + */ + bytes pending_chan_id = 4; +} + +message KeyLocator { + // The family of key being identified. + int32 key_family = 1; + + // The precise index of the key being identified. + int32 key_index = 2; +} + +message KeyDescriptor { + /* + The raw bytes of the key being identified. + */ + bytes raw_key_bytes = 1; + + /* + The key locator that identifies which key to use for signing. + */ + KeyLocator key_loc = 2; +} + +message ChanPointShim { + /* + The size of the pre-crafted output to be used as the channel point for this + channel funding. + */ + int64 amt = 1; + + // The target channel point to refrence in created commitment transactions. + ChannelPoint chan_point = 2; + + // Our local key to use when creating the multi-sig output. + KeyDescriptor local_key = 3; + + // The key of the remote party to use when creating the multi-sig output. + bytes remote_key = 4; + + /* + If non-zero, then this will be used as the pending channel ID on the wire + protocol to initate the funding request. This is an optional field, and + should only be set if the responder is already expecting a specific pending + channel ID. + */ + bytes pending_chan_id = 5; + + /* + This uint32 indicates if this channel is to be considered 'frozen'. A frozen + channel does not allow a cooperative channel close by the initiator. The + thaw_height is the height that this restriction stops applying to the + channel. The height can be interpreted in two ways: as a relative height if + the value is less than 500,000, or as an absolute height otherwise. + */ + uint32 thaw_height = 6; +} + +message PsbtShim { + /* + A unique identifier of 32 random bytes that will be used as the pending + channel ID to identify the PSBT state machine when interacting with it and + on the wire protocol to initiate the funding request. + */ + bytes pending_chan_id = 1; + + /* + An optional base PSBT the new channel output will be added to. If this is + non-empty, it must be a binary serialized PSBT. + */ + bytes base_psbt = 2; + + /* + If a channel should be part of a batch (multiple channel openings in one + transaction), it can be dangerous if the whole batch transaction is + published too early before all channel opening negotiations are completed. + This flag prevents this particular channel from broadcasting the transaction + after the negotiation with the remote peer. In a batch of channel openings + this flag should be set to true for every channel but the very last. + */ + bool no_publish = 3; +} + +message FundingShim { + oneof shim { + /* + A channel shim where the channel point was fully constructed outside + of lnd's wallet and the transaction might already be published. + */ + ChanPointShim chan_point_shim = 1; + + /* + A channel shim that uses a PSBT to fund and sign the channel funding + transaction. + */ + PsbtShim psbt_shim = 2; + } +} + +message FundingShimCancel { + // The pending channel ID of the channel to cancel the funding shim for. + bytes pending_chan_id = 1; +} + +message FundingPsbtVerify { + /* + The funded but not yet signed PSBT that sends the exact channel capacity + amount to the PK script returned in the open channel message in a previous + step. + */ + bytes funded_psbt = 1; + + // The pending channel ID of the channel to get the PSBT for. + bytes pending_chan_id = 2; + + /* + Can only be used if the no_publish flag was set to true in the OpenChannel + call meaning that the caller is solely responsible for publishing the final + funding transaction. If skip_finalize is set to true then lnd will not wait + for a FundingPsbtFinalize state step and instead assumes that a transaction + with the same TXID as the passed in PSBT will eventually confirm. + IT IS ABSOLUTELY IMPERATIVE that the TXID of the transaction that is + eventually published does have the _same TXID_ as the verified PSBT. That + means no inputs or outputs can change, only signatures can be added. If the + TXID changes between this call and the publish step then the channel will + never be created and the funds will be in limbo. + */ + bool skip_finalize = 3; +} + +message FundingPsbtFinalize { + /* + The funded PSBT that contains all witness data to send the exact channel + capacity amount to the PK script returned in the open channel message in a + previous step. Cannot be set at the same time as final_raw_tx. + */ + bytes signed_psbt = 1; + + // The pending channel ID of the channel to get the PSBT for. + bytes pending_chan_id = 2; + + /* + As an alternative to the signed PSBT with all witness data, the final raw + wire format transaction can also be specified directly. Cannot be set at the + same time as signed_psbt. + */ + bytes final_raw_tx = 3; +} + +message FundingTransitionMsg { + oneof trigger { + /* + The funding shim to register. This should be used before any + channel funding has began by the remote party, as it is intended as a + preparatory step for the full channel funding. + */ + FundingShim shim_register = 1; + + // Used to cancel an existing registered funding shim. + FundingShimCancel shim_cancel = 2; + + /* + Used to continue a funding flow that was initiated to be executed + through a PSBT. This step verifies that the PSBT contains the correct + outputs to fund the channel. + */ + FundingPsbtVerify psbt_verify = 3; + + /* + Used to continue a funding flow that was initiated to be executed + through a PSBT. This step finalizes the funded and signed PSBT, finishes + negotiation with the peer and finally publishes the resulting funding + transaction. + */ + FundingPsbtFinalize psbt_finalize = 4; + } +} + +message FundingStateStepResp { +} + +message PendingHTLC { + // The direction within the channel that the htlc was sent + bool incoming = 1; + + // The total value of the htlc + int64 amount = 2; + + // The final output to be swept back to the user's wallet + string outpoint = 3; + + // The next block height at which we can spend the current stage + uint32 maturity_height = 4; + + /* + The number of blocks remaining until the current stage can be swept. + Negative values indicate how many blocks have passed since becoming + mature. + */ + int32 blocks_til_maturity = 5; + + // Indicates whether the htlc is in its first or second stage of recovery + uint32 stage = 6; +} + +message PendingChannelsRequest { +} +message PendingChannelsResponse { + message PendingChannel { + string remote_node_pub = 1; + string channel_point = 2; + + int64 capacity = 3; + + int64 local_balance = 4; + int64 remote_balance = 5; + + // The minimum satoshis this node is required to reserve in its + // balance. + int64 local_chan_reserve_sat = 6; + + /* + The minimum satoshis the other node is required to reserve in its + balance. + */ + int64 remote_chan_reserve_sat = 7; + + // The party that initiated opening the channel. + Initiator initiator = 8; + + // The commitment type used by this channel. + CommitmentType commitment_type = 9; + + // Total number of forwarding packages created in this channel. + int64 num_forwarding_packages = 10; + + // A set of flags showing the current state of the channel. + string chan_status_flags = 11; + + // Whether this channel is advertised to the network or not. + bool private = 12; + } + + message PendingOpenChannel { + // The pending channel + PendingChannel channel = 1; + + /* + The amount calculated to be paid in fees for the current set of + commitment transactions. The fee amount is persisted with the channel + in order to allow the fee amount to be removed and recalculated with + each channel state update, including updates that happen after a system + restart. + */ + int64 commit_fee = 4; + + // The weight of the commitment transaction + int64 commit_weight = 5; + + /* + The required number of satoshis per kilo-weight that the requester will + pay at all times, for both the funding transaction and commitment + transaction. This value can later be updated once the channel is open. + */ + int64 fee_per_kw = 6; + + // Previously used for confirmation_height. Do not reuse. + reserved 2; + } + + message WaitingCloseChannel { + // The pending channel waiting for closing tx to confirm + PendingChannel channel = 1; + + // The balance in satoshis encumbered in this channel + int64 limbo_balance = 2; + + /* + A list of valid commitment transactions. Any of these can confirm at + this point. + */ + Commitments commitments = 3; + + // The transaction id of the closing transaction + string closing_txid = 4; + } + + message Commitments { + // Hash of the local version of the commitment tx. + string local_txid = 1; + + // Hash of the remote version of the commitment tx. + string remote_txid = 2; + + // Hash of the remote pending version of the commitment tx. + string remote_pending_txid = 3; + + /* + The amount in satoshis calculated to be paid in fees for the local + commitment. + */ + uint64 local_commit_fee_sat = 4; + + /* + The amount in satoshis calculated to be paid in fees for the remote + commitment. + */ + uint64 remote_commit_fee_sat = 5; + + /* + The amount in satoshis calculated to be paid in fees for the remote + pending commitment. + */ + uint64 remote_pending_commit_fee_sat = 6; + } + + message ClosedChannel { + // The pending channel to be closed + PendingChannel channel = 1; + + // The transaction id of the closing transaction + string closing_txid = 2; + } + + message ForceClosedChannel { + // The pending channel to be force closed + PendingChannel channel = 1; + + // The transaction id of the closing transaction + string closing_txid = 2; + + // The balance in satoshis encumbered in this pending channel + int64 limbo_balance = 3; + + // The height at which funds can be swept into the wallet + uint32 maturity_height = 4; + + /* + Remaining # of blocks until the commitment output can be swept. + Negative values indicate how many blocks have passed since becoming + mature. + */ + int32 blocks_til_maturity = 5; + + // The total value of funds successfully recovered from this channel + int64 recovered_balance = 6; + + repeated PendingHTLC pending_htlcs = 8; + + /* + There are three resolution states for the anchor: + limbo, lost and recovered. Derive the current state + from the limbo and recovered balances. + */ + enum AnchorState { + // The recovered_balance is zero and limbo_balance is non-zero. + LIMBO = 0; + // The recovered_balance is non-zero. + RECOVERED = 1; + // A state that is neither LIMBO nor RECOVERED. + LOST = 2; + } + + AnchorState anchor = 9; + } + + // The balance in satoshis encumbered in pending channels + int64 total_limbo_balance = 1; + + // Channels pending opening + repeated PendingOpenChannel pending_open_channels = 2; + + /* + Deprecated: Channels pending closing previously contained cooperatively + closed channels with a single confirmation. These channels are now + considered closed from the time we see them on chain. + */ + repeated ClosedChannel pending_closing_channels = 3 [deprecated = true]; + + // Channels pending force closing + repeated ForceClosedChannel pending_force_closing_channels = 4; + + // Channels waiting for closing tx to confirm + repeated WaitingCloseChannel waiting_close_channels = 5; +} + +message ChannelEventSubscription { +} + +message ChannelEventUpdate { + oneof channel { + Channel open_channel = 1; + ChannelCloseSummary closed_channel = 2; + ChannelPoint active_channel = 3; + ChannelPoint inactive_channel = 4; + PendingUpdate pending_open_channel = 6; + ChannelPoint fully_resolved_channel = 7; + } + + enum UpdateType { + OPEN_CHANNEL = 0; + CLOSED_CHANNEL = 1; + ACTIVE_CHANNEL = 2; + INACTIVE_CHANNEL = 3; + PENDING_OPEN_CHANNEL = 4; + FULLY_RESOLVED_CHANNEL = 5; + } + + UpdateType type = 5; +} + +message WalletAccountBalance { + // The confirmed balance of the account (with >= 1 confirmations). + int64 confirmed_balance = 1; + + // The unconfirmed balance of the account (with 0 confirmations). + int64 unconfirmed_balance = 2; +} + +message WalletBalanceRequest { +} + +message WalletBalanceResponse { + // The balance of the wallet + int64 total_balance = 1; + + // The confirmed balance of a wallet(with >= 1 confirmations) + int64 confirmed_balance = 2; + + // The unconfirmed balance of a wallet(with 0 confirmations) + int64 unconfirmed_balance = 3; + + // The total amount of wallet UTXOs held in outputs that are locked for + // other usage. + int64 locked_balance = 5; + + // The amount of reserve required. + int64 reserved_balance_anchor_chan = 6; + + // A mapping of each wallet account's name to its balance. + map account_balance = 4; +} + +message Amount { + // Value denominated in satoshis. + uint64 sat = 1; + + // Value denominated in milli-satoshis. + uint64 msat = 2; +} + +message ChannelBalanceRequest { +} +message ChannelBalanceResponse { + // Deprecated. Sum of channels balances denominated in satoshis + int64 balance = 1 [deprecated = true]; + + // Deprecated. Sum of channels pending balances denominated in satoshis + int64 pending_open_balance = 2 [deprecated = true]; + + // Sum of channels local balances. + Amount local_balance = 3; + + // Sum of channels remote balances. + Amount remote_balance = 4; + + // Sum of channels local unsettled balances. + Amount unsettled_local_balance = 5; + + // Sum of channels remote unsettled balances. + Amount unsettled_remote_balance = 6; + + // Sum of channels pending local balances. + Amount pending_open_local_balance = 7; + + // Sum of channels pending remote balances. + Amount pending_open_remote_balance = 8; +} + +message QueryRoutesRequest { + // The 33-byte hex-encoded public key for the payment destination + string pub_key = 1; + + /* + The amount to send expressed in satoshis. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt = 2; + + /* + The amount to send expressed in millisatoshis. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt_msat = 12; + + reserved 3; + + /* + An optional CLTV delta from the current height that should be used for the + timelock of the final hop. Note that unlike SendPayment, QueryRoutes does + not add any additional block padding on top of final_ctlv_delta. This + padding of a few blocks needs to be added manually or otherwise failures may + happen when a block comes in while the payment is in flight. + */ + int32 final_cltv_delta = 4; + + /* + The maximum number of satoshis that will be paid as a fee of the payment. + This value can be represented either as a percentage of the amount being + sent, or as a fixed amount of the maximum fee the user is willing the pay to + send the payment. If not specified, lnd will use a default value of 100% + fees for small amounts (<=1k sat) or 5% fees for larger amounts. + */ + FeeLimit fee_limit = 5; + + /* + A list of nodes to ignore during path finding. When using REST, these fields + must be encoded as base64. + */ + repeated bytes ignored_nodes = 6; + + /* + Deprecated. A list of edges to ignore during path finding. + */ + repeated EdgeLocator ignored_edges = 7 [deprecated = true]; + + /* + The source node where the request route should originated from. If empty, + self is assumed. + */ + string source_pub_key = 8; + + /* + If set to true, edge probabilities from mission control will be used to get + the optimal route. + */ + bool use_mission_control = 9; + + /* + A list of directed node pairs that will be ignored during path finding. + */ + repeated NodePair ignored_pairs = 10; + + /* + An optional maximum total time lock for the route. If the source is empty or + ourselves, this should not exceed lnd's `--max-cltv-expiry` setting. If + zero, then the value of `--max-cltv-expiry` is used as the limit. + */ + uint32 cltv_limit = 11; + + /* + An optional field that can be used to pass an arbitrary set of TLV records + to a peer which understands the new records. This can be used to pass + application specific data during the payment attempt. If the destination + does not support the specified records, an error will be returned. + Record types are required to be in the custom range >= 65536. When using + REST, the values must be encoded as base64. + */ + map dest_custom_records = 13; + + /* + The channel id of the channel that must be taken to the first hop. If zero, + any channel may be used. + */ + uint64 outgoing_chan_id = 14 [jstype = JS_STRING]; + + /* + The pubkey of the last hop of the route. If empty, any hop may be used. + */ + bytes last_hop_pubkey = 15; + + /* + Optional route hints to reach the destination through private channels. + */ + repeated lnrpc.RouteHint route_hints = 16; + + /* + Features assumed to be supported by the final node. All transitive feature + dependencies must also be set properly. For a given feature bit pair, either + optional or remote may be set, but not both. If this field is nil or empty, + the router will try to load destination features from the graph as a + fallback. + */ + repeated lnrpc.FeatureBit dest_features = 17; + + /* + The time preference for this payment. Set to -1 to optimize for fees + only, to 1 to optimize for reliability only or a value inbetween for a mix. + */ + double time_pref = 18; +} + +message NodePair { + /* + The sending node of the pair. When using REST, this field must be encoded as + base64. + */ + bytes from = 1; + + /* + The receiving node of the pair. When using REST, this field must be encoded + as base64. + */ + bytes to = 2; +} + +message EdgeLocator { + // The short channel id of this edge. + uint64 channel_id = 1 [jstype = JS_STRING]; + + /* + The direction of this edge. If direction_reverse is false, the direction + of this edge is from the channel endpoint with the lexicographically smaller + pub key to the endpoint with the larger pub key. If direction_reverse is + is true, the edge goes the other way. + */ + bool direction_reverse = 2; +} + +message QueryRoutesResponse { + /* + The route that results from the path finding operation. This is still a + repeated field to retain backwards compatibility. + */ + repeated Route routes = 1; + + /* + The success probability of the returned route based on the current mission + control state. [EXPERIMENTAL] + */ + double success_prob = 2; +} + +message Hop { + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 chan_id = 1 [jstype = JS_STRING]; + int64 chan_capacity = 2 [deprecated = true]; + int64 amt_to_forward = 3 [deprecated = true]; + int64 fee = 4 [deprecated = true]; + uint32 expiry = 5; + int64 amt_to_forward_msat = 6; + int64 fee_msat = 7; + + /* + An optional public key of the hop. If the public key is given, the payment + can be executed without relying on a copy of the channel graph. + */ + string pub_key = 8; + + /* + If set to true, then this hop will be encoded using the new variable length + TLV format. Note that if any custom tlv_records below are specified, then + this field MUST be set to true for them to be encoded properly. + */ + bool tlv_payload = 9 [deprecated = true]; + + /* + An optional TLV record that signals the use of an MPP payment. If present, + the receiver will enforce that the same mpp_record is included in the final + hop payload of all non-zero payments in the HTLC set. If empty, a regular + single-shot payment is or was attempted. + */ + MPPRecord mpp_record = 10; + + /* + An optional TLV record that signals the use of an AMP payment. If present, + the receiver will treat all received payments including the same + (payment_addr, set_id) pair as being part of one logical payment. The + payment will be settled by XORing the root_share's together and deriving the + child hashes and preimages according to BOLT XX. Must be used in conjunction + with mpp_record. + */ + AMPRecord amp_record = 12; + + /* + An optional set of key-value TLV records. This is useful within the context + of the SendToRoute call as it allows callers to specify arbitrary K-V pairs + to drop off at each hop within the onion. + */ + map custom_records = 11; + + // The payment metadata to send along with the payment to the payee. + bytes metadata = 13; +} + +message MPPRecord { + /* + A unique, random identifier used to authenticate the sender as the intended + payer of a multi-path payment. The payment_addr must be the same for all + subpayments, and match the payment_addr provided in the receiver's invoice. + The same payment_addr must be used on all subpayments. + */ + bytes payment_addr = 11; + + /* + The total amount in milli-satoshis being sent as part of a larger multi-path + payment. The caller is responsible for ensuring subpayments to the same node + and payment_hash sum exactly to total_amt_msat. The same + total_amt_msat must be used on all subpayments. + */ + int64 total_amt_msat = 10; +} + +message AMPRecord { + bytes root_share = 1; + + bytes set_id = 2; + + uint32 child_index = 3; +} + +/* +A path through the channel graph which runs over one or more channels in +succession. This struct carries all the information required to craft the +Sphinx onion packet, and send the payment along the first hop in the path. A +route is only selected as valid if all the channels have sufficient capacity to +carry the initial payment amount after fees are accounted for. +*/ +message Route { + /* + The cumulative (final) time lock across the entire route. This is the CLTV + value that should be extended to the first hop in the route. All other hops + will decrement the time-lock as advertised, leaving enough time for all + hops to wait for or present the payment preimage to complete the payment. + */ + uint32 total_time_lock = 1; + + /* + The sum of the fees paid at each hop within the final route. In the case + of a one-hop payment, this value will be zero as we don't need to pay a fee + to ourselves. + */ + int64 total_fees = 2 [deprecated = true]; + + /* + The total amount of funds required to complete a payment over this route. + This value includes the cumulative fees at each hop. As a result, the HTLC + extended to the first-hop in the route will need to have at least this many + satoshis, otherwise the route will fail at an intermediate node due to an + insufficient amount of fees. + */ + int64 total_amt = 3 [deprecated = true]; + + /* + Contains details concerning the specific forwarding details at each hop. + */ + repeated Hop hops = 4; + + /* + The total fees in millisatoshis. + */ + int64 total_fees_msat = 5; + + /* + The total amount in millisatoshis. + */ + int64 total_amt_msat = 6; +} + +message NodeInfoRequest { + // The 33-byte hex-encoded compressed public of the target node + string pub_key = 1; + + // If true, will include all known channels associated with the node. + bool include_channels = 2; +} + +message NodeInfo { + /* + An individual vertex/node within the channel graph. A node is + connected to other nodes by one or more channel edges emanating from it. As + the graph is directed, a node will also have an incoming edge attached to + it for each outgoing edge. + */ + LightningNode node = 1; + + // The total number of channels for the node. + uint32 num_channels = 2; + + // The sum of all channels capacity for the node, denominated in satoshis. + int64 total_capacity = 3; + + // A list of all public channels for the node. + repeated ChannelEdge channels = 4; +} + +/* +An individual vertex/node within the channel graph. A node is +connected to other nodes by one or more channel edges emanating from it. As the +graph is directed, a node will also have an incoming edge attached to it for +each outgoing edge. +*/ +message LightningNode { + uint32 last_update = 1; + string pub_key = 2; + string alias = 3; + repeated NodeAddress addresses = 4; + string color = 5; + map features = 6; + + // Custom node announcement tlv records. + map custom_records = 7; +} + +message NodeAddress { + string network = 1; + string addr = 2; +} + +message RoutingPolicy { + uint32 time_lock_delta = 1; + int64 min_htlc = 2; + int64 fee_base_msat = 3; + int64 fee_rate_milli_msat = 4; + bool disabled = 5; + uint64 max_htlc_msat = 6; + uint32 last_update = 7; + + // Custom channel update tlv records. + map custom_records = 8; +} + +/* +A fully authenticated channel along with all its unique attributes. +Once an authenticated channel announcement has been processed on the network, +then an instance of ChannelEdgeInfo encapsulating the channels attributes is +stored. The other portions relevant to routing policy of a channel are stored +within a ChannelEdgePolicy for each direction of the channel. +*/ +message ChannelEdge { + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 channel_id = 1 [jstype = JS_STRING]; + string chan_point = 2; + + uint32 last_update = 3 [deprecated = true]; + + string node1_pub = 4; + string node2_pub = 5; + + int64 capacity = 6; + + RoutingPolicy node1_policy = 7; + RoutingPolicy node2_policy = 8; + + // Custom channel announcement tlv records. + map custom_records = 9; +} + +message ChannelGraphRequest { + /* + Whether unannounced channels are included in the response or not. If set, + unannounced channels are included. Unannounced channels are both private + channels, and public channels that are not yet announced to the network. + */ + bool include_unannounced = 1; +} + +// Returns a new instance of the directed channel graph. +message ChannelGraph { + // The list of `LightningNode`s in this channel graph + repeated LightningNode nodes = 1; + + // The list of `ChannelEdge`s in this channel graph + repeated ChannelEdge edges = 2; +} + +enum NodeMetricType { + UNKNOWN = 0; + BETWEENNESS_CENTRALITY = 1; +} + +message NodeMetricsRequest { + // The requested node metrics. + repeated NodeMetricType types = 1; +} + +message NodeMetricsResponse { + /* + Betweenness centrality is the sum of the ratio of shortest paths that pass + through the node for each pair of nodes in the graph (not counting paths + starting or ending at this node). + Map of node pubkey to betweenness centrality of the node. Normalized + values are in the [0,1] closed interval. + */ + map betweenness_centrality = 1; +} + +message FloatMetric { + // Arbitrary float value. + double value = 1; + + // The value normalized to [0,1] or [-1,1]. + double normalized_value = 2; +} + +message ChanInfoRequest { + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 chan_id = 1 [jstype = JS_STRING]; +} + +message NetworkInfoRequest { +} +message NetworkInfo { + uint32 graph_diameter = 1; + double avg_out_degree = 2; + uint32 max_out_degree = 3; + + uint32 num_nodes = 4; + uint32 num_channels = 5; + + int64 total_network_capacity = 6; + + double avg_channel_size = 7; + int64 min_channel_size = 8; + int64 max_channel_size = 9; + int64 median_channel_size_sat = 10; + + // The number of edges marked as zombies. + uint64 num_zombie_chans = 11; + + // TODO(roasbeef): fee rate info, expiry + // * also additional RPC for tracking fee info once in +} + +message StopRequest { +} +message StopResponse { +} + +message GraphTopologySubscription { +} +message GraphTopologyUpdate { + repeated NodeUpdate node_updates = 1; + repeated ChannelEdgeUpdate channel_updates = 2; + repeated ClosedChannelUpdate closed_chans = 3; +} +message NodeUpdate { + /* + Deprecated, use node_addresses. + */ + repeated string addresses = 1 [deprecated = true]; + + string identity_key = 2; + + /* + Deprecated, use features. + */ + bytes global_features = 3 [deprecated = true]; + + string alias = 4; + string color = 5; + repeated NodeAddress node_addresses = 7; + + /* + Features that the node has advertised in the init message, node + announcements and invoices. + */ + map features = 6; +} +message ChannelEdgeUpdate { + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 chan_id = 1 [jstype = JS_STRING]; + + ChannelPoint chan_point = 2; + + int64 capacity = 3; + + RoutingPolicy routing_policy = 4; + + string advertising_node = 5; + string connecting_node = 6; +} +message ClosedChannelUpdate { + /* + The unique channel ID for the channel. The first 3 bytes are the block + height, the next 3 the index within the block, and the last 2 bytes are the + output index for the channel. + */ + uint64 chan_id = 1 [jstype = JS_STRING]; + int64 capacity = 2; + uint32 closed_height = 3; + ChannelPoint chan_point = 4; +} + +message HopHint { + // The public key of the node at the start of the channel. + string node_id = 1; + + // The unique identifier of the channel. + uint64 chan_id = 2 [jstype = JS_STRING]; + + // The base fee of the channel denominated in millisatoshis. + uint32 fee_base_msat = 3; + + /* + The fee rate of the channel for sending one satoshi across it denominated in + millionths of a satoshi. + */ + uint32 fee_proportional_millionths = 4; + + // The time-lock delta of the channel. + uint32 cltv_expiry_delta = 5; +} + +message SetID { + bytes set_id = 1; +} + +message RouteHint { + /* + A list of hop hints that when chained together can assist in reaching a + specific destination. + */ + repeated HopHint hop_hints = 1; +} + +message AMPInvoiceState { + // The state the HTLCs associated with this setID are in. + InvoiceHTLCState state = 1; + + // The settle index of this HTLC set, if the invoice state is settled. + uint64 settle_index = 2; + + // The time this HTLC set was settled expressed in unix epoch. + int64 settle_time = 3; + + // The total amount paid for the sub-invoice expressed in milli satoshis. + int64 amt_paid_msat = 5; +} + +message Invoice { + /* + An optional memo to attach along with the invoice. Used for record keeping + purposes for the invoice's creator, and will also be set in the description + field of the encoded payment request if the description_hash field is not + being used. + */ + string memo = 1; + + reserved 2; + + /* + The hex-encoded preimage (32 byte) which will allow settling an incoming + HTLC payable to this preimage. When using REST, this field must be encoded + as base64. + */ + bytes r_preimage = 3; + + /* + The hash of the preimage. When using REST, this field must be encoded as + base64. + Note: Output only, don't specify for creating an invoice. + */ + bytes r_hash = 4; + + /* + The value of this invoice in satoshis + + The fields value and value_msat are mutually exclusive. + */ + int64 value = 5; + + /* + The value of this invoice in millisatoshis + + The fields value and value_msat are mutually exclusive. + */ + int64 value_msat = 23; + + /* + Whether this invoice has been fulfilled. + + The field is deprecated. Use the state field instead (compare to SETTLED). + */ + bool settled = 6 [deprecated = true]; + + /* + When this invoice was created. + Measured in seconds since the unix epoch. + Note: Output only, don't specify for creating an invoice. + */ + int64 creation_date = 7; + + /* + When this invoice was settled. + Measured in seconds since the unix epoch. + Note: Output only, don't specify for creating an invoice. + */ + int64 settle_date = 8; + + /* + A bare-bones invoice for a payment within the Lightning Network. With the + details of the invoice, the sender has all the data necessary to send a + payment to the recipient. + Note: Output only, don't specify for creating an invoice. + */ + string payment_request = 9; + + /* + Hash (SHA-256) of a description of the payment. Used if the description of + payment (memo) is too long to naturally fit within the description field + of an encoded payment request. When using REST, this field must be encoded + as base64. + */ + bytes description_hash = 10; + + // Payment request expiry time in seconds. Default is 86400 (24 hours). + int64 expiry = 11; + + // Fallback on-chain address. + string fallback_addr = 12; + + // Delta to use for the time-lock of the CLTV extended to the final hop. + uint64 cltv_expiry = 13; + + /* + Route hints that can each be individually used to assist in reaching the + invoice's destination. + */ + repeated RouteHint route_hints = 14; + + // Whether this invoice should include routing hints for private channels. + // Note: When enabled, if value and value_msat are zero, a large number of + // hints with these channels can be included, which might not be desirable. + bool private = 15; + + /* + The "add" index of this invoice. Each newly created invoice will increment + this index making it monotonically increasing. Callers to the + SubscribeInvoices call can use this to instantly get notified of all added + invoices with an add_index greater than this one. + Note: Output only, don't specify for creating an invoice. + */ + uint64 add_index = 16; + + /* + The "settle" index of this invoice. Each newly settled invoice will + increment this index making it monotonically increasing. Callers to the + SubscribeInvoices call can use this to instantly get notified of all + settled invoices with an settle_index greater than this one. + Note: Output only, don't specify for creating an invoice. + */ + uint64 settle_index = 17; + + // Deprecated, use amt_paid_sat or amt_paid_msat. + int64 amt_paid = 18 [deprecated = true]; + + /* + The amount that was accepted for this invoice, in satoshis. This will ONLY + be set if this invoice has been settled. We provide this field as if the + invoice was created with a zero value, then we need to record what amount + was ultimately accepted. Additionally, it's possible that the sender paid + MORE that was specified in the original invoice. So we'll record that here + as well. + Note: Output only, don't specify for creating an invoice. + */ + int64 amt_paid_sat = 19; + + /* + The amount that was accepted for this invoice, in millisatoshis. This will + ONLY be set if this invoice has been settled. We provide this field as if + the invoice was created with a zero value, then we need to record what + amount was ultimately accepted. Additionally, it's possible that the sender + paid MORE that was specified in the original invoice. So we'll record that + here as well. + Note: Output only, don't specify for creating an invoice. + */ + int64 amt_paid_msat = 20; + + enum InvoiceState { + OPEN = 0; + SETTLED = 1; + CANCELED = 2; + ACCEPTED = 3; + } + + /* + The state the invoice is in. + Note: Output only, don't specify for creating an invoice. + */ + InvoiceState state = 21; + + /* + List of HTLCs paying to this invoice [EXPERIMENTAL]. + Note: Output only, don't specify for creating an invoice. + */ + repeated InvoiceHTLC htlcs = 22; + + /* + List of features advertised on the invoice. + Note: Output only, don't specify for creating an invoice. + */ + map features = 24; + + /* + Indicates if this invoice was a spontaneous payment that arrived via keysend + [EXPERIMENTAL]. + Note: Output only, don't specify for creating an invoice. + */ + bool is_keysend = 25; + + /* + The payment address of this invoice. This value will be used in MPP + payments, and also for newer invoices that always require the MPP payload + for added end-to-end security. + Note: Output only, don't specify for creating an invoice. + */ + bytes payment_addr = 26; + + /* + Signals whether or not this is an AMP invoice. + */ + bool is_amp = 27; + + /* + [EXPERIMENTAL]: + + Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the + given set ID. This field is always populated for AMP invoices, and can be + used along side LookupInvoice to obtain the HTLC information related to a + given sub-invoice. + Note: Output only, don't specify for creating an invoice. + */ + map amp_invoice_state = 28; +} + +enum InvoiceHTLCState { + ACCEPTED = 0; + SETTLED = 1; + CANCELED = 2; +} + +// Details of an HTLC that paid to an invoice +message InvoiceHTLC { + // Short channel id over which the htlc was received. + uint64 chan_id = 1 [jstype = JS_STRING]; + + // Index identifying the htlc on the channel. + uint64 htlc_index = 2; + + // The amount of the htlc in msat. + uint64 amt_msat = 3; + + // Block height at which this htlc was accepted. + int32 accept_height = 4; + + // Time at which this htlc was accepted. + int64 accept_time = 5; + + // Time at which this htlc was settled or canceled. + int64 resolve_time = 6; + + // Block height at which this htlc expires. + int32 expiry_height = 7; + + // Current state the htlc is in. + InvoiceHTLCState state = 8; + + // Custom tlv records. + map custom_records = 9; + + // The total amount of the mpp payment in msat. + uint64 mpp_total_amt_msat = 10; + + // Details relevant to AMP HTLCs, only populated if this is an AMP HTLC. + AMP amp = 11; +} + +// Details specific to AMP HTLCs. +message AMP { + // An n-of-n secret share of the root seed from which child payment hashes + // and preimages are derived. + bytes root_share = 1; + + // An identifier for the HTLC set that this HTLC belongs to. + bytes set_id = 2; + + // A nonce used to randomize the child preimage and child hash from a given + // root_share. + uint32 child_index = 3; + + // The payment hash of the AMP HTLC. + bytes hash = 4; + + // The preimage used to settle this AMP htlc. This field will only be + // populated if the invoice is in InvoiceState_ACCEPTED or + // InvoiceState_SETTLED. + bytes preimage = 5; +} + +message AddInvoiceResponse { + bytes r_hash = 1; + + /* + A bare-bones invoice for a payment within the Lightning Network. With the + details of the invoice, the sender has all the data necessary to send a + payment to the recipient. + */ + string payment_request = 2; + + /* + The "add" index of this invoice. Each newly created invoice will increment + this index making it monotonically increasing. Callers to the + SubscribeInvoices call can use this to instantly get notified of all added + invoices with an add_index greater than this one. + */ + uint64 add_index = 16; + + /* + The payment address of the generated invoice. This value should be used + in all payments for this invoice as we require it for end to end + security. + */ + bytes payment_addr = 17; +} +message PaymentHash { + /* + The hex-encoded payment hash of the invoice to be looked up. The passed + payment hash must be exactly 32 bytes, otherwise an error is returned. + Deprecated now that the REST gateway supports base64 encoding of bytes + fields. + */ + string r_hash_str = 1 [deprecated = true]; + + /* + The payment hash of the invoice to be looked up. When using REST, this field + must be encoded as base64. + */ + bytes r_hash = 2; +} + +message ListInvoiceRequest { + /* + If set, only invoices that are not settled and not canceled will be returned + in the response. + */ + bool pending_only = 1; + + /* + The index of an invoice that will be used as either the start or end of a + query to determine which invoices should be returned in the response. + */ + uint64 index_offset = 4; + + // The max number of invoices to return in the response to this query. + uint64 num_max_invoices = 5; + + /* + If set, the invoices returned will result from seeking backwards from the + specified index offset. This can be used to paginate backwards. + */ + bool reversed = 6; + + // If set, returns all invoices with a creation date greater than or equal + // to it. Measured in seconds since the unix epoch. + uint64 creation_date_start = 7; + + // If set, returns all invoices with a creation date less than or equal to + // it. Measured in seconds since the unix epoch. + uint64 creation_date_end = 8; +} + +message ListInvoiceResponse { + /* + A list of invoices from the time slice of the time series specified in the + request. + */ + repeated Invoice invoices = 1; + + /* + The index of the last item in the set of returned invoices. This can be used + to seek further, pagination style. + */ + uint64 last_index_offset = 2; + + /* + The index of the last item in the set of returned invoices. This can be used + to seek backwards, pagination style. + */ + uint64 first_index_offset = 3; +} + +message InvoiceSubscription { + /* + If specified (non-zero), then we'll first start by sending out + notifications for all added indexes with an add_index greater than this + value. This allows callers to catch up on any events they missed while they + weren't connected to the streaming RPC. + */ + uint64 add_index = 1; + + /* + If specified (non-zero), then we'll first start by sending out + notifications for all settled indexes with an settle_index greater than + this value. This allows callers to catch up on any events they missed while + they weren't connected to the streaming RPC. + */ + uint64 settle_index = 2; +} + +enum PaymentFailureReason { + /* + Payment isn't failed (yet). + */ + FAILURE_REASON_NONE = 0; + + /* + There are more routes to try, but the payment timeout was exceeded. + */ + FAILURE_REASON_TIMEOUT = 1; + + /* + All possible routes were tried and failed permanently. Or were no + routes to the destination at all. + */ + FAILURE_REASON_NO_ROUTE = 2; + + /* + A non-recoverable error has occured. + */ + FAILURE_REASON_ERROR = 3; + + /* + Payment details incorrect (unknown hash, invalid amt or + invalid final cltv delta) + */ + FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4; + + /* + Insufficient local balance. + */ + FAILURE_REASON_INSUFFICIENT_BALANCE = 5; +} + +message Payment { + // The payment hash + string payment_hash = 1; + + // Deprecated, use value_sat or value_msat. + int64 value = 2 [deprecated = true]; + + // Deprecated, use creation_time_ns + int64 creation_date = 3 [deprecated = true]; + + reserved 4; + + // Deprecated, use fee_sat or fee_msat. + int64 fee = 5 [deprecated = true]; + + // The payment preimage + string payment_preimage = 6; + + // The value of the payment in satoshis + int64 value_sat = 7; + + // The value of the payment in milli-satoshis + int64 value_msat = 8; + + // The optional payment request being fulfilled. + string payment_request = 9; + + enum PaymentStatus { + UNKNOWN = 0; + IN_FLIGHT = 1; + SUCCEEDED = 2; + FAILED = 3; + } + + // The status of the payment. + PaymentStatus status = 10; + + // The fee paid for this payment in satoshis + int64 fee_sat = 11; + + // The fee paid for this payment in milli-satoshis + int64 fee_msat = 12; + + // The time in UNIX nanoseconds at which the payment was created. + int64 creation_time_ns = 13; + + // The HTLCs made in attempt to settle the payment. + repeated HTLCAttempt htlcs = 14; + + /* + The creation index of this payment. Each payment can be uniquely identified + by this index, which may not strictly increment by 1 for payments made in + older versions of lnd. + */ + uint64 payment_index = 15; + + PaymentFailureReason failure_reason = 16; +} + +message HTLCAttempt { + // The unique ID that is used for this attempt. + uint64 attempt_id = 7; + + enum HTLCStatus { + IN_FLIGHT = 0; + SUCCEEDED = 1; + FAILED = 2; + } + + // The status of the HTLC. + HTLCStatus status = 1; + + // The route taken by this HTLC. + Route route = 2; + + // The time in UNIX nanoseconds at which this HTLC was sent. + int64 attempt_time_ns = 3; + + /* + The time in UNIX nanoseconds at which this HTLC was settled or failed. + This value will not be set if the HTLC is still IN_FLIGHT. + */ + int64 resolve_time_ns = 4; + + // Detailed htlc failure info. + Failure failure = 5; + + // The preimage that was used to settle the HTLC. + bytes preimage = 6; +} + +message ListPaymentsRequest { + /* + If true, then return payments that have not yet fully completed. This means + that pending payments, as well as failed payments will show up if this + field is set to true. This flag doesn't change the meaning of the indices, + which are tied to individual payments. + */ + bool include_incomplete = 1; + + /* + The index of a payment that will be used as either the start or end of a + query to determine which payments should be returned in the response. The + index_offset is exclusive. In the case of a zero index_offset, the query + will start with the oldest payment when paginating forwards, or will end + with the most recent payment when paginating backwards. + */ + uint64 index_offset = 2; + + // The maximal number of payments returned in the response to this query. + uint64 max_payments = 3; + + /* + If set, the payments returned will result from seeking backwards from the + specified index offset. This can be used to paginate backwards. The order + of the returned payments is always oldest first (ascending index order). + */ + bool reversed = 4; + + /* + If set, all payments (complete and incomplete, independent of the + max_payments parameter) will be counted. Note that setting this to true will + increase the run time of the call significantly on systems that have a lot + of payments, as all of them have to be iterated through to be counted. + */ + bool count_total_payments = 5; + + // If set, returns all invoices with a creation date greater than or equal + // to it. Measured in seconds since the unix epoch. + uint64 creation_date_start = 6; + + // If set, returns all invoices with a creation date less than or equal to + // it. Measured in seconds since the unix epoch. + uint64 creation_date_end = 7; +} + +message ListPaymentsResponse { + // The list of payments + repeated Payment payments = 1; + + /* + The index of the first item in the set of returned payments. This can be + used as the index_offset to continue seeking backwards in the next request. + */ + uint64 first_index_offset = 2; + + /* + The index of the last item in the set of returned payments. This can be used + as the index_offset to continue seeking forwards in the next request. + */ + uint64 last_index_offset = 3; + + /* + Will only be set if count_total_payments in the request was set. Represents + the total number of payments (complete and incomplete, independent of the + number of payments requested in the query) currently present in the payments + database. + */ + uint64 total_num_payments = 4; +} + +message DeletePaymentRequest { + // Payment hash to delete. + bytes payment_hash = 1; + + /* + Only delete failed HTLCs from the payment, not the payment itself. + */ + bool failed_htlcs_only = 2; +} + +message DeleteAllPaymentsRequest { + // Only delete failed payments. + bool failed_payments_only = 1; + + /* + Only delete failed HTLCs from payments, not the payment itself. + */ + bool failed_htlcs_only = 2; +} + +message DeletePaymentResponse { +} + +message DeleteAllPaymentsResponse { +} + +message AbandonChannelRequest { + ChannelPoint channel_point = 1; + + bool pending_funding_shim_only = 2; + + /* + Override the requirement for being in dev mode by setting this to true and + confirming the user knows what they are doing and this is a potential foot + gun to lose funds if used on active channels. + */ + bool i_know_what_i_am_doing = 3; +} + +message AbandonChannelResponse { +} + +message DebugLevelRequest { + bool show = 1; + string level_spec = 2; +} +message DebugLevelResponse { + string sub_systems = 1; +} + +message PayReqString { + // The payment request string to be decoded + string pay_req = 1; +} +message PayReq { + string destination = 1; + string payment_hash = 2; + int64 num_satoshis = 3; + int64 timestamp = 4; + int64 expiry = 5; + string description = 6; + string description_hash = 7; + string fallback_addr = 8; + int64 cltv_expiry = 9; + repeated RouteHint route_hints = 10; + bytes payment_addr = 11; + int64 num_msat = 12; + map features = 13; +} + +enum FeatureBit { + DATALOSS_PROTECT_REQ = 0; + DATALOSS_PROTECT_OPT = 1; + INITIAL_ROUING_SYNC = 3; + UPFRONT_SHUTDOWN_SCRIPT_REQ = 4; + UPFRONT_SHUTDOWN_SCRIPT_OPT = 5; + GOSSIP_QUERIES_REQ = 6; + GOSSIP_QUERIES_OPT = 7; + TLV_ONION_REQ = 8; + TLV_ONION_OPT = 9; + EXT_GOSSIP_QUERIES_REQ = 10; + EXT_GOSSIP_QUERIES_OPT = 11; + STATIC_REMOTE_KEY_REQ = 12; + STATIC_REMOTE_KEY_OPT = 13; + PAYMENT_ADDR_REQ = 14; + PAYMENT_ADDR_OPT = 15; + MPP_REQ = 16; + MPP_OPT = 17; + WUMBO_CHANNELS_REQ = 18; + WUMBO_CHANNELS_OPT = 19; + ANCHORS_REQ = 20; + ANCHORS_OPT = 21; + ANCHORS_ZERO_FEE_HTLC_REQ = 22; + ANCHORS_ZERO_FEE_HTLC_OPT = 23; + AMP_REQ = 30; + AMP_OPT = 31; +} + +message Feature { + string name = 2; + bool is_required = 3; + bool is_known = 4; +} + +message FeeReportRequest { +} +message ChannelFeeReport { + // The short channel id that this fee report belongs to. + uint64 chan_id = 5 [jstype = JS_STRING]; + + // The channel that this fee report belongs to. + string channel_point = 1; + + // The base fee charged regardless of the number of milli-satoshis sent. + int64 base_fee_msat = 2; + + // The amount charged per milli-satoshis transferred expressed in + // millionths of a satoshi. + int64 fee_per_mil = 3; + + // The effective fee rate in milli-satoshis. Computed by dividing the + // fee_per_mil value by 1 million. + double fee_rate = 4; +} +message FeeReportResponse { + // An array of channel fee reports which describes the current fee schedule + // for each channel. + repeated ChannelFeeReport channel_fees = 1; + + // The total amount of fee revenue (in satoshis) the switch has collected + // over the past 24 hrs. + uint64 day_fee_sum = 2; + + // The total amount of fee revenue (in satoshis) the switch has collected + // over the past 1 week. + uint64 week_fee_sum = 3; + + // The total amount of fee revenue (in satoshis) the switch has collected + // over the past 1 month. + uint64 month_fee_sum = 4; +} + +message PolicyUpdateRequest { + oneof scope { + // If set, then this update applies to all currently active channels. + bool global = 1; + + // If set, this update will target a specific channel. + ChannelPoint chan_point = 2; + } + + // The base fee charged regardless of the number of milli-satoshis sent. + int64 base_fee_msat = 3; + + // The effective fee rate in milli-satoshis. The precision of this value + // goes up to 6 decimal places, so 1e-6. + double fee_rate = 4; + + // The effective fee rate in micro-satoshis (parts per million). + uint32 fee_rate_ppm = 9; + + // The required timelock delta for HTLCs forwarded over the channel. + uint32 time_lock_delta = 5; + + // If set, the maximum HTLC size in milli-satoshis. If unset, the maximum + // HTLC will be unchanged. + uint64 max_htlc_msat = 6; + + // The minimum HTLC size in milli-satoshis. Only applied if + // min_htlc_msat_specified is true. + uint64 min_htlc_msat = 7; + + // If true, min_htlc_msat is applied. + bool min_htlc_msat_specified = 8; +} +enum UpdateFailure { + UPDATE_FAILURE_UNKNOWN = 0; + UPDATE_FAILURE_PENDING = 1; + UPDATE_FAILURE_NOT_FOUND = 2; + UPDATE_FAILURE_INTERNAL_ERR = 3; + UPDATE_FAILURE_INVALID_PARAMETER = 4; +} + +message FailedUpdate { + // The outpoint in format txid:n + OutPoint outpoint = 1; + + // Reason for the policy update failure. + UpdateFailure reason = 2; + + // A string representation of the policy update error. + string update_error = 3; +} + +message PolicyUpdateResponse { + // List of failed policy updates. + repeated FailedUpdate failed_updates = 1; +} + +message ForwardingHistoryRequest { + // Start time is the starting point of the forwarding history request. All + // records beyond this point will be included, respecting the end time, and + // the index offset. + uint64 start_time = 1; + + // End time is the end point of the forwarding history request. The + // response will carry at most 50k records between the start time and the + // end time. The index offset can be used to implement pagination. + uint64 end_time = 2; + + // Index offset is the offset in the time series to start at. As each + // response can only contain 50k records, callers can use this to skip + // around within a packed time series. + uint32 index_offset = 3; + + // The max number of events to return in the response to this query. + uint32 num_max_events = 4; + + // Informs the server if the peer alias should be looked up for each + // forwarding event. + bool peer_alias_lookup = 5; +} +message ForwardingEvent { + // Timestamp is the time (unix epoch offset) that this circuit was + // completed. Deprecated by timestamp_ns. + uint64 timestamp = 1 [deprecated = true]; + + // The incoming channel ID that carried the HTLC that created the circuit. + uint64 chan_id_in = 2 [jstype = JS_STRING]; + + // The outgoing channel ID that carried the preimage that completed the + // circuit. + uint64 chan_id_out = 4 [jstype = JS_STRING]; + + // The total amount (in satoshis) of the incoming HTLC that created half + // the circuit. + uint64 amt_in = 5; + + // The total amount (in satoshis) of the outgoing HTLC that created the + // second half of the circuit. + uint64 amt_out = 6; + + // The total fee (in satoshis) that this payment circuit carried. + uint64 fee = 7; + + // The total fee (in milli-satoshis) that this payment circuit carried. + uint64 fee_msat = 8; + + // The total amount (in milli-satoshis) of the incoming HTLC that created + // half the circuit. + uint64 amt_in_msat = 9; + + // The total amount (in milli-satoshis) of the outgoing HTLC that created + // the second half of the circuit. + uint64 amt_out_msat = 10; + + // The number of nanoseconds elapsed since January 1, 1970 UTC when this + // circuit was completed. + uint64 timestamp_ns = 11; + + // The peer alias of the incoming channel. + string peer_alias_in = 12; + + // The peer alias of the outgoing channel. + string peer_alias_out = 13; + + // TODO(roasbeef): add settlement latency? + // * use FPE on the chan id? + // * also list failures? +} +message ForwardingHistoryResponse { + // A list of forwarding events from the time slice of the time series + // specified in the request. + repeated ForwardingEvent forwarding_events = 1; + + // The index of the last time in the set of returned forwarding events. Can + // be used to seek further, pagination style. + uint32 last_offset_index = 2; +} + +message ExportChannelBackupRequest { + // The target channel point to obtain a back up for. + ChannelPoint chan_point = 1; +} + +message ChannelBackup { + /* + Identifies the channel that this backup belongs to. + */ + ChannelPoint chan_point = 1; + + /* + Is an encrypted single-chan backup. this can be passed to + RestoreChannelBackups, or the WalletUnlocker Init and Unlock methods in + order to trigger the recovery protocol. When using REST, this field must be + encoded as base64. + */ + bytes chan_backup = 2; +} + +message MultiChanBackup { + /* + Is the set of all channels that are included in this multi-channel backup. + */ + repeated ChannelPoint chan_points = 1; + + /* + A single encrypted blob containing all the static channel backups of the + channel listed above. This can be stored as a single file or blob, and + safely be replaced with any prior/future versions. When using REST, this + field must be encoded as base64. + */ + bytes multi_chan_backup = 2; +} + +message ChanBackupExportRequest { +} +message ChanBackupSnapshot { + /* + The set of new channels that have been added since the last channel backup + snapshot was requested. + */ + ChannelBackups single_chan_backups = 1; + + /* + A multi-channel backup that covers all open channels currently known to + lnd. + */ + MultiChanBackup multi_chan_backup = 2; +} + +message ChannelBackups { + /* + A set of single-chan static channel backups. + */ + repeated ChannelBackup chan_backups = 1; +} + +message RestoreChanBackupRequest { + oneof backup { + /* + The channels to restore as a list of channel/backup pairs. + */ + ChannelBackups chan_backups = 1; + + /* + The channels to restore in the packed multi backup format. When using + REST, this field must be encoded as base64. + */ + bytes multi_chan_backup = 2; + } +} +message RestoreBackupResponse { +} + +message ChannelBackupSubscription { +} + +message VerifyChanBackupResponse { +} + +message MacaroonPermission { + // The entity a permission grants access to. + string entity = 1; + + // The action that is granted. + string action = 2; +} +message BakeMacaroonRequest { + // The list of permissions the new macaroon should grant. + repeated MacaroonPermission permissions = 1; + + // The root key ID used to create the macaroon, must be a positive integer. + uint64 root_key_id = 2; + + /* + Informs the RPC on whether to allow external permissions that LND is not + aware of. + */ + bool allow_external_permissions = 3; +} +message BakeMacaroonResponse { + // The hex encoded macaroon, serialized in binary format. + string macaroon = 1; +} + +message ListMacaroonIDsRequest { +} +message ListMacaroonIDsResponse { + // The list of root key IDs that are in use. + repeated uint64 root_key_ids = 1; +} + +message DeleteMacaroonIDRequest { + // The root key ID to be removed. + uint64 root_key_id = 1; +} +message DeleteMacaroonIDResponse { + // A boolean indicates that the deletion is successful. + bool deleted = 1; +} + +message MacaroonPermissionList { + // A list of macaroon permissions. + repeated MacaroonPermission permissions = 1; +} + +message ListPermissionsRequest { +} +message ListPermissionsResponse { + /* + A map between all RPC method URIs and their required macaroon permissions to + access them. + */ + map method_permissions = 1; +} + +message Failure { + enum FailureCode { + /* + The numbers assigned in this enumeration match the failure codes as + defined in BOLT #4. Because protobuf 3 requires enums to start with 0, + a RESERVED value is added. + */ + RESERVED = 0; + + INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1; + INCORRECT_PAYMENT_AMOUNT = 2; + FINAL_INCORRECT_CLTV_EXPIRY = 3; + FINAL_INCORRECT_HTLC_AMOUNT = 4; + FINAL_EXPIRY_TOO_SOON = 5; + INVALID_REALM = 6; + EXPIRY_TOO_SOON = 7; + INVALID_ONION_VERSION = 8; + INVALID_ONION_HMAC = 9; + INVALID_ONION_KEY = 10; + AMOUNT_BELOW_MINIMUM = 11; + FEE_INSUFFICIENT = 12; + INCORRECT_CLTV_EXPIRY = 13; + CHANNEL_DISABLED = 14; + TEMPORARY_CHANNEL_FAILURE = 15; + REQUIRED_NODE_FEATURE_MISSING = 16; + REQUIRED_CHANNEL_FEATURE_MISSING = 17; + UNKNOWN_NEXT_PEER = 18; + TEMPORARY_NODE_FAILURE = 19; + PERMANENT_NODE_FAILURE = 20; + PERMANENT_CHANNEL_FAILURE = 21; + EXPIRY_TOO_FAR = 22; + MPP_TIMEOUT = 23; + INVALID_ONION_PAYLOAD = 24; + + /* + An internal error occurred. + */ + INTERNAL_FAILURE = 997; + + /* + The error source is known, but the failure itself couldn't be decoded. + */ + UNKNOWN_FAILURE = 998; + + /* + An unreadable failure result is returned if the received failure message + cannot be decrypted. In that case the error source is unknown. + */ + UNREADABLE_FAILURE = 999; + } + + // Failure code as defined in the Lightning spec + FailureCode code = 1; + + reserved 2; + + // An optional channel update message. + ChannelUpdate channel_update = 3; + + // A failure type-dependent htlc value. + uint64 htlc_msat = 4; + + // The sha256 sum of the onion payload. + bytes onion_sha_256 = 5; + + // A failure type-dependent cltv expiry value. + uint32 cltv_expiry = 6; + + // A failure type-dependent flags value. + uint32 flags = 7; + + /* + The position in the path of the intermediate or final node that generated + the failure message. Position zero is the sender node. + **/ + uint32 failure_source_index = 8; + + // A failure type-dependent block height. + uint32 height = 9; +} + +message ChannelUpdate { + /* + The signature that validates the announced data and proves the ownership + of node id. + */ + bytes signature = 1; + + /* + The target chain that this channel was opened within. This value + should be the genesis hash of the target chain. Along with the short + channel ID, this uniquely identifies the channel globally in a + blockchain. + */ + bytes chain_hash = 2; + + /* + The unique description of the funding transaction. + */ + uint64 chan_id = 3 [jstype = JS_STRING]; + + /* + A timestamp that allows ordering in the case of multiple announcements. + We should ignore the message if timestamp is not greater than the + last-received. + */ + uint32 timestamp = 4; + + /* + The bitfield that describes whether optional fields are present in this + update. Currently, the least-significant bit must be set to 1 if the + optional field MaxHtlc is present. + */ + uint32 message_flags = 10; + + /* + The bitfield that describes additional meta-data concerning how the + update is to be interpreted. Currently, the least-significant bit must be + set to 0 if the creating node corresponds to the first node in the + previously sent channel announcement and 1 otherwise. If the second bit + is set, then the channel is set to be disabled. + */ + uint32 channel_flags = 5; + + /* + The minimum number of blocks this node requires to be added to the expiry + of HTLCs. This is a security parameter determined by the node operator. + This value represents the required gap between the time locks of the + incoming and outgoing HTLC's set to this node. + */ + uint32 time_lock_delta = 6; + + /* + The minimum HTLC value which will be accepted. + */ + uint64 htlc_minimum_msat = 7; + + /* + The base fee that must be used for incoming HTLC's to this particular + channel. This value will be tacked onto the required for a payment + independent of the size of the payment. + */ + uint32 base_fee = 8; + + /* + The fee rate that will be charged per millionth of a satoshi. + */ + uint32 fee_rate = 9; + + /* + The maximum HTLC value which will be accepted. + */ + uint64 htlc_maximum_msat = 11; + + /* + The set of data that was appended to this message, some of which we may + not actually know how to iterate or parse. By holding onto this data, we + ensure that we're able to properly validate the set of signatures that + cover these new fields, and ensure we're able to make upgrades to the + network in a forwards compatible manner. + */ + bytes extra_opaque_data = 12; +} + +message MacaroonId { + bytes nonce = 1; + bytes storageId = 2; + repeated Op ops = 3; +} + +message Op { + string entity = 1; + repeated string actions = 2; +} + +message CheckMacPermRequest { + bytes macaroon = 1; + repeated MacaroonPermission permissions = 2; + string fullMethod = 3; +} + +message CheckMacPermResponse { + bool valid = 1; +} + +message RPCMiddlewareRequest { + /* + The unique ID of the intercepted original gRPC request. Useful for mapping + request to response when implementing full duplex message interception. For + streaming requests, this will be the same ID for all incoming and outgoing + middleware intercept messages of the _same_ stream. + */ + uint64 request_id = 1; + + /* + The raw bytes of the complete macaroon as sent by the gRPC client in the + original request. This might be empty for a request that doesn't require + macaroons such as the wallet unlocker RPCs. + */ + bytes raw_macaroon = 2; + + /* + The parsed condition of the macaroon's custom caveat for convenient access. + This field only contains the value of the custom caveat that the handling + middleware has registered itself for. The condition _must_ be validated for + messages of intercept_type stream_auth and request! + */ + string custom_caveat_condition = 3; + + /* + There are three types of messages that will be sent to the middleware for + inspection and approval: Stream authentication, request and response + interception. The first two can only be accepted (=forward to main RPC + server) or denied (=return error to client). Intercepted responses can also + be replaced/overwritten. + */ + oneof intercept_type { + /* + Intercept stream authentication: each new streaming RPC call that is + initiated against lnd and contains the middleware's custom macaroon + caveat can be approved or denied based upon the macaroon in the stream + header. This message will only be sent for streaming RPCs, unary RPCs + must handle the macaroon authentication in the request interception to + avoid an additional message round trip between lnd and the middleware. + */ + StreamAuth stream_auth = 4; + + /* + Intercept incoming gRPC client request message: all incoming messages, + both on streaming and unary RPCs, are forwarded to the middleware for + inspection. For unary RPC messages the middleware is also expected to + validate the custom macaroon caveat of the request. + */ + RPCMessage request = 5; + + /* + Intercept outgoing gRPC response message: all outgoing messages, both on + streaming and unary RPCs, are forwarded to the middleware for inspection + and amendment. The response in this message is the original response as + it was generated by the main RPC server. It can either be accepted + (=forwarded to the client), replaced/overwritten with a new message of + the same type, or replaced by an error message. + */ + RPCMessage response = 6; + + /* + This is used to indicate to the client that the server has successfully + registered the interceptor. This is only used in the very first message + that the server sends to the client after the client sends the server + the middleware registration message. + */ + bool reg_complete = 8; + } + + /* + The unique message ID of this middleware intercept message. There can be + multiple middleware intercept messages per single gRPC request (one for the + incoming request and one for the outgoing response) or gRPC stream (one for + each incoming message and one for each outgoing response). This message ID + must be referenced when responding (accepting/rejecting/modifying) to an + intercept message. + */ + uint64 msg_id = 7; +} + +message StreamAuth { + /* + The full URI (in the format /./MethodName, for + example /lnrpc.Lightning/GetInfo) of the streaming RPC method that was just + established. + */ + string method_full_uri = 1; +} + +message RPCMessage { + /* + The full URI (in the format /./MethodName, for + example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent + to/from. + */ + string method_full_uri = 1; + + /* + Indicates whether the message was sent over a streaming RPC method or not. + */ + bool stream_rpc = 2; + + /* + The full canonical gRPC name of the message type (in the format + .TypeName, for example lnrpc.GetInfoRequest). In case of an + error being returned from lnd, this simply contains the string "error". + */ + string type_name = 3; + + /* + The full content of the gRPC message, serialized in the binary protobuf + format. + */ + bytes serialized = 4; + + /* + Indicates that the response from lnd was an error, not a gRPC response. If + this is set to true then the type_name contains the string "error" and + serialized contains the error string. + */ + bool is_error = 5; +} + +message RPCMiddlewareResponse { + /* + The request message ID this response refers to. Must always be set when + giving feedback to an intercept but is ignored for the initial registration + message. + */ + uint64 ref_msg_id = 1; + + /* + The middleware can only send two types of messages to lnd: The initial + registration message that identifies the middleware and after that only + feedback messages to requests sent to the middleware. + */ + oneof middleware_message { + /* + The registration message identifies the middleware that's being + registered in lnd. The registration message must be sent immediately + after initiating the RegisterRpcMiddleware stream, otherwise lnd will + time out the attempt and terminate the request. NOTE: The middleware + will only receive interception messages for requests that contain a + macaroon with the custom caveat that the middleware declares it is + responsible for handling in the registration message! As a security + measure, _no_ middleware can intercept requests made with _unencumbered_ + macaroons! + */ + MiddlewareRegistration register = 2; + + /* + The middleware received an interception request and gives feedback to + it. The request_id indicates what message the feedback refers to. + */ + InterceptFeedback feedback = 3; + } +} + +message MiddlewareRegistration { + /* + The name of the middleware to register. The name should be as informative + as possible and is logged on registration. + */ + string middleware_name = 1; + + /* + The name of the custom macaroon caveat that this middleware is responsible + for. Only requests/responses that contain a macaroon with the registered + custom caveat are forwarded for interception to the middleware. The + exception being the read-only mode: All requests/responses are forwarded to + a middleware that requests read-only access but such a middleware won't be + allowed to _alter_ responses. As a security measure, _no_ middleware can + change responses to requests made with _unencumbered_ macaroons! + NOTE: Cannot be used at the same time as read_only_mode. + */ + string custom_macaroon_caveat_name = 2; + + /* + Instead of defining a custom macaroon caveat name a middleware can register + itself for read-only access only. In that mode all requests/responses are + forwarded to the middleware but the middleware isn't allowed to alter any of + the responses. + NOTE: Cannot be used at the same time as custom_macaroon_caveat_name. + */ + bool read_only_mode = 3; +} + +message InterceptFeedback { + /* + The error to return to the user. If this is non-empty, the incoming gRPC + stream/request is aborted and the error is returned to the gRPC client. If + this value is empty, it means the middleware accepts the stream/request/ + response and the processing of it can continue. + */ + string error = 1; + + /* + A boolean indicating that the gRPC message should be replaced/overwritten. + This boolean is needed because in protobuf an empty message is serialized as + a 0-length or nil byte slice and we wouldn't be able to distinguish between + an empty replacement message and the "don't replace anything" case. + */ + bool replace_response = 2; + + /* + If the replace_response field is set to true, this field must contain the + binary serialized gRPC message in the protobuf format. + */ + bytes replacement_serialized = 3; +} diff --git a/proto/neutrinorpc/neutrino.proto b/proto/neutrinorpc/neutrino.proto new file mode 100644 index 000000000..a82bd2276 --- /dev/null +++ b/proto/neutrinorpc/neutrino.proto @@ -0,0 +1,225 @@ +syntax = "proto3"; + +package neutrinorpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/neutrinorpc"; + +// NeutrinoKit is a service that can be used to get information about the +// current state of the neutrino instance, fetch blocks and add/remove peers. +service NeutrinoKit { + /* + Status returns the status of the light client neutrino instance, + along with height and hash of the best block, and a list of connected + peers. + */ + rpc Status (StatusRequest) returns (StatusResponse); + + /* + AddPeer adds a new peer that has already been connected to the server. + */ + rpc AddPeer (AddPeerRequest) returns (AddPeerResponse); + + /* + DisconnectPeer disconnects a peer by target address. Both outbound and + inbound nodes will be searched for the target node. An error message will + be returned if the peer was not found. + */ + rpc DisconnectPeer (DisconnectPeerRequest) returns (DisconnectPeerResponse); + + /* + IsBanned returns true if the peer is banned, otherwise false. + */ + rpc IsBanned (IsBannedRequest) returns (IsBannedResponse); + + /* + GetBlockHeader returns a block header with a particular block hash. + */ + rpc GetBlockHeader (GetBlockHeaderRequest) returns (GetBlockHeaderResponse); + + /* + GetBlock returns a block with a particular block hash. + */ + rpc GetBlock (GetBlockRequest) returns (GetBlockResponse); + + /* + GetCFilter returns a compact filter from a block. + */ + rpc GetCFilter (GetCFilterRequest) returns (GetCFilterResponse); + + /* + GetBlockHash returns the header hash of a block at a given height. + */ + rpc GetBlockHash (GetBlockHashRequest) returns (GetBlockHashResponse); +} + +message StatusRequest { +} + +message StatusResponse { + // Indicates whether the neutrino backend is active or not. + bool active = 1; + + // Is fully synced. + bool synced = 2; + + // Best block height. + int32 block_height = 3; + + // Best block hash. + string block_hash = 4; + + // Connected peers. + repeated string peers = 5; +} + +message AddPeerRequest { + // Peer to add. + string peer_addrs = 1; +} + +message AddPeerResponse { +} + +message DisconnectPeerRequest { + // Peer to disconnect. + string peer_addrs = 1; +} + +message DisconnectPeerResponse { +} + +message IsBannedRequest { + // Peer to lookup. + string peer_addrs = 1; +} + +message IsBannedResponse { + bool banned = 1; +} + +message GetBlockHeaderRequest { + // Block hash in hex notation. + string hash = 1; +} + +message GetBlockHeaderResponse { + // The block hash (same as provided). + string hash = 1; + + // The number of confirmations. + int64 confirmations = 2; + + // The block size excluding witness data. + int64 stripped_size = 3; + + // The block size (bytes). + int64 size = 4; + + // The block weight as defined in BIP 141. + int64 weight = 5; + + // The block height or index. + int32 height = 6; + + // The block version. + int32 version = 7; + + // The block version. + string version_hex = 8; + + // The merkle root. + string merkleroot = 9; + + // The block time in seconds since epoch (Jan 1 1970 GMT). + int64 time = 10; + + // The nonce. + uint32 nonce = 11; + + // The bits in hex notation. + string bits = 12; + + // The number of transactions in the block. + int32 ntx = 13; + + // The hash of the previous block. + string previous_block_hash = 14; + + // The raw hex of the block. + bytes raw_hex = 15; +} + +message GetBlockRequest { + // Block hash in hex notation. + string hash = 1; +} + +message GetBlockResponse { + // The block hash (same as provided). + string hash = 1; + + // The number of confirmations. + int64 confirmations = 2; + + // The block size excluding witness data. + int64 stripped_size = 3; + + // The block size (bytes). + int64 size = 4; + + // The block weight as defined in BIP 141. + int64 weight = 5; + + // The block height or index. + int32 height = 6; + + // The block version. + int32 version = 7; + + // The block version. + string version_hex = 8; + + // The merkle root. + string merkleroot = 9; + + // List of transaction ids. + repeated string tx = 10; + + // The block time in seconds since epoch (Jan 1 1970 GMT). + int64 time = 11; + + // The nonce. + uint32 nonce = 12; + + // The bits in hex notation. + string bits = 13; + + // The number of transactions in the block. + int32 ntx = 14; + + // The hash of the previous block. + string previous_block_hash = 15; + + // The raw hex of the block. + bytes raw_hex = 16; +} + +message GetCFilterRequest { + // Block hash in hex notation. + string hash = 1; +} + +message GetCFilterResponse { + // GCS filter. + bytes filter = 1; +} + +message GetBlockHashRequest { + // The block height or index. + int32 height = 1; +} + +message GetBlockHashResponse { + // The block hash. + string hash = 1; +} diff --git a/proto/routerrpc/router.proto b/proto/routerrpc/router.proto new file mode 100644 index 000000000..d591cc485 --- /dev/null +++ b/proto/routerrpc/router.proto @@ -0,0 +1,952 @@ +syntax = "proto3"; + +import "lightning.proto"; + +package routerrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/routerrpc"; + +// Router is a service that offers advanced interaction with the router +// subsystem of the daemon. +service Router { + /* + SendPaymentV2 attempts to route a payment described by the passed + PaymentRequest to the final destination. The call returns a stream of + payment updates. + */ + rpc SendPaymentV2 (SendPaymentRequest) returns (stream lnrpc.Payment); + + /* + TrackPaymentV2 returns an update stream for the payment identified by the + payment hash. + */ + rpc TrackPaymentV2 (TrackPaymentRequest) returns (stream lnrpc.Payment); + + /* + TrackPayments returns an update stream for every payment that is not in a + terminal state. Note that if payments are in-flight while starting a new + subscription, the start of the payment stream could produce out-of-order + and/or duplicate events. In order to get updates for every in-flight + payment attempt make sure to subscribe to this method before initiating any + payments. + */ + rpc TrackPayments (TrackPaymentsRequest) returns (stream lnrpc.Payment); + + /* + EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it + may cost to send an HTLC to the target end destination. + */ + rpc EstimateRouteFee (RouteFeeRequest) returns (RouteFeeResponse); + + /* + Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via + the specified route. This method differs from SendPayment in that it + allows users to specify a full route manually. This can be used for + things like rebalancing, and atomic swaps. It differs from the newer + SendToRouteV2 in that it doesn't return the full HTLC information. + */ + rpc SendToRoute (SendToRouteRequest) returns (SendToRouteResponse) { + option deprecated = true; + } + + /* + SendToRouteV2 attempts to make a payment via the specified route. This + method differs from SendPayment in that it allows users to specify a full + route manually. This can be used for things like rebalancing, and atomic + swaps. + */ + rpc SendToRouteV2 (SendToRouteRequest) returns (lnrpc.HTLCAttempt); + + /* + ResetMissionControl clears all mission control state and starts with a clean + slate. + */ + rpc ResetMissionControl (ResetMissionControlRequest) + returns (ResetMissionControlResponse); + + /* + QueryMissionControl exposes the internal mission control state to callers. + It is a development feature. + */ + rpc QueryMissionControl (QueryMissionControlRequest) + returns (QueryMissionControlResponse); + + /* + XImportMissionControl is an experimental API that imports the state provided + to the internal mission control's state, using all results which are more + recent than our existing values. These values will only be imported + in-memory, and will not be persisted across restarts. + */ + rpc XImportMissionControl (XImportMissionControlRequest) + returns (XImportMissionControlResponse); + + /* + GetMissionControlConfig returns mission control's current config. + */ + rpc GetMissionControlConfig (GetMissionControlConfigRequest) + returns (GetMissionControlConfigResponse); + + /* + SetMissionControlConfig will set mission control's config, if the config + provided is valid. + */ + rpc SetMissionControlConfig (SetMissionControlConfigRequest) + returns (SetMissionControlConfigResponse); + + /* + Deprecated. QueryProbability returns the current success probability + estimate for a given node pair and amount. The call returns a zero success + probability if no channel is available or if the amount violates min/max + HTLC constraints. + */ + rpc QueryProbability (QueryProbabilityRequest) + returns (QueryProbabilityResponse); + + /* + BuildRoute builds a fully specified route based on a list of hop public + keys. It retrieves the relevant channel policies from the graph in order to + calculate the correct fees and time locks. + */ + rpc BuildRoute (BuildRouteRequest) returns (BuildRouteResponse); + + /* + SubscribeHtlcEvents creates a uni-directional stream from the server to + the client which delivers a stream of htlc events. + */ + rpc SubscribeHtlcEvents (SubscribeHtlcEventsRequest) + returns (stream HtlcEvent); + + /* + Deprecated, use SendPaymentV2. SendPayment attempts to route a payment + described by the passed PaymentRequest to the final destination. The call + returns a stream of payment status updates. + */ + rpc SendPayment (SendPaymentRequest) returns (stream PaymentStatus) { + option deprecated = true; + } + + /* + Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for + the payment identified by the payment hash. + */ + rpc TrackPayment (TrackPaymentRequest) returns (stream PaymentStatus) { + option deprecated = true; + } + + /** + HtlcInterceptor dispatches a bi-directional streaming RPC in which + Forwarded HTLC requests are sent to the client and the client responds with + a boolean that tells LND if this htlc should be intercepted. + In case of interception, the htlc can be either settled, cancelled or + resumed later by using the ResolveHoldForward endpoint. + */ + rpc HtlcInterceptor (stream ForwardHtlcInterceptResponse) + returns (stream ForwardHtlcInterceptRequest); + + /* + UpdateChanStatus attempts to manually set the state of a channel + (enabled, disabled, or auto). A manual "disable" request will cause the + channel to stay disabled until a subsequent manual request of either + "enable" or "auto". + */ + rpc UpdateChanStatus (UpdateChanStatusRequest) + returns (UpdateChanStatusResponse); +} + +message SendPaymentRequest { + // The identity pubkey of the payment recipient + bytes dest = 1; + + /* + Number of satoshis to send. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt = 2; + + /* + Number of millisatoshis to send. + + The fields amt and amt_msat are mutually exclusive. + */ + int64 amt_msat = 12; + + // The hash to use within the payment's HTLC + bytes payment_hash = 3; + + /* + The CLTV delta from the current height that should be used to set the + timelock for the final hop. + */ + int32 final_cltv_delta = 4; + + // An optional payment addr to be included within the last hop of the route. + bytes payment_addr = 20; + + /* + A bare-bones invoice for a payment within the Lightning Network. With the + details of the invoice, the sender has all the data necessary to send a + payment to the recipient. The amount in the payment request may be zero. In + that case it is required to set the amt field as well. If no payment request + is specified, the following fields are required: dest, amt and payment_hash. + */ + string payment_request = 5; + + /* + An upper limit on the amount of time we should spend when attempting to + fulfill the payment. This is expressed in seconds. If we cannot make a + successful payment within this time frame, an error will be returned. + This field must be non-zero. + */ + int32 timeout_seconds = 6; + + /* + The maximum number of satoshis that will be paid as a fee of the payment. + If this field is left to the default value of 0, only zero-fee routes will + be considered. This usually means single hop routes connecting directly to + the destination. To send the payment without a fee limit, use max int here. + + The fields fee_limit_sat and fee_limit_msat are mutually exclusive. + */ + int64 fee_limit_sat = 7; + + /* + The maximum number of millisatoshis that will be paid as a fee of the + payment. If this field is left to the default value of 0, only zero-fee + routes will be considered. This usually means single hop routes connecting + directly to the destination. To send the payment without a fee limit, use + max int here. + + The fields fee_limit_sat and fee_limit_msat are mutually exclusive. + */ + int64 fee_limit_msat = 13; + + /* + Deprecated, use outgoing_chan_ids. The channel id of the channel that must + be taken to the first hop. If zero, any channel may be used (unless + outgoing_chan_ids are set). + */ + uint64 outgoing_chan_id = 8 [jstype = JS_STRING, deprecated = true]; + + /* + The channel ids of the channels are allowed for the first hop. If empty, + any channel may be used. + */ + repeated uint64 outgoing_chan_ids = 19; + + /* + The pubkey of the last hop of the route. If empty, any hop may be used. + */ + bytes last_hop_pubkey = 14; + + /* + An optional maximum total time lock for the route. This should not exceed + lnd's `--max-cltv-expiry` setting. If zero, then the value of + `--max-cltv-expiry` is enforced. + */ + int32 cltv_limit = 9; + + /* + Optional route hints to reach the destination through private channels. + */ + repeated lnrpc.RouteHint route_hints = 10; + + /* + An optional field that can be used to pass an arbitrary set of TLV records + to a peer which understands the new records. This can be used to pass + application specific data during the payment attempt. Record types are + required to be in the custom range >= 65536. When using REST, the values + must be encoded as base64. + */ + map dest_custom_records = 11; + + // If set, circular payments to self are permitted. + bool allow_self_payment = 15; + + /* + Features assumed to be supported by the final node. All transitive feature + dependencies must also be set properly. For a given feature bit pair, either + optional or remote may be set, but not both. If this field is nil or empty, + the router will try to load destination features from the graph as a + fallback. + */ + repeated lnrpc.FeatureBit dest_features = 16; + + /* + The maximum number of partial payments that may be use to complete the full + amount. + */ + uint32 max_parts = 17; + + /* + If set, only the final payment update is streamed back. Intermediate updates + that show which htlcs are still in flight are suppressed. + */ + bool no_inflight_updates = 18; + + /* + The largest payment split that should be attempted when making a payment if + splitting is necessary. Setting this value will effectively cause lnd to + split more aggressively, vs only when it thinks it needs to. Note that this + value is in milli-satoshis. + */ + uint64 max_shard_size_msat = 21; + + /* + If set, an AMP-payment will be attempted. + */ + bool amp = 22; + + /* + The time preference for this payment. Set to -1 to optimize for fees + only, to 1 to optimize for reliability only or a value inbetween for a mix. + */ + double time_pref = 23; +} + +message TrackPaymentRequest { + // The hash of the payment to look up. + bytes payment_hash = 1; + + /* + If set, only the final payment update is streamed back. Intermediate updates + that show which htlcs are still in flight are suppressed. + */ + bool no_inflight_updates = 2; +} + +message TrackPaymentsRequest { + /* + If set, only the final payment updates are streamed back. Intermediate + updates that show which htlcs are still in flight are suppressed. + */ + bool no_inflight_updates = 1; +} + +message RouteFeeRequest { + /* + The destination once wishes to obtain a routing fee quote to. + */ + bytes dest = 1; + + /* + The amount one wishes to send to the target destination. + */ + int64 amt_sat = 2; +} + +message RouteFeeResponse { + /* + A lower bound of the estimated fee to the target destination within the + network, expressed in milli-satoshis. + */ + int64 routing_fee_msat = 1; + + /* + An estimate of the worst case time delay that can occur. Note that callers + will still need to factor in the final CLTV delta of the last hop into this + value. + */ + int64 time_lock_delay = 2; +} + +message SendToRouteRequest { + // The payment hash to use for the HTLC. + bytes payment_hash = 1; + + // Route that should be used to attempt to complete the payment. + lnrpc.Route route = 2; + + /* + Whether the payment should be marked as failed when a temporary error is + returned from the given route. Set it to true so the payment won't be + failed unless a terminal error is occurred, such as payment timeout, no + routes, incorrect payment details, or insufficient funds. + */ + bool skip_temp_err = 3; +} + +message SendToRouteResponse { + // The preimage obtained by making the payment. + bytes preimage = 1; + + // The failure message in case the payment failed. + lnrpc.Failure failure = 2; +} + +message ResetMissionControlRequest { +} + +message ResetMissionControlResponse { +} + +message QueryMissionControlRequest { +} + +// QueryMissionControlResponse contains mission control state. +message QueryMissionControlResponse { + reserved 1; + + // Node pair-level mission control state. + repeated PairHistory pairs = 2; +} + +message XImportMissionControlRequest { + // Node pair-level mission control state to be imported. + repeated PairHistory pairs = 1; + + // Whether to force override MC pair history. Note that even with force + // override the failure pair is imported before the success pair and both + // still clamp existing failure/success amounts. + bool force = 2; +} + +message XImportMissionControlResponse { +} + +// PairHistory contains the mission control state for a particular node pair. +message PairHistory { + // The source node pubkey of the pair. + bytes node_from = 1; + + // The destination node pubkey of the pair. + bytes node_to = 2; + + reserved 3, 4, 5, 6; + + PairData history = 7; +} + +message PairData { + // Time of last failure. + int64 fail_time = 1; + + /* + Lowest amount that failed to forward rounded to whole sats. This may be + set to zero if the failure is independent of amount. + */ + int64 fail_amt_sat = 2; + + /* + Lowest amount that failed to forward in millisats. This may be + set to zero if the failure is independent of amount. + */ + int64 fail_amt_msat = 4; + + reserved 3; + + // Time of last success. + int64 success_time = 5; + + // Highest amount that we could successfully forward rounded to whole sats. + int64 success_amt_sat = 6; + + // Highest amount that we could successfully forward in millisats. + int64 success_amt_msat = 7; +} + +message GetMissionControlConfigRequest { +} + +message GetMissionControlConfigResponse { + /* + Mission control's currently active config. + */ + MissionControlConfig config = 1; +} + +message SetMissionControlConfigRequest { + /* + The config to set for mission control. Note that all values *must* be set, + because the full config will be applied. + */ + MissionControlConfig config = 1; +} + +message SetMissionControlConfigResponse { +} + +message MissionControlConfig { + /* + Deprecated, use AprioriParameters. The amount of time mission control will + take to restore a penalized node or channel back to 50% success probability, + expressed in seconds. Setting this value to a higher value will penalize + failures for longer, making mission control less likely to route through + nodes and channels that we have previously recorded failures for. + */ + uint64 half_life_seconds = 1 [deprecated = true]; + + /* + Deprecated, use AprioriParameters. The probability of success mission + control should assign to hop in a route where it has no other information + available. Higher values will make mission control more willing to try hops + that we have no information about, lower values will discourage trying these + hops. + */ + float hop_probability = 2 [deprecated = true]; + + /* + Deprecated, use AprioriParameters. The importance that mission control + should place on historical results, expressed as a value in [0;1]. Setting + this value to 1 will ignore all historical payments and just use the hop + probability to assess the probability of success for each hop. A zero value + ignores hop probability completely and relies entirely on historical + results, unless none are available. + */ + float weight = 3 [deprecated = true]; + + /* + The maximum number of payment results that mission control will store. + */ + uint32 maximum_payment_results = 4; + + /* + The minimum time that must have passed since the previously recorded failure + before we raise the failure amount. + */ + uint64 minimum_failure_relax_interval = 5; + + enum ProbabilityModel { + APRIORI = 0; + BIMODAL = 1; + } + + /* + ProbabilityModel defines which probability estimator should be used in + pathfinding. Note that the bimodal estimator is experimental. + */ + ProbabilityModel model = 6; + + /* + EstimatorConfig is populated dependent on the estimator type. + */ + oneof EstimatorConfig { + AprioriParameters apriori = 7; + BimodalParameters bimodal = 8; + } +} + +message BimodalParameters { + /* + NodeWeight defines how strongly other previous forwardings on channels of a + router should be taken into account when computing a channel's probability + to route. The allowed values are in the range [0, 1], where a value of 0 + means that only direct information about a channel is taken into account. + */ + double node_weight = 1; + + /* + ScaleMsat describes the scale over which channels statistically have some + liquidity left. The value determines how quickly the bimodal distribution + drops off from the edges of a channel. A larger value (compared to typical + channel capacities) means that the drop off is slow and that channel + balances are distributed more uniformly. A small value leads to the + assumption of very unbalanced channels. + */ + uint64 scale_msat = 2; + + /* + DecayTime describes the information decay of knowledge about previous + successes and failures in channels. The smaller the decay time, the quicker + we forget about past forwardings. + */ + uint64 decay_time = 3; +} + +message AprioriParameters { + /* + The amount of time mission control will take to restore a penalized node + or channel back to 50% success probability, expressed in seconds. Setting + this value to a higher value will penalize failures for longer, making + mission control less likely to route through nodes and channels that we + have previously recorded failures for. + */ + uint64 half_life_seconds = 1; + + /* + The probability of success mission control should assign to hop in a route + where it has no other information available. Higher values will make mission + control more willing to try hops that we have no information about, lower + values will discourage trying these hops. + */ + double hop_probability = 2; + + /* + The importance that mission control should place on historical results, + expressed as a value in [0;1]. Setting this value to 1 will ignore all + historical payments and just use the hop probability to assess the + probability of success for each hop. A zero value ignores hop probability + completely and relies entirely on historical results, unless none are + available. + */ + double weight = 3; + + /* + The fraction of a channel's capacity that we consider to have liquidity. For + amounts that come close to or exceed the fraction, an additional penalty is + applied. A value of 1.0 disables the capacity factor. Allowed values are in + [0.75, 1.0]. + */ + double capacity_fraction = 4; +} + +message QueryProbabilityRequest { + // The source node pubkey of the pair. + bytes from_node = 1; + + // The destination node pubkey of the pair. + bytes to_node = 2; + + // The amount for which to calculate a probability. + int64 amt_msat = 3; +} + +message QueryProbabilityResponse { + // The success probability for the requested pair. + double probability = 1; + + // The historical data for the requested pair. + PairData history = 2; +} + +message BuildRouteRequest { + /* + The amount to send expressed in msat. If set to zero, the minimum routable + amount is used. + */ + int64 amt_msat = 1; + + /* + CLTV delta from the current height that should be used for the timelock + of the final hop + */ + int32 final_cltv_delta = 2; + + /* + The channel id of the channel that must be taken to the first hop. If zero, + any channel may be used. + */ + uint64 outgoing_chan_id = 3 [jstype = JS_STRING]; + + /* + A list of hops that defines the route. This does not include the source hop + pubkey. + */ + repeated bytes hop_pubkeys = 4; + + // An optional payment addr to be included within the last hop of the route. + bytes payment_addr = 5; +} + +message BuildRouteResponse { + /* + Fully specified route that can be used to execute the payment. + */ + lnrpc.Route route = 1; +} + +message SubscribeHtlcEventsRequest { +} + +/* +HtlcEvent contains the htlc event that was processed. These are served on a +best-effort basis; events are not persisted, delivery is not guaranteed +(in the event of a crash in the switch, forward events may be lost) and +some events may be replayed upon restart. Events consumed from this package +should be de-duplicated by the htlc's unique combination of incoming and +outgoing channel id and htlc id. [EXPERIMENTAL] +*/ +message HtlcEvent { + /* + The short channel id that the incoming htlc arrived at our node on. This + value is zero for sends. + */ + uint64 incoming_channel_id = 1; + + /* + The short channel id that the outgoing htlc left our node on. This value + is zero for receives. + */ + uint64 outgoing_channel_id = 2; + + /* + Incoming id is the index of the incoming htlc in the incoming channel. + This value is zero for sends. + */ + uint64 incoming_htlc_id = 3; + + /* + Outgoing id is the index of the outgoing htlc in the outgoing channel. + This value is zero for receives. + */ + uint64 outgoing_htlc_id = 4; + + /* + The time in unix nanoseconds that the event occurred. + */ + uint64 timestamp_ns = 5; + + enum EventType { + UNKNOWN = 0; + SEND = 1; + RECEIVE = 2; + FORWARD = 3; + } + + /* + The event type indicates whether the htlc was part of a send, receive or + forward. + */ + EventType event_type = 6; + + oneof event { + ForwardEvent forward_event = 7; + ForwardFailEvent forward_fail_event = 8; + SettleEvent settle_event = 9; + LinkFailEvent link_fail_event = 10; + SubscribedEvent subscribed_event = 11; + FinalHtlcEvent final_htlc_event = 12; + } +} + +message HtlcInfo { + // The timelock on the incoming htlc. + uint32 incoming_timelock = 1; + + // The timelock on the outgoing htlc. + uint32 outgoing_timelock = 2; + + // The amount of the incoming htlc. + uint64 incoming_amt_msat = 3; + + // The amount of the outgoing htlc. + uint64 outgoing_amt_msat = 4; +} + +message ForwardEvent { + // Info contains details about the htlc that was forwarded. + HtlcInfo info = 1; +} + +message ForwardFailEvent { +} + +message SettleEvent { + // The revealed preimage. + bytes preimage = 1; +} + +message FinalHtlcEvent { + bool settled = 1; + bool offchain = 2; +} + +message SubscribedEvent { +} + +message LinkFailEvent { + // Info contains details about the htlc that we failed. + HtlcInfo info = 1; + + // FailureCode is the BOLT error code for the failure. + lnrpc.Failure.FailureCode wire_failure = 2; + + /* + FailureDetail provides additional information about the reason for the + failure. This detail enriches the information provided by the wire message + and may be 'no detail' if the wire message requires no additional metadata. + */ + FailureDetail failure_detail = 3; + + // A string representation of the link failure. + string failure_string = 4; +} + +enum FailureDetail { + UNKNOWN = 0; + NO_DETAIL = 1; + ONION_DECODE = 2; + LINK_NOT_ELIGIBLE = 3; + ON_CHAIN_TIMEOUT = 4; + HTLC_EXCEEDS_MAX = 5; + INSUFFICIENT_BALANCE = 6; + INCOMPLETE_FORWARD = 7; + HTLC_ADD_FAILED = 8; + FORWARDS_DISABLED = 9; + INVOICE_CANCELED = 10; + INVOICE_UNDERPAID = 11; + INVOICE_EXPIRY_TOO_SOON = 12; + INVOICE_NOT_OPEN = 13; + MPP_INVOICE_TIMEOUT = 14; + ADDRESS_MISMATCH = 15; + SET_TOTAL_MISMATCH = 16; + SET_TOTAL_TOO_LOW = 17; + SET_OVERPAID = 18; + UNKNOWN_INVOICE = 19; + INVALID_KEYSEND = 20; + MPP_IN_PROGRESS = 21; + CIRCULAR_ROUTE = 22; +} + +enum PaymentState { + /* + Payment is still in flight. + */ + IN_FLIGHT = 0; + + /* + Payment completed successfully. + */ + SUCCEEDED = 1; + + /* + There are more routes to try, but the payment timeout was exceeded. + */ + FAILED_TIMEOUT = 2; + + /* + All possible routes were tried and failed permanently. Or were no + routes to the destination at all. + */ + FAILED_NO_ROUTE = 3; + + /* + A non-recoverable error has occurred. + */ + FAILED_ERROR = 4; + + /* + Payment details incorrect (unknown hash, invalid amt or + invalid final cltv delta) + */ + FAILED_INCORRECT_PAYMENT_DETAILS = 5; + + /* + Insufficient local balance. + */ + FAILED_INSUFFICIENT_BALANCE = 6; +} + +message PaymentStatus { + // Current state the payment is in. + PaymentState state = 1; + + /* + The pre-image of the payment when state is SUCCEEDED. + */ + bytes preimage = 2; + + reserved 3; + + /* + The HTLCs made in attempt to settle the payment [EXPERIMENTAL]. + */ + repeated lnrpc.HTLCAttempt htlcs = 4; +} + +message CircuitKey { + /// The id of the channel that the is part of this circuit. + uint64 chan_id = 1; + + /// The index of the incoming htlc in the incoming channel. + uint64 htlc_id = 2; +} + +message ForwardHtlcInterceptRequest { + /* + The key of this forwarded htlc. It defines the incoming channel id and + the index in this channel. + */ + CircuitKey incoming_circuit_key = 1; + + // The incoming htlc amount. + uint64 incoming_amount_msat = 5; + + // The incoming htlc expiry. + uint32 incoming_expiry = 6; + + /* + The htlc payment hash. This value is not guaranteed to be unique per + request. + */ + bytes payment_hash = 2; + + // The requested outgoing channel id for this forwarded htlc. Because of + // non-strict forwarding, this isn't necessarily the channel over which the + // packet will be forwarded eventually. A different channel to the same peer + // may be selected as well. + uint64 outgoing_requested_chan_id = 7; + + // The outgoing htlc amount. + uint64 outgoing_amount_msat = 3; + + // The outgoing htlc expiry. + uint32 outgoing_expiry = 4; + + // Any custom records that were present in the payload. + map custom_records = 8; + + // The onion blob for the next hop + bytes onion_blob = 9; + + // The block height at which this htlc will be auto-failed to prevent the + // channel from force-closing. + int32 auto_fail_height = 10; +} + +/** +ForwardHtlcInterceptResponse enables the caller to resolve a previously hold +forward. The caller can choose either to: +- `Resume`: Execute the default behavior (usually forward). +- `Reject`: Fail the htlc backwards. +- `Settle`: Settle this htlc with a given preimage. +*/ +message ForwardHtlcInterceptResponse { + /** + The key of this forwarded htlc. It defines the incoming channel id and + the index in this channel. + */ + CircuitKey incoming_circuit_key = 1; + + // The resolve action for this intercepted htlc. + ResolveHoldForwardAction action = 2; + + // The preimage in case the resolve action is Settle. + bytes preimage = 3; + + // Encrypted failure message in case the resolve action is Fail. + // + // If failure_message is specified, the failure_code field must be set + // to zero. + bytes failure_message = 4; + + // Return the specified failure code in case the resolve action is Fail. The + // message data fields are populated automatically. + // + // If a non-zero failure_code is specified, failure_message must not be set. + // + // For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the + // default value for this field. + lnrpc.Failure.FailureCode failure_code = 5; +} + +enum ResolveHoldForwardAction { + SETTLE = 0; + FAIL = 1; + RESUME = 2; +} + +message UpdateChanStatusRequest { + lnrpc.ChannelPoint chan_point = 1; + + ChanStatusAction action = 2; +} + +enum ChanStatusAction { + ENABLE = 0; + DISABLE = 1; + AUTO = 2; +} + +message UpdateChanStatusResponse { +} diff --git a/proto/signrpc/signer.proto b/proto/signrpc/signer.proto new file mode 100644 index 000000000..6540252f6 --- /dev/null +++ b/proto/signrpc/signer.proto @@ -0,0 +1,687 @@ +syntax = "proto3"; + +package signrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/signrpc"; + +// Signer is a service that gives access to the signing functionality of the +// daemon's wallet. +service Signer { + /* + SignOutputRaw is a method that can be used to generated a signature for a + set of inputs/outputs to a transaction. Each request specifies details + concerning how the outputs should be signed, which keys they should be + signed with, and also any optional tweaks. The return value is a fixed + 64-byte signature (the same format as we use on the wire in Lightning). + + If we are unable to sign using the specified keys, then an error will be + returned. + */ + rpc SignOutputRaw (SignReq) returns (SignResp); + + /* + ComputeInputScript generates a complete InputIndex for the passed + transaction with the signature as defined within the passed SignDescriptor. + This method should be capable of generating the proper input script for both + regular p2wkh/p2tr outputs and p2wkh outputs nested within a regular p2sh + output. + + Note that when using this method to sign inputs belonging to the wallet, + the only items of the SignDescriptor that need to be populated are pkScript + in the TxOut field, the value in that same field, and finally the input + index. + */ + rpc ComputeInputScript (SignReq) returns (InputScriptResp); + + /* + SignMessage signs a message with the key specified in the key locator. The + returned signature is fixed-size LN wire format encoded. + + The main difference to SignMessage in the main RPC is that a specific key is + used to sign the message instead of the node identity private key. + */ + rpc SignMessage (SignMessageReq) returns (SignMessageResp); + + /* + VerifyMessage verifies a signature over a message using the public key + provided. The signature must be fixed-size LN wire format encoded. + + The main difference to VerifyMessage in the main RPC is that the public key + used to sign the message does not have to be a node known to the network. + */ + rpc VerifyMessage (VerifyMessageReq) returns (VerifyMessageResp); + + /* + DeriveSharedKey returns a shared secret key by performing Diffie-Hellman key + derivation between the ephemeral public key in the request and the node's + key specified in the key_desc parameter. Either a key locator or a raw + public key is expected in the key_desc, if neither is supplied, defaults to + the node's identity private key: + P_shared = privKeyNode * ephemeralPubkey + The resulting shared public key is serialized in the compressed format and + hashed with sha256, resulting in the final key length of 256bit. + */ + rpc DeriveSharedKey (SharedKeyRequest) returns (SharedKeyResponse); + + /* + MuSig2CombineKeys (experimental!) is a stateless helper RPC that can be used + to calculate the combined MuSig2 public key from a list of all participating + signers' public keys. This RPC is completely stateless and deterministic and + does not create any signing session. It can be used to determine the Taproot + public key that should be put in an on-chain output once all public keys are + known. A signing session is only needed later when that output should be + _spent_ again. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2CombineKeys (MuSig2CombineKeysRequest) + returns (MuSig2CombineKeysResponse); + + /* + MuSig2CreateSession (experimental!) creates a new MuSig2 signing session + using the local key identified by the key locator. The complete list of all + public keys of all signing parties must be provided, including the public + key of the local signing key. If nonces of other parties are already known, + they can be submitted as well to reduce the number of RPC calls necessary + later on. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2CreateSession (MuSig2SessionRequest) + returns (MuSig2SessionResponse); + + /* + MuSig2RegisterNonces (experimental!) registers one or more public nonces of + other signing participants for a session identified by its ID. This RPC can + be called multiple times until all nonces are registered. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2RegisterNonces (MuSig2RegisterNoncesRequest) + returns (MuSig2RegisterNoncesResponse); + + /* + MuSig2Sign (experimental!) creates a partial signature using the local + signing key that was specified when the session was created. This can only + be called when all public nonces of all participants are known and have been + registered with the session. If this node isn't responsible for combining + all the partial signatures, then the cleanup flag should be set, indicating + that the session can be removed from memory once the signature was produced. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2Sign (MuSig2SignRequest) returns (MuSig2SignResponse); + + /* + MuSig2CombineSig (experimental!) combines the given partial signature(s) + with the local one, if it already exists. Once a partial signature of all + participants is registered, the final signature will be combined and + returned. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2CombineSig (MuSig2CombineSigRequest) + returns (MuSig2CombineSigResponse); + + /* + MuSig2Cleanup (experimental!) allows a caller to clean up a session early in + cases where it's obvious that the signing session won't succeed and the + resources can be released. + + NOTE: The MuSig2 BIP is not final yet and therefore this API must be + considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming + releases. Backward compatibility is not guaranteed! + */ + rpc MuSig2Cleanup (MuSig2CleanupRequest) returns (MuSig2CleanupResponse); +} + +message KeyLocator { + // The family of key being identified. + int32 key_family = 1; + + // The precise index of the key being identified. + int32 key_index = 2; +} + +message KeyDescriptor { + /* + The raw bytes of the public key in the key pair being identified. Either + this or the KeyLocator must be specified. + */ + bytes raw_key_bytes = 1; + + /* + The key locator that identifies which private key to use for signing. + Either this or the raw bytes of the target public key must be specified. + */ + KeyLocator key_loc = 2; +} + +message TxOut { + // The value of the output being spent. + int64 value = 1; + + // The script of the output being spent. + bytes pk_script = 2; +} + +enum SignMethod { + /* + Specifies that a SegWit v0 (p2wkh, np2wkh, p2wsh) input script should be + signed. + */ + SIGN_METHOD_WITNESS_V0 = 0; + + /* + Specifies that a SegWit v1 (p2tr) input should be signed by using the + BIP0086 method (commit to internal key only). + */ + SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086 = 1; + + /* + Specifies that a SegWit v1 (p2tr) input should be signed by using a given + taproot hash to commit to in addition to the internal key. + */ + SIGN_METHOD_TAPROOT_KEY_SPEND = 2; + + /* + Specifies that a SegWit v1 (p2tr) input should be spent using the script + path and that a specific leaf script should be signed for. + */ + SIGN_METHOD_TAPROOT_SCRIPT_SPEND = 3; +} + +message SignDescriptor { + /* + A descriptor that precisely describes *which* key to use for signing. This + may provide the raw public key directly, or require the Signer to re-derive + the key according to the populated derivation path. + + Note that if the key descriptor was obtained through walletrpc.DeriveKey, + then the key locator MUST always be provided, since the derived keys are not + persisted unlike with DeriveNextKey. + */ + KeyDescriptor key_desc = 1; + + /* + A scalar value that will be added to the private key corresponding to the + above public key to obtain the private key to be used to sign this input. + This value is typically derived via the following computation: + + * derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N + */ + bytes single_tweak = 2; + + /* + A private key that will be used in combination with its corresponding + private key to derive the private key that is to be used to sign the target + input. Within the Lightning protocol, this value is typically the + commitment secret from a previously revoked commitment transaction. This + value is in combination with two hash values, and the original private key + to derive the private key to be used when signing. + + * k = (privKey*sha256(pubKey || tweakPub) + + tweakPriv*sha256(tweakPub || pubKey)) mod N + */ + bytes double_tweak = 3; + + /* + The 32 byte input to the taproot tweak derivation that is used to derive + the output key from an internal key: outputKey = internalKey + + tagged_hash("tapTweak", internalKey || tapTweak). + + When doing a BIP 86 spend, this field can be an empty byte slice. + + When doing a normal key path spend, with the output key committing to an + actual script root, then this field should be: the tapscript root hash. + */ + bytes tap_tweak = 10; + + /* + The full script required to properly redeem the output. This field will + only be populated if a p2tr, p2wsh or a p2sh output is being signed. If a + taproot script path spend is being attempted, then this should be the raw + leaf script. + */ + bytes witness_script = 4; + + /* + A description of the output being spent. The value and script MUST be + provided. + */ + TxOut output = 5; + + /* + The target sighash type that should be used when generating the final + sighash, and signature. + */ + uint32 sighash = 7; + + /* + The target input within the transaction that should be signed. + */ + int32 input_index = 8; + + /* + The sign method specifies how the input should be signed. Depending on the + method, either the tap_tweak, witness_script or both need to be specified. + Defaults to SegWit v0 signing to be backward compatible with older RPC + clients. + */ + SignMethod sign_method = 9; +} + +message SignReq { + // The raw bytes of the transaction to be signed. + bytes raw_tx_bytes = 1; + + // A set of sign descriptors, for each input to be signed. + repeated SignDescriptor sign_descs = 2; + + /* + The full list of UTXO information for each of the inputs being spent. This + is required when spending one or more taproot (SegWit v1) outputs. + */ + repeated TxOut prev_outputs = 3; +} + +message SignResp { + /* + A set of signatures realized in a fixed 64-byte format ordered in ascending + input order. + */ + repeated bytes raw_sigs = 1; +} + +message InputScript { + // The serializes witness stack for the specified input. + repeated bytes witness = 1; + + /* + The optional sig script for the specified witness that will only be set if + the input specified is a nested p2sh witness program. + */ + bytes sig_script = 2; +} + +message InputScriptResp { + // The set of fully valid input scripts requested. + repeated InputScript input_scripts = 1; +} + +message SignMessageReq { + /* + The message to be signed. When using REST, this field must be encoded as + base64. + */ + bytes msg = 1; + + // The key locator that identifies which key to use for signing. + KeyLocator key_loc = 2; + + // Double-SHA256 hash instead of just the default single round. + bool double_hash = 3; + + /* + Use the compact (pubkey recoverable) format instead of the raw lnwire + format. This option cannot be used with Schnorr signatures. + */ + bool compact_sig = 4; + + /* + Use Schnorr signature. This option cannot be used with compact format. + */ + bool schnorr_sig = 5; + + /* + The optional Taproot tweak bytes to apply to the private key before creating + a Schnorr signature. The private key is tweaked as described in BIP-341: + privKey + h_tapTweak(internalKey || tapTweak) + */ + bytes schnorr_sig_tap_tweak = 6; +} +message SignMessageResp { + /* + The signature for the given message in the fixed-size LN wire format. + */ + bytes signature = 1; +} + +message VerifyMessageReq { + // The message over which the signature is to be verified. When using + // REST, this field must be encoded as base64. + bytes msg = 1; + + /* + The fixed-size LN wire encoded signature to be verified over the given + message. When using REST, this field must be encoded as base64. + */ + bytes signature = 2; + + /* + The public key the signature has to be valid for. When using REST, this + field must be encoded as base64. If the is_schnorr_sig option is true, then + the public key is expected to be in the 32-byte x-only serialization + according to BIP-340. + */ + bytes pubkey = 3; + + /* + Specifies if the signature is a Schnorr signature. + */ + bool is_schnorr_sig = 4; +} + +message VerifyMessageResp { + // Whether the signature was valid over the given message. + bool valid = 1; +} + +message SharedKeyRequest { + // The ephemeral public key to use for the DH key derivation. + bytes ephemeral_pubkey = 1; + + /* + Deprecated. The optional key locator of the local key that should be used. + If this parameter is not set then the node's identity private key will be + used. + */ + KeyLocator key_loc = 2 [deprecated = true]; + + /* + A key descriptor describes the key used for performing ECDH. Either a key + locator or a raw public key is expected, if neither is supplied, defaults to + the node's identity private key. + */ + KeyDescriptor key_desc = 3; +} + +message SharedKeyResponse { + // The shared public key, hashed with sha256. + bytes shared_key = 1; +} + +message TweakDesc { + /* + Tweak is the 32-byte value that will modify the public key. + */ + bytes tweak = 1; + + /* + Specifies if the target key should be converted to an x-only public key + before tweaking. If true, then the public key will be mapped to an x-only + key before the tweaking operation is applied. + */ + bool is_x_only = 2; +} + +message TaprootTweakDesc { + /* + The root hash of the tapscript tree if a script path is committed to. If + the MuSig2 key put on chain doesn't also commit to a script path (BIP-0086 + key spend only), then this needs to be empty and the key_spend_only field + below must be set to true. This is required because gRPC cannot + differentiate between a zero-size byte slice and a nil byte slice (both + would be serialized the same way). So the extra boolean is required. + */ + bytes script_root = 1; + + /* + Indicates that the above script_root is expected to be empty because this + is a BIP-0086 key spend only commitment where only the internal key is + committed to instead of also including a script root hash. + */ + bool key_spend_only = 2; +} + +enum MuSig2Version { + /* + The default value on the RPC is zero for enums so we need to represent an + invalid/undefined version by default to make sure clients upgrade their + software to set the version explicitly. + */ + MUSIG2_VERSION_UNDEFINED = 0; + + /* + The version of MuSig2 that lnd 0.15.x shipped with, which corresponds to the + version v0.4.0 of the MuSig2 BIP draft. + */ + MUSIG2_VERSION_V040 = 1; + + /* + The current version of MuSig2 which corresponds to the version v1.0.0rc2 of + the MuSig2 BIP draft. + */ + MUSIG2_VERSION_V100RC2 = 2; +} + +message MuSig2CombineKeysRequest { + /* + A list of all public keys (serialized in 32-byte x-only format for v0.4.0 + and 33-byte compressed format for v1.0.0rc2!) participating in the signing + session. The list will always be sorted lexicographically internally. This + must include the local key which is described by the above key_loc. + */ + repeated bytes all_signer_pubkeys = 1; + + /* + A series of optional generic tweaks to be applied to the the aggregated + public key. + */ + repeated TweakDesc tweaks = 2; + + /* + An optional taproot specific tweak that must be specified if the MuSig2 + combined key will be used as the main taproot key of a taproot output + on-chain. + */ + TaprootTweakDesc taproot_tweak = 3; + + /* + The mandatory version of the MuSig2 BIP draft to use. This is necessary to + differentiate between the changes that were made to the BIP while this + experimental RPC was already released. Some of those changes affect how the + combined key and nonces are created. + */ + MuSig2Version version = 4; +} + +message MuSig2CombineKeysResponse { + /* + The combined public key (in the 32-byte x-only format) with all tweaks + applied to it. If a taproot tweak is specified, this corresponds to the + taproot key that can be put into the on-chain output. + */ + bytes combined_key = 1; + + /* + The raw combined public key (in the 32-byte x-only format) before any tweaks + are applied to it. If a taproot tweak is specified, this corresponds to the + internal key that needs to be put into the witness if the script spend path + is used. + */ + bytes taproot_internal_key = 2; + + /* + The version of the MuSig2 BIP that was used to combine the keys. + */ + MuSig2Version version = 4; +} + +message MuSig2SessionRequest { + /* + The key locator that identifies which key to use for signing. + */ + KeyLocator key_loc = 1; + + /* + A list of all public keys (serialized in 32-byte x-only format for v0.4.0 + and 33-byte compressed format for v1.0.0rc2!) participating in the signing + session. The list will always be sorted lexicographically internally. This + must include the local key which is described by the above key_loc. + */ + repeated bytes all_signer_pubkeys = 2; + + /* + An optional list of all public nonces of other signing participants that + might already be known. + */ + repeated bytes other_signer_public_nonces = 3; + + /* + A series of optional generic tweaks to be applied to the the aggregated + public key. + */ + repeated TweakDesc tweaks = 4; + + /* + An optional taproot specific tweak that must be specified if the MuSig2 + combined key will be used as the main taproot key of a taproot output + on-chain. + */ + TaprootTweakDesc taproot_tweak = 5; + + /* + The mandatory version of the MuSig2 BIP draft to use. This is necessary to + differentiate between the changes that were made to the BIP while this + experimental RPC was already released. Some of those changes affect how the + combined key and nonces are created. + */ + MuSig2Version version = 6; +} + +message MuSig2SessionResponse { + /* + The unique ID that represents this signing session. A session can be used + for producing a signature a single time. If the signing fails for any + reason, a new session with the same participants needs to be created. + */ + bytes session_id = 1; + + /* + The combined public key (in the 32-byte x-only format) with all tweaks + applied to it. If a taproot tweak is specified, this corresponds to the + taproot key that can be put into the on-chain output. + */ + bytes combined_key = 2; + + /* + The raw combined public key (in the 32-byte x-only format) before any tweaks + are applied to it. If a taproot tweak is specified, this corresponds to the + internal key that needs to be put into the witness if the script spend path + is used. + */ + bytes taproot_internal_key = 3; + + /* + The two public nonces the local signer uses, combined into a single value + of 66 bytes. Can be split into the two 33-byte points to get the individual + nonces. + */ + bytes local_public_nonces = 4; + + /* + Indicates whether all nonces required to start the signing process are known + now. + */ + bool have_all_nonces = 5; + + /* + The version of the MuSig2 BIP that was used to create the session. + */ + MuSig2Version version = 6; +} + +message MuSig2RegisterNoncesRequest { + /* + The unique ID of the signing session those nonces should be registered with. + */ + bytes session_id = 1; + + /* + A list of all public nonces of other signing participants that should be + registered. + */ + repeated bytes other_signer_public_nonces = 3; +} + +message MuSig2RegisterNoncesResponse { + /* + Indicates whether all nonces required to start the signing process are known + now. + */ + bool have_all_nonces = 1; +} + +message MuSig2SignRequest { + /* + The unique ID of the signing session to use for signing. + */ + bytes session_id = 1; + + /* + The 32-byte SHA256 digest of the message to sign. + */ + bytes message_digest = 2; + + /* + Cleanup indicates that after signing, the session state can be cleaned up, + since another participant is going to be responsible for combining the + partial signatures. + */ + bool cleanup = 3; +} + +message MuSig2SignResponse { + /* + The partial signature created by the local signer. + */ + bytes local_partial_signature = 1; +} + +message MuSig2CombineSigRequest { + /* + The unique ID of the signing session to combine the signatures for. + */ + bytes session_id = 1; + + /* + The list of all other participants' partial signatures to add to the current + session. + */ + repeated bytes other_partial_signatures = 2; +} + +message MuSig2CombineSigResponse { + /* + Indicates whether all partial signatures required to create a final, full + signature are known yet. If this is true, then the final_signature field is + set, otherwise it is empty. + */ + bool have_all_signatures = 1; + + /* + The final, full signature that is valid for the combined public key. + */ + bytes final_signature = 2; +} + +message MuSig2CleanupRequest { + /* + The unique ID of the signing session that should be removed/cleaned up. + */ + bytes session_id = 1; +} + +message MuSig2CleanupResponse { +} \ No newline at end of file diff --git a/proto/state.proto b/proto/state.proto new file mode 100644 index 000000000..97a78d31a --- /dev/null +++ b/proto/state.proto @@ -0,0 +1,73 @@ +syntax = "proto3"; + +package lnrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc"; + +/* + * Comments in this file will be directly parsed into the API + * Documentation as descriptions of the associated method, message, or field. + * These descriptions should go right above the definition of the object, and + * can be in either block or // comment format. + * + * An RPC method can be matched to an lncli command by placing a line in the + * beginning of the description in exactly the following format: + * lncli: `methodname` + * + * Failure to specify the exact name of the command will cause documentation + * generation to fail. + * + * More information on how exactly the gRPC documentation is generated from + * this proto file can be found here: + * https://github.com/lightninglabs/lightning-api + */ + +// State service is a always running service that exposes the current state of +// the wallet and RPC server. +service State { + // SubscribeState subscribes to the state of the wallet. The current wallet + // state will always be delivered immediately. + rpc SubscribeState (SubscribeStateRequest) + returns (stream SubscribeStateResponse); + + // GetState returns the current wallet state without streaming further + // changes. + rpc GetState (GetStateRequest) returns (GetStateResponse); +} + +enum WalletState { + // NON_EXISTING means that the wallet has not yet been initialized. + NON_EXISTING = 0; + + // LOCKED means that the wallet is locked and requires a password to unlock. + LOCKED = 1; + + // UNLOCKED means that the wallet was unlocked successfully, but RPC server + // isn't ready. + UNLOCKED = 2; + + // RPC_ACTIVE means that the lnd server is active but not fully ready for + // calls. + RPC_ACTIVE = 3; + + // SERVER_ACTIVE means that the lnd server is ready to accept calls. + SERVER_ACTIVE = 4; + + // WAITING_TO_START means that node is waiting to become the leader in a + // cluster and is not started yet. + WAITING_TO_START = 255; +} + +message SubscribeStateRequest { +} + +message SubscribeStateResponse { + WalletState state = 1; +} + +message GetStateRequest { +} + +message GetStateResponse { + WalletState state = 1; +} diff --git a/proto/walletrpc/walletkit.proto b/proto/walletrpc/walletkit.proto new file mode 100644 index 000000000..e11bc07e0 --- /dev/null +++ b/proto/walletrpc/walletkit.proto @@ -0,0 +1,1173 @@ +syntax = "proto3"; + +import "lightning.proto"; +import "signrpc/signer.proto"; + +package walletrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/walletrpc"; + +// WalletKit is a service that gives access to the core functionalities of the +// daemon's wallet. +service WalletKit { + /* + ListUnspent returns a list of all utxos spendable by the wallet with a + number of confirmations between the specified minimum and maximum. By + default, all utxos are listed. To list only the unconfirmed utxos, set + the unconfirmed_only to true. + */ + rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse); + + /* + LeaseOutput locks an output to the given ID, preventing it from being + available for any future coin selection attempts. The absolute time of the + lock's expiration is returned. The expiration of the lock can be extended by + successive invocations of this RPC. Outputs can be unlocked before their + expiration through `ReleaseOutput`. + */ + rpc LeaseOutput (LeaseOutputRequest) returns (LeaseOutputResponse); + + /* + ReleaseOutput unlocks an output, allowing it to be available for coin + selection if it remains unspent. The ID should match the one used to + originally lock the output. + */ + rpc ReleaseOutput (ReleaseOutputRequest) returns (ReleaseOutputResponse); + + /* + ListLeases lists all currently locked utxos. + */ + rpc ListLeases (ListLeasesRequest) returns (ListLeasesResponse); + + /* + DeriveNextKey attempts to derive the *next* key within the key family + (account in BIP43) specified. This method should return the next external + child within this branch. + */ + rpc DeriveNextKey (KeyReq) returns (signrpc.KeyDescriptor); + + /* + DeriveKey attempts to derive an arbitrary key specified by the passed + KeyLocator. + */ + rpc DeriveKey (signrpc.KeyLocator) returns (signrpc.KeyDescriptor); + + /* + NextAddr returns the next unused address within the wallet. + */ + rpc NextAddr (AddrRequest) returns (AddrResponse); + + /* + ListAccounts retrieves all accounts belonging to the wallet by default. A + name and key scope filter can be provided to filter through all of the + wallet accounts and return only those matching. + */ + rpc ListAccounts (ListAccountsRequest) returns (ListAccountsResponse); + + /* + RequiredReserve returns the minimum amount of satoshis that should be kept + in the wallet in order to fee bump anchor channels if necessary. The value + scales with the number of public anchor channels but is capped at a maximum. + */ + rpc RequiredReserve (RequiredReserveRequest) + returns (RequiredReserveResponse); + + /* + ListAddresses retrieves all the addresses along with their balance. An + account name filter can be provided to filter through all of the + wallet accounts and return the addresses of only those matching. + */ + rpc ListAddresses (ListAddressesRequest) returns (ListAddressesResponse); + + /* + SignMessageWithAddr returns the compact signature (base64 encoded) created + with the private key of the provided address. This requires the address + to be solely based on a public key lock (no scripts). Obviously the internal + lnd wallet has to possess the private key of the address otherwise + an error is returned. + + This method aims to provide full compatibility with the bitcoin-core and + btcd implementation. Bitcoin-core's algorithm is not specified in a + BIP and only applicable for legacy addresses. This method enhances the + signing for additional address types: P2WKH, NP2WKH, P2TR. + For P2TR addresses this represents a special case. ECDSA is used to create + a compact signature which makes the public key of the signature recoverable. + */ + rpc SignMessageWithAddr (SignMessageWithAddrRequest) + returns (SignMessageWithAddrResponse); + + /* + VerifyMessageWithAddr returns the validity and the recovered public key of + the provided compact signature (base64 encoded). The verification is + twofold. First the validity of the signature itself is checked and then + it is verified that the recovered public key of the signature equals + the public key of the provided address. There is no dependence on the + private key of the address therefore also external addresses are allowed + to verify signatures. + Supported address types are P2PKH, P2WKH, NP2WKH, P2TR. + + This method is the counterpart of the related signing method + (SignMessageWithAddr) and aims to provide full compatibility to + bitcoin-core's implementation. Although bitcoin-core/btcd only provide + this functionality for legacy addresses this function enhances it to + the address types: P2PKH, P2WKH, NP2WKH, P2TR. + + The verification for P2TR addresses is a special case and requires the + ECDSA compact signature to compare the reovered public key to the internal + taproot key. The compact ECDSA signature format was used because there + are still no known compact signature schemes for schnorr signatures. + */ + rpc VerifyMessageWithAddr (VerifyMessageWithAddrRequest) + returns (VerifyMessageWithAddrResponse); + + /* + ImportAccount imports an account backed by an account extended public key. + The master key fingerprint denotes the fingerprint of the root key + corresponding to the account public key (also known as the key with + derivation path m/). This may be required by some hardware wallets for + proper identification and signing. + + The address type can usually be inferred from the key's version, but may be + required for certain keys to map them into the proper scope. + + For BIP-0044 keys, an address type must be specified as we intend to not + support importing BIP-0044 keys into the wallet using the legacy + pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force + the standard BIP-0049 derivation scheme, while a witness address type will + force the standard BIP-0084 derivation scheme. + + For BIP-0049 keys, an address type must also be specified to make a + distinction between the standard BIP-0049 address schema (nested witness + pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys + externally, witness pubkeys internally). + + NOTE: Events (deposits/spends) for keys derived from an account will only be + detected by lnd if they happen after the import. Rescans to detect past + events will be supported later on. + */ + rpc ImportAccount (ImportAccountRequest) returns (ImportAccountResponse); + + /* + ImportPublicKey imports a public key as watch-only into the wallet. The + public key is converted into a simple address of the given type and that + address script is watched on chain. For Taproot keys, this will only watch + the BIP-0086 style output script. Use ImportTapscript for more advanced key + spend or script spend outputs. + + NOTE: Events (deposits/spends) for a key will only be detected by lnd if + they happen after the import. Rescans to detect past events will be + supported later on. + */ + rpc ImportPublicKey (ImportPublicKeyRequest) + returns (ImportPublicKeyResponse); + + /* + ImportTapscript imports a Taproot script and internal key and adds the + resulting Taproot output key as a watch-only output script into the wallet. + For BIP-0086 style Taproot keys (no root hash commitment and no script spend + path) use ImportPublicKey. + + NOTE: Events (deposits/spends) for a key will only be detected by lnd if + they happen after the import. Rescans to detect past events will be + supported later on. + + NOTE: Taproot keys imported through this RPC currently _cannot_ be used for + funding PSBTs. Only tracking the balance and UTXOs is currently supported. + */ + rpc ImportTapscript (ImportTapscriptRequest) + returns (ImportTapscriptResponse); + + /* + PublishTransaction attempts to publish the passed transaction to the + network. Once this returns without an error, the wallet will continually + attempt to re-broadcast the transaction on start up, until it enters the + chain. + */ + rpc PublishTransaction (Transaction) returns (PublishResponse); + + /* + SendOutputs is similar to the existing sendmany call in Bitcoind, and + allows the caller to create a transaction that sends to several outputs at + once. This is ideal when wanting to batch create a set of transactions. + */ + rpc SendOutputs (SendOutputsRequest) returns (SendOutputsResponse); + + /* + EstimateFee attempts to query the internal fee estimator of the wallet to + determine the fee (in sat/kw) to attach to a transaction in order to + achieve the confirmation target. + */ + rpc EstimateFee (EstimateFeeRequest) returns (EstimateFeeResponse); + + /* + PendingSweeps returns lists of on-chain outputs that lnd is currently + attempting to sweep within its central batching engine. Outputs with similar + fee rates are batched together in order to sweep them within a single + transaction. + + NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to + remain supported. This is an advanced API that depends on the internals of + the UtxoSweeper, so things may change. + */ + rpc PendingSweeps (PendingSweepsRequest) returns (PendingSweepsResponse); + + /* + BumpFee bumps the fee of an arbitrary input within a transaction. This RPC + takes a different approach than bitcoind's bumpfee command. lnd has a + central batching engine in which inputs with similar fee rates are batched + together to save on transaction fees. Due to this, we cannot rely on + bumping the fee on a specific transaction, since transactions can change at + any point with the addition of new inputs. The list of inputs that + currently exist within lnd's central batching engine can be retrieved + through the PendingSweeps RPC. + + When bumping the fee of an input that currently exists within lnd's central + batching engine, a higher fee transaction will be created that replaces the + lower fee transaction through the Replace-By-Fee (RBF) policy. If it + + This RPC also serves useful when wanting to perform a Child-Pays-For-Parent + (CPFP), where the child transaction pays for its parent's fee. This can be + done by specifying an outpoint within the low fee transaction that is under + the control of the wallet. + + The fee preference can be expressed either as a specific fee rate or a delta + of blocks in which the output should be swept on-chain within. If a fee + preference is not explicitly specified, then an error is returned. + + Note that this RPC currently doesn't perform any validation checks on the + fee preference being provided. For now, the responsibility of ensuring that + the new fee preference is sufficient is delegated to the user. + */ + rpc BumpFee (BumpFeeRequest) returns (BumpFeeResponse); + + /* + ListSweeps returns a list of the sweep transactions our node has produced. + Note that these sweeps may not be confirmed yet, as we record sweeps on + broadcast, not confirmation. + */ + rpc ListSweeps (ListSweepsRequest) returns (ListSweepsResponse); + + /* + LabelTransaction adds a label to a transaction. If the transaction already + has a label the call will fail unless the overwrite bool is set. This will + overwrite the exiting transaction label. Labels must not be empty, and + cannot exceed 500 characters. + */ + rpc LabelTransaction (LabelTransactionRequest) + returns (LabelTransactionResponse); + + /* + FundPsbt creates a fully populated PSBT that contains enough inputs to fund + the outputs specified in the template. There are two ways of specifying a + template: Either by passing in a PSBT with at least one output declared or + by passing in a raw TxTemplate message. + + If there are no inputs specified in the template, coin selection is + performed automatically. If the template does contain any inputs, it is + assumed that full coin selection happened externally and no additional + inputs are added. If the specified inputs aren't enough to fund the outputs + with the given fee rate, an error is returned. + + After either selecting or verifying the inputs, all input UTXOs are locked + with an internal app ID. + + NOTE: If this method returns without an error, it is the caller's + responsibility to either spend the locked UTXOs (by finalizing and then + publishing the transaction) or to unlock/release the locked UTXOs in case of + an error on the caller's side. + */ + rpc FundPsbt (FundPsbtRequest) returns (FundPsbtResponse); + + /* + SignPsbt expects a partial transaction with all inputs and outputs fully + declared and tries to sign all unsigned inputs that have all required fields + (UTXO information, BIP32 derivation information, witness or sig scripts) + set. + If no error is returned, the PSBT is ready to be given to the next signer or + to be finalized if lnd was the last signer. + + NOTE: This RPC only signs inputs (and only those it can sign), it does not + perform any other tasks (such as coin selection, UTXO locking or + input/output/fee value validation, PSBT finalization). Any input that is + incomplete will be skipped. + */ + rpc SignPsbt (SignPsbtRequest) returns (SignPsbtResponse); + + /* + FinalizePsbt expects a partial transaction with all inputs and outputs fully + declared and tries to sign all inputs that belong to the wallet. Lnd must be + the last signer of the transaction. That means, if there are any unsigned + non-witness inputs or inputs without UTXO information attached or inputs + without witness data that do not belong to lnd's wallet, this method will + fail. If no error is returned, the PSBT is ready to be extracted and the + final TX within to be broadcast. + + NOTE: This method does NOT publish the transaction once finalized. It is the + caller's responsibility to either publish the transaction on success or + unlock/release any locked UTXOs in case of an error in this method. + */ + rpc FinalizePsbt (FinalizePsbtRequest) returns (FinalizePsbtResponse); +} + +message ListUnspentRequest { + // The minimum number of confirmations to be included. + int32 min_confs = 1; + + // The maximum number of confirmations to be included. + int32 max_confs = 2; + + // An optional filter to only include outputs belonging to an account. + string account = 3; + + /* + When min_confs and max_confs are zero, setting false implicitly + overrides max_confs to be MaxInt32, otherwise max_confs remains + zero. An error is returned if the value is true and both min_confs + and max_confs are non-zero. (default: false) + */ + bool unconfirmed_only = 4; +} + +message ListUnspentResponse { + // A list of utxos satisfying the specified number of confirmations. + repeated lnrpc.Utxo utxos = 1; +} + +message LeaseOutputRequest { + /* + An ID of 32 random bytes that must be unique for each distinct application + using this RPC which will be used to bound the output lease to. + */ + bytes id = 1; + + // The identifying outpoint of the output being leased. + lnrpc.OutPoint outpoint = 2; + + // The time in seconds before the lock expires. If set to zero, the default + // lock duration is used. + uint64 expiration_seconds = 3; +} + +message LeaseOutputResponse { + /* + The absolute expiration of the output lease represented as a unix timestamp. + */ + uint64 expiration = 1; +} + +message ReleaseOutputRequest { + // The unique ID that was used to lock the output. + bytes id = 1; + + // The identifying outpoint of the output being released. + lnrpc.OutPoint outpoint = 2; +} + +message ReleaseOutputResponse { +} + +message KeyReq { + /* + Is the key finger print of the root pubkey that this request is targeting. + This allows the WalletKit to possibly serve out keys for multiple HD chains + via public derivation. + */ + int32 key_finger_print = 1; + + /* + The target key family to derive a key from. In other contexts, this is + known as the "account". + */ + int32 key_family = 2; +} + +message AddrRequest { + /* + The name of the account to retrieve the next address of. If empty, the + default wallet account is used. + */ + string account = 1; + + /* + The type of address to derive. + */ + AddressType type = 2; + + /* + Whether a change address should be derived. + */ + bool change = 3; +} +message AddrResponse { + /* + The address encoded using a bech32 format. + */ + string addr = 1; +} + +enum AddressType { + UNKNOWN = 0; + WITNESS_PUBKEY_HASH = 1; + NESTED_WITNESS_PUBKEY_HASH = 2; + HYBRID_NESTED_WITNESS_PUBKEY_HASH = 3; + TAPROOT_PUBKEY = 4; +} +message Account { + // The name used to identify the account. + string name = 1; + + // The type of addresses the account supports. + AddressType address_type = 2; + + /* + The public key backing the account that all keys are derived from + represented as an extended key. This will always be empty for the default + imported account in which single public keys are imported into. + */ + string extended_public_key = 3; + + /* + The fingerprint of the root key from which the account public key was + derived from. This will always be zero for the default imported account in + which single public keys are imported into. The bytes are in big-endian + order. + */ + bytes master_key_fingerprint = 4; + + /* + The derivation path corresponding to the account public key. This will + always be empty for the default imported account in which single public keys + are imported into. + */ + string derivation_path = 5; + + /* + The number of keys derived from the external branch of the account public + key. This will always be zero for the default imported account in which + single public keys are imported into. + */ + uint32 external_key_count = 6; + + /* + The number of keys derived from the internal branch of the account public + key. This will always be zero for the default imported account in which + single public keys are imported into. + */ + uint32 internal_key_count = 7; + + // Whether the wallet stores private keys for the account. + bool watch_only = 8; +} + +message AddressProperty { + /* + The address encoded using the appropriate format depending on the + address type (base58, bech32, bech32m). + + Note that lnd's internal/custom keys for channels and other + functionality are derived from the same scope. Since they + aren't really used as addresses and will never have an + on-chain balance, we'll show the public key instead (only if + the show_custom_accounts flag is provided). + */ + string address = 1; + + // Denotes if the address is a change address. + bool is_internal = 2; + + // The balance of the address. + int64 balance = 3; +} + +message AccountWithAddresses { + // The name used to identify the account. + string name = 1; + + // The type of addresses the account supports. + AddressType address_type = 2; + + /* + The derivation path corresponding to the account public key. This will + always be empty for the default imported account in which single public keys + are imported into. + */ + string derivation_path = 3; + + /* + List of address, its type internal/external & balance. + Note that the order of addresses will be random and not according to the + derivation index, since that information is not stored by the underlying + wallet. + */ + repeated AddressProperty addresses = 4; +} + +message ListAccountsRequest { + // An optional filter to only return accounts matching this name. + string name = 1; + + // An optional filter to only return accounts matching this address type. + AddressType address_type = 2; +} + +message ListAccountsResponse { + repeated Account accounts = 1; +} + +message RequiredReserveRequest { + // The number of additional channels the user would like to open. + uint32 additional_public_channels = 1; +} + +message RequiredReserveResponse { + // The amount of reserve required. + int64 required_reserve = 1; +} + +message ListAddressesRequest { + // An optional filter to only return addresses matching this account. + string account_name = 1; + + // An optional flag to return LND's custom accounts (Purpose=1017) + // public key along with other addresses. + bool show_custom_accounts = 2; +} + +message ListAddressesResponse { + // A list of all the accounts and their addresses. + repeated AccountWithAddresses account_with_addresses = 1; +} + +message SignMessageWithAddrRequest { + // The message to be signed. When using REST, this field must be encoded as + // base64. + bytes msg = 1; + + // The address which will be used to look up the private key and sign the + // corresponding message. + string addr = 2; +} + +message SignMessageWithAddrResponse { + // The compact ECDSA signature for the given message encoded in base64. + string signature = 1; +} + +message VerifyMessageWithAddrRequest { + // The message to be signed. When using REST, this field must be encoded as + // base64. + bytes msg = 1; + + // The compact ECDSA signature to be verified over the given message + // ecoded in base64. + string signature = 2; + + // The address which will be used to look up the public key and verify the + // the signature. + string addr = 3; +} + +message VerifyMessageWithAddrResponse { + // Whether the signature was valid over the given message. + bool valid = 1; + + // The pubkey recovered from the signature. + bytes pubkey = 2; +} + +message ImportAccountRequest { + // A name to identify the account with. + string name = 1; + + /* + A public key that corresponds to a wallet account represented as an extended + key. It must conform to a derivation path of the form + m/purpose'/coin_type'/account'. + */ + string extended_public_key = 2; + + /* + The fingerprint of the root key (also known as the key with derivation path + m/) from which the account public key was derived from. This may be required + by some hardware wallets for proper identification and signing. The bytes + must be in big-endian order. + */ + bytes master_key_fingerprint = 3; + + /* + An address type is only required when the extended account public key has a + legacy version (xpub, tpub, etc.), such that the wallet cannot detect what + address scheme it belongs to. + */ + AddressType address_type = 4; + + /* + Whether a dry run should be attempted when importing the account. This + serves as a way to confirm whether the account is being imported correctly + by returning the first N addresses for the external and internal branches of + the account. If these addresses match as expected, then it should be safe to + import the account as is. + */ + bool dry_run = 5; +} +message ImportAccountResponse { + // The details of the imported account. + Account account = 1; + + /* + The first N addresses that belong to the external branch of the account. + The external branch is typically used for external non-change addresses. + These are only returned if a dry run was specified within the request. + */ + repeated string dry_run_external_addrs = 2; + + /* + The first N addresses that belong to the internal branch of the account. + The internal branch is typically used for change addresses. These are only + returned if a dry run was specified within the request. + */ + repeated string dry_run_internal_addrs = 3; +} + +message ImportPublicKeyRequest { + // A compressed public key represented as raw bytes. + bytes public_key = 1; + + // The type of address that will be generated from the public key. + AddressType address_type = 2; +} +message ImportPublicKeyResponse { +} + +message ImportTapscriptRequest { + /* + The internal public key, serialized as 32-byte x-only public key. + */ + bytes internal_public_key = 1; + + oneof script { + /* + The full script tree with all individual leaves is known and the root + hash can be constructed from the full tree directly. + */ + TapscriptFullTree full_tree = 2; + + /* + Only a single script leaf is known. To construct the root hash, the full + inclusion proof must also be provided. + */ + TapscriptPartialReveal partial_reveal = 3; + + /* + Only the root hash of the Taproot script tree (or other form of Taproot + commitment) is known. + */ + bytes root_hash_only = 4; + + /* + Only the final, tweaked Taproot key is known and no additional + information about the internal key or type of tweak that was used to + derive it. When this is set, the wallet treats the key in + internal_public_key as the Taproot key directly. This can be useful for + tracking arbitrary Taproot outputs without the goal of ever being able + to spend from them through the internal wallet. + */ + bool full_key_only = 5; + } +} + +message TapscriptFullTree { + /* + The complete, ordered list of all tap leaves of the tree. + */ + repeated TapLeaf all_leaves = 1; +} + +message TapLeaf { + // The leaf version. Should be 0xc0 (192) in case of a SegWit v1 script. + uint32 leaf_version = 1; + + // The script of the tap leaf. + bytes script = 2; +} + +message TapscriptPartialReveal { + // The tap leaf that is known and will be revealed. + TapLeaf revealed_leaf = 1; + + // The BIP-0341 serialized inclusion proof that is required to prove that + // the revealed leaf is part of the tree. This contains 0..n blocks of 32 + // bytes. If the tree only contained a single leaf (which is the revealed + // leaf), this can be empty. + bytes full_inclusion_proof = 2; +} + +message ImportTapscriptResponse { + /* + The resulting pay-to-Taproot address that represents the imported internal + key with the script committed to it. + */ + string p2tr_address = 1; +} + +message Transaction { + /* + The raw serialized transaction. + */ + bytes tx_hex = 1; + + /* + An optional label to save with the transaction. Limited to 500 characters. + */ + string label = 2; +} +message PublishResponse { + /* + If blank, then no error occurred and the transaction was successfully + published. If not the empty string, then a string representation of the + broadcast error. + + TODO(roasbeef): map to a proper enum type + */ + string publish_error = 1; +} + +message SendOutputsRequest { + /* + The number of satoshis per kilo weight that should be used when crafting + this transaction. + */ + int64 sat_per_kw = 1; + + /* + A slice of the outputs that should be created in the transaction produced. + */ + repeated signrpc.TxOut outputs = 2; + + // An optional label for the transaction, limited to 500 characters. + string label = 3; + + // The minimum number of confirmations each one of your outputs used for + // the transaction must satisfy. + int32 min_confs = 4; + + // Whether unconfirmed outputs should be used as inputs for the transaction. + bool spend_unconfirmed = 5; +} +message SendOutputsResponse { + /* + The serialized transaction sent out on the network. + */ + bytes raw_tx = 1; +} + +message EstimateFeeRequest { + /* + The number of confirmations to shoot for when estimating the fee. + */ + int32 conf_target = 1; +} +message EstimateFeeResponse { + /* + The amount of satoshis per kw that should be used in order to reach the + confirmation target in the request. + */ + int64 sat_per_kw = 1; +} + +enum WitnessType { + UNKNOWN_WITNESS = 0; + + /* + A witness that allows us to spend the output of a commitment transaction + after a relative lock-time lockout. + */ + COMMITMENT_TIME_LOCK = 1; + + /* + A witness that allows us to spend a settled no-delay output immediately on a + counterparty's commitment transaction. + */ + COMMITMENT_NO_DELAY = 2; + + /* + A witness that allows us to sweep the settled output of a malicious + counterparty's who broadcasts a revoked commitment transaction. + */ + COMMITMENT_REVOKE = 3; + + /* + A witness that allows us to sweep an HTLC which we offered to the remote + party in the case that they broadcast a revoked commitment state. + */ + HTLC_OFFERED_REVOKE = 4; + + /* + A witness that allows us to sweep an HTLC output sent to us in the case that + the remote party broadcasts a revoked commitment state. + */ + HTLC_ACCEPTED_REVOKE = 5; + + /* + A witness that allows us to sweep an HTLC output that we extended to a + party, but was never fulfilled. This HTLC output isn't directly on the + commitment transaction, but is the result of a confirmed second-level HTLC + transaction. As a result, we can only spend this after a CSV delay. + */ + HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 6; + + /* + A witness that allows us to sweep an HTLC output that was offered to us, and + for which we have a payment preimage. This HTLC output isn't directly on our + commitment transaction, but is the result of confirmed second-level HTLC + transaction. As a result, we can only spend this after a CSV delay. + */ + HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 7; + + /* + A witness that allows us to sweep an HTLC that we offered to the remote + party which lies in the commitment transaction of the remote party. We can + spend this output after the absolute CLTV timeout of the HTLC as passed. + */ + HTLC_OFFERED_REMOTE_TIMEOUT = 8; + + /* + A witness that allows us to sweep an HTLC that was offered to us by the + remote party. We use this witness in the case that the remote party goes to + chain, and we know the pre-image to the HTLC. We can sweep this without any + additional timeout. + */ + HTLC_ACCEPTED_REMOTE_SUCCESS = 9; + + /* + A witness that allows us to sweep an HTLC from the remote party's commitment + transaction in the case that the broadcast a revoked commitment, but then + also immediately attempt to go to the second level to claim the HTLC. + */ + HTLC_SECOND_LEVEL_REVOKE = 10; + + /* + A witness type that allows us to spend a regular p2wkh output that's sent to + an output which is under complete control of the backing wallet. + */ + WITNESS_KEY_HASH = 11; + + /* + A witness type that allows us to sweep an output that sends to a nested P2SH + script that pays to a key solely under our control. + */ + NESTED_WITNESS_KEY_HASH = 12; + + /* + A witness type that allows us to spend our anchor on the commitment + transaction. + */ + COMMITMENT_ANCHOR = 13; +} + +message PendingSweep { + // The outpoint of the output we're attempting to sweep. + lnrpc.OutPoint outpoint = 1; + + // The witness type of the output we're attempting to sweep. + WitnessType witness_type = 2; + + // The value of the output we're attempting to sweep. + uint32 amount_sat = 3; + + /* + Deprecated, use sat_per_vbyte. + The fee rate we'll use to sweep the output, expressed in sat/vbyte. The fee + rate is only determined once a sweeping transaction for the output is + created, so it's possible for this to be 0 before this. + */ + uint32 sat_per_byte = 4 [deprecated = true]; + + // The number of broadcast attempts we've made to sweep the output. + uint32 broadcast_attempts = 5; + + /* + The next height of the chain at which we'll attempt to broadcast the + sweep transaction of the output. + */ + uint32 next_broadcast_height = 6; + + // The requested confirmation target for this output. + uint32 requested_conf_target = 8; + + // Deprecated, use requested_sat_per_vbyte. + // The requested fee rate, expressed in sat/vbyte, for this output. + uint32 requested_sat_per_byte = 9 [deprecated = true]; + + /* + The fee rate we'll use to sweep the output, expressed in sat/vbyte. The fee + rate is only determined once a sweeping transaction for the output is + created, so it's possible for this to be 0 before this. + */ + uint64 sat_per_vbyte = 10; + + // The requested fee rate, expressed in sat/vbyte, for this output. + uint64 requested_sat_per_vbyte = 11; + + /* + Whether this input must be force-swept. This means that it is swept even + if it has a negative yield. + */ + bool force = 7; +} + +message PendingSweepsRequest { +} + +message PendingSweepsResponse { + /* + The set of outputs currently being swept by lnd's central batching engine. + */ + repeated PendingSweep pending_sweeps = 1; +} + +message BumpFeeRequest { + // The input we're attempting to bump the fee of. + lnrpc.OutPoint outpoint = 1; + + // The target number of blocks that the input should be spent within. + uint32 target_conf = 2; + + /* + Deprecated, use sat_per_vbyte. + The fee rate, expressed in sat/vbyte, that should be used to spend the input + with. + */ + uint32 sat_per_byte = 3 [deprecated = true]; + + /* + Whether this input must be force-swept. This means that it is swept even + if it has a negative yield. + */ + bool force = 4; + + /* + The fee rate, expressed in sat/vbyte, that should be used to spend the input + with. + */ + uint64 sat_per_vbyte = 5; +} + +message BumpFeeResponse { +} + +message ListSweepsRequest { + /* + Retrieve the full sweep transaction details. If false, only the sweep txids + will be returned. Note that some sweeps that LND publishes will have been + replaced-by-fee, so will not be included in this output. + */ + bool verbose = 1; +} + +message ListSweepsResponse { + message TransactionIDs { + /* + Reversed, hex-encoded string representing the transaction ids of the + sweeps that our node has broadcast. Note that these transactions may + not have confirmed yet, we record sweeps on broadcast, not confirmation. + */ + repeated string transaction_ids = 1; + } + + oneof sweeps { + lnrpc.TransactionDetails transaction_details = 1; + TransactionIDs transaction_ids = 2; + } +} + +message LabelTransactionRequest { + // The txid of the transaction to label. Note: When using gRPC, the bytes + // must be in little-endian (reverse) order. + bytes txid = 1; + + // The label to add to the transaction, limited to 500 characters. + string label = 2; + + // Whether to overwrite the existing label, if it is present. + bool overwrite = 3; +} + +message LabelTransactionResponse { +} + +// The possible change address types for default accounts and single imported +// public keys. By default, P2WPKH will be used. We don't provide the +// possibility to choose P2PKH as it is a legacy key scope, nor NP2WPKH as +// no key scope permits to do so. For custom accounts, no change type should +// be provided as the coin selection key scope will always be used to generate +// the change address. +enum ChangeAddressType { + // CHANGE_ADDRESS_TYPE_UNSPECIFIED indicates that no change address type is + // provided. We will then use P2WPKH address type for change (BIP0084 key + // scope). + CHANGE_ADDRESS_TYPE_UNSPECIFIED = 0; + + // CHANGE_ADDRESS_TYPE_P2TR indicates to use P2TR address for change output + // (BIP0086 key scope). + CHANGE_ADDRESS_TYPE_P2TR = 1; +} + +message FundPsbtRequest { + oneof template { + /* + Use an existing PSBT packet as the template for the funded PSBT. + + The packet must contain at least one non-dust output. If one or more + inputs are specified, no coin selection is performed. In that case every + input must be an UTXO known to the wallet that has not been locked + before. The sum of all inputs must be sufficiently greater than the sum + of all outputs to pay a miner fee with the specified fee rate. A change + output is added to the PSBT if necessary. + */ + bytes psbt = 1; + + /* + Use the outputs and optional inputs from this raw template. + */ + TxTemplate raw = 2; + } + + oneof fees { + /* + The target number of blocks that the transaction should be confirmed in. + */ + uint32 target_conf = 3; + + /* + The fee rate, expressed in sat/vbyte, that should be used to spend the + input with. + */ + uint64 sat_per_vbyte = 4; + } + + /* + The name of the account to fund the PSBT with. If empty, the default wallet + account is used. + */ + string account = 5; + + // The minimum number of confirmations each one of your outputs used for + // the transaction must satisfy. + int32 min_confs = 6; + + // Whether unconfirmed outputs should be used as inputs for the transaction. + bool spend_unconfirmed = 7; + + // The address type for the change. If empty, P2WPKH addresses will be used + // for default accounts and single imported public keys. For custom + // accounts, no change type should be provided as the coin selection key + // scope will always be used to generate the change address. + ChangeAddressType change_type = 8; +} +message FundPsbtResponse { + /* + The funded but not yet signed PSBT packet. + */ + bytes funded_psbt = 1; + + /* + The index of the added change output or -1 if no change was left over. + */ + int32 change_output_index = 2; + + /* + The list of lock leases that were acquired for the inputs in the funded PSBT + packet. + */ + repeated UtxoLease locked_utxos = 3; +} + +message TxTemplate { + /* + An optional list of inputs to use. Every input must be an UTXO known to the + wallet that has not been locked before. The sum of all inputs must be + sufficiently greater than the sum of all outputs to pay a miner fee with the + fee rate specified in the parent message. + + If no inputs are specified, coin selection will be performed instead and + inputs of sufficient value will be added to the resulting PSBT. + */ + repeated lnrpc.OutPoint inputs = 1; + + /* + A map of all addresses and the amounts to send to in the funded PSBT. + */ + map outputs = 2; +} + +message UtxoLease { + /* + A 32 byte random ID that identifies the lease. + */ + bytes id = 1; + + // The identifying outpoint of the output being leased. + lnrpc.OutPoint outpoint = 2; + + /* + The absolute expiration of the output lease represented as a unix timestamp. + */ + uint64 expiration = 3; + + /* + The public key script of the leased output. + */ + bytes pk_script = 4; + + /* + The value of the leased output in satoshis. + */ + uint64 value = 5; +} + +message SignPsbtRequest { + /* + The PSBT that should be signed. The PSBT must contain all required inputs, + outputs, UTXO data and custom fields required to identify the signing key. + */ + bytes funded_psbt = 1; +} + +message SignPsbtResponse { + // The signed transaction in PSBT format. + bytes signed_psbt = 1; + + // The indices of signed inputs. + repeated uint32 signed_inputs = 2; +} + +message FinalizePsbtRequest { + /* + A PSBT that should be signed and finalized. The PSBT must contain all + required inputs, outputs, UTXO data and partial signatures of all other + signers. + */ + bytes funded_psbt = 1; + + /* + The name of the account to finalize the PSBT with. If empty, the default + wallet account is used. + */ + string account = 5; +} +message FinalizePsbtResponse { + // The fully signed and finalized transaction in PSBT format. + bytes signed_psbt = 1; + + // The fully signed and finalized transaction in the raw wire format. + bytes raw_final_tx = 2; +} + +message ListLeasesRequest { +} + +message ListLeasesResponse { + // The list of currently leased utxos. + repeated UtxoLease locked_utxos = 1; +} diff --git a/proto/walletunlocker.proto b/proto/walletunlocker.proto new file mode 100644 index 000000000..faf3c0892 --- /dev/null +++ b/proto/walletunlocker.proto @@ -0,0 +1,338 @@ +syntax = "proto3"; + +import "lightning.proto"; + +package lnrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc"; + +/* + * Comments in this file will be directly parsed into the API + * Documentation as descriptions of the associated method, message, or field. + * These descriptions should go right above the definition of the object, and + * can be in either block or // comment format. + * + * An RPC method can be matched to an lncli command by placing a line in the + * beginning of the description in exactly the following format: + * lncli: `methodname` + * + * Failure to specify the exact name of the command will cause documentation + * generation to fail. + * + * More information on how exactly the gRPC documentation is generated from + * this proto file can be found here: + * https://github.com/lightninglabs/lightning-api + */ + +// WalletUnlocker is a service that is used to set up a wallet password for +// lnd at first startup, and unlock a previously set up wallet. +service WalletUnlocker { + /* + GenSeed is the first method that should be used to instantiate a new lnd + instance. This method allows a caller to generate a new aezeed cipher seed + given an optional passphrase. If provided, the passphrase will be necessary + to decrypt the cipherseed to expose the internal wallet seed. + + Once the cipherseed is obtained and verified by the user, the InitWallet + method should be used to commit the newly generated seed, and create the + wallet. + */ + rpc GenSeed (GenSeedRequest) returns (GenSeedResponse); + + /* + InitWallet is used when lnd is starting up for the first time to fully + initialize the daemon and its internal wallet. At the very least a wallet + password must be provided. This will be used to encrypt sensitive material + on disk. + + In the case of a recovery scenario, the user can also specify their aezeed + mnemonic and passphrase. If set, then the daemon will use this prior state + to initialize its internal wallet. + + Alternatively, this can be used along with the GenSeed RPC to obtain a + seed, then present it to the user. Once it has been verified by the user, + the seed can be fed into this RPC in order to commit the new wallet. + */ + rpc InitWallet (InitWalletRequest) returns (InitWalletResponse); + + /* lncli: `unlock` + UnlockWallet is used at startup of lnd to provide a password to unlock + the wallet database. + */ + rpc UnlockWallet (UnlockWalletRequest) returns (UnlockWalletResponse); + + /* lncli: `changepassword` + ChangePassword changes the password of the encrypted wallet. This will + automatically unlock the wallet database if successful. + */ + rpc ChangePassword (ChangePasswordRequest) returns (ChangePasswordResponse); +} + +message GenSeedRequest { + /* + aezeed_passphrase is an optional user provided passphrase that will be used + to encrypt the generated aezeed cipher seed. When using REST, this field + must be encoded as base64. + */ + bytes aezeed_passphrase = 1; + + /* + seed_entropy is an optional 16-bytes generated via CSPRNG. If not + specified, then a fresh set of randomness will be used to create the seed. + When using REST, this field must be encoded as base64. + */ + bytes seed_entropy = 2; +} +message GenSeedResponse { + /* + cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed + cipher seed obtained by the user. This field is optional, as if not + provided, then the daemon will generate a new cipher seed for the user. + Otherwise, then the daemon will attempt to recover the wallet state linked + to this cipher seed. + */ + repeated string cipher_seed_mnemonic = 1; + + /* + enciphered_seed are the raw aezeed cipher seed bytes. This is the raw + cipher text before run through our mnemonic encoding scheme. + */ + bytes enciphered_seed = 2; +} + +message InitWalletRequest { + /* + wallet_password is the passphrase that should be used to encrypt the + wallet. This MUST be at least 8 chars in length. After creation, this + password is required to unlock the daemon. When using REST, this field + must be encoded as base64. + */ + bytes wallet_password = 1; + + /* + cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed + cipher seed obtained by the user. This may have been generated by the + GenSeed method, or be an existing seed. + */ + repeated string cipher_seed_mnemonic = 2; + + /* + aezeed_passphrase is an optional user provided passphrase that will be used + to encrypt the generated aezeed cipher seed. When using REST, this field + must be encoded as base64. + */ + bytes aezeed_passphrase = 3; + + /* + recovery_window is an optional argument specifying the address lookahead + when restoring a wallet seed. The recovery window applies to each + individual branch of the BIP44 derivation paths. Supplying a recovery + window of zero indicates that no addresses should be recovered, such after + the first initialization of the wallet. + */ + int32 recovery_window = 4; + + /* + channel_backups is an optional argument that allows clients to recover the + settled funds within a set of channels. This should be populated if the + user was unable to close out all channels and sweep funds before partial or + total data loss occurred. If specified, then after on-chain recovery of + funds, lnd begin to carry out the data loss recovery protocol in order to + recover the funds in each channel from a remote force closed transaction. + */ + ChanBackupSnapshot channel_backups = 5; + + /* + stateless_init is an optional argument instructing the daemon NOT to create + any *.macaroon files in its filesystem. If this parameter is set, then the + admin macaroon returned in the response MUST be stored by the caller of the + RPC as otherwise all access to the daemon will be lost! + */ + bool stateless_init = 6; + + /* + extended_master_key is an alternative to specifying cipher_seed_mnemonic and + aezeed_passphrase. Instead of deriving the master root key from the entropy + of an aezeed cipher seed, the given extended master root key is used + directly as the wallet's master key. This allows users to import/use a + master key from another wallet. When doing so, lnd still uses its default + SegWit only (BIP49/84) derivation paths and funds from custom/non-default + derivation paths will not automatically appear in the on-chain wallet. Using + an 'xprv' instead of an aezeed also has the disadvantage that the wallet's + birthday is not known as that is an information that's only encoded in the + aezeed, not the xprv. Therefore a birthday needs to be specified in + extended_master_key_birthday_timestamp or a "safe" default value will be + used. + */ + string extended_master_key = 7; + + /* + extended_master_key_birthday_timestamp is the optional unix timestamp in + seconds to use as the wallet's birthday when using an extended master key + to restore the wallet. lnd will only start scanning for funds in blocks that + are after the birthday which can speed up the process significantly. If the + birthday is not known, this should be left at its default value of 0 in + which case lnd will start scanning from the first SegWit block (481824 on + mainnet). + */ + uint64 extended_master_key_birthday_timestamp = 8; + + /* + watch_only is the third option of initializing a wallet: by importing + account xpubs only and therefore creating a watch-only wallet that does not + contain any private keys. That means the wallet won't be able to sign for + any of the keys and _needs_ to be run with a remote signer that has the + corresponding private keys and can serve signing RPC requests. + */ + WatchOnly watch_only = 9; + + /* + macaroon_root_key is an optional 32 byte macaroon root key that can be + provided when initializing the wallet rather than letting lnd generate one + on its own. + */ + bytes macaroon_root_key = 10; +} +message InitWalletResponse { + /* + The binary serialized admin macaroon that can be used to access the daemon + after creating the wallet. If the stateless_init parameter was set to true, + this is the ONLY copy of the macaroon and MUST be stored safely by the + caller. Otherwise a copy of this macaroon is also persisted on disk by the + daemon, together with other macaroon files. + */ + bytes admin_macaroon = 1; +} + +message WatchOnly { + /* + The unix timestamp in seconds of when the master key was created. lnd will + only start scanning for funds in blocks that are after the birthday which + can speed up the process significantly. If the birthday is not known, this + should be left at its default value of 0 in which case lnd will start + scanning from the first SegWit block (481824 on mainnet). + */ + uint64 master_key_birthday_timestamp = 1; + + /* + The fingerprint of the root key (also known as the key with derivation path + m/) from which the account public keys were derived from. This may be + required by some hardware wallets for proper identification and signing. The + bytes must be in big-endian order. + */ + bytes master_key_fingerprint = 2; + + /* + The list of accounts to import. There _must_ be an account for all of lnd's + main key scopes: BIP49/BIP84 (m/49'/0'/0', m/84'/0'/0', note that the + coin type is always 0, even for testnet/regtest) and lnd's internal key + scope (m/1017'/'/'), where account is the key family as + defined in `keychain/derivation.go` (currently indices 0 to 9). + */ + repeated WatchOnlyAccount accounts = 3; +} + +message WatchOnlyAccount { + /* + Purpose is the first number in the derivation path, must be either 49, 84 + or 1017. + */ + uint32 purpose = 1; + + /* + Coin type is the second number in the derivation path, this is _always_ 0 + for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on + testnet or regtest. + */ + uint32 coin_type = 2; + + /* + Account is the third number in the derivation path. For purposes 49 and 84 + at least the default account (index 0) needs to be created but optional + additional accounts are allowed. For purpose 1017 there needs to be exactly + one account for each of the key families defined in `keychain/derivation.go` + (currently indices 0 to 9) + */ + uint32 account = 3; + + /* + The extended public key at depth 3 for the given account. + */ + string xpub = 4; +} + +message UnlockWalletRequest { + /* + wallet_password should be the current valid passphrase for the daemon. This + will be required to decrypt on-disk material that the daemon requires to + function properly. When using REST, this field must be encoded as base64. + */ + bytes wallet_password = 1; + + /* + recovery_window is an optional argument specifying the address lookahead + when restoring a wallet seed. The recovery window applies to each + individual branch of the BIP44 derivation paths. Supplying a recovery + window of zero indicates that no addresses should be recovered, such after + the first initialization of the wallet. + */ + int32 recovery_window = 2; + + /* + channel_backups is an optional argument that allows clients to recover the + settled funds within a set of channels. This should be populated if the + user was unable to close out all channels and sweep funds before partial or + total data loss occurred. If specified, then after on-chain recovery of + funds, lnd begin to carry out the data loss recovery protocol in order to + recover the funds in each channel from a remote force closed transaction. + */ + ChanBackupSnapshot channel_backups = 3; + + /* + stateless_init is an optional argument instructing the daemon NOT to create + any *.macaroon files in its file system. + */ + bool stateless_init = 4; +} +message UnlockWalletResponse { +} + +message ChangePasswordRequest { + /* + current_password should be the current valid passphrase used to unlock the + daemon. When using REST, this field must be encoded as base64. + */ + bytes current_password = 1; + + /* + new_password should be the new passphrase that will be needed to unlock the + daemon. When using REST, this field must be encoded as base64. + */ + bytes new_password = 2; + + /* + stateless_init is an optional argument instructing the daemon NOT to create + any *.macaroon files in its filesystem. If this parameter is set, then the + admin macaroon returned in the response MUST be stored by the caller of the + RPC as otherwise all access to the daemon will be lost! + */ + bool stateless_init = 3; + + /* + new_macaroon_root_key is an optional argument instructing the daemon to + rotate the macaroon root key when set to true. This will invalidate all + previously generated macaroons. + */ + bool new_macaroon_root_key = 4; +} +message ChangePasswordResponse { + /* + The binary serialized admin macaroon that can be used to access the daemon + after rotating the macaroon root key. If both the stateless_init and + new_macaroon_root_key parameter were set to true, this is the ONLY copy of + the macaroon that was created from the new root key and MUST be stored + safely by the caller. Otherwise a copy of this macaroon is also persisted on + disk by the daemon, together with other macaroon files. + */ + bytes admin_macaroon = 1; +} diff --git a/proto/watchtowerrpc/watchtower.proto b/proto/watchtowerrpc/watchtower.proto new file mode 100644 index 000000000..f3be62163 --- /dev/null +++ b/proto/watchtowerrpc/watchtower.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package watchtowerrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc"; + +// Watchtower is a service that grants access to the watchtower server +// functionality of the daemon. +service Watchtower { + /* lncli: tower info + GetInfo returns general information concerning the companion watchtower + including its public key and URIs where the server is currently + listening for clients. + */ + rpc GetInfo (GetInfoRequest) returns (GetInfoResponse); +} + +message GetInfoRequest { +} + +message GetInfoResponse { + // The public key of the watchtower. + bytes pubkey = 1; + + // The listening addresses of the watchtower. + repeated string listeners = 2; + + // The URIs of the watchtower. + repeated string uris = 3; +} diff --git a/proto/wtclientrpc/wtclient.proto b/proto/wtclientrpc/wtclient.proto new file mode 100644 index 000000000..736a4bdde --- /dev/null +++ b/proto/wtclientrpc/wtclient.proto @@ -0,0 +1,193 @@ +syntax = "proto3"; + +package wtclientrpc; + +option go_package = "github.com/lightningnetwork/lnd/lnrpc/wtclientrpc"; + +// WatchtowerClient is a service that grants access to the watchtower client +// functionality of the daemon. +service WatchtowerClient { + /* + AddTower adds a new watchtower reachable at the given address and + considers it for new sessions. If the watchtower already exists, then + any new addresses included will be considered when dialing it for + session negotiations and backups. + */ + rpc AddTower (AddTowerRequest) returns (AddTowerResponse); + + /* + RemoveTower removes a watchtower from being considered for future session + negotiations and from being used for any subsequent backups until it's added + again. If an address is provided, then this RPC only serves as a way of + removing the address from the watchtower instead. + */ + rpc RemoveTower (RemoveTowerRequest) returns (RemoveTowerResponse); + + // ListTowers returns the list of watchtowers registered with the client. + rpc ListTowers (ListTowersRequest) returns (ListTowersResponse); + + // GetTowerInfo retrieves information for a registered watchtower. + rpc GetTowerInfo (GetTowerInfoRequest) returns (Tower); + + // Stats returns the in-memory statistics of the client since startup. + rpc Stats (StatsRequest) returns (StatsResponse); + + // Policy returns the active watchtower client policy configuration. + rpc Policy (PolicyRequest) returns (PolicyResponse); +} + +message AddTowerRequest { + // The identifying public key of the watchtower to add. + bytes pubkey = 1; + + // A network address the watchtower is reachable over. + string address = 2; +} + +message AddTowerResponse { +} + +message RemoveTowerRequest { + // The identifying public key of the watchtower to remove. + bytes pubkey = 1; + + /* + If set, then the record for this address will be removed, indicating that is + is stale. Otherwise, the watchtower will no longer be used for future + session negotiations and backups. + */ + string address = 2; +} + +message RemoveTowerResponse { +} + +message GetTowerInfoRequest { + // The identifying public key of the watchtower to retrieve information for. + bytes pubkey = 1; + + // Whether we should include sessions with the watchtower in the response. + bool include_sessions = 2; +} + +message TowerSession { + /* + The total number of successful backups that have been made to the + watchtower session. + */ + uint32 num_backups = 1; + + /* + The total number of backups in the session that are currently pending to be + acknowledged by the watchtower. + */ + uint32 num_pending_backups = 2; + + // The maximum number of backups allowed by the watchtower session. + uint32 max_backups = 3; + + /* + Deprecated, use sweep_sat_per_vbyte. + The fee rate, in satoshis per vbyte, that will be used by the watchtower for + the justice transaction in the event of a channel breach. + */ + uint32 sweep_sat_per_byte = 4 [deprecated = true]; + + /* + The fee rate, in satoshis per vbyte, that will be used by the watchtower for + the justice transaction in the event of a channel breach. + */ + uint32 sweep_sat_per_vbyte = 5; +} + +message Tower { + // The identifying public key of the watchtower. + bytes pubkey = 1; + + // The list of addresses the watchtower is reachable over. + repeated string addresses = 2; + + // Whether the watchtower is currently a candidate for new sessions. + bool active_session_candidate = 3; + + // The number of sessions that have been negotiated with the watchtower. + uint32 num_sessions = 4; + + // The list of sessions that have been negotiated with the watchtower. + repeated TowerSession sessions = 5; +} + +message ListTowersRequest { + // Whether we should include sessions with the watchtower in the response. + bool include_sessions = 1; +} + +message ListTowersResponse { + // The list of watchtowers available for new backups. + repeated Tower towers = 1; +} + +message StatsRequest { +} + +message StatsResponse { + /* + The total number of backups made to all active and exhausted watchtower + sessions. + */ + uint32 num_backups = 1; + + /* + The total number of backups that are pending to be acknowledged by all + active and exhausted watchtower sessions. + */ + uint32 num_pending_backups = 2; + + /* + The total number of backups that all active and exhausted watchtower + sessions have failed to acknowledge. + */ + uint32 num_failed_backups = 3; + + // The total number of new sessions made to watchtowers. + uint32 num_sessions_acquired = 4; + + // The total number of watchtower sessions that have been exhausted. + uint32 num_sessions_exhausted = 5; +} + +enum PolicyType { + // Selects the policy from the legacy tower client. + LEGACY = 0; + + // Selects the policy from the anchor tower client. + ANCHOR = 1; +} + +message PolicyRequest { + /* + The client type from which to retrieve the active offering policy. + */ + PolicyType policy_type = 1; +} + +message PolicyResponse { + /* + The maximum number of updates each session we negotiate with watchtowers + should allow. + */ + uint32 max_updates = 1; + + /* + Deprecated, use sweep_sat_per_vbyte. + The fee rate, in satoshis per vbyte, that will be used by watchtowers for + justice transactions in response to channel breaches. + */ + uint32 sweep_sat_per_byte = 2 [deprecated = true]; + + /* + The fee rate, in satoshis per vbyte, that will be used by watchtowers for + justice transactions in response to channel breaches. + */ + uint32 sweep_sat_per_vbyte = 3; +}